The classic example: the shortest path between two points has L=1+y′2, because arc length is J[y]=∫ab1+y′2dx. We want the y(x) that makes this smallest.
Recall Why can't ordinary calculus do this directly?
Because y is not one number — it's infinitely many numbers (one height per x). Plain dxd can't search over all curves. We need a way to perturb the whole curve and demand the integral doesn't change to first order.
Step 1 — Build a family of nearby curves.
Suppose y(x) is the true extremal. Perturb it:
Y(x,ε)=y(x)+εη(x)
Why this step? We need to wiggle the whole curve. η(x) is an arbitrary smooth "wiggle shape" and ε is a small dial controlling the size of the wiggle. Setting ε=0 recovers the true curve.
Step 2 — Respect the fixed endpoints.
Since every competitor must pass through the same endpoints, Y(a)=ya and Y(b)=yb for allε. This forces
η(a)=η(b)=0
Why this step? If η were nonzero at an endpoint, the perturbed curve would miss the required endpoint — not allowed.
Step 3 — Turn the functional into an ordinary function of ε.Φ(ε)=∫abL(x,Y,Y′)dx
Because the true curve is at ε=0, and it extremizes J, the ordinary function Φ(ε) must have a stationary point at ε=0:
dεdΦε=0=0
Why this step? We've reduced an infinite-dimensional problem to a 1-D calculus problem! Now we use ordinary dεd.
Step 4 — Differentiate under the integral.dεdΦ=∫ab(∂Y∂L∂ε∂Y+∂Y′∂L∂ε∂Y′)dx
Since ∂ε∂Y=η and ∂ε∂Y′=η′, and evaluating at ε=0 (so Y→y):
0=∫ab(∂y∂Lη+∂y′∂Lη′)dx
Why this step? Chain rule: L depends on ε only through Y and Y′.
Step 5 — Integrate the second term by parts to free η from its derivative.
∫ab∂y′∂Lη′dx==0(endpoints!)[∂y′∂Lη]ab−∫abdxd(∂y′∂L)ηdx
Why this step? The boundary term vanishes because of Step 2 (η(a)=η(b)=0). This is exactly why the endpoint condition mattered. Now every term has a bare η.
Step 6 — Factor out η.0=∫ab(∂y∂L−dxd∂y′∂L)η(x)dx
Step 7 — Apply the Fundamental Lemma of the Calculus of Variations.
Why this step?η is arbitrary. If the bracket g(x) were nonzero anywhere, we could choose an η that bumps up exactly there, making the integral nonzero — contradiction. (See worked example below for the steel-man.)
Imagine a wire bent between two nails, and you want the shape that makes a bead slide down fastest. You can't try every shape — there are infinitely many. So you take one shape and jiggle it a tiny bit. If jiggling makes the slide-time go down, that shape wasn't the best — you'd keep jiggling. The best shape is the one where tiny jiggles change nothing (like the bottom of a valley is flat). Writing "jiggle changes nothing" as a clean equation gives the Euler–Lagrange equation. It turns "try every curve" into "solve one equation".
Dekho, normal calculus mein hum poochhte hain "kaunsa number x function f(x) ko minimize karta hai?" Lekin yahan game alag hai — hume poora curvey(x) dhoondhna hai jo ek integral (jise functional bolte hain, J[y]=∫abLdx) ko minimize kare. Jaise do points ke beech sabse chhota path, ya wo wire-shape jispe bead sabse fast slide kare (brachistochrone). Yahan unknown ek number nahi, ek puri function hai.
Trick yeh hai: maan lo sahi curve y(x) hai. Usko thoda "jiggle" karo — Y=y+εη(x), jahan η koi bhi wiggle-shape hai aur ε chhota knob hai. Kyunki endpoints fixed hain, η(a)=η(b)=0 rakhna zaroori hai. Ab functional ek simple function Φ(ε) ban gaya, aur valley ke bottom ki tarah Φ′(0)=0 hona chahiye. Isse infinite-dimensional problem 1-D calculus ban gaya — yahi asli jaadu hai.
Phir integration by parts lagao taaki η′ hat ke sirf η bache. Boundary term zero ho jaata hai kyunki η endpoints pe zero hai (isiliye fixed-endpoint condition itni important thi). Bachta hai ∫(∂y∂L−dxd∂y′∂L)ηdx=0 har η ke liye. Fundamental Lemma kehta hai: agar yeh sab η ke liye zero hai, toh bracket khud hi zero hoga. Bas — yahi Euler–Lagrange equation hai.
Yeh kyun matter karta hai? Kyunki Newton ka F=ma, geodesics, optics ka Fermat's principle — sab isi ek equation se nikalte hain. Ek important galti: dxd∂y′∂L ko mat cancel karo ∂y′∂L se — woh total derivative hai, chain rule se teen terms deta hai. Aur agar L mein x explicitly nahi hai toh Beltrami identity (L−y′∂y′∂L= const) use karke kaam aasaan ho jaata hai.