Part I · The Action Principle — Chapter 1.2

Stationary Action

One scalar function, one condition on it, and every equation of motion in this book.

Where we are

Chapter 1.1 ended with a trick that should have unsettled you. To find the path a light ray takes through a stack of media, you did not track the ray at all. You wrote down a single number for each conceivable path, the total travel time. Then you demanded that this number be stationary, and Snell's law fell out. A global statement about entire paths had produced a local law about what happens at one interface.

That is a strange and powerful thing to be able to do, and 1.1 left it sitting there as an isolated curiosity about light. This chapter turns it into machinery.

To do that we need a branch of mathematics that can differentiate a number with respect to a whole function. It is called the calculus of variations, we build it in §2 and §3, and then we point it at mechanics.

Here is the destination, stated up front so you know what you are paying for. There is one scalar function LL, called the Lagrangian. There is one quantity built from it, S=LdtS=\int L\,\dd t, called the action. There is one condition on that quantity, δS=0\delta S=0.

Out of that single condition come Newton's laws (§4), the motion of anything with constraints (§6), Maxwell's equations (Chapter 2.6), Einstein's field equations (Chapter 3.6), the Dirac equation (Chapter 5.5), and the Standard Model (Chapter 6.8). Not analogues of them. Them.

One word about what kind of chapter this is. It is a mathematics chapter, and the physics from §4 onward is there to show you that the mathematics has teeth.

Tools you'll need  — Chapter 0.1: the derivative as the coefficient of the best linear approximation, and the o(h)o(h) bookkeeping. This chapter is that definition with hh replaced by an entire function. Nothing else changes, which is the whole point of having defined it that way. Chapter 0.2: integration by parts. Section 3 is one application of it, and the boundary term matters. Chapter 0.6: the multivariable chain rule, which is all that §7 is. Also stationary points and the Hessian, for §5, and Lagrange multipliers, for §6.4, where the multiplier is a physical force. Chapter 1.1: Fermat's principle, and the catalogue of things the force picture cannot do.

1 · Functionals

Let's start with the object this whole chapter is about, because it has a plain definition and an unfamiliar name. A function eats a number and returns a number. A functional eats a function and returns a number. That is the entire definition. The only reason it feels exotic is that you have spent your life with the first kind.

You have in fact been using functionals for years without the word. Here are three of them, and all three will be doing work before the chapter is out.

Arc length. Given a curve y(x)y(x) between x=ax=a and x=bx=b, we get its length by adding up little hypotenuses ds=dx2+dy2\dd s = \sqrt{\dd x^{2}+\dd y^{2}}:

