A particle of mass m moves in one dimension under the influence of a force
F(x,t)=x2ke−(t/τ)
where k and τ are positive constants. Compute the Lagrangian and Hamiltonian functions. Compare the Hamiltonian and the total energy, and discuss the conservation of energy for the system.