Solve the below problem:
Q: A 4-kg collar can slide on a frictionless horizontal rod and is attached to a spring of constant 450 N/m. It is acted upon by a periodic force of magnitude P = Pm sin ωft where Pm = 13N. Determine the amplitude of the motion of the collar if
(a) ωf = 5 rad/s,
(b) ωf = 10 rad/s.