Professional Documents
Culture Documents
5
LAGRANGE METHOD
05/27/2021
Example Boundary
2. Find the global extreme of
f(x,y) =x2–y2+1 on the closed and bounded S={(x,y)| x2 + y2 1}
Answer.
fx(x,y) = 2x fy(x,y) = – 2y
fxx(x,y) = 2 fyy(x,y) = –2
fxy(x,y) = 0
The critical points, obtained by solving the simultaneous
equation fx(x,y) = 0 and fy(x,y)=0, that is (0,0)
Hence, the critical points is (0, 0)( this point lies inside S),
but it is a saddle point (D < 0)
For the boundary point, let x= cos t and y = sint
(because S is a unit circle), we obtain
f(t)=cos2 t – sin2t+1
05/27/2021 2
Example (Cont.)
We wish to maximize and minimize the function of one variable f,
that is:
f ’(t)=–2 cost sin t – 2 sin t cost = 0 4 cos t sint= 0
05/27/2021 3
Problem Set
1. Find the extreme, by the following function:
2 4
a. f(x,y) = x +y -6xy
3 3 e. f ( x, y ) xy
x y
b. f(x,y) = xy2 –6 x2 – 6y2 ( x 2 y 2 4 y )
f . f ( x, y ) e
c. f(x,y) = x2 +4 y2 – 2x+8y – 1
d. f(x,y) = 3x3 +y2 – 9x + 4y
05/27/2021 4
5
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)
05/27/2021
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.
05/27/2021 6
Example
7
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)
05/27/2021 8
9
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
05/27/2021
Example (Cont.)
10
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).