Bifurcation analysis and control of nonlinear systems with defective repetitive zero at criticality is presented. The results are applied to stabilize a flexible, inverted pendulum mounted on a moving cart that is approximated with a coefficient of flexibility.