Application
Hamilton's principle
Adapted
Newton's equations for particles moving in a potential are exactly the Euler–Lagrange equations of the action, the time integral of kinetic minus potential energy, and they keep this form in any generalized coordinates, including moving ones.
Prerequisites: Several functions and higher derivatives
Consider point particles with masses and positions . Collect the positions into one configuration vector .
- The forces come from a potential if there is a function on , with open, such that the force on particle is . Time dependence of is allowed.
- The kinetic energy is and the Lagrangian is .
- The action of a path is the number
- A path is a stationary path of the action if for every function with .
- Generalized coordinates are given by a map , open, such that for each fixed the map is injective and its Jacobian matrix is invertible. The coordinates may move with time (a rotating frame, for instance). A path has velocity , and its Lagrangian in the new coordinates is
Let be and let be a path. The following are equivalent.
- obeys Newton's equations for and all .
- is a stationary path of the action .
- For one, and then for every, system of generalized coordinates with and of class , Lagrange's equations hold:
In Cartesian coordinates the Euler–Lagrange system of is Newton's law term by term, so 1 and 2 are the same statement. For 3, a direct computation shows that the Euler–Lagrange expressions in the new coordinates are the old ones multiplied by the transposed Jacobian . An invertible matrix sends a vector to zero only if the vector is zero, so the equations hold in one system exactly when they hold in the other.
Write and define the Euler–Lagrange expression of along the path,
and in the same way for along .
-
Stationary paths are the solutions of . Because is , differentiating under the integral and integrating the term by parts gives
with no boundary term because . If the right side vanishes for every . Conversely, if it vanishes for every admissible , then by the Euler–Lagrange system for several functions (the fundamental lemma applied to one component at a time).
-
is Newton's law. For we have and . The -block of is therefore . This proves .
-
How the Euler–Lagrange expression transforms. Let . We claim
-
Since , the velocity depends on with coefficient . By the chain rule, .
-
The velocity also depends on : . Because is its mixed partial derivatives commute, so this is the time derivative of along the path. Hence
-
By the product rule, .
-
Subtracting the last two lines, the terms containing cancel and the claim remains.
-
-
Conclusion. The matrix is invertible by the definition of generalized coordinates, so if and only if . Thus 3 holds in a given coordinate system exactly when 2 holds, and then it holds in every system.
- Forces from a potential are used in step 2, where must equal the force. Friction is not of this form, and cannot describe it.
- regularity of and of the path makes continuous, which the fundamental lemma needs in step 1. regularity of is what lets mixed partial derivatives be exchanged in step 3.
- Invertibility of is used only in step 4. If there are fewer coordinates than , for example a pendulum described by one angle, then is a tall matrix and says only that the vector , the mass-weighted acceleration minus the applied force, is orthogonal to every direction the constraint allows. That is precisely the statement that the constraint force does no work in any allowed displacement (an ideal constraint). This is why Hamilton's principle, written in coordinates on the constraint surface, gives the correct motion of pendulums and rigid bodies; constraints of this kind are treated in Pointwise constraints.
The older name "principle of least action" claims more than is true. Take a unit-mass oscillator, , on with . The rest state solves Lagrange's equation and has action . For the competitor with ,
which is negative as soon as . Over such long intervals the true motion is a stationary point of the action, not a minimum. The threshold is the first conjugate time, studied in Conjugate points and Jacobi's condition.
A particle of mass moves in a plane with no forces (). Describe it in coordinates that rotate with constant angular velocity :
Lagrangian. Since with , we get . Rotations preserve length, so
Lagrange's equations. For : and , so . Doing the same for ,
In vector form this reads : the term is the centrifugal acceleration and is the Coriolis acceleration. Both came out of the theorem, with no separate argument about non-inertial frames.
A check with numbers. Release the particle at rest in the rotating frame at . In the inertial frame it starts at with velocity , so it moves on the straight line . Hence
Substituting into the two equations above makes both residuals vanish identically. At the particle is at , which for is : seen from the rotating frame, the particle has drifted outward and backward against the rotation.
What it teaches: choosing generalized coordinates adapted to the forces. A bob of mass hangs from a fixed point on a spring of stiffness and natural length and moves in a vertical plane under gravity . Using polar coordinates , with measured from the downward vertical, show that
derive and , and linearize about the hanging equilibrium. For , , and (SI units) you should find , a radial frequency and a swinging frequency , in radians per second.
Hamilton's principle is the standard way to set up equations of motion in mechanics and engineering: one writes down and in whatever coordinates suit the problem (joint angles of a robot arm, Euler angles of a spacecraft, normal modes of a molecule) and reads off the equations, with constraint forces never appearing. In celestial mechanics and geophysical fluid dynamics, the rotating-frame Lagrangian of the example above is the starting point for the restricted three-body problem and for the Coriolis terms in atmosphere and ocean models. The same principle with a Lagrangian density gives field equations such as the wave equation (see Several independent variables), and the symmetries of give conservation laws through Noether's theorem.