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
 
Remove phrase duplicated by the piped link
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Several dependent variables}}
{{Plebeian|Hamilton's principle/Explainers/More than one variable}}
{{Plebeian|Hamilton's principle/Explainers/More than one variable}}


Line 55: Line 56:
<math>\eta_k</math> arbitrary. This is legitimate precisely because the
<math>\eta_k</math> arbitrary. This is legitimate precisely because the
<math>\eta_i</math> are independent. The sum in (4) collapses to its
<math>\eta_i</math> are independent. The sum in (4) collapses to its
<math>k</math>-th term, and the fundamental lemma of
<math>k</math>-th term, and [[Hamilton's principle/Mathematics/The fundamental lemma|the fundamental lemma]] gives
[[Hamilton's principle/Mathematics/The fundamental lemma]] gives


:<math>\frac{\partial L}{\partial y_k}
:<math>\frac{\partial L}{\partial y_k}
Line 69: Line 69:
<math>\eta_i</math> are not independent, <math>\eta_k</math> cannot be varied
<math>\eta_i</math> are not independent, <math>\eta_k</math> cannot be varied
alone, and (5) does not follow. That case is
alone, and (5) does not follow. That case is
[[Hamilton's principle/Mathematics/Holonomic constraints]], and the repair is
[[Hamilton's principle/Mathematics/Holonomic constraints|Holonomic constraints]], and the repair is
[[Hamilton's principle/Mathematics/Lagrange multipliers]]. Everything in this
[[Hamilton's principle/Mathematics/Lagrange multipliers|Lagrange multipliers]]. Everything in this
page rests on independence, and it is worth knowing exactly where.
page rests on independence, and it is worth knowing exactly where.


Line 95: Line 95:
<math>n</math>-variable non-degeneracy condition, and its definiteness version is
<math>n</math>-variable non-degeneracy condition, and its definiteness version is
the Legendre condition of
the Legendre condition of
[[Hamilton's principle/Mathematics/The Legendre condition]]. A singular
[[Hamilton's principle/Mathematics/The Legendre condition|the Legendre condition]]. A singular
<math>W</math> signals a constrained or gauge system, which is where
<math>W</math> signals a constrained or gauge system, which is where
[[Hamilton's principle/Mathematics/Noether's second theorem]] applies.
[[Hamilton's principle/Mathematics/Noether's second theorem|Noether's second theorem]] applies.


== First integrals ==
== First integrals ==
Line 116: Line 116:


which is the <math>n</math>-variable Beltrami identity of
which is the <math>n</math>-variable Beltrami identity of
[[Hamilton's principle/Mathematics/The Beltrami identity]], and is the
[[Hamilton's principle/Mathematics/The Beltrami identity|the Beltrami identity]], and is the
Hamiltonian.
Hamiltonian.


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


== Worked example: the free particle in the plane ==
== Worked example: the free particle in the plane ==
Line 165: Line 165:
it follows from them. Independent symmetries need not give independent first
it follows from them. Independent symmetries need not give independent first
integrals, a point Noether makes explicitly and which is taken up on
integrals, a point Noether makes explicitly and which is taken up on
[[Hamilton's principle/Mathematics/Noether's first theorem]].
[[Hamilton's principle/Mathematics/Noether's first theorem|Noether's first theorem]].


== Next ==
== Next ==


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


Line 175: Line 175:


<references />
<references />

Latest revision as of 05:15, 16 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 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 Holonomic constraints, and the repair is 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 the Legendre condition. A singular W signals a constrained or gauge system, which is where 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 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 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 Noether's first theorem.

Next

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.