For the spring pendulum shown in the given figure