A[y]  =  ab1+y(x)2  dx. \mathcal{A}[y] \;=\; \int_{a}^{b}\sqrt{1+y'(x)^{2}}\;\dd x. (1.2.1)

Fermat's travel time. This is the same integral, weighted by the local slowness. If light moves at speed c/n(x,y)c/n(x,y), where nn is the refractive index, the time to traverse the curve is

T[y]  =  abn(x,y(x))c1+y(x)2  dx. \mathcal{T}[y] \;=\; \int_{a}^{b} \frac{n\big(x,y(x)\big)}{c}\,\sqrt{1+y'(x)^{2}}\;\dd x. (1.2.2)

That is exactly the quantity Chapter 1.1 minimised, written out in general rather than for two flat slabs.

The action. Take a trajectory x(t)x(t) between times t1t_{1} and t2t_{2}. Take also some function L(x,x˙,t)L(x,\dot x,t) of position, velocity and time. Then

S[x]  =  t1t2L(x(t),x˙(t),t)  dt. S[x] \;=\; \int_{t_{1}}^{t_{2}} L\big(x(t),\dot x(t),t\big)\;\dd t. (1.2.3)

We have not yet said what LL is, and that is deliberate. Section 5 is an honest discussion of where it comes from, and the answer is not what a textbook usually implies. For now, LL is any smooth function of three arguments, and SS is the functional it defines.

Notice the notation, because it is doing real work: square brackets. S[x]S[x] is not "SS evaluated at the number xx". It is "SS evaluated at the function xx". You must hand over the entire path, every x(t)x(t) for every tt in the interval, before SS will give you a number back.

The domain is infinite-dimensional, and that is the whole difficulty

To specify a point in R3\R^{3} you supply three numbers. To specify a point in the domain of SS you supply a value of xx at every one of a continuum of times. The "variable" of the problem is a path, and the space of paths has infinitely many dimensions, one for each instant, loosely speaking.

So when we go looking for a stationary point of SS, we are looking for a stationary point of a function on an infinite-dimensional space. Chapter 0.6 found the stationary points of f:RnRf:\R^{n}\to\R by setting nn partial derivatives to zero. Here there is no finite list of partial derivatives to set to zero.

What we get instead is one condition per instant of time, and one condition per instant is a differential equation.

That is the structural reason the answer to a variational problem is always a differential equation. It is worth seeing before the algebra rather than after.

In plain terms 1.2.1

What is being varied from here on is not a number but an entire history, and the change of type has one consequence worth carrying in advance. A machine that eats a whole function and returns a single number has a domain with infinitely many dimensions, one for each instant, loosely speaking, rather than the three or six that a mechanical problem used to offer.

That is why hunting for a stationary point cannot be done the way it was done on a surface. Finding the flat spot of a function of several variables meant setting a finite list of partial derivatives to zero, and here there is no finite list to set. What comes out instead is one condition for every instant of time, and one condition per instant is a differential equation.

So the answer to a problem of this kind is always a differential equation, for a structural reason rather than as a happy fact about the particular integrals involved. Three such machines are already familiar: the length of a curve, the time light takes along a route, and the quantity that is shortly to be given the whole weight of the subject to carry.

2 · The variational derivative

This section is the conceptual centre of the chapter. Everything after it is consequences.

What we want is to say what it means for the functional SS to be stationary at a particular path. There is an honest difficulty in the way, and it is worth naming before we go round it.

We cannot write limh0(S[x+h]S[x])/h\lim_{h\to0}\big(S[x+h]-S[x]\big)/h. The displacement here is not a number hh that we can divide by. It is an entire function, and dividing by a function is not a meaningful operation.

The way out is the one Chapter 0.1 insisted on, at some cost in apparent pedantry, on its first page. The derivative is not a slope. It is the coefficient of the best linear approximation. That definition never mentioned division, and it never mentioned one-dimensionality. What it said was this: nudge the input, and identify the part of the output's response that is linear in the nudge. Nothing about that instruction breaks when the nudge is a function.

2.1 · Reduce to one variable

Fix the path x(t)x(t) we want to test. Now fix a second function η(t)\eta(t), which is the shape of the nudge. There is one restriction on it:

η(t1)  =  η(t2)  =  0. \eta(t_{1}) \;=\; \eta(t_{2}) \;=\; 0. (1.2.4)

Such an η\eta is called an admissible variation. The restriction says that the nudge does not move the endpoints. Every path we compare starts at the same place at t1t_{1} and finishes at the same place at t2t_{2}.

That is not a technicality. It is the boundary condition of the physical problem, and in §3 it is precisely what kills a term we would otherwise be stuck with.

Now build a one-parameter family of paths by scaling the nudge:

xϵ(t)  =  x(t)+ϵη(t),ϵR. x_{\epsilon}(t) \;=\; x(t) + \epsilon\,\eta(t), \qquad \epsilon\in\R. (1.2.5)

At ϵ=0\epsilon=0 this is the path we are testing. As ϵ\epsilon grows, the path bulges away from it in the shape η\eta, always pinned at both ends. Feed the family into the functional:

Φ(ϵ)    S[x+ϵη]. \Phi(\epsilon) \;\equiv\; S\big[x+\epsilon\eta\big]. (1.2.6)

Let's pause and look carefully at what (1.2.6) is. Φ\Phi eats a single real number ϵ\epsilon and returns a single real number. It is an ordinary function of one real variable. All of Chapter 0.1 applies to it verbatim, with no generalisation required at all.

So we have converted an infinite-dimensional problem into a one-dimensional one. The price we paid was agreeing, for the moment, to look in only one direction.

2.2 · The definition

Say that SS is stationary at the path xx if

ddϵS[x+ϵη]ϵ=0  =  0for every admissible η. \left.\dv{}{\epsilon}S\big[x+\epsilon\eta\big]\right|_{\epsilon=0} \;=\; 0 \qquad\text{for }\textit{every}\text{ admissible }\eta. (1.2.7)

The clause in italics is the entire content, so let's be careful about it. Any single η\eta probes one direction in the space of paths, and a function can easily be stationary along one direction and not along others. A saddle is flat along two lines and steep everywhere else.

Demanding (1.2.7) for all η\eta is demanding flatness in every one of the infinitely many available directions at once. That is a very strong condition, and it is strong enough to determine the path.

The quantity in (1.2.7) deserves a name and a symbol. Write

δS[x;η]    ddϵS[x+ϵη]ϵ=0, \delta S[x;\eta] \;\equiv\; \left.\dv{}{\epsilon}S\big[x+\epsilon\eta\big]\right|_{\epsilon=0}, (1.2.8)

and call it the first variation of SS at xx in the direction η\eta. Unwind (1.2.8) through Chapter 0.1's definition of a derivative and it says exactly this:

S[x+ϵη]  =  S[x]value  +  ϵδS[x;η]linear in the nudge  +  o(ϵ)dies faster. S\big[x+\epsilon\eta\big] \;=\; \underbrace{S[x]}_{\text{value}} \;+\; \underbrace{\epsilon\,\delta S[x;\eta]}_{\text{linear in the nudge}} \;+\; \underbrace{o(\epsilon)}_{\text{dies faster}}. (1.2.9)
The cheque written on page one, cashed here

Put (1.2.9) next to Chapter 0.1's central equation,

f(a+h)  =  f(a)+f(a)h+o(h). f(a+h) \;=\; f(a) + f'(a)\,h + o(h).

They are the same sentence. The dictionary is:

Chapter 0.1Here
the point aathe path x()x(\cdot)
the displacement hh, a numberthe variation η()\eta(\cdot), a whole function
the derivative f(a)f'(a), a numberthe first variation δS[x;]\delta S[x;\,\cdot\,], a linear functional
the linear term f(a)hf'(a)hthe linear term δS[x;η]\delta S[x;\eta]
error o(h)o(h)error o(ϵ)o(\epsilon)

Had we defined the derivative as "a slope", we would be stuck at the first row. There is no slope of a functional. There is no line to take the slope of, because the domain is a space of paths and there is no single direction to move in. But there is a best linear approximation, it is unique, and it is what δS\delta S names.

Note what kind of object δS[x;]\delta S[x;\,\cdot\,] is. It takes a function η\eta and returns a number, and it does so linearly: δS[x;αη1+βη2]=αδS[x;η1]+βδS[x;η2]\delta S[x;\alpha\eta_{1}+\beta\eta_{2}] = \alpha\,\delta S[x;\eta_{1}] + \beta\,\delta S[x;\eta_{2}]. You can read that straight off (1.2.8) once §3 has computed it.

A linear map whose target is R\R (Chapter 0.4) is what Chapter 0.6 called a linear functional, and, in finite dimensions, a one-form or covector. So the derivative of a functional is a one-form on the space of paths. That is why it is written with a lower index in disguise, as the coefficient against which you integrate, and that sentence will be true word for word in Chapter 5.7, with the path replaced by a field configuration.

2.3 · The functional derivative

One more piece of notation before we compute anything. Physics uses it constantly and it is easy to be mystified by it, so it is worth ten lines here.

In finite dimensions, Chapter 0.6 wrote the derivative of f:RnRf:\R^{n}\to\R in the direction h\vv h as a sum over components,

df(h)  =  i=1nfxihi. \dd f(\vv h) \;=\; \sum_{i=1}^{n}\pdv{f}{x^{i}}\,h^{i}. (1.2.10)

The gradient components f/xi\partial f/\partial x^{i} are the coefficients of the linear map, one per direction. Here the directions are labelled not by an index ii running over 1,,n1,\dots,n but by a time tt running over [t1,t2][t_{1},t_{2}]. So the sum over the label becomes an integral over it.

That tells us what to define. The functional derivative δS/δx(t)\delta S/\delta x(t) is the coefficient function appearing in

δS[x;η]  =  t1t2δSδx(t)  η(t)  dt. \delta S[x;\eta] \;=\; \int_{t_{1}}^{t_{2}} \frac{\delta S}{\delta x(t)}\;\eta(t)\;\dd t. (1.2.11)

Set (1.2.11) beside (1.2.10) and the translation is index \to time, sum \to integral, gradient component \to functional derivative. It is a continuum gradient.

Section 3 computes it, and the answer will be the Euler–Lagrange expression. The condition δS=0\delta S=0 for all η\eta then becomes the statement that this continuum gradient vanishes at every tt, which is one equation per instant, as promised.

In plain terms 1.2.2

Dividing by a function is not an operation, so the picture of a derivative as one change divided by another has nowhere to stand here. The definition that does stand is the one insisted on at the very start of the toolkit, at some cost in apparent fussiness: nudge the input, and identify the part of the response that is linear in the nudge. Nothing in that instruction cares whether the nudge is a small number or a whole function.

So the pedantry of the opening pages is repaid a second time, and for far more than it was repaid the first. Several variables cost only the replacement of one direction by many; here the displacement is an entire function, and the coefficient is no longer a number but a device that eats such functions and returns numbers. The error still dies faster than the nudge, and everything else is unchanged word for word.

The demand being made is stronger than it looks. Any single choice of nudge probes one direction in the space of paths, and something can easily be flat along one direction while falling away steeply in others. Requiring flatness against every admissible nudge at once is requiring it in infinitely many directions simultaneously, and that is what makes the condition strong enough to pick out one path.

3 · Euler–Lagrange, derived

Now for the calculation itself. Take S[x]=t1t2L(x,x˙,t)dtS[x]=\int_{t_{1}}^{t_{2}}L(x,\dot x,t)\,\dd t with LL smooth, and compute δS\delta S. There are exactly four moves, and you already have all four.

3.1 · Move one: differentiate under the integral sign

Write out Φ(ϵ)\Phi(\epsilon). Since xϵ=x+ϵηx_{\epsilon}=x+\epsilon\eta implies x˙ϵ=x˙+ϵη˙\dot x_{\epsilon}=\dot x+\epsilon\dot\eta,

Φ(ϵ)  =  t1t2L(x+ϵη,  x˙+ϵη˙,  t)dt. \Phi(\epsilon) \;=\; \int_{t_{1}}^{t_{2}} L\big(x+\epsilon\eta,\;\dot x+\epsilon\dot\eta,\;t\big)\,\dd t. (1.2.12)

What we want is Φ(0)\Phi'(0). The integrand depends on ϵ\epsilon and the limits do not, so assume for the moment that we may move the ϵ\epsilon-derivative inside:

dΦdϵ  =  t1t2ϵL(x+ϵη,  x˙+ϵη˙,  t)dt. \dv{\Phi}{\epsilon} \;=\; \int_{t_{1}}^{t_{2}} \pdv{}{\epsilon}\,L\big(x+\epsilon\eta,\;\dot x+\epsilon\dot\eta,\;t\big)\,\dd t. (1.2.13)

⚑ Quoted. The interchange in (1.2.13) is the one step in this derivation we are not proving. The standard sufficient condition runs like this. If LL and its ϵ\epsilon-partial derivative are continuous on the rectangle [t1,t2]×[ϵ0,ϵ0][t_{1},t_{2}]\times[-\epsilon_{0},\epsilon_{0}], then Φ\Phi is differentiable and (1.2.13) holds. We are assuming that LL is a smooth function of its three arguments, and that x,ηx,\eta are smooth on a closed bounded interval, so the condition is met. The grind box below says what can go wrong when it is not.

3.2 · Move two: linearise the integrand

The ϵ\epsilon-derivative inside is the multivariable chain rule of Chapter 0.6, applied to LL as a function of its first two slots. Write L/x\partial L/\partial x and L/x˙\partial L/\partial\dot x for the partial derivatives of LL with respect to its first and second arguments. As ϵ\epsilon increases, the first argument moves at rate η\eta and the second at rate η˙\dot\eta, so

ϵL(x+ϵη,x˙+ϵη˙,t)  =  Lxη  +  Lx˙η˙, \pdv{}{\epsilon}L\big(x+\epsilon\eta,\dot x+\epsilon\dot\eta,t\big) \;=\; \pdv{L}{x}\,\eta \;+\; \pdv{L}{\dot x}\,\dot\eta, (1.2.14)

where after setting ϵ=0\epsilon=0 the partials are evaluated on the original path (x(t),x˙(t),t)\big(x(t),\dot x(t),t\big). That gives

δS  =  t1t2[Lxη(t)  +  Lx˙η˙(t)]dt. \delta S \;=\; \int_{t_{1}}^{t_{2}}\left[\pdv{L}{x}\,\eta(t) \;+\; \pdv{L}{\dot x}\,\dot\eta(t)\right]\dd t. (1.2.15)

Now we are stuck, and it is worth being precise about why.

To conclude anything about the integrand, we need η\eta to appear as an overall factor, so that "this holds for every η\eta" has some bite. It does appear that way in the first term. In the second term what appears is η˙\dot\eta, and η˙\dot\eta is not independent of η\eta. It is determined by it. We cannot choose the two separately, so we cannot argue term by term.

3.3 · Move three: integrate by parts

This is exactly the situation Chapter 0.2 built integration by parts for. That rule says you may move a derivative from one factor onto the other, at the cost of a minus sign and a boundary term. Apply it to the second term with u=L/x˙u = \partial L/\partial\dot x and v=η˙v'=\dot\eta, so that v=ηv=\eta:

t1t2Lx˙η˙  dt  =  [Lx˙η]t1t2    t1t2ddt ⁣(Lx˙)η  dt. \int_{t_{1}}^{t_{2}}\pdv{L}{\dot x}\,\dot\eta\;\dd t \;=\; \left[\pdv{L}{\dot x}\,\eta\right]_{t_{1}}^{t_{2}} \;-\; \int_{t_{1}}^{t_{2}}\dv{}{t}\!\left(\pdv{L}{\dot x}\right)\eta\;\dd t. (1.2.16)

Now look at the boundary term. It is (L/x˙)t2η(t2)(L/x˙)t1η(t1)\big(\partial L/\partial\dot x\big)\big|_{t_{2}}\eta(t_{2}) - \big(\partial L/\partial\dot x\big)\big|_{t_{1}}\eta(t_{1}). Admissible variations vanish at the endpoints, by (1.2.4), so both η\eta's are zero. The boundary term dies.

It dies because we fixed the endpoints, and not because of any property of LL. That is worth remembering rather than deriving twice.

The reason it is worth remembering is that you will eventually stop fixing the endpoints. It happens in Chapter 1.3, in Chapter 3.6 for gravity, and everywhere in field theory where the "boundary" is at spatial infinity. When it does, the surviving boundary term is not litter. It is where the momentum lives, and where the black-hole entropy will come from.

Substitute (1.2.16) into (1.2.15) and collect the common factor η\eta:

δS  =  t1t2[Lx    ddt ⁣(Lx˙)]η(t)  dt. \delta S \;=\; \int_{t_{1}}^{t_{2}}\left[\pdv{L}{x} \;-\; \dv{}{t}\!\left(\pdv{L}{\dot x}\right)\right]\eta(t)\;\dd t. (1.2.17)

Compare that with (1.2.11) and you can read off the answer to §2.3. The functional derivative of the action is the bracket:

δSδx(t)  =  Lx    ddt ⁣(Lx˙). \frac{\delta S}{\delta x(t)} \;=\; \pdv{L}{x} \;-\; \dv{}{t}\!\left(\pdv{L}{\dot x}\right). (1.2.18)

3.4 · Move four: the fundamental lemma

Stationarity says that (1.2.17) vanishes for every admissible η\eta, and what we want to conclude is that the bracket itself vanishes.

That step is not free. It is a genuine theorem, and skipping it means skipping the move that converts "the integral is zero" into "the integrand is zero". The same move recurs in Chapter 5.2 to produce field equations, and in Chapter 3.6 to produce Einstein's. So we prove it once, here, properly.

Fundamental lemma of the calculus of variations

Let ff be continuous on [t1,t2][t_{1},t_{2}]. If

t1t2f(t)η(t)dt  =  0 \int_{t_{1}}^{t_{2}} f(t)\,\eta(t)\,\dd t \;=\; 0

for every continuously differentiable η\eta with η(t1)=η(t2)=0\eta(t_{1})=\eta(t_{2})=0, then f(t)=0f(t)=0 for all t[t1,t2]t\in[t_{1},t_{2}].

The theorem is not obvious and it is not trivially true. An integral can vanish through cancellation. Take 11tdt=0\int_{-1}^{1}t\,\dd t=0, where the integrand is zero nowhere but the origin.

What defeats the cancellation here is that the hypothesis lets you choose η\eta. If ff is positive somewhere, pick an η\eta that is supported only there, and there is nothing left for it to cancel against. Making that idea airtight means exhibiting such an η\eta, and that is the content of the proof.

Proof. Suppose, for contradiction, that ff is not identically zero. Then there is a point t0t_{0} with f(t0)0f(t_{0})\neq0. Replacing ff by f-f if necessary changes nothing, since the hypothesis is preserved, so assume f(t0)>0f(t_{0}) \gt 0. If t0t_{0} is an endpoint, continuity gives a nearby interior point where ff is still positive, so assume t0t_{0} is interior.

Set c=12f(t0)>0c=\tfrac12 f(t_{0}) \gt 0. By continuity of ff at t0t_{0}, there is a δ>0\delta \gt 0 with [t0δ,t0+δ](t1,t2)[t_{0}-\delta,\,t_{0}+\delta]\subset(t_{1},t_{2}) and

f(t)  >  cfor all t with tt0<δ. f(t) \;\gt\; c \qquad\text{for all } t \text{ with } \abs{t-t_{0}} \lt \delta. (1.2.19)

That pins ff above a fixed positive number across a whole interval, rather than at the single point t0t_{0}. Now we need a probe that lives only on that interval, so that the integral in the hypothesis sees the positive part of ff and has nothing anywhere else to cancel against. Here is one, built by hand. Define

η(t)  =  {[δ2(tt0)2]2,tt0δ,0,otherwise. \eta(t) \;=\; \begin{cases}\big[\delta^{2}-(t-t_{0})^{2}\big]^{2}, & \abs{t-t_{0}}\le\delta,\\[4pt] 0, & \text{otherwise.}\end{cases} (1.2.20)

Three things about (1.2.20), each checkable by hand.

  • It is non-negative everywhere, and strictly positive on the open interval tt0<δ\abs{t-t_{0}} \lt \delta.
  • It vanishes at t1t_{1} and t2t_{2}, since it vanishes outside a subinterval strictly inside [t1,t2][t_{1},t_{2}].
  • It is continuously differentiable. Away from the two junction points that is plain, and at t=t0±δt=t_{0}\pm\delta both the value [δ2(tt0)2]2[\delta^{2}-(t-t_{0})^{2}]^{2} and its derivative 4(tt0)[δ2(tt0)2]-4(t-t_{0})\big[\delta^{2}-(t-t_{0})^{2}\big] approach zero from inside, matching the zero function outside.

So η\eta is admissible.

Feed it in. The integrand vanishes outside the bump, and inside it both factors are positive:

t1t2fη  dt  =  t0δt0+δfη  dt  >  ct0δt0+δη  dt  =  c16δ515  >  0. \int_{t_{1}}^{t_{2}} f\eta\;\dd t \;=\; \int_{t_{0}-\delta}^{t_{0}+\delta} f\,\eta\;\dd t \;\gt\; c\int_{t_{0}-\delta}^{t_{0}+\delta}\eta\;\dd t \;=\; c\cdot\frac{16\,\delta^{5}}{15} \;\gt\; 0. (1.2.21)

That contradicts the hypothesis that the integral vanishes for every admissible η\eta. Hence no such t0t_{0} exists and f0f\equiv0. \blacksquare

Grind box — the bump's integral, smoother bumps, and how much continuity you really need

The number 16δ5/1516\delta^{5}/15. Substitute u=tt0u=t-t_{0} and expand:

δδ(δ2u2)2du=δδ(δ42δ2u2+u4)du=2(δ52δ53+δ55)=16δ515. \int_{-\delta}^{\delta}\big(\delta^{2}-u^{2}\big)^{2}\dd u = \int_{-\delta}^{\delta}\big(\delta^{4}-2\delta^{2}u^{2}+u^{4}\big)\dd u = 2\left(\delta^{5}-\frac{2\delta^{5}}{3}+\frac{\delta^{5}}{5}\right) = \frac{16\delta^{5}}{15}.

The value is irrelevant to the proof. All that matters is that it is strictly positive. It is worth computing once so that the inequality in (1.2.21) is not taken on faith.

A smoother bump. Our η\eta is C1C^{1} but not C2C^{2}: differentiate twice and at t=t0±δt=t_{0}\pm\delta you get 8δ28\delta^{2} from inside and 00 from outside. C1C^{1} is all the lemma needs, because the Lagrangian depends on xx and x˙\dot x and no higher derivative. You will want a variation that is infinitely differentiable in field theory, where Lagrangians with second derivatives occur. For that, use

η(t)=exp ⁣(1δ2(tt0)2)  for tt0<δ,η=0 otherwise. \eta(t) = \exp\!\left(\frac{-1}{\delta^{2}-(t-t_{0})^{2}}\right)\ \text{ for }\abs{t-t_{0}}\lt\delta,\qquad \eta=0 \text{ otherwise.}

Every derivative of this vanishes at the junctions, because e1/s\ee^{-1/s} and all its derivatives tend to zero as s0+s\to0^{+} faster than any power. That is Chapter 0.3's remark that this function has a Taylor series identically zero and yet is not zero, the standard counterexample to "smooth implies analytic". Restricting to CC^{\infty} probes only strengthens the hypothesis of the lemma, so the conclusion still follows. You have fewer probes and still enough.

Continuity of ff is essential. Drop it and the lemma is false in the pointwise sense: a function that is 11 at a single point and 00 elsewhere has fη=0\int f\eta=0 for every η\eta, yet is not identically zero. The correct statement without continuity is "f=0f=0 almost everywhere". Physically this says that the equation of motion holds at every instant except possibly on a set of measure zero, and that is exactly the loophole permitting collisions, shocks, and the kinked worldlines of Chapter 5.6's path integral.

The interchange, and when it fails. The condition quoted in §3.1 is sufficient, not necessary, and it is a genuine condition. The standard failure is Φ(ϵ)=01ϵϵ2+t2dt=arctan(1/ϵ)\Phi(\epsilon)=\int_{0}^{1}\dfrac{\epsilon}{\epsilon^{2}+t^{2}}\dd t = \arctan(1/\epsilon) for ϵ0\epsilon\ne0, which tends to π/2\pi/2 as ϵ0+\epsilon\to0^{+} and to π/2-\pi/2 from below, while the pointwise limit of the integrand is 00 for every t0t\ne0. The integrand's ϵ\epsilon-derivative is not continuous at (ϵ,t)=(0,0)(\epsilon,t)=(0,0), and the interchange is invalid. In mechanics, with LL smooth and the interval compact, this never bites; in field theory with fields that do not decay it sometimes does, and the symptom is a divergent action.

3.5 · The Euler–Lagrange equation

Apply the lemma to (1.2.17). The bracket is continuous, since we assumed both LL and the path smooth, and the integral vanishes for every admissible η\eta. So the bracket vanishes identically, and we have

  ddt ⁣(Lx˙)    Lx  =  0   \boxed{\;\dv{}{t}\!\left(\pdv{L}{\dot x}\right) \;-\; \pdv{L}{x} \;=\; 0\;} (1.2.22)

for all t[t1,t2]t\in[t_{1},t_{2}]. This is the Euler–Lagrange equation.

Let's pause on what kind of equation it is. It is a second-order ordinary differential equation for x(t)x(t). It is second order because L/x˙\partial L/\partial\dot x depends on x˙\dot x, and differentiating that in time produces x¨\ddot x. Two constants of integration, fixed by the two endpoint conditions. Everything is consistent.

Nothing in the derivation used the fact that there was only one coordinate. Suppose the configuration is described by nn numbers q1,,qnq^{1},\dots,q^{n} and L=L(q1,,qn,q˙1,,q˙n,t)L=L(q^{1},\dots,q^{n},\dot q^{1},\dots,\dot q^{n},t). Vary each of them independently: take η=(η1,,ηn)\eta=(\eta^{1},\dots,\eta^{n}) and run §3.1–§3.4 with sums over ii throughout.

Move two produces i[qiLηi+q˙iLη˙i]\sum_{i}\big[\partial_{q^{i}}L\,\eta^{i} + \partial_{\dot q^{i}}L\,\dot\eta^{i}\big]. Move three integrates each term by parts separately. Move four is applied nn times, once with η1\eta^{1} arbitrary and all the other ηi=0\eta^{i}=0, then once with η2\eta^{2} arbitrary, and so on. The result is

ddt ⁣(Lq˙i)Lqi  =  0,i=1,,n. \dv{}{t}\!\left(\pdv{L}{\dot q^{i}}\right) - \pdv{L}{q^{i}} \;=\; 0, \qquad i=1,\dots,n. (1.2.23)

One equation per degree of freedom, all of them from the single scalar LL. That is a real compression: nn coupled second-order differential equations packaged into one function. It is the first practical reason to care, and by §6 it will look like a bargain.

Grind box — what happens if the Lagrangian contains q¨\ddot q

Nothing in §3 required LL to stop at first derivatives. Suppose S=t1t2F(q,q˙,q¨,t)dtS=\int_{t_{1}}^{t_{2}}F(q,\dot q,\ddot q,t)\,\dd t. Moves one and two are unchanged and give

δS=t1t2[Fqη+Fq˙η˙+Fq¨η¨]dt. \delta S = \int_{t_{1}}^{t_{2}}\left[\pdv{F}{q}\,\eta + \pdv{F}{\dot q}\,\dot\eta + \pdv{F}{\ddot q}\,\ddot\eta\right]\dd t.

Move three now has to be run twice on the last term:

Fq¨η¨  dt=[Fq¨η˙]t1t2ddt ⁣(Fq¨)η˙  dt=[Fq¨η˙ddt ⁣(Fq¨)η]t1t2+d2dt2 ⁣(Fq¨)η  dt. \begin{aligned} \int\pdv{F}{\ddot q}\,\ddot\eta\;\dd t &= \left[\pdv{F}{\ddot q}\,\dot\eta\right]_{t_{1}}^{t_{2}} - \int\dv{}{t}\!\left(\pdv{F}{\ddot q}\right)\dot\eta\;\dd t\\[3pt] &= \left[\pdv{F}{\ddot q}\,\dot\eta - \dv{}{t}\!\left(\pdv{F}{\ddot q}\right)\eta\right]_{t_{1}}^{t_{2}} + \int\dv{^{2}}{t^{2}}\!\left(\pdv{F}{\ddot q}\right)\eta\;\dd t. \end{aligned}

There are now two boundary terms, and killing them needs both η\eta and η˙\dot\eta to vanish at the ends. That is to say the variational problem is only well posed if you fix the position and the velocity at each endpoint. Given that, the fundamental lemma applies verbatim and delivers

Fqddt ⁣(Fq˙)+d2dt2 ⁣(Fq¨)=0, \pdv{F}{q} - \dv{}{t}\!\left(\pdv{F}{\dot q}\right) + \dv{^{2}}{t^{2}}\!\left(\pdv{F}{\ddot q}\right) = 0,

a fourth-order equation, and the obvious pattern continues with alternating signs for still higher derivatives. This is the version the Familiar Ground callout in §7 needs: with F=λf(x)2F=\lambda f''(x)^{2} the equation reduces to f=0f''''=0, whose solutions are the cubics.

⚑ One quoted warning, because it explains an omission you will otherwise notice. Ostrogradsky proved that a Lagrangian genuinely depending on q¨\ddot q has a conserved energy that is linear in one of its momenta and therefore unbounded below, so such theories are generically unstable. That is why every fundamental action in §8.1's table contains at most first derivatives of its fields. The Einstein–Hilbert action looks like an exception, since RR contains second derivatives of the metric. It escapes because those second derivatives enter only inside a total divergence, as Chapter 3.6 will show explicitly.

In plain terms 1.2.3

The calculation producing the equation of motion is short, and nearly all of its load is carried by one manoeuvre borrowed from the chapter on integration. Once the nudge is inside the integrand, one term carries it as a plain factor and the other carries its rate of change, and the two cannot be argued about separately because the second is determined by the first. Moving the derivative off one factor and onto the other repairs that, at the cost of a sign and a term evaluated only at the two ends.

This is exactly the use advertised for integration by parts several chapters back, the step converting a statement about one whole total into an equation the system must satisfy at every point, which is where every field equation in this book comes from. The end term dies because the endpoints were held fixed and not because of any property of the integrand, worth remembering for the occasions when the ends are free and the surviving term turns out to be where the momentum lives.

One step remains and it is not free. An integral can vanish through cancellation without its integrand vanishing anywhere, and what defeats the cancellation is that the nudge is yours to choose, so you may aim a small bump wherever the integrand is not zero and leave it nothing to cancel against.

4 · It reproduces Newton

Time to check that this machinery is not describing some other universe. Take a single particle of mass mm moving in one dimension in a potential V(x)V(x), and make the choice

L  =  TV  =  12mx˙2    V(x). L \;=\; T - V \;=\; \half m\dot x^{2} \;-\; V(x). (1.2.24)

Where that choice comes from is §5's problem. Right now we only want its consequences.

Compute the two partial derivatives, treating xx and x˙\dot x as independent slots of the function LL. That is legitimate, for the reason spelled out in the warning callout below.

Lx˙  =  mx˙,Lx  =  dVdx. \pdv{L}{\dot x} \;=\; m\dot x, \qquad\qquad \pdv{L}{x} \;=\; -\,\dv{V}{x}. (1.2.25)

Those two partials are the only ingredients (1.2.22) asks for. We want to know what it says about this particular LL, so substitute them in:

ddt(mx˙)+dVdx=0mx¨  =  dVdx. \dv{}{t}\big(m\dot x\big) + \dv{V}{x} = 0 \qquad\Longleftrightarrow\qquad m\ddot x \;=\; -\dv{V}{x}. (1.2.26)

The right-hand side is the force, by Chapter 1.1's definition of a conservative force as minus the gradient of its potential. So (1.2.26) is mx¨=Fm\ddot x = F.

In three dimensions nothing changes except the number of equations. With L=12mx˙x˙V(x)L=\half m\,\dot{\vv x}\cdot\dot{\vv x} - V(\vv x) and qi=xiq^{i}=x^{i},

Lx˙i=mx˙i,Lxi=Vxi,mx¨i=Vxi=Fi. \pdv{L}{\dot x^{i}} = m\dot x^{i}, \qquad \pdv{L}{x^{i}} = -\pdv{V}{x^{i}}, \qquad\Longrightarrow\qquad m\ddot x^{i} = -\pdv{V}{x^{i}} = F^{i}. (1.2.27)

Now read (1.2.27) again, slowly, without substituting anything. The object L/x˙i\partial L/\partial\dot x^{i} came out as mx˙im\dot x^{i}, which is the momentum. The object L/xi\partial L/\partial x^{i} came out as V/xi-\partial V/\partial x^{i}, which is the force. So the Euler–Lagrange equation, in Cartesian coordinates with L=TVL=T-V, reads

dpidt  =  Fi. \dv{p_{i}}{t} \;=\; F_{i}. (1.2.28)

Newton's second law is not a separate law that happens to agree with the action principle. It is the Euler–Lagrange equation, written in Cartesian coordinates. That is the entire relationship between Chapter 1.1 and this one.

That also explains why the notation generalises the way it does. For an arbitrary Lagrangian in arbitrary coordinates we define

pi    Lq˙i(the canonical momentum conjugate to qi), p_{i} \;\equiv\; \pdv{L}{\dot q^{i}} \qquad (\text{the }\textit{canonical momentum}\text{ conjugate to }q^{i}), (1.2.29)

and then (1.2.23) always reads p˙i=L/qi\dot p_{i} = \partial L/\partial q^{i}. The definition is not a whim. It is chosen so that the Euler–Lagrange equation keeps the shape of Newton's law.

Two later chapters take that further. Chapter 1.3 treats pip_{i} as an independent variable in its own right and gets Hamiltonian mechanics. Chapter 1.4 shows that whenever LL fails to depend on some qiq^{i} at all, the corresponding pip_{i} is conserved, which is Noether's theorem in its simplest guise, already visible in (1.2.23) for anyone who looks.

⚠ Why this isn't obvious

In (1.2.25) we differentiated LL with respect to x˙\dot x while holding xx fixed. That should bother you. Along an actual trajectory, x˙\dot x is not free to vary independently of xx. It is xx's own derivative, and holding one fixed while changing the other looks like nonsense.

The resolution is to be careful about what LL is a function of. LL is a function of three independent arguments, call them (u,v,t)(u,v,t), defined on a space of its own, with no relationship between uu and vv whatsoever. For the free particle, L(u,v,t)=12mv2V(u)L(u,v,t)=\half mv^{2}-V(u) is defined for every pair (u,v)R2(u,v)\in\R^{2}, and L/v=mv\partial L/\partial v = mv is a perfectly ordinary partial derivative of that perfectly ordinary function of two variables.

The constraint "vv is the time derivative of uu" is imposed only when you evaluate. The action (1.2.3) substitutes u=x(t)u=x(t) and v=x˙(t)v=\dot x(t) into LL after the partial derivatives have been taken.

The precise statement is that LL is a function on the tangent bundle of the configuration space, meaning the space whose points are (position, velocity) pairs, with both free. A path in configuration space lifts to a curve in the tangent bundle by attaching to each point its own velocity, and that lift is where the constraint lives. Chapter 3.2 constructs the tangent bundle properly.

For now the operational rule is exact and safe. Differentiate LL symbolically, treating xx and x˙\dot x as unrelated letters, and only afterwards put the path in.

The ddt\dv{}{t} in (1.2.22) is the one operation that does know about the path. It is a total time derivative along the trajectory, and that is why ddt(L/x˙)\dv{}{t}\big(\partial L/\partial\dot x\big) generates x¨\ddot x terms while L/x˙\partial L/\partial\dot x alone does not.

In plain terms 1.2.4

Newton's second law is not a rival to the new machinery, nor a separate law that happens to agree with it. It is the same equation, written in one coordinate system with one choice of the scalar, and that choice is the kinetic energy less the potential energy. Turn the crank and the two objects appearing are the momentum and the force, in that order and in those roles.

That reading licenses the definition carried forward from here. Whatever the scalar yields when differentiated with respect to a velocity is thereafter the momentum conjugate to that coordinate, and the equation always says its rate of change equals the derivative of the scalar with respect to the coordinate itself. The name is not sentimental. It is chosen so that the equation keeps Newton's shape whatever the coordinates happen to be, and the payoff shows immediately: where a coordinate fails to appear in the scalar at all, its conjugate momentum cannot change.

One habit here deserves a warning. Position and velocity are differentiated as though they were unrelated letters, which along an actual trajectory they are not. The resolution is that the scalar is defined on a space where they genuinely are unrelated, and their relation is imposed only afterwards, when a path is substituted in.

5 · Why TVT-V? An honest answer

You have just watched L=TVL=T-V reproduce Newtonian mechanics exactly. The natural next question is where TVT-V came from. The honest answer has three parts, and only the third of them is satisfying.

Part one: within classical mechanics, it is not derived. No argument starts from Newton's laws and ends at L=TVL=T-V by necessity. What there is instead is the calculation of §4 run backwards. If you want a variational principle whose Euler–Lagrange equation is mx¨=V(x)m\ddot x=-V'(x), then 12mx˙2V(x)\half m\dot x^{2}-V(x) is a Lagrangian that does the job.

It is not the only one. Problem 4 in §10 shows that you may add any total time derivative without changing a thing, and multiplying LL by a nonzero constant also leaves the equations alone. So TVT-V is a choice, justified after the fact by its working. Anyone who tells you the minus sign is intuitive is selling something.

Part two: "least action" is the wrong word. The condition we imposed, (1.2.7), is that the first variation vanishes. That is stationarity, exactly as in Chapter 0.6, and Chapter 0.6 was emphatic that a vanishing gradient signals a maximum, a minimum or a saddle, and that in more than one dimension saddles are the generic case.

The space of paths has infinitely many dimensions. Saddles are not the exception there. They are ordinary. The warning callout below makes this concrete with a system where the action is provably not a minimum.

Part three: the real reason, which is quantum. In Chapter 5.6 we will construct the Feynman path integral, in which a quantum particle going from AA to BB contributes an amplitude from every path, each weighted by the phase

eiS[x]/. \ee^{\,\ii S[x]/\hbar}. (1.2.30)

The total amplitude is the sum over all paths. Now consider what that sum does.

Away from a stationary point of SS, neighbouring paths have actions differing at first order in the separation, so their phases differ at first order too. And \hbar is tiny, so S/S/\hbar swings through many multiples of 2π2\pi over a microscopic change of path. The contributions from neighbouring paths therefore point in every direction on the complex plane, and they cancel.

Near a stationary point, by construction, SS changes only at second order. A whole neighbourhood of paths shares essentially the same phase, and their contributions add rather than cancel.

So the classical path is not selected because nature computes an integral and minimises it. Nature does not extremise anything. The classical path is where the quantum amplitudes fail to cancel, and nothing more than that.

The action principle is a statement about constructive interference that survives into the 0\hbar\to0 limit. The reason the classical path is the stationary one is that stationary phase is the only place a wildly oscillating sum can leave a residue.

That pushes the question of why L=TVL=T-V and not something else back one level. LL is whatever sits in the exponent of the quantum theory, and that gets fixed by symmetry requirements. Lorentz invariance and locality do most of the work, in Chapter 5.2; the demand that the theory be unitary is Chapter 5.3's.

⚑ Part three is a promise, not a derivation. Nothing in it is proved here. It is stated so that you know a real explanation exists and where it is, and so that you do not spend the next six chapters believing that "nature is economical" is an explanation. It isn't. Chapter 5.6 redeems the promise, including the stationary-phase approximation that makes "wildly oscillating integrals localise on stationary points" a theorem rather than a story.

5.1 · Seeing stationarity

Before the abstractions pile up, let's look at the thing itself. The figure below takes the simplest system with a curved trajectory, a particle thrown straight up in uniform gravity, and lets you deform its path while watching the action.

Here is the setup. Mass m=1 kgm=1\ \mathrm{kg}, gravity g=9.8 ms2g=9.8\ \mathrm{m\,s^{-2}}, and a path that starts at y=0y=0 at t=0t=0 and returns to y=0y=0 at t=T=1 st=T=1\ \mathrm{s}. The Euler–Lagrange equation (1.2.26) with V=mgyV=mgy gives y¨=g\ddot y=-g, and the solution with those endpoints is the parabola y(t)=12gt(Tt)y_{\ast}(t)=\tfrac12 g\,t(T-t), peaking at 1.225 m1.225\ \mathrm{m}. Its action, worked out directly, is

S[y]=0T ⁣(12my˙2mgy)dt=mg2T324mg2T312=mg2T324=4.0017 Js. \begin{aligned} S[y_{\ast}] &= \int_{0}^{T}\!\left(\half m\dot y_{\ast}^{2} - mg\,y_{\ast}\right)\dd t = \frac{m g^{2}T^{3}}{24} - \frac{mg^{2}T^{3}}{12} = -\frac{m g^{2}T^{3}}{24}\\[3pt] &= -4.0017\ \mathrm{J\,s}. \end{aligned} (1.2.31)

That number is the baseline every deformed path gets measured against. Now we need a way to deform the path. What we want is a family of shapes that moves the middle of the curve while leaving both endpoints fixed, because a path with different endpoints is not a competitor at all. So the trial path is y(t)=y(t)+η(t)y(t)=y_{\ast}(t)+\eta(t) with

η(t)  =  a1sinπtT+a2sin2πtT+a3sin3πtT, \eta(t) \;=\; a_{1}\sin\frac{\pi t}{T} + a_{2}\sin\frac{2\pi t}{T} + a_{3}\sin\frac{3\pi t}{T}, (1.2.32)

which vanishes at t=0t=0 and t=Tt=T for any aka_{k}, so every trial path is admissible. The three sliders are the aka_{k}.

The widget computes Tdt\int T\,\dd t and Vdt\int V\,\dd t by numerical quadrature along whatever path is on screen. It samples the curve, differences it to get the velocity, and sums. So the numbers you see are measurements of the drawn path rather than the output of a formula.

 0.2000
 0.0000
 0.0000
∫T dt =  5.3481 J s
∫V dt =  9.2511 J s
∫(T − V) dt : trial -3.9030 | true path -4.0017
Δ from true path = +0.098696
press "halve" twice to watch ΔS fall by a factor of four each time
Stationary, and only for TVT-V. Blue is the true parabola. Purple is your trial path. (i) Stationarity. Move any slider a little and watch. The purple curve visibly detaches from the blue one while the action barely moves. At a1=0.1 ma_{1}=0.1\ \mathrm{m}, a bulge you can see plainly at 8% of the peak height, the action changes by +0.0247+0.0247 out of 4.0017-4.0017. That is six parts in a thousand, and it is what "stationary" looks like: first-order motion of the path, second-order response of the number. (ii) Second order, measured. Press halve repeatedly. The readout reports the ratio of the new ΔS\Delta S to the old one, and it is 0.25000.2500 every time. That is the signature of a quantity starting at ϵ2\epsilon^{2}. (iii) The minus sign is not free. Press the toggle to integrate T+VT+V instead. The physical path is now nowhere near stationary. Nudging a1a_{1} by ±0.01\pm0.01 moves the number by about ±0.125\pm0.125, which is five hundred times the response of TVT-V to the same nudge, and the response reverses sign with the nudge. That is the unmistakable signature of a non-vanishing first derivative. TVT-V is not a convention. It is the combination for which this particular path is a stationary point, and no other combination of TT and VV with constant coefficients will do it.

Two of the facts the figure is showing can be established exactly, and it is worth doing that rather than trusting the pixels.

Write the trial path as y+ηy_{\ast}+\eta, with η\eta vanishing at both ends. Because LL is quadratic in y˙\dot y and linear in yy, the expansion of SS terminates:

S[y+η]=0T ⁣[12m(y˙+η˙)2mg(y+η)]dt=S[y]  +  0T ⁣(my˙η˙mgη)dt  +  0T12mη˙2dt \begin{aligned} S[y_{\ast}+\eta] &= \int_{0}^{T}\!\left[\half m(\dot y_{\ast}+\dot\eta)^{2} - mg(y_{\ast}+\eta)\right]\dd t\\[3pt] &= S[y_{\ast}] \;+\; \int_{0}^{T}\!\big(m\dot y_{\ast}\dot\eta - mg\,\eta\big)\dd t \;+\; \int_{0}^{T}\half m\dot\eta^{2}\,\dd t \end{aligned} (1.2.33)

with no higher terms. Integrate the middle bracket's first piece by parts: my˙η˙dt=[my˙η]0Tmy¨ηdt\int m\dot y_{\ast}\dot\eta\,\dd t = \big[m\dot y_{\ast}\eta\big]_{0}^{T} - \int m\ddot y_{\ast}\,\eta\,\dd t. The boundary term vanishes because η\eta does, and y¨=g\ddot y_{\ast}=-g, so the remaining integral is +mgηdt+\int mg\,\eta\,\dd t, which cancels the second piece exactly. The first variation is zero. That is stationarity, verified by hand, and what survives is

ΔS  =  S[y+η]S[y]  =  0T12mη˙2dt    0, \Delta S \;=\; S[y_{\ast}+\eta]-S[y_{\ast}] \;=\; \int_{0}^{T}\half m\dot\eta^{2}\,\dd t \;\ge\;0, (1.2.34)

manifestly non-negative, and zero only for η0\eta\equiv0. So for this system the action is a genuine minimum and not merely stationary.

We can go one step further with the specific η\eta of (1.2.32). The sine modes are orthogonal on [0,T][0,T] (Chapter 0.9), and what is needed here is one line of that argument rather than all of it, since after differentiating it is the cosines that must be orthogonal. That line is 0Tcos(jπt/T)cos(kπt/T)dt=0\int_{0}^{T}\cos(j\pi t/T)\cos(k\pi t/T)\,\dd t = 0 for jkj\neq k, which follows from the product-to-sum identity and one integration. So the cross terms integrate to zero and

ΔS  =  mπ24T(a12+4a22+9a32). \Delta S \;=\; \frac{m\pi^{2}}{4T}\Big(a_{1}^{2} + 4a_{2}^{2} + 9a_{3}^{2}\Big). (1.2.35)

This is purely quadratic in the amplitudes, which is why halving them quarters ΔS\Delta S. At a1=0.1a_{1}=0.1, a2=a3=0a_{2}=a_{3}=0 it predicts ΔS=π2(0.01)/4=0.024674\Delta S=\pi^{2}(0.01)/4 = 0.024674, and the widget's quadrature reports 0.0246740.024674. The number on the screen is not decorative.

Now run the same expansion on S~=(T+V)dt\tilde S=\int(T+V)\dd t, and the cancellation fails. The sign flip turns mgη-\int mg\eta into +mgη+\int mg\eta, so instead of cancelling the by-parts term it doubles it, leaving a first variation δS~=2mg0Tηdt\delta\tilde S = 2mg\int_{0}^{T}\eta\,\dd t. For the fundamental mode that is 2mgT(2/π)a1=4mgTa1/π2mgT\cdot(2/\pi)a_{1} = 4mgT a_{1}/\pi, a slope of 12.4812.48 per metre of amplitude, which is the ±0.125\pm0.125 the caption quotes for a1=±0.01a_{1}=\pm0.01. Not stationary, and not by a little.

⚠ Why this isn't obvious

The principle is called "least action" and the quantity is very often not least. Here is a system where you can prove that in four lines.

Take the harmonic oscillator, L=12mx˙212mω2x2L = \half m\dot x^{2}-\half m\omega^{2}x^{2}, and the path x(t)0x_{\ast}(t)\equiv0 on [0,T][0,\mathcal{T}], which satisfies the Euler–Lagrange equation x¨=ω2x\ddot x=-\omega^{2}x and both endpoint conditions x(0)=x(T)=0x(0)=x(\mathcal{T})=0. Since LL is exactly quadratic, the expansion again terminates, and since the first variation vanishes,

ΔS=m20T(η˙2ω2η2)dt. \Delta S = \frac{m}{2}\int_{0}^{\mathcal{T}}\big(\dot\eta^{2}-\omega^{2}\eta^{2}\big)\dd t.

Choose the admissible variation η=Asin(πt/T)\eta = A\sin(\pi t/\mathcal{T}). Using 0Tsin2(πt/T)dt=0Tcos2(πt/T)dt=T/2\int_{0}^{\mathcal{T}}\sin^{2}(\pi t/\mathcal{T})\dd t = \int_{0}^{\mathcal{T}}\cos^{2}(\pi t/\mathcal{T})\dd t = \mathcal{T}/2,

ΔS=mA2T4[(πT)2ω2]. \Delta S = \frac{m A^{2}\mathcal{T}}{4}\left[\left(\frac{\pi}{\mathcal{T}}\right)^{2} - \omega^{2}\right].

For T<π/ω\mathcal{T} \lt \pi/\omega this is positive, and the stationary path is a minimum. For T>π/ω\mathcal{T} \gt \pi/\omega, meaning a trip lasting longer than half a period, it is negative. We have exhibited a nearby path with strictly smaller action, so the stationary path is a saddle.

Nothing has gone wrong. δS=0\delta S=0 still holds, and the equation of motion is still right. "Least" was never the claim.

The instant T=π/ω\mathcal{T}=\pi/\omega at which the minimum is lost is called a conjugate point. It is the time at which a second solution with the same endpoints first appears. Here the oscillator can start at the origin, swing out, and return exactly half a period later.

⚑ The general theory is quoted here rather than proved. It is Jacobi's theorem, that the second variation is positive definite precisely up to the first conjugate point.

The clean geometric example is on a sphere. Both arcs of a great circle joining two cities satisfy the geodesic equation, and the long way round is a perfectly good stationary point of arc length that is emphatically not the shortest path. In Chapter 3.8 those two arcs become the two images of a gravitationally lensed quasar, and the conjugate point becomes the caustic.

That callout set two facts side by side: a second path through the same endpoints, and a direction of strictly smaller action. You can watch them arrive together. The figure runs three separate computations and hands you the one quantity all three depend on.

T = 2.19911 = 0.700 π/ω
A = +0.6000 (mode n = 1)
ΔS quadrature, 20000 cells: +0.205998719 modal identity: +0.205998718 difference 3.9e-10
Jacobi zeros, RK4 + bisection: 3.1415927 6.2831853 9.4247780 largest gap from nπ/ω: 1.1e-12
fan of extremals: spread at t = T is 6.877e-1 — max |x| over 21 RK4 solutions
negative directions k = 0 Jacobi zeros inside (0, T): 0 λ1 = +1.040816
E–L residual along the purple path, max |x″ + ω²x| = 6.2449e-1 A·|λ1| = 6.2449e-1
every eigenvalue positive — no conjugate point yet, and the action really is a minimum here.
Where "least" stops being least. Inside this figure only, units are chosen with m=ω=1m=\omega=1, so the half-period is π\pi and the trip duration is quoted both as T\mathcal{T} and as a multiple of π/ω\pi/\omega. Three computations run at every setting, and none of them is given the others' answer. (i) The upper panel is the (t,x)(t,x) plane. The stationary path x0x_{\ast}\equiv0 is the bold blue line. The faint grey curves behind it are twenty-one other extremals launched from the same event (0,0)(0,0) with different speeds. Each one is produced by fourth-order Runge–Kutta on x¨=ω2x\ddot x = -\omega^{2}x in 12001200 equal steps across the trip, and no sine is evaluated anywhere in them. The green dashed curve is the Jacobi field of the grind box below, meaning the solution of ddt(Pu˙)Qu=0\dv{}{t}(P\dot u)-Qu=0 from u(0)=0u(0)=0, u˙(0)=1\dot u(0)=1, again by Runge–Kutta, with its zeros then located by sixty bisections on the integrator's own output. Those zeros come back 3.14159273.1415927, 6.28318536.2831853 and 9.42477809.4247780, which are exactly nπ/ωn\pi/\omega, from a solver that was never told the answer. They are the orange ticks. The purple curve is your trial path x+ηx_{\ast}+\eta with η=Asin(nπt/T)\eta = A\sin(n\pi t/\mathcal{T}), which vanishes at both endpoints for any AA and so is always admissible. (ii) Now drag the duration. The fan is a lens that narrows as T\mathcal{T} grows, and the readout measures how wide it still is where the trip ends: 0.6880.688 at 0.70π/ω0.70\,\pi/\omega, 2.7×1022.7\times10^{-2} at 0.990.99, 2.7×1032.7\times10^{-3} at 0.9990.999, and 1×10121\times10^{-12}, the integrator's own noise, at 1.0001.000. At that same instant the first bar of the middle panel crosses zero. The bars are λn=(nπ/T)2ω2\lambda_{n}=(n\pi/\mathcal{T})^{2}-\omega^{2}, the eigenvalues of the second variation in the sine basis, drawn blue while positive and orange once negative. They can never fall below ω2-\omega^{2}, and a bar that runs off the top of the frame is faded and carries a chevron. The lowest panel is ΔS\Delta S against the amplitude AA, by direct quadrature along the drawn path in the idiom of the figure above: sample, difference for the velocity, sum, twenty thousand cells. It is a bowl that flattens and turns over as the bar goes. Quadrature and the oscillator analogue of the modal identity (1.2.35), ΔS=mT4nan2λn\Delta S=\tfrac{m\mathcal{T}}{4}\sum_{n}a_{n}^{2}\lambda_{n}, agree to nine decimals at every setting: +0.205998719+0.205998719 against +0.205998718+0.205998718 in the view you land on. (iii) The flat direction is the second path. Press the second path. The purple curve is now a genuine solution of the Euler–Lagrange equation through the same two endpoints. The residual readout measures maxx¨+ω2x\max|\ddot x+\omega^{2}x| along it by second differences of the sampled curve and reports 1.2×1081.2\times10^{-8}, while its action differs from the extremal's by 2×1092\times10^{-9}. That is Jacobi's theorem, taken apart. The fan closes because uu vanishes, uu vanishing is the flat direction of the second variation, and the flat direction is another path. (iv) Then keep going. At 2π/ω2\pi/\omega the second bar goes, and at 3π/ω3\pi/\omega the third. Step past the next conjugate point walks you through them. The negative directions arrive one at a time and can be counted, and the count always equals the number of Jacobi zeros strictly inside (0,T)(0,\mathcal{T}). Those are two readouts computed separately, and they never disagree.
Grind box — the second variation in general, and the one condition you can check by eye

The oscillator's ΔS\Delta S was exact because its LL was quadratic. In general it is only the leading correction, and getting it means applying Chapter 0.6's second-order Taylor expansion to Φ(ϵ)=S[x+ϵη]\Phi(\epsilon)=S[x+\epsilon\eta]. Differentiate (1.2.15) once more in ϵ\epsilon and set ϵ=0\epsilon=0:

δ2S    Φ(0)  =  t1t2 ⁣[2Lx2η2+22Lxx˙ηη˙+2Lx˙2η˙2]dt, \delta^{2}S \;\equiv\; \Phi''(0) \;=\; \int_{t_{1}}^{t_{2}}\!\left[\pdv{^{2}L}{x^{2}}\eta^{2} + 2\,\frac{\partial^{2}L}{\partial x\,\partial\dot x}\,\eta\dot\eta + \pdv{^{2}L}{\dot x^{2}}\dot\eta^{2}\right]\dd t,

so that S[x+ϵη]=S[x]+ϵδS+12ϵ2δ2S+o(ϵ2)S[x+\epsilon\eta] = S[x] + \epsilon\,\delta S + \tfrac12\epsilon^{2}\,\delta^{2}S + o(\epsilon^{2}). This is exactly Chapter 0.6's Hessian, with the matrix replaced by an integral kernel. Tidy it using 2ηη˙=ddt(η2)2\eta\dot\eta = \dv{}{t}(\eta^{2}) and one integration by parts, whose boundary term dies as usual:

δ2S=t1t2[P(t)η˙2+Q(t)η2]dt,P=2Lx˙2,Q=2Lx2ddt ⁣(2Lxx˙). \delta^{2}S = \int_{t_{1}}^{t_{2}}\Big[P(t)\,\dot\eta^{2} + Q(t)\,\eta^{2}\Big]\dd t, \qquad P = \pdv{^{2}L}{\dot x^{2}}, \quad Q = \pdv{^{2}L}{x^{2}} - \dv{}{t}\!\left(\frac{\partial^{2}L}{\partial x\,\partial \dot x}\right).

The condition you can check by eye. A minimum requires P(t)0P(t)\ge0 everywhere along the path. The argument is the reason fast wiggles matter. Take η\eta to be a tiny bump of height AA concentrated in a window of width ww around a point where P<0P \lt 0. Then Qη2A2w\int Q\eta^{2}\sim A^{2}w while Pη˙2PA2/w\int P\dot\eta^{2}\sim P A^{2}/w, so shrinking ww makes the PP term dominate with whatever sign PP has. If P<0P \lt 0 anywhere, δ2S\delta^{2}S can be made as negative as you like, and there is no minimum. This is the Legendre condition, and for L=TVL=T-V it reads P=m>0P=m \gt 0, satisfied automatically.

It is also worth checking on the one action in §8.1's table you can already differentiate. Chapter 2.5's free relativistic particle has L=mc21x˙2/c2L=-mc^{2}\sqrt{1-\dot x^{2}/c^{2}}, giving L/x˙=γmx˙\partial L/\partial\dot x = \gamma m\dot x and P=2L/x˙2=mγ3>0P = \partial^{2}L/\partial\dot x^{2} = m\gamma^{3} \gt 0. So SS is minimised. And since S=mc2 ⁣dτS=-mc^{2}\!\int\dd\tau is minus the proper time, minimising SS means maximising the proper time along the worldline. The minus sign in front of mc2mc^{2} is there precisely to arrange that, and it is why the travelling twin, who takes a non-extremal path, comes back younger.

⚑ Legendre's condition is necessary, not sufficient. The sufficient statement is Jacobi's theorem, that δ2S>0\delta^{2}S \gt 0 for all nonzero admissible η\eta precisely when P>0P \gt 0 and the interval contains no conjugate point. It is quoted here and not proved. It is a boundary-value problem for the equation ddt(Pu˙)Qu=0\dv{}{t}(P\dot u) - Qu = 0, whose zeros are the conjugate points. For the oscillator, P=mP=m, Q=mω2Q=-m\omega^{2}, that equation is u¨=ω2u\ddot u = -\omega^{2}u, its solution starting at u(0)=0u(0)=0 is sinωt\sin\omega t, and its next zero is at t=π/ωt=\pi/\omega. That is exactly the half-period the callout found by exhibiting a variation. The general theory reproduces the special case, which is the least one can ask of it.

In plain terms 1.2.5

Where the combination of kinetic minus potential comes from is the question this chapter refuses to dodge, and the honest answer has a hole. Within classical physics no argument begins at Newton's laws and arrives at that combination by necessity. There is the observation that it works, and the knowledge that it is not the only thing that would: adding anything itself a rate of change, or multiplying the whole by a constant, leaves every prediction untouched. The minus sign is not intuitive and nobody should pretend otherwise.

A second correction concerns the word least, wrong since the principle was named. The condition imposed is that the first-order change vanishes, and that signals a minimum, a maximum or a saddle. In a space with infinitely many directions saddles are not the exception, and an oscillator travelling for longer than half a period supplies a stationary path with neighbours of strictly smaller action.

The real explanation is not available yet, and naming it stops anybody filling the gap with a story about nature being economical. In the last part of this book a quantum particle contributes from every route it might take, weighted by a phase built from that same number. Where the number changes at first order the neighbouring contributions point in all directions and cancel; where it does not, a whole neighbourhood shares one phase and survives.

6 · Constraints become trivial — the payoff

So far the action principle has cost effort and returned Newton's laws, which we already had. This section is where it starts paying.

6.1 · Generalised coordinates

A generalised coordinate system is any set of nn numbers q1,,qnq^{1},\dots,q^{n} that fixes the configuration of the system, where nn is the number of independent ways the system can move. The qq's need not be lengths. They can be angles, areas, arc lengths along a wire, the amplitude of a normal mode, or anything else, and they need not even have the same dimensions as each other.

Why that is allowed is the whole point of §3. The derivation of (1.2.23) never assumed anything about what the qiq^{i} meant. It assumed only that they could be varied independently. So the recipe is:

  1. Choose coordinates that automatically satisfy the constraints, one coordinate per genuine degree of freedom, so that every value of the qiq^{i} describes an allowed configuration and every allowed configuration corresponds to some qiq^{i}.
  2. Write TT and VV in terms of them.
  3. Turn the crank (1.2.23).

Constraint forces never appear, because in step 1 the constraint stopped being a force and became a coordinate.

6.2 · The pendulum, in three lines

Take a bob of mass mm on a rigid massless rod of length \ell, swinging in a vertical plane about a fixed pivot. There are two Cartesian coordinates and one rigid constraint, so n=1n=1. The coordinate to use is θ\theta, the angle from the downward vertical.

The bob moves on a circle of radius \ell, so its speed is θ˙\ell\dot\theta and its height relative to the pivot is cosθ-\ell\cos\theta. Hence

T=12m2θ˙2,V=mgcosθ,L=12m2θ˙2+mgcosθ. T = \half m\ell^{2}\dot\theta^{2}, \qquad V = -mg\ell\cos\theta, \qquad L = \half m\ell^{2}\dot\theta^{2} + mg\ell\cos\theta. (1.2.36)

That completes step two of the recipe, and LL is now the entire physical input to the problem. Turning the crank needs two partial derivatives of it, one in the coordinate and one in its rate of change. Take them:

Lθ˙=m2θ˙,Lθ=mgsinθ. \pdv{L}{\dot\theta} = m\ell^{2}\dot\theta, \qquad\qquad \pdv{L}{\theta} = -mg\ell\sin\theta. (1.2.37)

What we want out of this is the equation of motion for θ\theta, and (1.2.22) is what converts a pair of partials into one. So feed them in:

ddt(m2θ˙)+mgsinθ=0θ¨=gsinθ. \dv{}{t}\big(m\ell^{2}\dot\theta\big) + mg\ell\sin\theta = 0 \qquad\Longleftrightarrow\qquad \ddot\theta = -\frac{g}{\ell}\sin\theta. (1.2.38)

That is the whole derivation. No forces were resolved and no free-body diagram was drawn. And, which is the point, the tension in the rod never appeared.

Chapter 1.1 got the same equation by resolving forces along and perpendicular to the rod. That required introducing the unknown tension F\mathcal{F}, writing two component equations, and eliminating F\mathcal{F} between them. Worked example 1 does the two side by side so you can count the lines.

Let's pause on why the tension is absent here. The rod's tension is always perpendicular to the bob's motion, so it does no work. Energies are what LL is built from, and a force that does no work contributes no energy, so it cannot appear in LL.

Meanwhile the geometric job the tension was doing, which was keeping the bob at distance \ell, has been absorbed into the choice of θ\theta as the coordinate. Every value of θ\theta automatically puts the bob at radius \ell.

So the constraint has been converted from a force into a coordinate, and that trade is the central practical advantage of the Lagrangian formulation.

6.3 · A harder one, to show the method scales

Now the double pendulum. There is a rod of length 1\ell_{1} from a fixed pivot to mass m1m_{1}, and a second rod of length 2\ell_{2} from m1m_{1} to m2m_{2}. Four Cartesian coordinates, two rigid constraints, so n=2n=2. Take θ1\theta_{1} and θ2\theta_{2}, each measured from the downward vertical.

Positions, with yy measured downward from the pivot:

x1=1sinθ1,y1=1cosθ1,x2=1sinθ1+2sinθ2,y2=1cosθ1+2cosθ2. \begin{aligned} x_{1} &= \ell_{1}\sin\theta_{1}, & y_{1} &= \ell_{1}\cos\theta_{1},\\ x_{2} &= \ell_{1}\sin\theta_{1} + \ell_{2}\sin\theta_{2}, & y_{2} &= \ell_{1}\cos\theta_{1} + \ell_{2}\cos\theta_{2}. \end{aligned} (1.2.39)

Differentiate and square. For the second mass, x˙22+y˙22=12θ˙12+22θ˙22+212θ˙1θ˙2(cosθ1cosθ2+sinθ1sinθ2)\dot x_{2}^{2}+\dot y_{2}^{2} = \ell_{1}^{2}\dot\theta_{1}^{2} + \ell_{2}^{2}\dot\theta_{2}^{2} + 2\ell_{1}\ell_{2}\dot\theta_{1}\dot\theta_{2}\big(\cos\theta_{1}\cos\theta_{2} + \sin\theta_{1}\sin\theta_{2}\big), and the bracket collapses by the angle-subtraction identity. Heights are y-y, so

L  =  12(m1+m2)12θ˙12+12m222θ˙22+m212θ˙1θ˙2cos(θ1θ2)+(m1+m2)g1cosθ1+m2g2cosθ2. \begin{aligned} L \;=\; &\half(m_{1}+m_{2})\ell_{1}^{2}\dot\theta_{1}^{2} + \half m_{2}\ell_{2}^{2}\dot\theta_{2}^{2} + m_{2}\ell_{1}\ell_{2}\dot\theta_{1}\dot\theta_{2}\cos(\theta_{1}-\theta_{2})\\[3pt] &+ (m_{1}+m_{2})g\ell_{1}\cos\theta_{1} + m_{2}g\ell_{2}\cos\theta_{2}. \end{aligned} (1.2.40)

Two lines, and the dynamics is completely specified. Apply (1.2.23) twice and you have the equations of motion, coupling and all.

Set the two routes beside each other.

  • The Newtonian route requires four unknown constraint-force components, since there are two rods and each exerts a force with two components on each of its ends. That means four vector equations, and the elimination of all four unknowns.
  • The Lagrangian route needed no unknowns at all, because the coordinates (θ1,θ2)(\theta_{1},\theta_{2}) already encode both rigid rods.

Now the scaling argument. Adding a third link adds one coordinate, one term to TT, one term to VV, and one Euler–Lagrange equation. In the force picture it adds two more unknown constraint forces to be eliminated.

So the Lagrangian method grows linearly in the number of degrees of freedom. The force method grows with the number of constraints, which is exactly the quantity you were hoping to make go away.

Grind box — the double pendulum's kinetic energy, every step

Differentiate (1.2.39):

x˙1=1θ˙1cosθ1,y˙1=1θ˙1sinθ1,x˙2=1θ˙1cosθ1+2θ˙2cosθ2,y˙2=1θ˙1sinθ12θ˙2sinθ2. \begin{aligned} \dot x_{1} &= \ell_{1}\dot\theta_{1}\cos\theta_{1}, & \dot y_{1} &= -\ell_{1}\dot\theta_{1}\sin\theta_{1},\\ \dot x_{2} &= \ell_{1}\dot\theta_{1}\cos\theta_{1}+\ell_{2}\dot\theta_{2}\cos\theta_{2}, & \dot y_{2} &= -\ell_{1}\dot\theta_{1}\sin\theta_{1}-\ell_{2}\dot\theta_{2}\sin\theta_{2}. \end{aligned}

The first mass is easy: x˙12+y˙12=12θ˙12(cos2θ1+sin2θ1)=12θ˙12\dot x_{1}^{2}+\dot y_{1}^{2} = \ell_{1}^{2}\dot\theta_{1}^{2} (\cos^{2}\theta_{1}+\sin^{2}\theta_{1}) = \ell_{1}^{2}\dot\theta_{1}^{2}. For the second, square both and add:

x˙22=12θ˙12cos2θ1+22θ˙22cos2θ2+212θ˙1θ˙2cosθ1cosθ2,y˙22=12θ˙12sin2θ1+22θ˙22sin2θ2+212θ˙1θ˙2sinθ1sinθ2. \begin{aligned} \dot x_{2}^{2} &= \ell_{1}^{2}\dot\theta_{1}^{2}\cos^{2}\theta_{1} + \ell_{2}^{2}\dot\theta_{2}^{2}\cos^{2}\theta_{2} + 2\ell_{1}\ell_{2}\dot\theta_{1}\dot\theta_{2}\cos\theta_{1}\cos\theta_{2},\\ \dot y_{2}^{2} &= \ell_{1}^{2}\dot\theta_{1}^{2}\sin^{2}\theta_{1} + \ell_{2}^{2}\dot\theta_{2}^{2}\sin^{2}\theta_{2} + 2\ell_{1}\ell_{2}\dot\theta_{1}\dot\theta_{2}\sin\theta_{1}\sin\theta_{2}. \end{aligned}

The Pythagorean identity collapses the first two columns, and the cross terms combine through cosθ1cosθ2+sinθ1sinθ2=cos(θ1θ2)\cos\theta_{1}\cos\theta_{2}+\sin\theta_{1}\sin\theta_{2} = \cos(\theta_{1}-\theta_{2}):

x˙22+y˙22=12θ˙12+22θ˙22+212θ˙1θ˙2cos(θ1θ2). \dot x_{2}^{2}+\dot y_{2}^{2} = \ell_{1}^{2}\dot\theta_{1}^{2}+\ell_{2}^{2}\dot\theta_{2}^{2}+2\ell_{1}\ell_{2}\dot\theta_{1}\dot\theta_{2}\cos(\theta_{1}-\theta_{2}).

Then T=12m112θ˙12+12m2(x˙22+y˙22)T=\half m_{1}\ell_{1}^{2}\dot\theta_{1}^{2} + \half m_{2}\big(\dot x_{2}^{2}+\dot y_{2}^{2}\big), which on collecting the θ˙12\dot\theta_{1}^{2} terms gives (1.2.40). With yy measured downward, the height of mass jj above the pivot is yj-y_{j}, so V=m1gy1m2gy2V = -m_{1}gy_{1}-m_{2}gy_{2}, giving the two potential terms with the signs shown.

A structural remark you will need in Chapter 1.3. The kinetic energy came out as a quadratic form in the generalised velocities, T=12ijMij(θ)θ˙iθ˙jT=\half\sum_{ij}M_{ij}(\theta)\,\dot\theta^{i}\dot\theta^{j} with

M(θ)=((m1+m2)12m212cos(θ1θ2)m212cos(θ1θ2)m222), M(\theta) = \begin{pmatrix} (m_{1}+m_{2})\ell_{1}^{2} & m_{2}\ell_{1}\ell_{2}\cos(\theta_{1}-\theta_{2})\\ m_{2}\ell_{1}\ell_{2}\cos(\theta_{1}-\theta_{2}) & m_{2}\ell_{2}^{2}\end{pmatrix},

symmetric and positive definite, the "mass matrix". That is not an accident of this example. Whenever the coordinate change from Cartesians is time-independent, TT is always a positive-definite quadratic form in q˙\dot q, because it is 12max˙a2\half\sum m_{a}\abs{\dot{\vv x}_{a}}^{2} pushed through a linear map (Chapter 0.5). Positive-definiteness is what makes p=L/q˙p=\partial L/\partial\dot q invertible for q˙\dot q, which is precisely the condition Chapter 1.3 needs for the Legendre transform to exist. And a metric-like symmetric positive-definite matrix that depends on position is exactly the object Chapter 3.3 calls a metric. The kinetic energy is a metric on configuration space, and free motion is a geodesic in it.

6.4 · When you want the constraint force: Lagrange multipliers

Sometimes the constraint force is the answer you need. You are designing the rod and you want to know whether it will snap. Eliminating the tension was convenient, and now we want it back. Chapter 0.6 already built the tool.

There, the problem was to make f(x)f(\vv x) stationary subject to g(x)=0g(\vv x)=0. The resolution was to make the unconstrained function fλ(gc)f - \lambda(g-c) stationary in both x\vv x and λ\lambda, trading a restriction on the search space for one extra equation and one extra unknown. We do exactly the same thing here, with the search space now a space of paths.

Suppose we use redundant coordinates q1,,qNq^{1},\dots,q^{N}, with NN larger than the number of degrees of freedom, subject to a constraint g(q,t)=0g(q,t)=0 that must hold at every instant. Consider the modified action

S~[q,λ]  =  t1t2[L(q,q˙,t)  +  λ(t)g(q,t)]dt, \tilde S[q,\lambda] \;=\; \int_{t_{1}}^{t_{2}}\Big[L(q,\dot q,t) \;+\; \lambda(t)\,g(q,t)\Big]\dd t, (1.2.41)

Here λ(t)\lambda(t) is one more variable to be varied over. Note that it is a function of time, one multiplier per instant, because the constraint must hold at every instant.

Varying with respect to λ\lambda is easy. It appears without its derivative, so (1.2.22) with L~/λ˙=0\partial\tilde L/\partial\dot\lambda=0 gives L~/λ=g(q,t)=0\partial\tilde L/\partial\lambda = g(q,t) = 0. The constraint has been recovered as an equation of motion.

Varying with respect to qiq^{i} gives

ddt ⁣(Lq˙i)Lqi  =  λgqi. \dv{}{t}\!\left(\pdv{L}{\dot q^{i}}\right) - \pdv{L}{q^{i}} \;=\; \lambda\,\pdv{g}{q^{i}}. (1.2.42)

Compare that with (1.2.23). The left-hand side is the free Euler–Lagrange expression, which in Cartesian coordinates is p˙iFi\dot p_{i}-F_{i}. So the right-hand side is an extra force, and λg/qi\lambda\,\partial g/\partial q^{i} is precisely the force that enforces the constraint. Two features are worth naming:

  • The constraint force points along g\nabla g, perpendicular to the constraint surface, exactly as Chapter 0.6 showed the gradient is normal to a level set. That is the mathematical content of "the constraint force does no work". Motion allowed by the constraint is tangent to the surface, and a force normal to it has zero dot product with the motion.
  • The multiplier is the magnitude of that force, up to the normalisation of gg, which matches Chapter 0.6's finding. There is a sign convention worth stating rather than stumbling over. Chapter 0.6 wrote L=fλ(gc)\mathcal L = f-\lambda(g-c) and this section writes L+λgL+\lambda g, so the two λ\lambda's are negatives of one another. Either way the multiplier is the sensitivity of the optimum to relaxing the constraint. Relax a rod's length and the work you must do is set by its tension. Same λ\lambda, same meaning.

Worked example 1 runs this on the pendulum and recovers the tension explicitly. The same trade, which is either to restrict the space or else to enlarge it and add a multiplier, reappears twice more. It is in Chapter 3.6, where the metric is varied subject to nothing, and yet the analogous structure produces constraint equations. And it is in Chapter 6.3, where the "constraint" being imposed by a multiplier is a gauge condition.

In plain terms 1.2.6

Constraints were the first of the four failures, and they stop being one the moment you may choose your own variables. A bob on a string has one way to move, so describe it by one number, the angle, and every value of that number already puts the bob at the right distance from the pivot. The constraint has not been solved or eliminated but converted into a coordinate, and nothing is left to enforce.

The tension, which cost a page of algebra in the force picture and was then discarded, never appears at all. The reason fits in a sentence: a force perpendicular to the motion does no work, the scalar is built out of energies, and a force doing no work has no energy to contribute. Adding a second link adds one coordinate and one equation, where the force method adds two more unknowns — so only one of them grows with the thing you hoped to be rid of.

When the constraint force is the answer you want, because you are designing the rod and want to know whether it snaps, it returns by the device the toolkit built for optimising under restriction. The multiplier was described there as a price, the sensitivity of the best available value to relaxing the restriction. Here the price is the tension in newtons, and the identification is exact rather than analogy.

7 · Form invariance — the property that survives to general relativity

Here is the structural property that makes the Lagrangian formulation not merely convenient but necessary for everything after Chapter 2.

Claim. Let qi=qi(Q1,,Qn,t)q^{i}=q^{i}(Q^{1},\dots,Q^{n},t) be any invertible, smooth change of coordinates (possibly time-dependent), and define the Lagrangian in the new coordinates by substitution,

L~(Q,Q˙,t)    L(q(Q,t),  q˙(Q,Q˙,t),  t). \tilde L\big(Q,\dot Q,t\big) \;\equiv\; L\Big(q(Q,t),\;\dot q(Q,\dot Q,t),\;t\Big). (1.2.43)

Then Qa(t)Q^{a}(t) satisfies the Euler–Lagrange equations of L~\tilde L if and only if qi(t)q^{i}(t) satisfies the Euler–Lagrange equations of LL.

The one-line reason. SS is a number attached to a path. Relabelling which numbers you use to name the points of the path cannot change that number, because you fed in the same physical path and got the same integral back.

So the function Φ(ϵ)=S[path deformed by ϵ]\Phi(\epsilon)=S[\text{path deformed by }\epsilon] is identical in both descriptions, and so is the statement Φ(0)=0\Phi'(0)=0. Stationarity is a property of the path, and not of the names.

That argument is correct and it is the reason. It is worth also seeing the derivative-level version, because the two lemmas it uses recur constantly.

Lemma 1 (cancellation of the dots). Differentiating qi(Q(t),t)q^{i}(Q(t),t) along the path,

q˙i  =  aqiQaQ˙a  +  qit. \dot q^{i} \;=\; \sum_{a}\pdv{q^{i}}{Q^{a}}\,\dot Q^{a} \;+\; \pdv{q^{i}}{t}. (1.2.44)

The right-hand side is linear in Q˙a\dot Q^{a} with coefficients depending only on QQ and tt. Reading off the coefficient,

q˙iQ˙a  =  qiQa. \pdv{\dot q^{i}}{\dot Q^{a}} \;=\; \pdv{q^{i}}{Q^{a}}. (1.2.45)

Lemma 2 (partial and total derivatives commute). Differentiate (1.2.44) with respect to QaQ^{a} at fixed Q˙\dot Q. Separately, take the total time derivative of qi/Qa\partial q^{i}/\partial Q^{a} using the chain rule. Both give the same thing:

q˙iQa  =  b2qiQaQbQ˙b+2qiQat  =  ddt ⁣(qiQa), \pdv{\dot q^{i}}{Q^{a}} \;=\; \sum_{b}\frac{\partial^{2}q^{i}}{\partial Q^{a}\partial Q^{b}}\dot Q^{b} + \frac{\partial^{2}q^{i}}{\partial Q^{a}\partial t} \;=\; \dv{}{t}\!\left(\pdv{q^{i}}{Q^{a}}\right), (1.2.46)

where the middle step used the equality of mixed partials (Chapter 0.6). Now the computation. From (1.2.43) and the chain rule, using Lemma 1,

L~Q˙a  =  iLq˙iq˙iQ˙a  =  iLq˙iqiQa, \pdv{\tilde L}{\dot Q^{a}} \;=\; \sum_{i}\pdv{L}{\dot q^{i}}\,\pdv{\dot q^{i}}{\dot Q^{a}} \;=\; \sum_{i}\pdv{L}{\dot q^{i}}\,\pdv{q^{i}}{Q^{a}}, (1.2.47)

and, since L~\tilde L depends on QaQ^{a} both directly and through q˙\dot q,

L~Qa  =  i[LqiqiQa+Lq˙iq˙iQa]. \pdv{\tilde L}{Q^{a}} \;=\; \sum_{i}\left[\pdv{L}{q^{i}}\,\pdv{q^{i}}{Q^{a}} + \pdv{L}{\dot q^{i}}\,\pdv{\dot q^{i}}{Q^{a}}\right]. (1.2.48)

Take d/dt\dd/\dd t of (1.2.47) with the product rule and subtract (1.2.48):

ddtL~Q˙aL~Qa  =  i{[ddtLq˙i]qiQa+Lq˙iddt ⁣(qiQa)LqiqiQaLq˙iq˙iQa}. \begin{aligned} \dv{}{t}\pdv{\tilde L}{\dot Q^{a}} - \pdv{\tilde L}{Q^{a}} \;=\; \sum_{i}\Bigg\{&\left[\dv{}{t}\pdv{L}{\dot q^{i}}\right]\pdv{q^{i}}{Q^{a}} + \pdv{L}{\dot q^{i}}\,\dv{}{t}\!\left(\pdv{q^{i}}{Q^{a}}\right)\\ &-\pdv{L}{q^{i}}\pdv{q^{i}}{Q^{a}} - \pdv{L}{\dot q^{i}}\pdv{\dot q^{i}}{Q^{a}}\Bigg\}. \end{aligned} (1.2.49)

By Lemma 2 the second and fourth terms are equal and cancel. What is left factorises:

  ddtL~Q˙aL~Qa  =  i[ddtLq˙iLqi]qiQa.   \boxed{\;\dv{}{t}\pdv{\tilde L}{\dot Q^{a}} - \pdv{\tilde L}{Q^{a}} \;=\; \sum_{i}\left[\dv{}{t}\pdv{L}{\dot q^{i}} - \pdv{L}{q^{i}}\right]\pdv{q^{i}}{Q^{a}}.\;} (1.2.50)

The Euler–Lagrange expressions transform into each other by multiplication by the Jacobian matrix qi/Qa\partial q^{i}/\partial Q^{a}, which is invertible because the coordinate change is. So one set vanishes exactly when the other does. \blacksquare

7.1 · Why this matters more than it looks

Now the contrast. F=maF=ma is not form invariant. Write Newton's law in plane polar coordinates and it does not read mr¨=Frm\ddot r = F_{r}. The acceleration of a particle in polar coordinates has extra pieces:

a  =  (r¨rθ˙2)r^  +  (rθ¨+2r˙θ˙)θ^. \vv a \;=\; \big(\ddot r - r\dot\theta^{2}\big)\,\hat{\vv r} \;+\; \big(r\ddot\theta + 2\dot r\dot\theta\big)\,\hat{\boldsymbol\theta}. (1.2.51)

The rθ˙2-r\dot\theta^{2} is the centrifugal term and the 2r˙θ˙2\dot r\dot\theta is the Coriolis term. They arise because the basis vectors r^,θ^\hat{\vv r},\hat{\boldsymbol\theta} themselves rotate as the particle moves, so differentiating a vector twice requires differentiating the basis too. Getting (1.2.51) honestly takes half a page of unit-vector derivatives.

Now get the same thing from the Lagrangian. In polar coordinates T=12m(r˙2+r2θ˙2)T=\half m(\dot r^{2}+r^{2}\dot\theta^{2}), which is Pythagoras applied to the radial and tangential velocity components. So with a potential V(r,θ)V(r,\theta),

L=12m(r˙2+r2θ˙2)V(r,θ). L = \half m\big(\dot r^{2}+r^{2}\dot\theta^{2}\big) - V(r,\theta). (1.2.52)

Turn the crank. For q=rq=r we have L/r˙=mr˙\partial L/\partial\dot r = m\dot r and L/r=mrθ˙2V/r\partial L/\partial r = mr\dot\theta^{2} - \partial V/\partial r, so

mr¨mrθ˙2=Vr. m\ddot r - mr\dot\theta^{2} = -\pdv{V}{r}. (1.2.53)

For q=θq=\theta we have L/θ˙=mr2θ˙\partial L/\partial\dot\theta = mr^{2}\dot\theta and L/θ=V/θ\partial L/\partial\theta = -\partial V/\partial\theta, so

ddt(mr2θ˙)=Vθm(rθ¨+2r˙θ˙)=1rVθ. \dv{}{t}\big(mr^{2}\dot\theta\big) = -\pdv{V}{\theta} \qquad\Longleftrightarrow\qquad m\big(r\ddot\theta + 2\dot r\dot\theta\big) = -\frac{1}{r}\pdv{V}{\theta}. (1.2.54)

Both the centrifugal and the Coriolis terms appeared automatically, out of differentiating a scalar. No unit vectors were differentiated, and no fictitious forces had to be remembered.

And (1.2.54) hands you a bonus. If VV does not depend on θ\theta, the left side says that mr2θ˙mr^{2}\dot\theta is constant. That is angular momentum conservation, for free, because θ\theta was missing from LL.

Why this decides the shape of the rest of the book

Newton's second law is a relation between vector components, and vector components transform in a complicated way when the basis varies from point to point. The law therefore has a privileged coordinate system, the Cartesian one, in which it is simple, and it grows correction terms everywhere else.

General relativity has no global Cartesian coordinates. This is not a matter of their being awkward to find. There provably are none, because spacetime is curved, and Chapter 3.4 will make that a precise statement about a tensor that cannot be made to vanish.

A formulation of physics that is simple only in a coordinate system that does not exist is not a formulation of physics. It is a special case.

The action is a scalar, a single number per path, with no components to transform. (1.2.50) says its stationarity condition therefore keeps the same shape in every coordinate system. That is why Chapters 2.6, 3.6, 5.2 and 6.4 all consist of the same sentence, "write down the most general scalar action invariant under the symmetry you believe in, and vary it", and why they never once resolve a force.

Familiar ground

You already run a variational principle. When you fit a model by maximum likelihood you do not write down an estimator. You write down a scalar functional of the parameters, the log-likelihood (θ)\ell(\theta), you declare that the answer is where it is stationary, and you let the stationarity condition

θ  =  0 \pdv{\ell}{\theta} \;=\; 0

which is the score equation, produce the estimator. For a normal mean it produces the sample mean. For a Cox model it produces something you would never have guessed.

Chapter 0.6 used the second derivative of that same surface. The Hessian at the peak is the observed information, and its inverse is the covariance matrix of the estimate. Here we are using the first derivative instead, and the parallel is exact: specify a scalar to be made stationary, and the equations you actually wanted are its stationarity condition.

The Euler–Lagrange equation is the score equation of physics. The Hessian's role, which is to tell you whether the stationary point is a maximum, a minimum or neither, is played here by the second variation, and that is exactly what the harmonic-oscillator warning callout computed.

The correspondence goes further than an analogy. It becomes literally the same mathematics the moment your unknown is a function rather than a parameter vector.

Fit a smooth dose–response curve by penalised least squares. Over all functions ff, minimise

J[f]  =  j(yjf(xj))2  +  λabf(x)2dx. J[f] \;=\; \sum_{j}\big(y_{j}-f(x_{j})\big)^{2} \;+\; \lambda\int_{a}^{b} f''(x)^{2}\,\dd x.

That is a functional on an infinite-dimensional space, and finding its minimiser is the calculus of variations rather than statistics.

Vary ff+ϵηf\to f+\epsilon\eta. The penalty term contributes 2λfηdx2\lambda\int f''\eta''\,\dd x, and integrating by parts twice, which is the move of §3.3 performed once more, turns fη\int f''\eta'' into fη\int f''''\eta plus boundary terms. Between data points, where the first sum contributes nothing, the Euler–Lagrange equation is therefore the one derived in §3.5's grind box with F=λf2F=\lambda f''^{2}, namely

f(x)=0, f''''(x) = 0,

whose solutions are exactly the cubic polynomials. That is why the answer is a cubic spline. Not because someone chose cubics, but because they are the kernel of the Euler–Lagrange operator of the roughness penalty.

The boundary terms that by-parts leaves behind have no fixed-endpoint condition to kill them, so they must vanish on their own. That means f=f=0f''=f'''=0 at the outer knots, which forces the fitted curve to be linear beyond them. If you have ever wondered why a restricted cubic spline is constrained to be linear in the tails, that is the answer, and it is a boundary term in a calculus-of-variations problem. Same manoeuvre, same integration by parts, same vanishing boundary term as §3.3, and only the interpretation differs.

In plain terms 1.2.7

A number attached to a path has no components, and having no components is the whole of why it survives. Relabelling which numbers you use to name the points of a path cannot change the number the path was assigned, so the statement that this number stops changing is a fact about the path rather than about the naming. The equations following from it therefore keep their shape under any smooth invertible change of coordinates, including ones nobody has tabulated.

Set that beside the polar-coordinate embarrassment of the previous chapter. The centrifugal and Coriolis terms, which took half a page of differentiating rotating basis directions to produce, now drop out of differentiating a scalar, with no unit vectors touched and no fictitious force to be remembered. The same calculation hands over a conservation law for nothing, since the angle is absent from the scalar and an absent coordinate has a conjugate momentum that cannot move.

This is a property deciding the remainder of the book rather than a convenience. A curved spacetime provably admits no global straight grid, so a formulation simple only in such a grid is unusable there, while a formulation whose entire input is one number per path does not notice. Everything from here to the last chapter consists of choosing a scalar and making it stationary, and this is the reason it can.

8 · One equation to rule them all — a preview

Everything so far has had a path x(t)x(t) at the centre of it, meaning one independent variable, tt, and finitely many dependent ones. Physics after Chapter 5 has fields instead. A field is a quantity ϕ\phi defined at every point of spacetime, so the dependent variable is indexed by four independent ones, xμ=(t,x,y,z)x^{\mu}=(t,x,y,z).

The generalisation writes itself. Replace the Lagrangian by a Lagrangian density L(ϕ,μϕ)\mathcal{L}\big(\phi,\partial_{\mu}\phi\big) and the time integral by an integral over a region Ω\Omega of spacetime:

S[ϕ]  =  ΩL(ϕ,μϕ)d4x. S[\phi] \;=\; \int_{\Omega}\mathcal{L}\big(\phi,\partial_{\mu}\phi\big)\,\dd^{4}x. (1.2.55)

Now repeat §3 verbatim. Vary ϕϕ+ϵη\phi\to\phi+\epsilon\eta, with η\eta vanishing on the boundary Ω\partial\Omega instead of at two endpoints. Differentiate under the integral sign. Linearise the integrand by the chain rule:

δS  =  Ω[Lϕη  +  L(μϕ)μη]d4x. \delta S \;=\; \int_{\Omega}\left[\pdv{\mathcal{L}}{\phi}\,\eta \;+\; \pdv{\mathcal{L}}{(\partial_{\mu}\phi)}\,\partial_{\mu}\eta\right]\dd^{4}x. (1.2.56)

Then integrate by parts to move the derivative off μη\partial_{\mu}\eta. In four dimensions, "by parts" means the divergence theorem of Chapter 0.7, which converts Ωμ()μd4x\int_{\Omega}\partial_{\mu}(\cdots)^{\mu}\dd^{4}x into a surface integral over Ω\partial\Omega. That surface term dies because η\eta vanishes there, which is the same reason and the same sentence as before. Apply the fundamental lemma, whose proof needs only the four-dimensional bump function you would expect. Out comes

  μ ⁣(L(μϕ))    Lϕ  =  0.   \boxed{\;\partial_{\mu}\!\left(\pdv{\mathcal{L}}{(\partial_{\mu}\phi)}\right) \;-\; \pdv{\mathcal{L}}{\phi} \;=\; 0.\;} (1.2.57)

Put (1.2.57) beside (1.2.22). The dictionary is txμt\to x^{\mu}, dtd4x\dd t\to\dd^{4}x, ddtμ\dv{}{t}\to\partial_{\mu}, x˙μϕ\dot x\to\partial_{\mu}\phi, and nothing else. The derivation you did in §3 is the derivation that produces every field equation in physics.

Chapter 5.2 develops this properly, including what happens when ϕ\phi carries indices and what Lorentz invariance demands of L\mathcal{L}, so there is no point duplicating it here. What matters now is that there is nothing new to learn. It is the same four moves in more dimensions.

8.1 · The actions this book will write down

⚑ Everything in this table is quoted forward. Not one line of it is derived here. Each is constructed, from symmetry principles, in the chapter named. It is on this page because seeing the list once, early, tells you what kind of book this is. After Chapter 1.2, physics consists of choosing a scalar and varying it.

SystemActionChapter
Free particleS=12mx˙2dtS=\int \half m\,\dot{\vv x}^{2}\,\dd t§4
Relativistic particleS=mc2 ⁣ ⁣dτS=-mc^{2}\!\int\!\dd\tau2.5
Electromagnetic fieldS=14 ⁣ ⁣FμνFμνd4xS=-\tfrac14\!\int\! F_{\mu\nu}F^{\mu\nu}\,\dd^{4}x2.6
Gravity (Einstein–Hilbert)S=12κ ⁣ ⁣Rg  d4xS=-\dfrac{1}{2\kappa}\!\int\! R\,\sqrt{-g}\;\dd^{4}x3.6
Scalar field (Klein–Gordon)S= ⁣ ⁣(12μϕμϕ12m2ϕ2)d4xS=\!\int\!\big(\half\partial_{\mu}\phi\,\partial^{\mu}\phi-\half m^{2}\phi^{2}\big)\dd^{4}x5.3
Spin-½ field (Dirac)S= ⁣ ⁣ψˉ(iγμμm)ψ  d4xS=\!\int\!\bar\psi\big(\ii\gamma^{\mu}\partial_{\mu}-m\big)\psi\;\dd^{4}x5.5
Non-abelian gauge field (Yang–Mills)S=12 ⁣ ⁣tr(FμνFμν)d4xS=-\half\!\int\!\operatorname{tr}\big(F_{\mu\nu}F^{\mu\nu}\big)\dd^{4}x6.4
Relativistic string (Polyakov)S=T2 ⁣ ⁣h  habaXμbXμ  d2σS=-\dfrac{T}{2}\!\int\!\sqrt{-h}\;h^{ab}\,\partial_{a}X^{\mu}\partial_{b}X_{\mu}\;\dd^{2}\sigma7.2

The overall sign of the gravitational entry depends on the metric signature, and with this book's (+,,,)(+,-,-,-) it is negative. Chapter 3.6 derives it rather than adopting it, and says in place why texts using the opposite signature write it the other way round.

Eight lines. Between them they contain classical mechanics, special relativity, electromagnetism, gravitation, quantum field theory, the strong and electroweak interactions, and string theory. Every one is fed to (1.2.22) or (1.2.57), and the output is the equations of motion of that theory.

To a first approximation, the rest of this book is the story of how each of those eight lines gets chosen. And that is always the same story: pick a symmetry, and write the most general scalar invariant under it.

In plain terms 1.2.8

Replace the single independent variable by the four of spacetime, let the quantity being varied be defined at every point rather than at every instant, and the four moves run again word for word. The nudge must now vanish on the boundary of a region instead of at two endpoints, the by-parts step becomes the divergence theorem, and the term it leaves behind dies for the same reason as before. Out comes one equation, and it is every field equation in physics.

The chapter closes with eight lines of scalar, one per theory: a free particle, a relativistic one, the electromagnetic field, gravity, a scalar field, the electron, the strong and weak interactions, and a string. Between them they hold nearly everything the rest of this book is about, each is fed to the same machine, and what comes back is the equations of motion of that subject. Not analogues of them, but them.

What has been bought is worth stating flatly. The input to physics is no longer a list of forces to be discovered one at a time but a single number attached to each history, and the output follows from one condition imposed on it. What has not been bought is any reason to prefer one such number to another, which is the whole of what remains, and two chapters from now a symmetry supplies it.

9 · Worked examples

Worked example 1 — the pendulum, three ways, with the tension recovered

(a) The Newtonian route, as in Chapter 1.1. The bob has two forces on it. One is gravity mgm\vv g, downward. The other is the rod tension F\mathcal{F}, directed along the rod toward the pivot. Resolve along the two natural directions.

Tangentially, in the direction of increasing θ\theta, gravity contributes mgsinθ-mg\sin\theta and the tension contributes nothing, while the tangential acceleration is θ¨\ell\ddot\theta:

mθ¨=mgsinθ. m\ell\ddot\theta = -mg\sin\theta.

Radially, toward the pivot, the acceleration is the centripetal θ˙2\ell\dot\theta^{2}, and the inward forces are F\mathcal{F} minus the inward component of gravity mgcosθmg\cos\theta:

mθ˙2=Fmgcosθ. m\ell\dot\theta^{2} = \mathcal{F} - mg\cos\theta.

Two equations, two unknowns (θ,F)(\theta,\mathcal{F}). The first is what we wanted. The second exists only to determine F\mathcal{F}, which we then discard. And to write either of them you had to know in advance that the acceleration in polar coordinates has a centripetal piece, which is to say you had to have (1.2.51) already.

(b) The Lagrangian route. One coordinate, θ\theta. Kinetic energy 12m2θ˙2\half m\ell^{2}\dot\theta^{2}, potential mgcosθ-mg\ell\cos\theta,

L=12m2θ˙2+mgcosθddt(m2θ˙)+mgsinθ=0θ¨=gsinθ. \begin{aligned} L &= \half m\ell^{2}\dot\theta^{2} + mg\ell\cos\theta\\[3pt] &\Longrightarrow\quad \dv{}{t}\big(m\ell^{2}\dot\theta\big) + mg\ell\sin\theta = 0 \quad\Longrightarrow\quad \ddot\theta = -\frac{g}{\ell}\sin\theta. \end{aligned}

One unknown, one equation, no tension, no unit-vector derivatives, no (1.2.51). Here is the count. Route (a) needed two vector resolutions and one elimination. Route (b) needed two partial derivatives.

(c) Recovering the tension with a multiplier. Now deliberately do not impose the constraint. Use polar coordinates (r,θ)(r,\theta) in the plane, so that

L=12m(r˙2+r2θ˙2)+mgrcosθ, L = \half m\big(\dot r^{2}+r^{2}\dot\theta^{2}\big) + mgr\cos\theta,

with the constraint g(r)=r=0g(r) = r-\ell = 0. Following (1.2.41), vary L~=L+λ(t)(r)\tilde L = L + \lambda(t)\,(r-\ell).

The λ\lambda equation returns r=r=\ell. The θ\theta equation, with rr then set to \ell, returns the pendulum equation again. The rr equation is the new information:

ddt(mr˙)(mrθ˙2+mgcosθ+λ)=0. \dv{}{t}\big(m\dot r\big) - \Big(mr\dot\theta^{2} + mg\cos\theta + \lambda\Big) = 0.

On the constraint surface rr\equiv\ell, so r˙=r¨=0\dot r=\ddot r=0, and

λ=m(θ˙2+gcosθ). \lambda = -m\big(\ell\dot\theta^{2} + g\cos\theta\big).

The generalised constraint force is λg/r=λ\lambda\,\partial g/\partial r = \lambda, and it is negative. That means it points toward decreasing rr, which is toward the pivot, and that is exactly the direction a rod pulls. Its magnitude is

F=λ=m(θ˙2+gcosθ), \mathcal{F} = \abs{\lambda} = m\big(\ell\dot\theta^{2}+g\cos\theta\big),

identical to what route (a) produced. The multiplier is the tension. Note the two contributions, both physically sensible. The mgcosθmg\cos\theta holds up the component of weight along the rod, and the mθ˙2m\ell\dot\theta^{2} supplies the centripetal force. At the bottom of a swing released from horizontal, energy conservation gives θ˙2=2g\ell\dot\theta^{2}=2g, so F=3mg\mathcal{F}=3mg. That is the standard result, obtained here without ever drawing a free-body diagram.

Small oscillations, since we are here. For θ1\abs{\theta}\ll1 we have sinθθ\sin\theta\approx\theta (Chapter 0.3), and (1.2.38) becomes θ¨=(g/)θ\ddot\theta = -(g/\ell)\theta. That is the harmonic oscillator of Chapter 0.8, with ω=g/\omega=\sqrt{g/\ell} and period 2π/g2\pi\sqrt{\ell/g}. It is the formula Chapter 0.1 differentiated logarithmically in its first worked example, now derived rather than quoted.

Worked example 2 — geodesics: the straight line, and the great circle

Strip away the physics. Take the arc-length functional (1.2.1) and ask which curve makes it stationary. This is the purest possible variational problem, with no masses, no forces and no time in it, and it is the one that becomes gravity.

(a) In the plane. Minimise A[y]=ab1+y2dx\mathcal{A}[y]=\int_{a}^{b}\sqrt{1+y'^{2}}\,\dd x between fixed endpoints. Here xx plays the role of tt and yy the role of the coordinate, so the Euler–Lagrange equation (1.2.22) applies with F(y,y)=1+y2F(y,y')=\sqrt{1+y'^{2}}. Since FF does not contain yy at all,

Fy=0ddx ⁣(Fy)=0Fy=y1+y2=c \pdv{F}{y} = 0 \qquad\Longrightarrow\qquad \dv{}{x}\!\left(\pdv{F}{y'}\right) = 0 \qquad\Longrightarrow\qquad \pdv{F}{y'} = \frac{y'}{\sqrt{1+y'^{2}}} = c

for some constant cc. Do not stop there, because the equation still has to be solved for yy'. Square both sides and clear the denominator:

y2=c2(1+y2)y2(1c2)=c2y=c1c2    m, y'^{2} = c^{2}\big(1+y'^{2}\big) \quad\Longrightarrow\quad y'^{2}\big(1-c^{2}\big) = c^{2} \quad\Longrightarrow\quad y' = \frac{c}{\sqrt{1-c^{2}}} \;\equiv\; m,

a constant. (The division is legitimate, since c=y/1+y2<1\abs{c}=\abs{y'}/\sqrt{1+y'^{2}} \lt 1 for every real yy', so 1c2>01-c^{2} \gt 0 always.) Integrating, y=mx+by = mx + b. The straight line, from a variational principle. Note that we never assumed the answer was a line, or that it was smooth beyond C1C^{1}, or anything else. We asked for stationarity and got straightness.

(b) On a sphere. Now do the identical calculation with a different notion of distance. On the unit sphere with polar angle θ\theta (from the north pole) and azimuth ϕ\phi, an infinitesimal displacement has length

ds2=dθ2+sin2θdϕ2, \dd s^{2} = \dd\theta^{2} + \sin^{2}\theta\,\dd\phi^{2},

because moving in θ\theta traverses a great circle of radius 11 while moving in ϕ\phi traverses a circle of latitude of radius sinθ\sin\theta. Parametrising the curve as ϕ(θ)\phi(\theta),

A[ϕ]=θ1θ21+sin2θ  ϕ2  dθ,F(θ,ϕ)=1+sin2θϕ2. \mathcal{A}[\phi] = \int_{\theta_{1}}^{\theta_{2}}\sqrt{1+\sin^{2}\theta\;\phi'^{2}}\;\dd\theta, \qquad F(\theta,\phi') = \sqrt{1+\sin^{2}\theta\,\phi'^{2}}.

Again FF contains no ϕ\phi, so again F/ϕ\partial F/\partial\phi' is constant:

sin2θ  ϕ1+sin2θϕ2  =  k. \frac{\sin^{2}\theta\;\phi'}{\sqrt{1+\sin^{2}\theta\,\phi'^{2}}} \;=\; k.

Take the case k=0k=0 first. Since sinθ0\sin\theta\neq0 away from the poles, k=0k=0 forces ϕ=0\phi'=0, so ϕ\phi is constant. The curve is a meridian, which is a great circle.

That single case is enough, because of a symmetry we can check directly. The metric dθ2+sin2θdϕ2\dd\theta^{2}+\sin^{2}\theta\,\dd\phi^{2} is the ordinary Euclidean length restricted to the sphere r=1\abs{\vv r}=1. Rotations of R3\R^{3} preserve Euclidean length and map the sphere to itself, so a rotation carries curves to curves of the same length, and therefore carries stationary curves to stationary curves.

Given any two points on the sphere, rotate so that both lie on a common meridian. The stationary curve joining them is then a meridian arc. Rotate back, and the stationary curve joining the original two points is the image of a meridian, which is a great circle. \blacksquare (The general k0k\neq0 case can also be integrated directly and gives the same answer. See the grind box.)

What just happened. The same functional, ds\int\dd s, gave a straight line in one geometry and a great circle in another. The only input that changed was the formula for ds\dd s, which is the metric. The variational principle did not change at all.

Chapter 3.3 will write ds2=gμνdxμdxν\dd s^{2}=g_{\mu\nu}\,\dd x^{\mu}\dd x^{\nu} for a metric on curved spacetime, feed ds\int\dd s into exactly this machinery, and call the resulting Euler–Lagrange equation the geodesic equation. A planet orbiting the sun will be doing what the great circle does, travelling as straight as the geometry permits. Gravity will not be a force in that description. It will be the metric. Nothing about the method in this worked example will change. Only ds\dd s.

Grind box — integrating the sphere's geodesic equation in the general case

Solve sin2θϕ/1+sin2θϕ2=k\sin^{2}\theta\,\phi'/\sqrt{1+\sin^{2}\theta\,\phi'^{2}} = k for ϕ\phi'. Square and cross-multiply:

sin4θϕ2=k2(1+sin2θϕ2)    ϕ2sin2θ(sin2θk2)=k2    ϕ=ksinθsin2θk2. \sin^{4}\theta\,\phi'^{2} = k^{2}\big(1+\sin^{2}\theta\,\phi'^{2}\big) \;\Longrightarrow\; \phi'^{2}\sin^{2}\theta\big(\sin^{2}\theta-k^{2}\big) = k^{2} \;\Longrightarrow\; \phi' = \frac{k}{\sin\theta\sqrt{\sin^{2}\theta-k^{2}}}.

Substitute u=cotθu=\cot\theta, so du=csc2θdθ\dd u = -\csc^{2}\theta\,\dd\theta and sin2θk2=sin2θ(1k2(1+u2))\sin^{2}\theta - k^{2} = \sin^{2}\theta\big(1-k^{2}(1+u^{2})\big). The integral collapses:

ϕϕ0=kdθsin2θ1k2k2u2=kdu1k2k2u2=duA2u2,A21k2k2. \phi-\phi_{0} = \int\frac{k\,\dd\theta}{\sin^{2}\theta\sqrt{1-k^{2}-k^{2}u^{2}}} = -\int\frac{k\,\dd u}{\sqrt{1-k^{2}-k^{2}u^{2}}} = -\int\frac{\dd u}{\sqrt{A^{2}-u^{2}}}, \quad A^{2}\equiv\frac{1-k^{2}}{k^{2}}.

Hence ϕϕ0=arcsin(u/A)\phi-\phi_{0} = -\arcsin(u/A), that is, cotθ=Asin(ϕϕ0)\cot\theta = -A\sin(\phi-\phi_{0}). Multiply through by sinθ\sin\theta and expand the sine:

cosθ=Asinθ(sinϕcosϕ0cosϕsinϕ0). \cos\theta = -A\sin\theta\big(\sin\phi\cos\phi_{0}-\cos\phi\sin\phi_{0}\big).

Now recognise the Cartesian coordinates of a point on the unit sphere: X=sinθcosϕX=\sin\theta\cos\phi, Y=sinθsinϕY=\sin\theta\sin\phi, Z=cosθZ=\cos\theta. The equation becomes

(Asinϕ0)X    (Acosϕ0)Y    Z  =  0, \big(A\sin\phi_{0}\big)X \;-\; \big(A\cos\phi_{0}\big)Y \;-\; Z \;=\; 0,

which is a plane through the origin. A plane through the centre of a sphere cuts it in a great circle. So every solution, for every kk, is a great circle, with the k=0k=0 case being the limit in which the plane contains the polar axis. (Verified numerically to 7×10167\times10^{-16} for A=0.8A=0.8, ϕ0=0.4\phi_{0}=0.4.)

Notice that k=F/ϕk=\partial F/\partial\phi' is conserved because ϕ\phi is absent from FF. That is the same structure that gave angular momentum conservation in (1.2.54). On a sphere it is the statement that a geodesic's bearing satisfies sinθcos(bearing)=\sin\theta\cos(\text{bearing})= constant, which navigators call Clairaut's relation and which is the reason a great-circle route from London to Tokyo goes over the Arctic. It is Noether's theorem (Chapter 1.4), arriving three chapters early disguised as cartography.

10 · Your turn

Problem 1 — the brachistochrone

A bead slides without friction down a wire from the origin to a lower point, starting from rest, under gravity gg. Let yy be measured downward. Set up the travel-time functional, reduce it with the fact that the integrand has no explicit xx-dependence, and integrate the resulting equation to find the curve. (This is the problem Johann Bernoulli posed to Europe in 1696. Newton is said to have solved it overnight and returned it anonymously, whereupon Bernoulli reportedly recognised the author "as the lion by his claw".)

Solution

Set-up. Energy conservation from rest gives 12mv2=mgy\half mv^{2}=mgy, so v=2gyv=\sqrt{2gy}, independent of the shape of the wire. That independence is what makes the problem tractable. The time to traverse an element of arc is ds/v\dd s/v, so

T[y]=0x11+y22gy  dx    0x1F(y,y)dx. \mathcal{T}[y] = \int_{0}^{x_{1}}\frac{\sqrt{1+y'^{2}}}{\sqrt{2gy}}\;\dd x \;\equiv\; \int_{0}^{x_{1}} F(y,y')\,\dd x.

Note that this is (1.2.2) with refractive index n1/yn\propto1/\sqrt{y}. The brachistochrone is literally a ray of light in a medium whose index falls off as the inverse square root of depth. Fermat and Bernoulli are the same problem.

Reduce. FF has no explicit xx, so by Problem 2's Beltrami identity the quantity yFyFy'F_{y'}-F is constant along the solution. Compute it:

Fy=y2gy1+y2,yFyF=y2(1+y2)2gy1+y2=12gy1+y2. F_{y'} = \frac{y'}{\sqrt{2gy}\sqrt{1+y'^{2}}}, \qquad y'F_{y'}-F = \frac{y'^{2}-\big(1+y'^{2}\big)}{\sqrt{2gy}\sqrt{1+y'^{2}}} = \frac{-1}{\sqrt{2gy}\sqrt{1+y'^{2}}}.

Setting this equal to 1/2gC-1/\sqrt{2gC} for a constant CC and squaring gives the beautifully compact first integral

y(1+y2)=C. y\big(1+y'^{2}\big) = C.

Integrate. Solve for yy' and separate:

y=Cyydx=yCy  dy. y' = \sqrt{\frac{C-y}{y}} \qquad\Longrightarrow\qquad \dd x = \sqrt{\frac{y}{C-y}}\;\dd y.

The substitution that rationalises this is y=C2(1cosϑ)=Csin2(ϑ/2)y = \tfrac{C}{2}(1-\cos\vartheta) = C\sin^{2}(\vartheta/2), whence Cy=Ccos2(ϑ/2)C-y = C\cos^{2}(\vartheta/2), the square root becomes tan(ϑ/2)\tan(\vartheta/2), and dy=Csin(ϑ/2)cos(ϑ/2)dϑ\dd y = C\sin(\vartheta/2)\cos(\vartheta/2)\,\dd\vartheta. Multiply:

dx=tanϑ2Csinϑ2cosϑ2dϑ=Csin2ϑ2dϑ=C2(1cosϑ)dϑ. \dd x = \tan\frac{\vartheta}{2}\cdot C\sin\frac{\vartheta}{2}\cos\frac{\vartheta}{2}\,\dd\vartheta = C\sin^{2}\frac{\vartheta}{2}\,\dd\vartheta = \frac{C}{2}\big(1-\cos\vartheta\big)\dd\vartheta.

Integrating with x=0x=0 at ϑ=0\vartheta=0 and writing a=C/2a=C/2:

  x=a(ϑsinϑ),y=a(1cosϑ).   \boxed{\;x = a\big(\vartheta-\sin\vartheta\big),\qquad y = a\big(1-\cos\vartheta\big).\;}

These are the parametric equations of a cycloid, the curve traced by a point on the rim of a wheel of radius aa rolling along the underside of the horizontal axis. The constant aa is fixed by requiring the curve to pass through the target point.

Check. For the half-cycloid with a=12a=\tfrac12, running from the origin to (π/2,1)(\pi/2,\,1) and g=9.8g=9.8: numerical quadrature gives a descent time of 0.7096 s0.7096\ \mathrm{s} along the cycloid versus 0.8412 s0.8412\ \mathrm{s} along the straight line between the same two points. That is 16% faster despite being a longer path, because the steep initial drop buys speed early. The first integral y(1+y2)=Cy(1+y'^{2})=C is satisfied to 10810^{-8} along the parametric solution.

Problem 2 — the Beltrami identity, and energy arriving early

Suppose L(x,x˙)L(x,\dot x) has no explicit dependence on tt, i.e. L/t=0\partial L/\partial t=0. Show that along any solution of the Euler–Lagrange equation the quantity

E    x˙Lx˙L E \;\equiv\; \dot x\,\pdv{L}{\dot x} - L

is constant in time. Then evaluate it for L=12mx˙2V(x)L=\half m\dot x^{2}-V(x) and say what it is.

Solution

Differentiate EE along the path, using the product rule on the first term:

dEdt=x¨Lx˙+x˙ddt ⁣(Lx˙)dLdt. \dv{E}{t} = \ddot x\,\pdv{L}{\dot x} + \dot x\,\dv{}{t}\!\left(\pdv{L}{\dot x}\right) - \dv{L}{t}.

The last term is a total time derivative of LL along the path, which by the chain rule (Chapter 0.6) is

dLdt=Lxx˙+Lx˙x¨+Lt=0. \dv{L}{t} = \pdv{L}{x}\dot x + \pdv{L}{\dot x}\ddot x + \underbrace{\pdv{L}{t}}_{=\,0}.

Substitute. The x¨L/x˙\ddot x\,\partial L/\partial\dot x terms cancel between the two lines, and what is left factorises:

dEdt=x˙[ddt ⁣(Lx˙)Lx]=x˙0=0 \dv{E}{t} = \dot x\left[\dv{}{t}\!\left(\pdv{L}{\dot x}\right) - \pdv{L}{x}\right] = \dot x \cdot 0 = 0

by (1.2.22). So EE is conserved. \blacksquare

What it is. For L=12mx˙2V(x)L=\half m\dot x^{2}-V(x) we have L/x˙=mx˙\partial L/\partial\dot x=m\dot x, so

E=x˙(mx˙)(12mx˙2V)=12mx˙2+V=T+V. E = \dot x\,(m\dot x) - \left(\half m\dot x^{2}-V\right) = \half m\dot x^{2} + V = T+V.

The total energy. And notice what the hypothesis was: LL does not depend explicitly on tt, which is to say the laws are the same today as yesterday. Time-translation symmetry implies energy conservation, and we have just proved the first instance of it without naming it.

Two forward pointers. Chapter 1.4 proves the general theorem, Noether's, of which this is one case among many. It says that every continuous symmetry of the action yields a conserved quantity, with time translation giving energy, spatial translation giving momentum, and rotation giving angular momentum. Chapter 1.3 observes that the combination x˙L/x˙L\dot x\,\partial L/\partial\dot x - L is exactly the Legendre transform of LL with respect to x˙\dot x, and renames it the Hamiltonian. Both of those chapters are, in a real sense, this five-line calculation taken seriously.

Caution. EE is the conserved quantity, and it is not always the total energy. It equals T+VT+V only when the relation between generalised and Cartesian coordinates is time-independent (so that TT is a homogeneous quadratic in q˙\dot q). Problem 3 supplies a counterexample where EE is conserved and yet energy demonstrably is not.

Problem 3 — bead on a rotating hoop

A bead of mass mm slides without friction on a circular hoop of radius RR, which is held in a vertical plane and driven to rotate about its vertical diameter at a fixed angular velocity Ω\Omega by a motor. Let θ\theta be the bead's angular position measured from the bottom of the hoop. Find LL and the equation of motion, identify the effective potential, and find the equilibrium positions and their stability as a function of Ω\Omega.

Solution

Kinematics. The system has one degree of freedom: the hoop's orientation is dictated by the motor, not by the dynamics, so θ\theta is the only coordinate. The bead's velocity has two orthogonal pieces: motion along the hoop, of magnitude Rθ˙R\dot\theta, and motion carried by the rotation, on a circle of radius RsinθR\sin\theta about the vertical axis, of magnitude ΩRsinθ\Omega R\sin\theta. They are perpendicular, so

T=12m(R2θ˙2+R2Ω2sin2θ),V=mgRcosθ, T = \half m\Big(R^{2}\dot\theta^{2} + R^{2}\Omega^{2}\sin^{2}\theta\Big), \qquad V = -mgR\cos\theta, L=12mR2θ˙2+12mR2Ω2sin2θ+mgRcosθ. L = \half mR^{2}\dot\theta^{2} + \half mR^{2}\Omega^{2}\sin^{2}\theta + mgR\cos\theta.

Equation of motion. L/θ˙=mR2θ˙\partial L/\partial\dot\theta = mR^{2}\dot\theta and L/θ=mR2Ω2sinθcosθmgRsinθ\partial L/\partial\theta = mR^{2}\Omega^{2}\sin\theta\cos\theta - mgR\sin\theta, so

  θ¨=sinθ(Ω2cosθgR).   \boxed{\;\ddot\theta = \sin\theta\left(\Omega^{2}\cos\theta - \frac{g}{R}\right).\;}

Effective potential. The Lagrangian has the form 12mR2θ˙2Veff(θ)\half mR^{2}\dot\theta^{2}-V_{\text{eff}}(\theta) with

Veff(θ)=12mR2Ω2sin2θmgRcosθ. V_{\text{eff}}(\theta) = -\half mR^{2}\Omega^{2}\sin^{2}\theta - mgR\cos\theta.

The rotation has contributed a term to TT that acts, as far as the θ\theta dynamics is concerned, exactly like a potential. It is the centrifugal potential. This is where "centrifugal force" comes from without any appeal to fictitious forces. It is a piece of kinetic energy that looks like potential energy because the coordinate it belongs to was eliminated by the motor.

Equilibria. Veff(θ)=mRsinθ(gRΩ2cosθ)=0V_{\text{eff}}'(\theta) = mR\sin\theta\big(g - R\Omega^{2}\cos\theta\big) = 0, giving

θ=0,θ=π,and, if cosθ0=gRΩ21,θ=±θ0. \theta = 0, \qquad \theta = \pi, \qquad\text{and, if } \cos\theta_{0}=\frac{g}{R\Omega^{2}}\le1, \quad \theta=\pm\theta_{0}.

The last pair exists only when Ω2g/R\Omega^{2} \ge g/R. Stability from the second derivative, Veff(θ)=mR2Ω2cos2θ+mgRcosθV_{\text{eff}}''(\theta) = -mR^{2}\Omega^{2}\cos2\theta + mgR\cos\theta:

EquilibriumVeffV_{\text{eff}}''Stable?
θ=0\theta=0 (bottom)mR(gRΩ2)mR\big(g-R\Omega^{2}\big)only if Ω2<g/R\Omega^{2} \lt g/R
θ=π\theta=\pi (top)mR(g+RΩ2)-mR\big(g+R\Omega^{2}\big)never
θ=±θ0\theta=\pm\theta_{0}mR2Ω2sin2θ0mR^{2}\Omega^{2}\sin^{2}\theta_{0}always, where it exists

For the third row, use mgR=mR2Ω2cosθ0mgR = mR^{2}\Omega^{2}\cos\theta_{0} to write Veff=mR2Ω2(2cos2θ01)+mR2Ω2cos2θ0=mR2Ω2sin2θ0>0V''_{\text{eff}} = -mR^{2}\Omega^{2}(2\cos^{2}\theta_{0}-1)+mR^{2}\Omega^{2}\cos^{2}\theta_{0} = mR^{2}\Omega^{2}\sin^{2}\theta_{0} \gt 0.

What this is. As Ω\Omega is increased past the critical value Ωc=g/R\Omega_{c}=\sqrt{g/R}, the bottom of the hoop goes from stable to unstable and two new stable equilibria appear symmetrically on either side. The bead must choose one, breaking the left–right symmetry that the equations themselves possess. That is a pitchfork bifurcation, and it is the mechanical prototype of spontaneous symmetry breaking: in Chapter 6.6, VeffV_{\text{eff}} becomes the Higgs potential, Ω\Omega becomes a parameter of the theory, and θ0\theta_{0} becomes the vacuum expectation value that gives the WW and ZZ their masses. Same picture, same algebra, different letters.

The Problem 2 caution, made concrete. LL has no explicit tt, so E=θ˙L/θ˙L=12mR2θ˙2+Veff(θ)E=\dot\theta\,\partial L/\partial\dot\theta - L = \half mR^{2}\dot\theta^{2} + V_{\text{eff}}(\theta) is conserved. But the true energy T+V=12mR2θ˙2+12mR2Ω2sin2θmgRcosθT+V = \half mR^{2}\dot\theta^{2}+\half mR^{2}\Omega^{2}\sin^{2}\theta - mgR\cos\theta is not: the two differ by mR2Ω2sin2θmR^{2}\Omega^{2}\sin^{2}\theta, which changes as the bead moves. The motor is doing work on the system to hold Ω\Omega fixed. Conserved and "the energy" are different predicates.

Problem 4 — total derivatives, and the first gauge freedom in this book

Let F(q,t)F(q,t) be any smooth function and define a new Lagrangian

L  =  L  +  dF(q,t)dt  =  L  +  Fqq˙+Ft. L' \;=\; L \;+\; \dv{F(q,t)}{t} \;=\; L \;+\; \pdv{F}{q}\dot q + \pdv{F}{t}.

Show, in two independent ways, that LL' gives exactly the same equations of motion as LL: (a) by looking at what happens to SS, and (b) by applying the Euler–Lagrange operator to the added term directly. Then say why this matters.

Solution

(a) The action. The added term is a total time derivative, so by the fundamental theorem of calculus (Chapter 0.2) its integral is fixed by the endpoints alone:

S[q]=t1t2 ⁣(L+dFdt)dt=S[q]+F(q(t2),t2)F(q(t1),t1). S'[q] = \int_{t_{1}}^{t_{2}}\!\left(L + \dv{F}{t}\right)\dd t = S[q] + F\big(q(t_{2}),t_{2}\big) - F\big(q(t_{1}),t_{1}\big).

Every path we compare has the same q(t1)q(t_{1}) and q(t2)q(t_{2}), which was the admissibility condition (1.2.4). So the two extra terms take the same value on every admissible path, meaning that SS' and SS differ by a constant on the entire space of competitors. Adding a constant to a function does not move its stationary points. Hence δS=δS\delta S'=\delta S and the Euler–Lagrange equations are identical. \blacksquare

(b) Directly. Write GdFdt=Fqq˙+FtG \equiv \dv{F}{t} = \pdv{F}{q}\dot q + \pdv{F}{t}, and note that GG is linear in q˙\dot q with coefficient F/q\partial F/\partial q, so

Gq˙=FqddtGq˙=ddt ⁣(Fq)=2Fq2q˙+2Fqt. \pdv{G}{\dot q} = \pdv{F}{q} \qquad\Longrightarrow\qquad \dv{}{t}\pdv{G}{\dot q} = \dv{}{t}\!\left(\pdv{F}{q}\right) = \frac{\partial^{2}F}{\partial q^{2}}\dot q + \frac{\partial^{2}F}{\partial q\,\partial t}.

Meanwhile, differentiating GG with respect to qq at fixed q˙\dot q,

Gq=2Fq2q˙+2Ftq. \pdv{G}{q} = \frac{\partial^{2}F}{\partial q^{2}}\dot q + \frac{\partial^{2}F}{\partial t\,\partial q}.

These are equal by the symmetry of mixed partials (Chapter 0.6), so

ddtGq˙Gq=0. \dv{}{t}\pdv{G}{\dot q} - \pdv{G}{q} = 0.

The Euler–Lagrange operator annihilates any total time derivative, identically, for every path, and not only on shell. \blacksquare The two proofs are the same fact seen from opposite ends. Proof (a) says the added term is invisible to the variation. Proof (b) says it is in the kernel of the operator.

Why it matters. The map from Lagrangians to equations of motion is many-to-one. An entire infinite-dimensional family {L+dFdt}\{L + \dv{F}{t}\}, one member for each function F(q,t)F(q,t), describes identical physics. That redundancy has a name: gauge freedom, and this is its first appearance in the book.

It is not an abstraction. ⚑ Quoting forward to Chapter 1.3 §9, where it is used to derive the Lorentz force, the Lagrangian of a particle of charge ee in an electromagnetic field is L=12mx˙2eφ+eAx˙L = \half m\dot{\vv x}^{2} - e\varphi + e\,\vv A\cdot\dot{\vv x}, where φ\varphi and A\vv A are the scalar and vector potentials. The fields are unchanged, and so is all measurable physics, under the substitution

A    A+χ,φ    φχt \vv A \;\to\; \vv A + \nabla\chi, \qquad \varphi \;\to\; \varphi - \pdv{\chi}{t}

for any function χ(x,t)\chi(\vv x,t). Watch what that does to LL:

L    L+e(χt+χx˙)=L+edχdt. L \;\to\; L + e\left(\pdv{\chi}{t} + \nabla\chi\cdot\dot{\vv x}\right) = L + e\,\dv{\chi}{t}.

Exactly a total time derivative. The gauge invariance of electromagnetism is this problem. Chapter 6.3 makes the same observation for a field χ\chi that varies independently at each point of spacetime and finds that demanding it generates the electromagnetic field, the strong force and the weak force. Chapter 6.4 is what happens when the gauge parameter is a matrix instead of a number. All of it begins with the observation that dFdt\dv{F}{t} integrates to a boundary term.

The brick you just laid

You can now differentiate with respect to a function. The definition (1.2.9) is Chapter 0.1's, with the displacement hh promoted to an entire function η\eta and the derivative promoted to a linear functional. Nothing else about the idea changed, and that is the dividend for having refused to define the derivative as a slope.

From it, in four moves, comes the Euler–Lagrange equation (1.2.22), one per degree of freedom. The four moves were to differentiate under the integral, linearise, integrate by parts, and apply the fundamental lemma, which you proved for yourself with a bump function.

You saw it reproduce Newton exactly, with L/x˙\partial L/\partial\dot x coming out as the momentum and the whole equation reading p˙=F\dot p = F. You saw it dispose of constraints by absorbing them into coordinates, and then give them back, as multipliers, when you want the constraint force.

You proved it keeps its form under any change of coordinates, which F=maF=ma does not, and that is the property that will let physics survive the loss of Cartesian coordinates in Chapter 3. And you saw, honestly, that L=TVL=T-V is a choice justified by results, that "least" is the wrong word, and that the real reason lives in Chapter 5.6.

Where this gets spent. Chapter 1.3 Legendre-transforms this LL into a Hamiltonian and discovers phase space. Chapter 1.4 acts with symmetries on this SS and gets Noether's theorem, for which Problem 2 and the sphere grind box were both previews. Chapters 2.5 and 2.6 write the actions of a relativistic particle and of electromagnetism. Chapter 3.3 replaces the ds\int\dd s of worked example 2 with ds\int\dd s in curved spacetime and calls the answer gravity, and Chapter 3.6 varies the Einstein–Hilbert action and gets the field equations. Chapter 5.2 runs §8's field version in earnest, Chapter 5.6 explains why any of it is true, and Chapters 6.4 and 7.2 write the last two lines of §8.1's table. From here to the end of the book, "solve this theory" will mean "write down its action and vary it".