4.10.12 · D2 · HinglishAdvanced Topics (Elite Level)

Visual walkthroughCalculus of variations — functionals, functional derivative

2,360 words11 min read↑ Read in English

4.10.12 · D2 · Maths › Advanced Topics (Elite Level) › Calculus of variations — functionals, functional derivative

Hum ek hi sawaal ka jawaab denge: point se point tak jaane wali saari curves mein se, kaun si ek total "cost" ko minimum karti hai — aur hum usse kaise pehchaante hain?


Step 1 — Hum kya choose kar rahe hain: ek poori curve, koi point nahi

KYA. Ordinary "minimum dhundho" problems mein tum ek single dot ko left-right slide karte ho jab tak valley ke bottom tak na pahuncho. Yahan hum jo cheez change kar sakte hain woh ek poori curve hai — ek bendy wire jo do nails pe pin ki gayi hai, left nail pe aur right nail pe.

KYUN. Length, travel-time, energy — yeh sab wire ki poori shape pe depend karte hain, kisi ek number pe nahi. Isliye unknown khud ek shape hai.

PICTURE. Figure dekho. Horizontal axis hai (zameen ke saath position). Vertical axis hai (wire ki height). Teal curve ek candidate wire hai. Do orange dots fixed endpoints hain — yeh kabhi nahi hilte.

Figure — Calculus of variations — functionals, functional derivative

Step 2 — Curve ko "wiggle" kaise karein: the variation

KYA. Yeh test karne ke liye ki koi curve best hai ya nahi, hum use thoda nudge karte hain. Hum ek chhota bump add karte hain jise ek tiny knob se scale kiya jaata hai:

KYUN. Ordinary calculus mein tum minimum check karte ho ko har direction mein thoda sa nudge karke. Ek curve ko nudge karne ke liye infinitely many "directions" hote hain — bump ki har shape ke liye ek. Toh hamara "kis direction mein wiggle karna hai" hai, aur hai "kitni tezi se."

PICTURE. Teal curve candidate hai. Plum dashed curve hai, yani bump. Orange curve wiggled wire hai. Sabse zaroori baat: bump dono nails pe flat hai — wahan zero hona chahiye taaki endpoints pin rahe.

Figure — Calculus of variations — functionals, functional derivative

Step 3 — Problem ko ek ordinary variable tak collapse karo

KYA. Bump shape ko freeze karo aur sirf dial ko move karne do. Tab cost ek ordinary one-variable function ban jaati hai:

KYUN. Yahi saara trick hai. Hum directly "space of all curves" pe calculus karna nahi jaante, isliye hum iske andar se ek 1-D beam chalate hain: is beam ke saath cost sirf ek normal function hai, aur hum pehle se jaante hain unhe kaise minimise karein. Agar sach mein best curve hai, toh isse kisi bhi direction mein hat'ne se cost sirf badh sakti hai, isliye ka bottom hai.

PICTURE. Parabola-jaisi teal curve hai. Uska lowest point exactly pe baitha hai (orange dot). Wahan tangent line flat hai — slope zero.

Figure — Calculus of variations — functionals, functional derivative

Yeh single equation, khol ke dekho, wohi hai Euler–Lagrange equation.


Step 4 — Integral ke andar differentiate karo (slices pe chain rule)

KYA. Dial ghuma ke dekho ki har slice-cost kaise badalti hai. ko ke saath differentiate karo:

KYUN. ke andar do slots hain jo pe depend karte hain: height slot () aur slope slot (). Chain rule kehta hai: rate of change (height ke baare mein sensitivity)(height kitni tezi se badalti hai) (slope ke baare mein sensitivity)(slope kitni tezi se badalti hai). Dial ghhumane se height se upar push hoti hai aur slope se — isliye ke saath hai aur ke saath .

PICTURE. Ek sample point pe, do arrows: orange arrow dikhata hai ki slice cost height badhne pe kaise react karti hai (, se weighted); teal arrow dikhata hai ki slope tilt karne pe kaise react karti hai (, se weighted).

Figure — Calculus of variations — functionals, functional derivative

Ek mushkil hai: do terms mein alag alag wiggles hain — ek mein hai, doosre mein . Hum abhi tak common factor out nahi kar sakte. Step 5 yeh theek karta hai.


Step 5 — Integration by parts: derivative ko wiggle se hatao

KYA. Awkward term ko rewrite karo taaki usme bhi plain ho:

KYUN. Integration by parts woh tool hai jo ek factor se doosre pe derivative swap karta hai. Yahi exactly woh surgery hai jo hume chahiye: yeh se prime utha ke pe daal deta hai, ek plain chhod deta hai jise hum factor out kar sakte hain. Hum yeh tool precisely isliye choose karte hain kyunki woh object hai jise hum isolate karna chahte hain.

PICTURE. Ek "before / after" strip. Before: derivative pe baitha hai (plum bump pe ek chhota prime tag dikhaya gaya hai). After: derivative pe kood gaya hai (tag teal factor ke paar jaata hai), aur ek boundary term dono nails pe pop up hota hai.

