Jump to content

Hamilton's principle/Mathematics/Several dependent variables: Difference between revisions

From The Invariance Itself
hamiltons-principle>HPVBuild
Initial import of M1-07
 
m 1 revision imported
(No difference)

Revision as of 05:05, 9 September 2026

Plain-language version: More than one variable

A mechanical system rarely has one degree of freedom. This page extends the machinery to an integrand depending on n unknown functions of a single independent variable. The result is a system of n Euler-Lagrange equations, one per unknown, and this is the form in which Hamilton's principle is actually stated for mechanics.

Setup

Varying one degree of freedom at a time.

Let y=(y1,…,yn) be n functions of x on [a,b], each in C2, with all 2n endpoint values prescribed:

yi(a)=yi,a,yi(b)=yi,b,i=1,…,n(1)

Let L(x,y1,…,yn,y1′,…,yn′) have continuous second partials in all 2n+1 slots, and define

J[y]=∫abL(x,yi,yi′)dx(2)

The variation space is now n copies of the earlier one: each ηi∈C2[a,b] with ηi(a)=ηi(b)=0, and the ηi are independent of one another. That independence is the whole content of what follows.

Derivation

Form the family yi+εηi, differentiate under the integral, and set ε=0:

δJ=∫ab∑i=1n[∂L∂yiηi+∂L∂yi′ηi′]dx(3)

Integrate each term of the second kind by parts. Every boundary term vanishes, since every ηi vanishes at both ends:

δJ=∫ab∑i=1n[∂L∂yi−ddx∂L∂yi′]ηidx(4)

Stationarity requires (4) to vanish for every choice of the n variations. Here is the step that needs care.

Select one index at a time. Fix k and choose ηi=0 for all i≠k, with ηk arbitrary. This is legitimate precisely because the ηi are independent. The sum in (4) collapses to its k-th term, and the fundamental lemma of Hamilton's principle/Mathematics/The fundamental lemma gives

∂L∂yk−ddx∂L∂yk′=0(5)

Repeating for each k yields n equations. ◼

The single-index trick fails under constraints. If the yi are related — a bead confined to a wire, a rigid rod between two masses — then the ηi are not independent, ηk cannot be varied alone, and (5) does not follow. That case is Hamilton's principle/Mathematics/Holonomic constraints, and the repair is Hamilton's principle/Mathematics/Lagrange multipliers. Everything in this page rests on independence, and it is worth knowing exactly where.

Counting

(5) is a system of n coupled second-order equations, so its general solution carries 2n constants. The endpoint data (1) supplies exactly 2n conditions. The count matches again, as it did for one variable.

Coupling enters through the mixed partials ∂2L/∂yi′∂yk′. Expanding the total derivative in (5),

∑k=1n∂2L∂yi′∂yk′yk″+∑k=1n∂2L∂yi′∂ykyk′+∂2L∂yi′∂x−∂L∂yi=0(6)

The matrix Wik=∂2L/∂yi′∂yk′ is the Hessian with respect to the derivatives. The system can be solved for the yk″ if and only if W is invertible. This is the n-variable non-degeneracy condition, and its definiteness version is the Legendre condition of Hamilton's principle/Mathematics/The Legendre condition. A singular W signals a constrained or gauge system, which is where Hamilton's principle/Mathematics/Noether's second theorem applies.

First integrals

Both results from the one-variable case generalise, with the same proofs.

If L does not contain yk, then

pk=∂L∂yk′=const(7)

and yk is called a cyclic or ignorable coordinate.

If L does not contain x, then

∑i=1nyi′∂L∂yi′−L=const(8)

which is the n-variable Beltrami identity of Hamilton's principle/Mathematics/The Beltrami identity, and is the Hamiltonian.

Hamilton's own form

This is the form in which the historical statement is made. Hamilton writes the equations of motion of a system of free points as a single formula,

Σ.m(x″δx+y″δy+z″δz)=δU(9)

[1]

and after transforming to general marks of position η1,…,η3n he arrives at

ddtδTδη′−δTδη=δUδη(10)

[2]

Equation (10) is (5) with L=T+U, allowing for Hamilton's sign convention on the force-function. The correspondence between his notation and this volume's is tabulated on Hamilton's principle/Notation.

Worked example: the free particle in the plane

Take x as time t, coordinates (y1,y2), and

L=12m(y˙12+y˙22)(11)

Neither coordinate appears in L, so both are cyclic and (7) gives my˙1=c1, my˙2=c2. Both momentum components are conserved and the path is a straight line traversed at constant speed.

t does not appear either, so (8) applies as well and gives 12m(y˙12+y˙22)=const. That is energy conservation, and it is not independent of the momentum results here — it follows from them. Independent symmetries need not give independent first integrals, a point Noether makes explicitly and which is taken up on Hamilton's principle/Mathematics/Noether's first theorem.

Next

Hamilton's principle/Mathematics/Several independent variables takes the remaining step, from ordinary to partial differential equations.

References

  1. ↑ Hamilton, On a General Method in Dynamics (1834), equation (1.). Verbatim. The summation runs over the points of the system; U is the force-function.
  2. ↑ Hamilton, On a General Method in Dynamics (1834), equation (Y.). Verbatim in structure, with Hamilton's δ used for partial differentiation as he writes it. Hamilton remarks that these coincide, apart from a slight difference of notation, with the canonical forms of Lagrange.