4.4.15 · HinglishMultivariable Calculus

Lagrange multipliers — one and two constraints

1,453 words7 min readRead in English

4.4.15 · Maths › Multivariable Calculus


YE KAAM KYUN KARTA HAI? (Scratch se derivation)

KIYA CHAHIYE HUMEIN: ko maximize/minimize karna jab surface pe rehne ke liye forced ho.

Step 1 — Constraint ke saath move karne ke baare mein socho. Maano koi bhi smooth curve hai jo constraint surface ke andar rehti hai, toh sabhi ke liye. Constrained extremum point pe, value ka ek ordinary extremum hona chahiye, toh

Ye step kyun? Constraint surface pe hum free nahi hain — hum sirf un curves pe travel kar sakte hain jo surface mein rehti hain. Constrained max simply restricted function ka ordinary max hai.

Step 2 — Chain rule apply karo.

Ye surface ki har tangent direction ke liye hold karta hai. Toh sabhi tangent directions ke orthogonal hai — yaani constraint surface ke normal hai.

Step 3 — Lekin bhi surface ke normal hai. differentiate karo: , toh bhi normal hai. Ek hi surface ke normal do vectors (one-dim normal space) parallel hone chahiye:


Do constraints

Ab point ko dono aur satisfy karne chahiye. Geometrically feasible set do surfaces ka intersection curve hai.

Do multipliers kyun? Us intersection curve ke saath, allowed tangent direction dono aur ke perpendicular honi chahiye. Extremum pe , toh ka ke along koi component nahi — matlab , aur se spanned plane mein lie karta hai:


Worked Example 1 — One constraint (ek classic)

maximize karo subject to (unit circle pe point).

, . set karo:

  • (kyun: pehla component)
  • (kyun: doosra component)

Multiply karo: . Agar , toh , . se ke saath: . Constraint mein plug karo: , .

Max value at . Kyun accept karein: check karo se aata hai, (min hai).


Worked Example 2 — Distance / shadow-price meaning

Line pe origin se closest point. minimize karo, .

. Constraint: , . . meaning check karo: ke saath, , toh , aur indeed . ✔ Multiplier sensitivity ke barabar hai.


Worked Example 3 — Two constraints

maximize karo circle pe jo plane ... ruko, ye degenerate hai. Use karo: minimize karo subject to (paraboloid) aur (plane).

, , . :

Pehle do se: (agar ). Constraints: aur . Do roots kyun: curve neeche jaata hai phir upar; ek min hai, ek max hai ka curve pe.



Recall Feynman: 12-saal ke bacche ko samjhao

Socho tum ek bounded hilly field mein chal rahe ho aur tumhe fence path pe rehte hue highest spot chahiye. Chalte raho; jab tak ground tumhari walking direction mein upar jaata hai, chalte raho. Tum high point pe ruk jaate ho jab slope sirf fence ke across sideways jaata hai, tumhare path ke along nahi. "Path ke sideways" exactly yahi hai " fence ke across point karta hai" = fence ke normal ke parallel. Do fences cross karte hain toh tum sirf wahan khade ho sakte ho jahan wo cross karein, aur do pulls balance karte ho — wahi do multipliers hain.


Flashcards

What condition does Lagrange's method impose at a constrained extremum (one constraint)?
AND .
Geometric meaning of ?
constraint surface ke normal hai ( ke parallel); koi tangential direction ko increase nahi karti.
Why is normal to the surface ?
differentiate karne se milta hai har tangent ke liye.
Interpretation of the multiplier ?
Constraint level relax karne ke saath optimal value ka rate of change: (shadow price).
Condition with TWO constraints?
, with and .
Why two multipliers for two constraints?
ka intersection curve ke tangent ke along koi component nahi hona chahiye, toh wo mein lie karta hai.
How many equations/unknowns for with two constraints?
5 equations (3 gradient + 2 constraints), 5 unknowns .
A case where Lagrange can MISS an extremum?
Jahan (singular point) ho ya boundary pe jo se capture nahi hoti.
Max of on ?
at .

Connections

Concept Map

restrict to surface

d/dt f = 0 at extremum

holds for all tangents

differentiate

both normal, parallel

both normal, parallel

scalar meaning

add second surface

feasible set is intersection curve

grad f in plane of two normals

apply to f=xy on circle

Optimize f on constraint

Move along curve r of t

Chain rule grad f dot r' = 0

grad f normal to surface

g of x = 0

grad g normal to surface

grad f = lambda grad g

lambda is shadow price df*/dc

grad f = lambda grad g + mu grad h

Two surfaces g=0 and h=0

No component along tangent T

Worked example lambda = plus/minus 1/2

Deep Dive