The control of a rotary inverted pendulum (RIP) is challenging because it is an underactuated, highly sensitive, and unsteady system. Sliding mode control (SMC) is a nonlinear control method with high ...