Figure — Calculus of variations — functionals, functional derivative

Step 6 — Ab ek single common factor

KYA. Bacha hua pieces ek saath jodo:

KYUN. Step 5 ke baad dono terms mein hai, isliye hum ise factor out karte hain. Bracket functional derivative hai — ek "gradient" jiska har point pe ek component hai. Equation kehti hai: chahe hum koi bhi wiggle choose karein, yeh weighted sum zero hai.

PICTURE. Bracket ko ke saath ek burnt-orange gradient field ke roop mein draw kiya gaya hai: har point pe ek arrow jo curve ko bolta hai "mujhe yahan neeche push karo, wahan upar." Wiggle plum curve hai. Unka product, integrate kiya gaya, shaded area hai — aur yeh har possible ke liye total zero hona chahiye.

Figure — Calculus of variations — functionals, functional derivative

Step 7 — Fundamental Lemma: "for all " se "bracket zero hai" tak

KYA. Agar har smooth ke liye jo ends pe vanish kare, tab har jagah.

KYUN. Maano bracket kisi chhoti stretch pe positive ho. Hum koi bhi choose karne ke liye free hain. Toh aisa choose karo jo ek chhota positive lump ho exactly us stretch pe aur baaki jagah zero ho. Tab wahan positive hai aur baaki jagah zero, isliye integral strictly positive hai — "yeh har ke liye zero hai" se contradiction. Wohi argument kisi bhi negative stretch ko bhi khatam kar deta hai. Toh sirf zero hi ho sakta hai.

PICTURE. Ek plum bump us jagah park ki gayi hai jahan bracket (burnt orange) positive hai; shaded product area clearly positive hai — contradiction, drawn.

Figure — Calculus of variations — functionals, functional derivative

Step 8 — Edge case: kya hoga agar hum endpoints nail nahi karte?

KYA. ki requirement hata do. Tab Step 5 ka boundary term vanish nahi karta. set karne ke liye ab interior integral aur boundary term dono ko vanish karna hoga.

KYUN. Free end ke saath, wiggles endpoint ko bhi move karne dete hain, isliye wahan nahi milta. arbitrary end-wiggles ke liye tabhi vanish ho sakta hai jab khud free end pe zero ho. Yeh natural boundary conditions hain.

PICTURE. Left panel: pinned end — nail pe bump flat, boundary term . Right panel: free end — edge pe bump non-zero (orange), jo force karta hai.

Figure — Calculus of variations — functionals, functional derivative

Ek-picture summary

Upar saab kuch, ek single flow mein: wire pin karo → use wiggle karo → 1-D dial tak collapse karo → bottom pe flat → chain rule → integration by parts boundary ko khatam karta hai → factor out karo → Fundamental Lemma → Euler–Lagrange.

Figure — Calculus of variations — functionals, functional derivative

Whole curve y with fixed nails

Wiggle by eps times eta

Cost becomes Phi of eps

Minimum so Phi prime at 0 is zero

Chain rule under integral

Parts moves derivative off eta

Boundary term dies at nails

Factor out eta

Fundamental Lemma

Euler Lagrange equation

Recall Feynman: poora walk ek 12-saal ke bache ko batao

Socho ek bendy wire jo ek board pe do nails se pin ki gayi hai. Tum chahte ho ki wire ki woh shape mile jo kuch total cost — uski length, ya ek bead ke neeche slide karne ka time — ko minimum kare. Tum kaise jaante ho ki tumne best shape pa li? Tum use kahin bhi beech mein ek tiny wiggle dete ho (nails ko wahi rakhte ho) aur check karte ho ki cost drop nahi hoti. Agar koi bhi wiggle ise sasta bana sakti, tum abhi best shape pe nahi the. Ab, "kisi bhi shape ki tiny wiggle, kahin bhi" test karna impossible lagta hai — lekin ek slick move hai. Pehle tum wiggle ko ek single dial mein badal do (dial ghuma o, wire zyada bulge karti hai), toh cost ab ek ordinary curve hai ek bottom ke saath, aur bottom wahan hai jahan dial zero padh raha hai. Phir tum do standard tricks use karte ho: chain rule (wire ko raise karne aur tilt karne pe cost ka har chhota slice kaise react karta hai?), aur integration by parts (ek tarika hai derivative ko wiggle se cost par dhakelne ka, jo nails pe ek leftover bhi produce karta hai — lekin woh leftover zero hai kyunki wiggle nails pe zero hai). Us cleanup ke baad, cost-change ek saaf sum hai: (ek khaas quantity) times (tumhari wiggle), wire ke saath joda gaya. Agar yeh har wiggle ke liye zero hai jo tum kabhi bhi draw kar sako, toh ek hi possibility hai ki woh "khaas quantity" har single point pe zero hai. Woh quantity Euler–Lagrange expression hai, aur use zero set karna woh rule hai jo perfect curve choose karta hai.

See also: Lagrangian mechanics, Geodesics and differential geometry, Brachistochrone problem, Functional analysis, Constrained optimization & Lagrange multipliers.