WHAT we want: the analogue of "dxdf=0" for functionals.
HOW — the variation trick. Suppose y(x) is the minimiser, with fixed endpointsy(a),y(b). Perturb it slightly:
y~(x)=y(x)+εη(x),η(a)=η(b)=0.
Here η is any smooth "test function" vanishing at the ends (so endpoints stay fixed). Define
Φ(ε)=J[y+εη].
Since y minimises J, the ordinary function Φ has a minimum at ε=0, so
Φ′(0)=0(this is the WHY of everything below).
Compute Φ′(0). Differentiate under the integral:
Φ′(ε)=∫ab(∂y∂Lη+∂y′∂Lη′)dx.Why this step? We used the chain rule on L(x,y+εη,y′+εη′); ∂/∂ε brings down η for the y-slot and η′ for the y′-slot.
Set ε=0 and integrate the second term by parts to free η from its derivative:
∫ab∂y′∂Lη′dx==0(η(a)=η(b)=0)[∂y′∂Lη]ab−∫abdxd(∂y′∂L)ηdx.Why this step? Integration by parts swaps the derivative off η onto Ly′. The boundary term dies because η vanishes at the endpoints — that is exactly why we required fixed endpoints.
So:
Φ′(0)=∫abcall it δyδJ[∂y∂L−dxd∂y′∂L]η(x)dx=0∀η.
The Fundamental Lemma. If ∫abf(x)η(x)dx=0 for every smooth η vanishing at the ends, then f(x)≡0.
Why true: if f>0 somewhere, choose a bump η concentrated there to make the integral positive — contradiction.
If L=L(y,y′) does not depend on x explicitly, then a first integral exists:
dxd(L−y′∂y′∂L)=Lyy′+Ly′y′′−y′′Ly′−y′dxdLy′=y′(Ly−dxdLy′)=0.Why this step? Expand the total x-derivative; the y′′ terms cancel, and the bracket is exactly the Euler–Lagrange expression =0. Hence:
A map J[y] from an entire function y(x) to a single real number, typically ∫abL(x,y,y′)dx.
What is the functional derivative δJ/δy?
∂y∂L−dxd∂y′∂L, the continuous gradient defined by δJ=∫δyδJδydx.
State the Euler–Lagrange equation.
∂y∂L−dxd(∂y′∂L)=0.
Why does integration by parts produce the −dxdLy′ term?
To move the derivative off the test function η′ onto Ly′, so a single common factor η can be extracted.
Why can we conclude the bracket is zero?
Fundamental Lemma of CoV: if ∫fη=0 for all smooth η vanishing at ends, then f≡0.
When does the Beltrami identity apply, and what is it?
When L has no explicit x; then L−y′Ly′=const.
What replaces "set derivative to zero" in CoV?
Set the first variation to zero: δJ=0, equivalently δJ/δy=0.
What are natural boundary conditions?
With free endpoints, the surviving boundary term forces ∂L/∂y′=0 at those ends.
E–L for L=1+y′2 gives?
y=mx+b (straight line, shortest path).
Recall Feynman: explain it to a 12-year-old
Normal "find the lowest point" problems give you a number, like the bottom of a valley. Here the unknown is a whole shape of a wire, and you want the shape that makes some total cost (length, time, energy) as small as possible. To check you've got the best wire, wiggle it a tiny bit anywhere along its length and see if the cost goes up. If every tiny wiggle makes it worse, you've found the best shape. The "Euler–Lagrange equation" is just the bookkeeping that says "no wiggle anywhere helps."
Dekho, normal calculus mein hum ek numberx dhoondte hain jo function f(x) ko minimum kare — jaise valley ka sabse neeche wala point. Calculus of variations mein game thoda upar level ka hai: yahan unknown ek poora functiony(x) hai, aur hum ek functionalJ[y]=∫L(x,y,y′)dx ko minimise karte hain. Functional ka matlab — ek aisa machine jisme tum poori curve daalte ho aur woh ek single number nikaalta hai (jaise length, time, ya energy).
Best curve check karne ka trick simple hai: curve ko thoda sa hilaao, y→y+εη, jahan η endpoints par zero hai (kyunki endpoints fixed hain). Agar y sach mein minimum hai, to is choti si hilane se cost badhni chahiye — yaani Φ(ε)=J[y+εη] ka ε=0 par derivative zero hona chahiye. Yahi δJ=0 hai.
Jab tum yeh condition expand karte ho aur integration by parts lagaate ho, to boundary term mar jaata hai (η ends par zero hai), aur bachta hai woh famous formula: ∂y∂L−dxd∂y′∂L=0 — Euler–Lagrange equation. Yeh hi functional world ka "gradient = 0" hai. Sabse common galti: log sirf ∂L/∂y=0 likh dete hain aur dxdLy′ wala term bhool jaate hain — woh term hi to asli physics hai!
Importance? Pura classical mechanics (S=∫(T−V)dt minimise hota hai), shortest path/geodesics, brachistochrone, optics ka Fermat principle — sab isi ek idea se nikalte hain. Ek baar yeh samajh gaye, to physics ke half equations "automatically" derive ho jaati hain.