Evolution of the equilibrium states of an inverted pendulum