EXAMPLE 5: 
| 
   
  | 
 
The
particle of mass m moves on the
smooth rod. The spring has an initial length of 
and a stiff of k.
Obtain the equation of motion of the particle.
Solution:
| 
   
  | 
 
Kinematics:

Kinetics:
![]()


The above is the equation of motion.