Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Physics LibreTexts

13.9: Hamilton's Variational Principle

( \newcommand{\kernel}{\mathrm{null}\,}\)

Hamilton’s variational principle in dynamics is slightly reminiscent of the principle of virtual work in statics, discussed in Section 9.4 of Chapter 9. When using the principle of virtual work in statics we imagine starting from an equilibrium position, and then increasing one of the coordinates infinitesimally. We calculate the virtual work done and set it to zero. I am slightly reminded of this when discussing Hamilton’s principle in dynamics

Imagine some mechanical system – some contraption including in its construction various wheels, jointed rods, springs, elastic strings, pendulums, inclined planes, hemispherical bowls, and ladders leaning against smooth vertical walls and smooth horizontal floors. It may require N generalized coordinates to describe its configuration at any time. Its configuration could be described by the position of a point in N-dimensional space. Or perhaps it is subject to k holonomic constraints – in which case the point that describes its configuration in N-dimensional space is not free to move anywhere in that space, but is constrained to slither around on a surface of dimension Nk.

The system is not static, but it is evolving. It is changing from some initial state at time t1 to some final state at time t2. The generalized coordinates that describe it are changing with time – and the point in N-space is slithering round on its surface of dimension Nk. One can imagine that at any instant of time one can calculate its kinetic energy T and its potential energy V, and hence its lagrangian L=TV. You can multiply L at some moment by a small time interval δt and then add up all of these products between t1 and t2 to form the integral

t2t1Ldt.

This quantity – of dimension ML2T-1 and SI unit J s – is sometimes called the “action”. There are many different ways in which we can imagine the system to evolve from its initial state to its final state – and there are many different routes that we can imagine might be taken by our point in N-space as its moves from its initial position to its final position, as long as it moves over its surface of dimension Nk. But, although we can imagine many such routes, the manner in which the system will actually evolve, and the route that the point will actually take is determined by Hamilton’s principle; and the route, according to this principle, is such that the integral t2t1Ldt is a minimum, or a maximum, or an inflection point, when compared with other imaginable routes. Stated otherwise, let us suppose that we calculate t2t1Ldt over the actual route taken and then calculate the variation in t2t1Ldt if the system were to move over a slightly different adjacent path. Then (and here is the analogy with the principle of virtual work in a statics problem) this variation

δt2t1Ldt

from what t2t1Ldt would have been over the actual route is zero. And this is Hamilton’s variational principle.

The next questions will surely be: Can I use this principle for solving problems in mechanics? Can I prove this bald assertion? Let me try to use the principle to solve two simple and familiar problems, and then move on to a more general problem.

Example 13.9.1

Imagine that we have a particle than can move in one dimension (i.e. one coordinate – for example its height y above a table - suffices to describe its position), and that when its coordinate is y its potential energy is

V=mgy.

Its kinetic energy is, of course,

T=12m˙y2.

We are going to use the variational principle to find the equation of motion – i.e we are going to find an expression for its acceleration. I imagine at the moment you have no idea what its acceleration could possibly be – but do not worry, for we know that the lagrangian is

L=12m˙y2mgy,

and we’ll make short work of it with Hamilton’s variational principle and soon find the acceleration. According to this principle, y must vary with t in such a manner that

mδt2t1(12˙y2gy)dt=0.

Let us vary ˙y by δ˙y and y by δy see how the integral varies.

The integral is then

mt2t1(˙yδ˙ygδy)dt,

which I’ll call I1I2.

Now ˙y=dydt and if y varies by δy, the resulting variation in ˙y will be δ˙y=ddtδy, or δ˙ydt=dδy.

Therefore

I1=mt2t1˙ydδy.

(If unconvinced of this, consider etcostdt=etddtsintdt=etdsint.)

By integration by parts:

I1=[m˙yδy]t2t1mt2t1δyd˙y.

The first term is zero because the variation is zero at the beginning and end points. In the second term, d˙y=¨ydt and therefore

I1=mt2t1¨yδydt

δt2t1Ldt=mt2t1(¨y+g)δydt,

and, for this to be zero, we must have

¨y=g.

This is the equation of motion that we sought. You would never have guessed this, would you?

Now let’s do another one-dimensional problem.

Example 13.9.2

Only one coordinate, x, describes the particle’s position, and, when its coordinate is x we’ll suppose that its potential energy is V=12mω2x2 and its kinetic energy is, of course, T=12m˙x2. The equation of motion, or the way in which the acceleration varies with position, must be such as to satisfy

12mδt2t1(˙x2ω2x2)dt=0.

If we vary ˙x by δ˙x and x by δx the variation in the integral will be

mt2t1(˙xδ˙xω2xδx)dt=I1I2.

By precisely the same argument as before, the first integral is found to be mt2t1¨xδxdt

Therefore

δt2t1Ldt=mt2t1¨xδxdtmω2t2t1xδxdt,

and, for this to be zero, we must have

¨x=ω2x.

These two examples must have given the impression that we are doing something very difficult in order to derive something that is immediately obvious – but the examples were just intended to show the direction of a more general argument we are about to make.

This time, we’ll consider a very general system, in which we write the lagrangian as a function of the (several) generalized coordinates and their time rates of change - i.e. L=L(qi,˙qi) - without specifying any particular form of the function – and we’ll carry out the same sort of argument to derive a very general equation of motion.

We have

δt2t1Ldt=t2t1δLdt=t2t1i(Lqiδqi+L˙qiδ˙qi)dt=0.

As before, δ˙qi=ddtδqi so that

t2t1L˙qiδ˙qidt=t2t1L˙qiddtδqidt=t2t1L˙qidδqi=[L˙qiδqi]t2t1t2t1δqiddtL˙qidt

δt2t1Ldt=t2t1i(LqiddtL˙qi)δqidt=0.

Thus we arrive at the general equation of motion

Lqiddt(L˙qi)=0.

Thus we have derived Lagrange’s equation of motion from Hamilton’s variational principle, and this is indeed the way it is often derived. However, in this chapter, I derived Lagrange’s equation quite independently, and hence I would regard this derivation not so much as a proof of Lagrange’s equation, but as a vindication of the correctness of Hamilton’s variational principle.


This page titled 13.9: Hamilton's Variational Principle is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Jeremy Tatum via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?