This child page of the parent topic does one thing: it drills the Euler–Lagrange machine (from the parent) against every kind of case it can meet. We start by listing the cases, then work an example for each cell.
Before line one, three reminders in plain words (nothing here is assumed — it is all in the parent):
Definition The three characters
y ( x ) = an unknown curve/shape . Not a number — a whole wire.
L ( x , y , y ′ ) = the integrand ("cost per tiny step"). y ′ means d x d y = the slope of the wire.
J [ y ] = ∫ a b L d x = a functional : add up all the little costs → one number.
Every problem in this topic falls into one of these shapes . The last column names the example that covers it.
#
Case class
What is special about it
Covered by
C1
L has no y (∂ L / ∂ y = 0 )
E–L collapses to "L y ′ = const"
Ex 1
C2
L has no x explicitly
Use Beltrami (avoid y ′′ )
Ex 2
C3
L has no y ′ (∂ L / ∂ y ′ = 0 )
E–L becomes algebraic , no ODE
Ex 3
C4
Full L ( x , y , y ′ ) — all slots present
Total-derivative chain rule matters
Ex 4
C5
Degenerate / limiting input (ω → 0 , c → ∞ , straight-line limit)
Check the machine gives the sane limit
Ex 5
C6
Free endpoint — boundary term survives
Natural boundary condition appears
Ex 6
C7
Constraint (fixed area/length)
Lagrange multiplier enters L
Ex 7
C8
Word problem (real-world: fastest slide)
Model → identify L → solve
Ex 8
C9
Exam twist (sign trap / higher derivative)
Where students lose marks
Ex 9
Read each example's tag [Cn] to see which cell it fills.
Worked example Shortest path, done carefully
Minimise J [ y ] = ∫ 0 1 1 + y ′2 d x with y ( 0 ) = 0 , y ( 1 ) = 2 . Here L = 1 + y ′2 .
Forecast: guess the answer before reading. Shortest wire between two points → what shape? (Say it out loud.)
Check which cell. L contains y ′ but no bare y . Why this step? If ∂ L / ∂ y = 0 , E–L loses its first term and becomes easy.
∂ y ′ ∂ L = 1 + y ′2 y ′ . Why? Differentiate 1 + y ′2 treating y ′ as the variable (chain rule: 2 1 ( 1 + y ′2 ) − 1/2 ⋅ 2 y ′ ).
E–L: 0 − d x d 1 + y ′2 y ′ = 0 ⇒ 1 + y ′2 y ′ = c . Why? A derivative equal to zero means the inside is constant .
Solve for y ′ : square → y ′2 = c 2 ( 1 + y ′2 ) ⇒ y ′2 ( 1 − c 2 ) = c 2 ⇒ y ′ = 1 − c 2 c ≡ m (constant). Why? Constant slope.
Integrate: y = m x + b . Fit endpoints: b = 0 , m = 2 . So y = 2 x .
Verify: the straight segment from ( 0 , 0 ) to ( 1 , 2 ) has length 1 2 + 2 2 = 5 ≈ 2.236 . Any bend adds length. ✓ Matches the forecast — a straight line.
Worked example Minimal surface of revolution (catenary)
Minimise J [ y ] = ∫ a b y 1 + y ′2 d x , y > 0 . So L = y 1 + y ′2 — a soap-film area.
Forecast: hanging-chain shape or parabola? Guess.
Spot the cell: no explicit x in L . Why this step? Then Beltrami L − y ′ L y ′ = const dodges the ugly y ′′ .
L y ′ = 1 + y ′2 y y ′ . Why? Only 1 + y ′2 depends on y ′ ; product with the constant-in-y ′ factor y .
Beltrami: y 1 + y ′2 − y ′ ⋅ 1 + y ′2 y y ′ = 1 + y ′2 y = c . Why? Combine over common denominator; the numerator collapses to y .
Rearrange: y 2 = c 2 ( 1 + y ′2 ) ⇒ y ′ = c 2 y 2 − 1 . Why? Isolate y ′ to get a separable ODE (see Ordinary differential equations ).
Separate & integrate: ∫ y 2 / c 2 − 1 d y = ∫ d x gives y = c cosh ( c x − x 0 ) . Why? d u d cosh u = sinh u and cosh 2 − sinh 2 = 1 make it fit.
Verify: put y = c cosh c x (take x 0 = 0 ). Then y ′ = sinh c x and 1 + y ′2 y = 1 + sinh 2 c cosh = cosh c cosh = c . Constant ✓ — Beltrami satisfied. This is the geometry behind soap films.
Worked example When there is nothing to integrate
Minimise J [ y ] = ∫ 0 1 ( y 2 − 2 x y ) d x . So L = y 2 − 2 x y — no y ′ at all .
Forecast: will the answer be a differential equation, or just plain algebra? Guess.
Cell: ∂ L / ∂ y ′ = 0 . Why this step? Then the whole d x d L y ′ term is zero, so E–L is NOT an ODE — it's algebra.
∂ y ∂ L = 2 y − 2 x . Why? Straight partial derivative in the y -slot.
E–L: 2 y − 2 x − 0 = 0 ⇒ y = x . Why? Solve the algebraic condition pointwise.
Verify: at each x we minimised the pointwise integrand y 2 − 2 x y ; its minimum over y is at 2 y − 2 x = 0 , i.e. y = x , value − x 2 . The functional value is ∫ 0 1 ( x 2 − 2 x ⋅ x ) d x = ∫ 0 1 ( − x 2 ) d x = − 3 1 ≈ − 0.333 . ✓ No slope coupling → no ODE, exactly as flagged.
Worked example All three slots present
J [ y ] = ∫ 0 1 ( y ′2 + 12 x y ) d x , y ( 0 ) = 0 , y ( 1 ) = 1 . L = y ′2 + 12 x y has x , y and y ′ .
Forecast: degree of the resulting polynomial y ( x ) ? Guess.
Cell: every slot used — the total x -derivative must include x moving. Why this step? This is where beginners wrongly use a partial derivative.
∂ y ∂ L = 12 x , ∂ y ′ ∂ L = 2 y ′ . Why? Partial derivatives, one slot at a time.
d x d ( 2 y ′ ) = 2 y ′′ . Why? Here L y ′ = 2 y ′ has no explicit x or y , so the total derivative is just 2 y ′′ (the general chain rule L y ′ x + L y ′ y y ′ + L y ′ y ′ y ′′ reduces to the last term).
E–L: 12 x − 2 y ′′ = 0 ⇒ y ′′ = 6 x . Why? Set the E–L expression to zero.
Integrate twice: y ′ = 3 x 2 + A , y = x 3 + A x + B . Endpoints: B = 0 ; 1 = 1 + A ⇒ A = 0 . So y = x 3 .
Verify: y = x 3 ⇒ y ′′ = 6 x ✓ and y ( 0 ) = 0 , y ( 1 ) = 1 ✓. Cubic, as the forecast should have been.
Worked example The oscillator energy as
ω → 0
From the parent: J [ y ] = ∫ 0 1 ( 2 1 y ′2 + 2 1 ω 2 y 2 ) d x gives E–L y ′′ = ω 2 y . Now push the limit ω → 0 .
Forecast: what shape should a taut string with no stiffness prefer? Guess.
Cell: limiting/degenerate parameter. Why this step? A good machine must give sane answers at extreme inputs.
General solution of y ′′ = ω 2 y (with ω > 0 ): y = P cosh ( ω x ) + Q sinh ( ω x ) . Why? Positive coefficient → hyperbolic (growing/decaying) modes.
Set ω → 0 : cosh ( ω x ) → 1 , ω sinh ( ω x ) → x . So y → (constant) + (constant)⋅ x = straight line . Why? The equation degenerates to y ′′ = 0 , whose solutions are lines.
Sanity with Ex 1: no restoring term (ω = 0 ) leaves just 2 1 y ′2 — a "shortest-slope" energy → straight line. ✓
Verify (numeric): take endpoints y ( 0 ) = 1 , y ( 1 ) = 3 . Limit answer y = 1 + 2 x ⇒ y ( 0.5 ) = 2 . Now the finite case ω = 0.001 with the same endpoints gives y ( 0.5 ) ≈ 2.0000 to 4 dp — matches the limit. ✓
Worked example One end is loose
Minimise J [ y ] = ∫ 0 1 ( 2 1 y ′2 − y ) d x with y ( 0 ) = 0 but y ( 1 ) free (not prescribed).
Forecast: with the right end free, what slope will nature choose there? Guess.
Cell: free endpoint. Why this step? The IBP boundary term [ L y ′ η ] 0 1 no longer dies at x = 1 , because η ( 1 ) is not forced to zero.
Interior E–L: L y = − 1 , L y ′ = y ′ , so − 1 − y ′′ = 0 ⇒ y ′′ = − 1 . Why? Same E–L inside the interval.
Boundary term at the free end must vanish for all η ( 1 ) : L y ′ x = 1 = 0 ⇒ y ′ ( 1 ) = 0 . Why? This is the natural boundary condition — the machine hands you the missing endpoint data.
Solve y ′′ = − 1 : y = − 2 1 x 2 + A x + B . Use y ( 0 ) = 0 ⇒ B = 0 ; y ′ ( 1 ) = − 1 + A = 0 ⇒ A = 1 . So y = − 2 1 x 2 + x .
Verify: y ′ = − x + 1 , so y ′ ( 1 ) = 0 ✓ (flat slope at the loose end, as forecast) and y ( 0 ) = 0 ✓. See Functional analysis for why free ends generate conditions instead of requiring them.
Worked example Longest area under fixed length (isoperimetric)
Among curves y ( x ) on [ 0 , 1 ] with y ( 0 ) = y ( 1 ) = 0 and fixed length ∫ 0 1 1 + y ′2 d x = ℓ , maximise the enclosed area ∫ 0 1 y d x .
Forecast: circle-arc, parabola, or catenary? Guess.
Cell: constrained problem. Why this step? Attach the constraint with a multiplier λ (see Constrained optimization & Lagrange multipliers ): form L = y + λ 1 + y ′2 .
L y = 1 , L y ′ = 1 + y ′2 λ y ′ . Why? Ordinary partials of the augmented integrand.
E–L: 1 − d x d 1 + y ′2 λ y ′ = 0 ⇒ 1 + y ′2 λ y ′ = x − x 0 . Why? Integrate the E–L once (the 1 integrates to x ).
Solve for y ′ and integrate → ( x − x 0 ) 2 + ( y − y 0 ) 2 = λ 2 : a circular arc . Why? The relation says the tangent direction rotates uniformly with x -displacement — the signature of a circle.
Verify: on a circle of radius R = λ , 1 + y ′2 y ′ = sin θ where θ is the tangent angle; and R sin θ = horizontal offset x − x 0 ✓. The classical isoperimetric answer is the circle. Forecast: circle-arc.
Worked example Brachistochrone, framed from words
A bead slides frictionlessly from ( 0 , 0 ) to ( x 1 , y 1 ) under gravity g , starting at rest. Find the wire shape giving the shortest travel time . (Full context: Brachistochrone problem .)
Forecast: straight ramp, or a curve that dives steeply first? Guess.
Model. Speed from energy: 2 1 v 2 = g y ⇒ v = 2 g y (measure y downward). Time = ∫ v d s with d s = 1 + y ′2 d x . Why this step? Turn "time" into a functional so E–L applies.
So J [ y ] = ∫ 0 x 1 2 g y 1 + y ′2 d x , giving L = 2 g y 1 + y ′2 . No explicit x → Beltrami. Why? Same trick as Ex 2.
Beltrami: L − y ′ L y ′ = 2 g y 1 + y ′2 1 = const . Why? Algebra identical in form to Ex 2's collapse.
Rearrange: y ( 1 + y ′2 ) = const = k . Why? Square and clear denominators.
This ODE is solved by a cycloid : x = 2 k ( ϕ − sin ϕ ) , y = 2 k ( 1 − cos ϕ ) . Why? Substituting y = 2 k ( 1 − cos ϕ ) satisfies y ( 1 + y ′2 ) = k .
Verify: at ϕ = π , y = 2 k ( 1 − ( − 1 )) = k ; then y ′ = 0 (bottom of the arc) so y ( 1 + y ′2 ) = k ⋅ 1 = k ✓. The bead dives first — forecast confirmed. This links to Lagrangian mechanics where the same L -machinery runs mechanics.
Worked example Second-derivative functional (Euler–Poisson)
Minimise J [ y ] = ∫ 0 1 ( 2 1 y ′′2 ) d x — the "bending energy" of a beam — with y ( 0 ) = 0 , y ′ ( 0 ) = 0 , y ( 1 ) = 1 , y ′ ( 1 ) = 0 . Note L depends on y ′′ !
Forecast: plain E–L is not enough here. What order will the governing equation be? Guess.
Cell / twist: L has y ′′ , so the ordinary E–L is incomplete. Why this step? Repeating the IBP twice adds a + d x 2 d 2 ∂ y ′′ ∂ L term (Euler–Poisson equation): ∂ y ∂ L − d x d ∂ y ′ ∂ L + d x 2 d 2 ∂ y ′′ ∂ L = 0 .
Here L y = 0 , L y ′ = 0 , L y ′′ = y ′′ . So the equation is d x 2 d 2 ( y ′′ ) = 0 ⇒ y ( 4 ) = 0 . Why? Only the y ′′ slot is nonzero; differentiate it twice.
Sign trap: the sign is plus on the y ′′ term (two IBPs = two minus signs = a plus). Dropping a sign here is the classic exam error. Why? Each IBP flips the sign; even number of flips → positive.
Solve y ( 4 ) = 0 : cubic y = a x 3 + b x 2 + c x + d . Apply the four conditions:
y ( 0 ) = 0 ⇒ d = 0 ; y ′ ( 0 ) = 0 ⇒ c = 0 ; y ( 1 ) = a + b = 1 ; y ′ ( 1 ) = 3 a + 2 b = 0 .
Solve: b = 3 , a = − 2 . So y = − 2 x 3 + 3 x 2 .
Verify: y ( 0 ) = 0 , y ′ ( 0 ) = 0 ✓. y ( 1 ) = − 2 + 3 = 1 ✓. y ′ ( x ) = − 6 x 2 + 6 x ⇒ y ′ ( 1 ) = 0 ✓. And y ( 4 ) = 0 ✓ (it's a cubic). Fourth-order equation, as forecast. This is the smooth-blend curve engineers call a Hermite cubic .
Recall Did we hit every cell?
Which example proves "no y ⇒ L y ′ = const"? ::: Ex 1 (straight line)
Which uses Beltrami because L lacks explicit x ? ::: Ex 2 (catenary) and Ex 8 (cycloid)
Which turns E–L into pure algebra? ::: Ex 3 (y = x )
Which needs the full total-derivative chain? ::: Ex 4 (y = x 3 )
Which tests a degenerate limit ω → 0 ? ::: Ex 5 (line)
Which produces a natural boundary condition? ::: Ex 6 (y ′ ( 1 ) = 0 )
Which uses a Lagrange multiplier? ::: Ex 7 (circle arc)
Which is a real-world word problem? ::: Ex 8 (brachistochrone)
Which springs the sign trap / higher derivative? ::: Ex 9 (Euler–Poisson, y ( 4 ) = 0 )
Euler-Poisson fourth order
natural boundary condition