Stability of equilibrium for an inverted two-link mathematical pendulum with critical tracking forces