This page is a catalogue of cases . The parent derivation gave you the machine:
∂ y ∂ L − d x d ( ∂ y ′ ∂ L ) = 0.
Here we feed it every kind of Lagrangian you can meet, so you never hit an input we did not show. First a map, then the worked cases.
η (recall from the parent)
Every competitor curve is written Y ( x ) = y ( x ) + ε η ( x ) , where y is the true extremal, ε is a small dial, and η ( x ) is an arbitrary smooth "wiggle shape" — the ==variation of y ==. Because all competitors share the fixed endpoints, η ( a ) = η ( b ) = 0 unless an end is free . Watch η in Ex 6: at a free end it is not forced to zero, and that is exactly what produces a new boundary condition.
Every problem in the Calculus of Variations is decided by which variables L actually depends on . That single fact tells you which shortcut applies. The matrix below lists every case class.
Cell
L depends on…
What simplifies
Tool of choice
Example
A
y ′ only (L = L ( y ′ ) )
∂ L / ∂ y = 0
∂ L / ∂ y ′ = const
Ex 1
B
y , y ′ (no x )
∂ L / ∂ x = 0
Beltrami Identity
Ex 2
C
x , y ′ (no y )
∂ L / ∂ y = 0
∂ L / ∂ y ′ = const
Ex 3
D
full x , y , y ′
nothing skips
full E–L ODE
Ex 4
E
degenerate L linear in y ′ , OR no y ′ at all
E–L collapses
check consistency
Ex 5
F
free endpoint (one end loose in y or in x )
boundary term survives
natural BC / transversality
Ex 6
G
word problem (real world)
model then apply B
Brachistochrone Problem -style
Ex 7
H
exam twist (higher y ′′ / symmetry)
generalized E–L / Noether's Theorem
modified rule
Ex 8
Intuition How to read the matrix
Before touching algebra, ask: "Does L contain a bare x ? a bare y ? a y ′ at all?" The absences are gifts — each missing variable hands you a conserved quantity or collapses the equation entirely. Cells A–D are the honest combinations; E–H are the traps and the real world.
Common mistake Naming the constants — read before Ex 1
Each conserved quantity gets its own letter so you never confuse them:
c 1 = the constant ∂ L / ∂ y ′ in Ex 1; C B = the Beltrami constant in Ex 2; c 3 = the constant ∂ L / ∂ y ′ in Ex 3; k = the Brachistochrone first integral in Ex 7. Different examples, different letters, on purpose.
Worked example Shortest path, re-derived cleanly
Extremize J [ y ] = ∫ 0 1 1 + y ′2 d x with y ( 0 ) = 0 , y ( 1 ) = 2 .
Forecast: guess the answer's shape before reading on. (A straight line? A curve?)
Steps.
Note ∂ L / ∂ y = 0 because y never appears. Why this step? Kills half the E–L equation instantly — Cell A's gift.
E–L becomes d x d ( ∂ y ′ ∂ L ) = 0 , so ∂ y ′ ∂ L = c 1 (constant). Why? A quantity whose x -derivative is 0 cannot change with x .
Compute ∂ y ′ ∂ L = 1 + y ′2 y ′ = c 1 . Why? Chain rule on 1 + y ′2 .
Solve: square both sides, y ′2 = c 1 2 ( 1 + y ′2 ) , so y ′2 ( 1 − c 1 2 ) = c 1 2 , giving y ′ = ± 1 − c 1 2 c 1 =: m a constant. Why the ± ? Squaring lost the sign; both branches are candidate slopes. The endpoints decide: we need y to rise from 0 to 2 , so we take the positive branch. (Had the target been y ( 1 ) = − 2 , we'd take the negative one.)
Integrate: y = m x + b . Endpoints y ( 0 ) = 0 ⇒ b = 0 ; y ( 1 ) = 2 ⇒ m = 2 > 0 (consistent with the positive branch). So y = 2 x .
Verify: slope 2 everywhere, ∂ y ′ ∂ L = 5 2 ≈ 0.894 — genuinely constant along the path. Straight line ✓ (see Geodesics for the curved-space version).
Intuition What figure s01 shows
Figure s01 draws the yellow extremal y = 2 x against a red competitor y + ε η built from a wiggle η ( x ) = sin ( π x ) that vanishes at both ends (blue dots). Notice the competitor threads the same two fixed endpoints — every legal challenger must — yet is longer. That is the geometric content of "the straight line minimises length".
Worked example Minimal surface of revolution (soap film)
Spin a curve y ( x ) about the x -axis; its surface area ∝ ∫ y 1 + y ′2 d x . So L = y 1 + y ′2 — contains y and y ′ , no bare x ⇒ Cell B.
Forecast: the answer is a famous curve. Guess which "hanging" shape.
Steps.
Because ∂ L / ∂ x = 0 , use Beltrami Identity : L − y ′ ∂ y ′ ∂ L = C B . Why? Skips one whole d x d — the parent note proved this shortcut.
∂ y ′ ∂ L = 1 + y ′2 y y ′ . Why? Differentiate y 1 + y ′2 treating y as a constant w.r.t. y ′ .
Substitute: y 1 + y ′2 − 1 + y ′2 y y ′2 = 1 + y ′2 y = C B . Why? Common denominator: ( 1 + y ′2 ) − y ′2 = 1 .
Rearrange to isolate the slope: y = C B 1 + y ′2 ⇒ y ′2 = C B 2 y 2 − 1 ⇒ y ′ = ± C B 1 y 2 − C B 2 . Why the ± ? Square-root of y ′2 ; the sign is fixed later by which way the curve climbs. Take the + branch on the rising half.
Separate variables (this is the WHY of the ODE solve): the equation is now y 2 − C B 2 d y = C B d x . Why separate? y ′ = d y / d x depends only on y , so we can collect all y 's on one side and integrate each side independently.
Integrate both sides: ∫ y 2 − C B 2 d y = arccosh ( C B y ) and ∫ C B d x = C B x − x 0 (with x 0 the integration constant). Why arccosh? Because d u d arccosh u = u 2 − 1 1 — exactly our integrand after u = y / C B .
Equate and invert: arccosh ( C B y ) = C B x − x 0 ⇒ y = C B cosh ( C B x − x 0 ) — a catenary . Why cosh ? It is the inverse of arccosh ; applying cosh to both sides undoes the arc-function.
Verify (numeric): take C B = 1 , x 0 = 0 . Then y = cosh x , y ′ = sinh x , and y 2 = cosh 2 x = 1 + sinh 2 x = 1 + y ′2 . Hence 1 + y ′2 y 2 = 1 , i.e. 1 + y ′2 y = 1 = C B ✓ for every x .
Worked example Weighted straight-ish path
Extremize J = ∫ 1 2 x 1 + y ′2 d x . Here L = x 1 + y ′2 : contains x and y ′ , no y ⇒ Cell C.
Forecast: will the answer still be a straight line, or does the x -weight bend it?
Steps.
∂ L / ∂ y = 0 , so E–L gives ∂ y ′ ∂ L = c 3 (constant). Why? Cell C's gift — same conserved-quantity logic as Cell A, even though x appears.
∂ y ′ ∂ L = 1 + y ′2 x y ′ = c 3 . Why? x rides along as a constant during the y ′ -derivative.
Solve for y ′ : x 2 y ′2 = c 3 2 ( 1 + y ′2 ) ⇒ y ′2 ( x 2 − c 3 2 ) = c 3 2 ⇒ y ′ = ± x 2 − c 3 2 c 3 . Why the ± , and note the domain: the square-root demands x 2 > c 3 2 , i.e. x > ∣ c 3 ∣ (for x > 0 ) — the solution is only valid on x ≥ c 3 . We take the + branch for an increasing curve.
Integrate: y = c 3 arccosh ( c 3 x ) + b on the valid range x ≥ c 3 . Why? ∫ x 2 − c 3 2 d x = arccosh ( x / c 3 ) , whose domain x / c 3 ≥ 1 is exactly the restriction found in step 3.
Verify (numeric): pick c 3 = 1 , b = 0 , so y = arccosh ( x ) (valid for x ≥ 1 ; our interval [ 1 , 2 ] sits inside it), y ′ = x 2 − 1 1 . At x = 2 : 1 + y ′2 x y ′ = 1 + 1/3 2/ 3 = 2/ 3 2/ 3 = 1 = c 3 ✓.
Worked example Nothing skips
Extremize J = ∫ 0 1 ( y ′2 + y 2 + 2 x y ) d x . L = y ′2 + y 2 + 2 x y contains x , y , y ′ ⇒ Cell D, full E–L.
Forecast: the extremal solves a 2nd-order linear ODE — guess if it oscillates or grows.
Steps.
∂ y ∂ L = 2 y + 2 x . Why? Differentiate y 2 + 2 x y in y , with x frozen.
∂ y ′ ∂ L = 2 y ′ , so d x d ∂ y ′ ∂ L = 2 y ′′ . Why? Then take a total x -derivative — here 2 y ′ → 2 y ′′ .
E–L: 2 y + 2 x − 2 y ′′ = 0 ⇒ y ′′ − y = x . Why? Plug both pieces into ∂ y L − d x d ∂ y ′ L = 0 .
Solve: homogeneous y h = A e x + B e − x ; particular y p = − x (since y p ′′ − y p = 0 − ( − x ) = x ). So y = A e x + B e − x − x . Why? Linear ODE ⇒ complementary + particular. It grows (exponentials), doesn't oscillate.
Verify: substitute y = − x (particular part): y ′′ − y = 0 − ( − x ) = x ✓. Add any A e x + B e − x : each satisfies y ′′ − y = 0 , so the sum still gives x ✓.
L linear in y ′ (E–L collapses to an identity)
Extremize J = ∫ a b y ′ g ( y ) d x with g smooth — y ′ appears only linearly .
Forecast: normal ODE, or something strange?
Steps.
∂ y ∂ L = y ′ g ′ ( y ) . Why? y ′ is constant w.r.t. y .
∂ y ′ ∂ L = g ( y ) , so d x d ∂ y ′ ∂ L = g ′ ( y ) y ′ . Why? Chain rule — g ( y ) changes through y ( x ) .
E–L: y ′ g ′ ( y ) − g ′ ( y ) y ′ = 0 , i.e. 0 = 0 identically . Why? Terms cancel — no information about y .
Interpretation: L = y ′ g ( y ) = d x d G ( y ) with G ′ = g , so J = G ( y ( b )) − G ( y ( a )) depends only on endpoints . Every curve is extremal (seed of gauge freedom in Lagrangian Mechanics ).
Verify (numeric): g ( y ) = y , L = y y ′ = d x d ( y 2 /2 ) . Two curves from y ( 0 ) = 0 to y ( 1 ) = 1 : line y = x and parabola y = x 2 . ∫ 0 1 y y ′ d x = [ y 2 /2 ] 0 1 = 1/2 for both ✓.
L has NO y ′ at all — L = L ( x , y )
Extremize J = ∫ 0 1 ( y 2 − 2 x y ) d x . Here L = y 2 − 2 x y contains no y ′ .
Forecast: with no y ′ there is no ODE to integrate — so what pins y ?
Steps.
∂ y ′ ∂ L = 0 (there is no y ′ ), so d x d ∂ y ′ ∂ L = 0 . Why? You cannot differentiate what isn't there.
E–L collapses to a purely algebraic condition ∂ y ∂ L = 0 : 2 y − 2 x = 0 ⇒ y = x . Why? No derivative term survives — the extremal is found point-by-point, not by integrating.
Degeneracy warning: y = x is forced pointwise and cannot in general meet imposed endpoint values (here y ( 0 ) = 0 , y ( 1 ) = 1 happen to fit, but any other endpoints make the problem inconsistent — no smooth extremal exists). Why? An algebraic (order-0) condition has no free constants to satisfy boundary data.
Verify (numeric): at y = x , ∂ L / ∂ y = 2 x − 2 x = 0 ✓ for all x ; and it satisfies y ( 0 ) = 0 , y ( 1 ) = 1 ✓ (a lucky-fit case).
Worked example 6a: one end let loose in
y — natural boundary condition
Extremize J = ∫ 0 1 ( 2 1 y ′2 − y ) d x with y ( 0 ) = 0 but y ( 1 ) free (the right end may slide vertically).
Forecast: with a fixed end you'd need a second endpoint value — what replaces it?
Steps.
Interior E–L: ∂ y ∂ L = − 1 , ∂ y ′ ∂ L = y ′ , so − 1 − y ′′ = 0 ⇒ y ′′ = − 1 . Why? The free end changes only the boundary, not the interior ODE.
General solution y = − 2 1 x 2 + A x + B . Apply y ( 0 ) = 0 ⇒ B = 0 .
Recall the variation η (defined at the top): the Integration by Parts step in the parent left a boundary term [ ∂ y ′ ∂ L η ] 0 1 , where η is the wiggle of y . At x = 0 the end is fixed, so η ( 0 ) = 0 kills that piece. At x = 1 the end is free , so η ( 1 ) is arbitrary and non-zero — the term cannot be dropped. Why this matters: the only way ∂ y ′ ∂ L 1 η ( 1 ) = 0 for all such η ( 1 ) is if the coefficient vanishes: the natural boundary condition ∂ y ′ ∂ L x = 1 = 0 , i.e. y ′ ( 1 ) = 0 .
Apply y ′ ( 1 ) = 0 : y ′ = − x + A , so − 1 + A = 0 ⇒ A = 1 . Final: y = − 2 1 x 2 + x .
Verify: y ′′ = − 1 ✓, y ( 0 ) = 0 ✓, y ′ ( 1 ) = − 1 + 1 = 0 ✓ — the curve arrives flat at the loose end, the geometric meaning of a natural BC.
Intuition What figure s02 shows
Figure s02 plots the green solution y = − x 2 /2 + x . The blue dot is the fixed end y ( 0 ) = 0 ; the red square is the free end. The short yellow segment is the tangent at x = 1 — it is horizontal , the picture of the natural condition y ′ ( 1 ) = 0 : nothing holds the end down, so the curve levels off there.
x -endpoint itself is free — the transversality condition
Sometimes the horizontal position of an endpoint is free (the curve may end wherever it likes along a target line). Then η alone is not enough — the endpoint x also varies, so the vanishing boundary term becomes the transversality condition
( L − y ′ ∂ y ′ ∂ L ) free x = 0.
Why this shape? When both x and y of the endpoint can move, the total first variation carries the extra piece ( L − y ′ ∂ L / ∂ y ′ ) δ x ; killing it for arbitrary δ x forces the bracket (the very Beltrami combination!) to zero at that end. Sanity check: if only y is free but x is fixed (δ x = 0 ), this term disappears and we fall back to 6a's natural BC — consistent.
Worked example Fastest ski run (a Brachistochrone with numbers)
A frictionless skier starts at rest at ( 0 , 0 ) and reaches ( π , 2 ) , with y measured downward so gravity assists.
Setting up the physics (defining every constant). By energy conservation, sliding from rest through a vertical drop y gives speed v = 2 g y , where g is the acceleration due to gravity. An arc-length element is d s = 1 + y ′2 d x , so the time to traverse it is d t = d s / v = 2 g y 1 + y ′2 d x . Summing,
T = ∫ 0 π 2 g y 1 + y ′2 d x = 2 g 1 ∫ 0 π y 1 + y ′2 d x .
The prefactor 1/ 2 g is a constant and does not affect which curve minimises T , so we extremize L = y 1 + y ′2 — no bare x ⇒ Cell B.
Forecast: straight ramp, or a curve that dives steeply first?
Steps.
Beltrami (since ∂ L / ∂ x = 0 ): L − y ′ ∂ y ′ ∂ L = C B . Why? The energy-like first integral of any x -free problem.
Compute ∂ y ′ ∂ L = y 1 + y ′2 y ′ . Substitute:
y 1 + y ′2 − y 1 + y ′2 y ′2 = y 1 + y ′2 ( 1 + y ′2 ) − y ′2 = y 1 + y ′2 1 = C B .
Why? Common denominator; the numerator collapses to 1 .
Square and rearrange to the first integral: y ( 1 + y ′2 ) 1 = C B 2 ⇒ y ( 1 + y ′2 ) = C B 2 1 =: k . Why this is the "first integral": it is one order lower than E–L would give and holds along the whole path — the physical WHY is that no bare x means a conserved quantity, here k .
Solve y ( 1 + y ′2 ) = k by the standard substitution y ′ = cot ( θ /2 ) ; it yields the parametric cycloid x = r ( θ − sin θ ) , y = r ( 1 − cos θ ) with k = 2 r . Why a cycloid? It is the unique curve satisfying y ( 1 + y ′2 ) = const ; near the start it plunges nearly vertically, banking speed early to beat the straight ramp.
Verify (numeric): for r = 1 so k = 2 , use y ′ = d x / d θ d y / d θ = 1 − cos θ sin θ . At θ = π /2 : y = 1 , y ′ = 1 , so y ( 1 + y ′2 ) = 1 ⋅ 2 = 2 = k ✓. At θ = π : y = 2 , y ′ = 0 , y ( 1 + y ′2 ) = 2 ⋅ 1 = 2 = k ✓ — constant, cycloid confirmed.
L contains y ′′
Bending energy of a beam: extremize J = ∫ 0 1 ( 2 1 ( y ′′ ) 2 ) d x . The Lagrangian holds a second derivative y ′′ — the standard E–L is not enough.
Forecast: the answer is the shape a thin ruler takes — guess its polynomial degree.
Steps.
Use the generalized Euler–Poisson equation : ∂ y ∂ L − d x d ∂ y ′ ∂ L + d x 2 d 2 ∂ y ′′ ∂ L = 0 . Why this step? Each extra derivative in L contributes an extra ± d x k d k term (repeat Integration by Parts k times, exactly the parent's Step 5 done twice).
Here ∂ L / ∂ y = 0 , ∂ L / ∂ y ′ = 0 , ∂ L / ∂ y ′′ = y ′′ . Why? L depends only on y ′′ .
Equation: d x 2 d 2 ( y ′′ ) = y ′′′′ = 0 . Why? Only the third term survives.
Solve: y ′′′′ = 0 ⇒ y = c 3 x 3 + c 2 x 2 + c 1 x + c 0 — a cubic , the classic beam-deflection shape. Why? Fourth derivative zero ⇒ degree-3 polynomial.
Verify: y = x 3 gives y ′′′′ = 0 ✓, and y ′′ = 6 x so bending energy ∫ 0 1 2 1 ( 6 x ) 2 d x = ∫ 0 1 18 x 2 d x = 6 (finite, well-defined) ✓.
Recall Which cell am I in? (self-quiz)
L = 1 + y ′2 — which cell and which shortcut? ::: Cell A (only y ′ ) → ∂ L / ∂ y ′ = const.
L = y 1 + y ′2 — which cell? ::: Cell B (no bare x ) → Beltrami identity.
L = x 1 + y ′2 — which cell? ::: Cell C (no bare y ) → ∂ L / ∂ y ′ = const, but path bends (valid only on x ≥ c 3 ).
L = y ′ g ( y ) gives E–L 0 = 0 . What does that mean? ::: L is a total derivative — every path is extremal (Cell E-5a, degenerate).
L = L ( x , y ) has no y ′ — what does E–L become? ::: An algebraic condition ∂ L / ∂ y = 0 ; no ODE, may clash with endpoints (Cell E-5b).
Right end is free in y . What replaces the missing value? ::: The natural BC ∂ L / ∂ y ′ = 0 there (Cell F-6a).
The endpoint's x is also free — what condition? ::: Transversality L − y ′ ∂ L / ∂ y ′ = 0 at that end (Cell F-6b).
L contains y ′′ . What equation replaces E–L? ::: Euler–Poisson: add + d x 2 d 2 ∂ y ′′ ∂ L (Cell H).
Mnemonic The absence rule
"What's missing gives you a gift." No x ⇒ Beltrami (energy-like conservation, cf. Noether's Theorem & Principle of Least Action ). No y ⇒ momentum ∂ L / ∂ y ′ conserved. No y ′ ⇒ E–L collapses to algebra. A free end ⇒ a natural BC (free x ⇒ transversality).