A pendulum consists of a mass m suspended by a massless springwith unextended length b and spring constant k.The pendulum's point of support rises vertically with a constantacceleration a.
a) Use the Lagrangian method to find the equations ofmotion.
b) Determine the Hamiltonian and Hamiltonian's equation ofmotion.
c) What is the period of small oscillations?