The following pages contain background information on reinforcement learning and two-wheeled inverted pendulum dynamics. These are critical pieces of theory that help to formulate the problem we are trying to solve.