Assignment:
Consider a simple plane pendulum consisting of a mass m connected to a string of length L.
After the pendulum is set in motion , the length of the string is shortened at a constant rate:
dL/dt = -k
The suspension point remains fixed.
Compute the following:
a) The Lagrangian and Hamiltonian functions
b) Compare the Hamiltonian and the total energy
c) Discuss the conservation of energy for the system.