The Inverted Pendulum: A Mechanical Analysis of Balance