Consider the case of a system with two degrees of freedom, q and ζ, with generalized velocities dq / dt and dζ / dt, and the Lagrangian is time-dependent. (The generalization to any number of degrees of freedom follows exactly the same procedure as with two). The Lagrangian of the system will have the form