Lagrange Method-B
Lagrange Method-B
4
LAGRANGE METHOD
03/12/2024
2
Lagrange multipliers
• Let z =f(x,y) subject to the constraint g (x, y) = 0
Because the level curve and the constraint curve are tangent, the two curves
have a common perpendicular line. Hence, the gradient vector f and g are
parallel, that is,
f ( x , y) g ( x , y)
03/12/2024
Lagrange’s Method
• To maximize/minimize f(x0,y0) subject to the the
constraint g(x0,y0)=0, solve the system of equations
f ( x 0 , y 0 ) g( x 0 , y 0 ) dan g ( x 0 , y 0 ) 0
where (x0,y0) is critical points , is Lagrange multiplier.
03/12/2024 3
Example
4
For (1,0)
f(1, 0) = 2, For (-1,0)
f(-1, 0) = 2
For (0,1)
f(0, 1) = 0, For (0,-1)
f(0,-1) = 0
Hence, global maximum value = 2 at point (1,0) and (-1,0),
and global minimum=0 at point (0,1) and (0,-1)
03/12/2024 5
6
Example
2. f(x,y,z)= x + 2y+3z on the ellipse that is the intersection
of the cylinder x2+y2=2 and the plane y + z = 1
Answer:
f ( x, y ) ˆ j 3 kˆ
i 2ˆ g( x, y ) 2 x ˆ
i 2y ˆ
j j kˆ
h ( x, y ) ˆ
To find the critical points, we solve the equations
f ( x, y , z ) g( x, y , z ) h( x, y , z ) , g( x, y , z ) 0
and h( x, y , z ) 0
03/12/2024
Example (Cont.)
7
From (1), x = 1/(2), from (2) and (3), y = -1/(2). Hence from (4), we obtain = ± ½.
For = ½, we obtain the critical point (1, -1, 2), (-1, -1, 2).
For = -½, we obtain the critical point (-1, 1, 0), (1, 1, 0).