4.4: Lagrange’s Equations from Hamilton’s Principle Using Calculus of Variations
( \newcommand{\kernel}{\mathrm{null}\,}\)
We started with Newton’s equations of motion, expressed in Cartesian coordinates of particle positions. For many systems, these equations are mathematically intractable. Running the calculus of variations argument in reverse, we established Hamilton’s principle: the system moves along the path through configuration space for which the action integral, with integrand the Lagrangian L=T−U, is a minimum.
We’re now free to begin from Hamilton’s principle, expressing the Lagrangian in variables that more naturally describe the system, taking advantage of any symmetries (such as using angle variables for rotationally invariant systems). Also, some forces do not need to be included in the description of the system: a simple pendulum is fully specified by its position and velocity, we do not need to know the tension in the string, although that would appear in a Newtonian analysis. The greater efficiency (and elegance) of the Lagrangian method, for most problems, will become evident on working through actual examples.
We’ll define a set of generalized coordinates q=(q1,…qn) by requiring that they give a complete description of the configuration of the system (where everything is in space). The state of the system is specified by this set plus the corresponding velocities ˙q=(˙q1,…˙qn)
For example, the x -coordinate of a particular particle a is given by some function of the qi 's,
xa=fxa(q1,…qn), and the corresponding velocity component ˙xa=∑k∂fxa∂qk˙qk
The Lagrangian will depend on all these variables in general, and also possibly on time explicitly, for example if there is a time-dependent external potential. (But usually that isn’t the case.)
Hamilton’s principle gives
δS=δ∫t2t1L(qi,˙qi,t)dt=0
that is,
∫t2t1∑i(∂L∂qiδqi+∂L∂˙qiδ˙qi)dt=0
Integrating by parts,
δS=[∑i∂L∂˙qiδqi]t2t1+∫t2t1∑i(∂L∂qi−ddt(∂L∂˙qi))δqidt=0
Requiring the path deviation to be zero at the endpoints gives Lagrange’s equations:
ddt(∂L∂˙qi)−∂L∂qi=0