Question

Example 1: Derive the equation of motion for the spring mass system shown using the energy method.

Fig: 1

Fig: 2