Text this: Linear quadratic regulator (LQR) controller design for inverted pendulum