4.10.13 · D1Advanced Topics (Elite Level)

Foundations — Euler-Lagrange equation — derivation

2,088 words9 min readBack to topic

This page assumes you have seen nothing. We build every letter, slash, and squiggle the parent Euler–Lagrange derivation uses, in an order where each piece rests on the one before it. Skip nothing — the parent moves fast because it trusts that you have all of this in your hands.


0. The picture that ties everything together

Figure — Euler-Lagrange equation — derivation

Look at the figure. Two fixed dots — a start point and an end point. Between them you could draw infinitely many curves. Each curve gets a score (a single number). The calculus of variations is the machine that finds the one curve with the best score. Keep this picture in mind: every symbol that follows is a label on some part of it.


1. A function — a curve, not a number

  • Plain words: "tell me where you are left-to-right (), I'll tell you how high you are ()."
  • Picture: any single wiggly line in the figure above.
  • Why the topic needs it: the unknown we are solving for is a whole curve , not a single number. This is the big leap from school calculus.

The letters and mark the fixed endpoints on the -axis. The two heights we insist on are written and — "the curve must start here and finish there".


2. The slope — how steep the curve is

Figure — Euler-Lagrange equation — derivation
  • Plain words: stand on the curve, take an infinitesimally small step to the right of size ; you rise by . The ratio is the steepness.
  • Picture: the little right triangle hugging the curve in the figure — horizontal leg , vertical leg . Its slant is the tangent line.
  • Why the topic needs it: arc length, travel time, and energy all depend on how steep the curve is, so the score of a curve depends on as well as . That is why the Lagrangian carries a slot.
Recall Why write

instead of ? They mean the same thing. is just shorthand — one prime = "differentiated once with respect to its own variable". (two primes) is the slope-of-the-slope, i.e. how the steepness itself changes.


3. The integral — adding up a running total

Figure — Euler-Lagrange equation — derivation
  • Plain words: "sum of height × width over every sliver from to ."
  • Picture: the sum of the thin blue rectangles under a curve in the figure; as they get thinner the staircase becomes the smooth shaded region.
  • Why the topic needs it: the score of a curve is a running total accumulated along it — total length, total time, total energy. Accumulation is exactly what an integral does. The symbol is a stretched "S" for "Sum".

The pieces:

  • — the summation sign.
  • — where the sum starts and stops (the limits).
  • — the width of each infinitesimal strip.
  • The thing between and — the integrand, the height being summed.

4. The Lagrangian — the score-per-step rule

  • Plain words: at any point on the curve, says "the local price of being here, this high, tilted this much".
  • Picture: imagine a colour painted on each tiny strip of the curve — dark = expensive, light = cheap. is that colour rule; the integral sums the colours up.
  • Why the topic needs it: it is the single object you choose to encode your problem. Shortest path? . Fastest slide? . Change , change the question.

5. Two kinds of derivative: vs

  • Picture: partial = turning one dial on a mixing desk with the others taped down. Total = pushing the master fader; every channel that is wired to it moves too.
  • Why the topic needs it: the Euler–Lagrange equation literally contains BOTH — (freeze) minus (chain-react). Confusing them is the #1 error, so we separate them here.

The curly ("partial d") signals "one slot only". The straight signals "let the chain rule run".


6. The functional — a machine that eats a curve, spits a number

  • Plain words: "feed me a curve, I'll integrate its score and hand you the total."
  • Picture: the whole figure at the top — each candidate curve drops into the box and out comes a scoreboard number.
  • Why the topic needs it: is the quantity we minimize. Ordinary calculus minimizes over numbers; variations minimize over curves. The square brackets are the visual reminder of that jump.

7. The variation: , , and the perturbed curve

Figure — Euler-Lagrange equation — derivation
  • Plain words: take the true curve , add times some bump . Turn and the bump vanishes — you are back on the true curve.
  • Picture: the amber true curve plus dashed nearby curves in the figure, each one for a different .
  • Why the topic needs it: to test "is this curve optimal?", you must be able to nudge the whole curve and check the score doesn't drop. and are the nudge.

Because every competitor must still hit the fixed endpoints, the wiggle must die at the ends: In the figure the dashed curves all pinch back to the two dots — that pinching is this condition. It is exactly what kills the boundary term later in the derivation.


8. Stationary — "flat to first order"

  • Plain words: you're standing where the ground is momentarily level; step a hair in any direction and, to first approximation, you neither rise nor fall.
  • Picture: the flat bottom of a valley, or the flat top of a hill.
  • Why the topic needs it: we do NOT demand a true minimum — only that is stationary. That is the "" in , where is the ordinary function that the score becomes once we fix a wiggle.

9. Integration by parts — trading a derivative between factors

  • Plain words: if one factor carries the derivative, you can move the derivative onto the other factor, at the cost of a boundary term .
  • Why the topic needs it: in the derivation the wiggle appears as (differentiated). We need a bare so we can factor it out. Integration by parts shifts the derivative off and onto , and the leftover boundary term dies because . See Integration by Parts for the full drill.

Prerequisite map

function y of x

slope y prime

integral sum over strips

Lagrangian L score rule

partial derivative freeze slots

functional J eats a curve

Euler Lagrange equation

variation eta and epsilon

stationary flat to first order

integration by parts

Read it top-down: raw ideas (function, slope, integral) feed the Lagrangian and the functional; the wiggle plus stationarity plus integration by parts assemble into the Euler–Lagrange equation. Everything routes into the parent derivation, which then powers Lagrangian Mechanics, the Brachistochrone Problem, Geodesics, the Beltrami Identity, and Noether's Theorem — all built on the Principle of Least Action and the Calculus of Variations.


Equipment checklist

Cover the right side and answer aloud before revealing.

What does represent — a number or a whole curve?
A whole curve: a height for every horizontal position .
What is in plain words, and its picture?
The slope/steepness of the curve; the slant of the little right triangle hugging the tangent.
What does compute?
A running total: sum of height×width over every infinitesimal strip from to (the shaded area).
What are the three independent slots of ?
Position , height , and slope — treated as independent knobs inside .
Difference between and ?
Partial freezes the other slots and wiggles one; total lets everything depending on (including and ) respond via the chain rule.
Why square brackets in ?
To signal the input is an entire function (a curve), not a single number.
What do and do, and why must ?
is the wiggle shape, its size dial; must vanish at the ends so every competitor still hits the fixed endpoints.
What does "stationary at " mean?
The score's first-order change under the wiggle is zero — flat to first order, like a valley floor.
Why is integration by parts the key move?
It shifts the derivative off onto , giving a bare to factor out, while its boundary term vanishes by the endpoint condition.