Professional Documents
Culture Documents
Aug 6, 2012
Optimization
Aug 6, 2012
1 / 16
Local/Relative extrema
Suppose f (x, y ) is defined on a neighborhood D of a point P(a, b)
f attains local maximum f (a, b) at (a, b) iff
f (a, b) f (x, y ), (x, y ) D
f attains local minimum f (a, b) at (a, b) iff
f (a, b) f (x, y ), (x, y ) D
Optimization
Aug 6, 2012
2 / 16
Critical points
Suppose f (x, y ) has a local extremum at (a, b) where fx , fy exist, then
fx (a, b) = 0 = fy (a, b)
In this case, (a, b) is a critical point of f .
Optimization
Aug 6, 2012
3 / 16
Critical points
Suppose f (x, y ) has a local extremum at (a, b) where fx , fy exist, then
fx (a, b) = 0 = fy (a, b)
In this case, (a, b) is a critical point of f .
Example. Let C (x, y ) = 2200 + 27x 3 72xy + 8y 2
Solve
Cx = 81x 2 72y = 0 = 72x + 16y = Cy
9
0 = 72x + 16y y = x
2
81x 2 72y = 81(x 2 4x) = 81x(x 4) = 0
Therefore x = 0 or x = 4 and the critical points (0, 0), (4, 18) are the only
points that may have a local extremum of C (x, y )
Dr. Tran Thai-Duong (IU HCMC)
Optimization
Aug 6, 2012
3 / 16
Example
Optimization
Aug 6, 2012
4 / 16
If D > 0 and fxx (a, b) < 0, then f attains a local maximum at (a, b).
If D > 0 and fxx (a, b) > 0, then f attains a local minimum at (a, b).
If D < 0 then f does not attain a local extremum at (a, b), and (a, b)
is called a saddle point.
Optimization
Aug 6, 2012
5 / 16
Example
Let f (x, y ) = 6x 2 + 6y 2 + 6xy + 36x 5 and solve
fx (x, y ) = 12x + 6y + 36 = 0 = 12y + 6x = fy (x, y )
These equations gives the only critical point (-4,2)
Since
fxx (4, 2) = 12 = fyy (4, 2)
fxy (4, 2) = fyx (4, 2) = 6
D = 108 > 0, fxx > 0
f attains the local minimum 77 = f (4, 2) at (4, 2)
Optimization
Aug 6, 2012
6 / 16
Example
Let f (x, y ) = 6x 2 + 6y 2 + 6xy + 36x 5 and solve
fx (x, y ) = 12x + 6y + 36 = 0 = 12y + 6x = fy (x, y )
These equations gives the only critical point (-4,2)
Since
fxx (4, 2) = 12 = fyy (4, 2)
fxy (4, 2) = fyx (4, 2) = 6
D = 108 > 0, fxx > 0
f attains the local minimum 77 = f (4, 2) at (4, 2)
Note that
f (x, y ) = 6(0.5x + y )2 + 4.5(x + 4)2 77
and we really have a global/absolute minimum at (4, 2)
Dr. Tran Thai-Duong (IU HCMC)
Optimization
Aug 6, 2012
6 / 16
Example
f (x, y ) = 2200 + 27x 3 72xy + 8y 2
From the equations
fx = 81x 2 72y = 0 = 16y 72x = fy
we get y =
9x
2 ,
and
81x 2 324x = 81x(x 4) = 0
Optimization
Aug 6, 2012
7 / 16
Example
f (x, y ) = 2200 + 27x 3 72xy + 8y 2
From the equations
fx = 81x 2 72y = 0 = 16y 72x = fy
we get y =
9x
2 ,
and
81x 2 324x = 81x(x 4) = 0
Optimization
Aug 6, 2012
7 / 16
Example
f (x, y ) = 2200 + 27x 3 72xy + 8y 2
From the equations
fx = 81x 2 72y = 0 = 16y 72x = fy
we get y =
9x
2 ,
and
81x 2 324x = 81x(x 4) = 0
Optimization
Aug 6, 2012
7 / 16
Remark
f (x, y ) does not attain a minimum at (4,18) because f (10, 45) < 0
Optimization
Aug 6, 2012
8 / 16
Remark
f (x, y ) does not attain a minimum at (4,18) because f (10, 45) < 0
However,
f (x, y ) = 2200 + 2(9x 2y )2 + 27(x 3 6x 2 )
Optimization
Aug 6, 2012
8 / 16
Remark
f (x, y ) does not attain a minimum at (4,18) because f (10, 45) < 0
However,
f (x, y ) = 2200 + 2(9x 2y )2 + 27(x 3 6x 2 )
If we restrict that x 0 then the minimum of x 3 6x 2 is -32 when x = 4
and the minimum of f (x, y ) is 2200+27(-32)=1336 when x = 4, y = 18
Optimization
Aug 6, 2012
8 / 16
Example
f (x, y ) = (x 2 + y 2 )e x
fx = (x 2 y 2 + 2x)e x = 2ye x = fy = 0
That implies y = 0 and x 2 + 2x = x(2 x) = 0.
Hence, the critical points are (0, 0) and (2, 0)
Optimization
Aug 6, 2012
9 / 16
Example
f (x, y ) = (x 2 + y 2 )e x
fx = (x 2 y 2 + 2x)e x = 2ye x = fy = 0
That implies y = 0 and x 2 + 2x = x(2 x) = 0.
Hence, the critical points are (0, 0) and (2, 0)
Then fxx = (x 2 + y 2 2x 2x + 2)e x , fxy = 2ye x , fyy = 2e x
D(x, y ) = (4 8x + 2x 2 2y 2 )e 2x
We have a saddle point at (2, 0) because D(2, 0) < 0, and a local
minimum at (0, 0) because D(0, 0) > 0 and fxx (0, 0) > 0.
Optimization
Aug 6, 2012
9 / 16
Example
f (x, y ) = (x 2 + y 2 )e x
fx = (x 2 y 2 + 2x)e x = 2ye x = fy = 0
That implies y = 0 and x 2 + 2x = x(2 x) = 0.
Hence, the critical points are (0, 0) and (2, 0)
Then fxx = (x 2 + y 2 2x 2x + 2)e x , fxy = 2ye x , fyy = 2e x
D(x, y ) = (4 8x + 2x 2 2y 2 )e 2x
We have a saddle point at (2, 0) because D(2, 0) < 0, and a local
minimum at (0, 0) because D(0, 0) > 0 and fxx (0, 0) > 0.
Remark. It is obvious that the global minimum is f (0, 0) = 0
Optimization
Aug 6, 2012
9 / 16
Absolute extrema
An extremum at a boundary point does not have to be a local extremum,
therefore boundary points need to be considered separately.
Optimization
Aug 6, 2012
10 / 16
Absolute extrema
An extremum at a boundary point does not have to be a local extremum,
therefore boundary points need to be considered separately.
Example. Find the extremum values of
f (x, y ) = 2x + y 3xy , x, y [0, 1]
The only local extremum is f 13 , 23 = 32 .
Optimization
Aug 6, 2012
10 / 16
Absolute extrema
An extremum at a boundary point does not have to be a local extremum,
therefore boundary points need to be considered separately.
Example. Find the extremum values of
f (x, y ) = 2x + y 3xy , x, y [0, 1]
The only local extremum is f 13 , 23 = 32 .On the boundary,
x =0
2y + 2 x = 1
f (x, y ) =
2x
y =0
x + 1
y =1
Optimization
Aug 6, 2012
10 / 16
Absolute extrema
An extremum at a boundary point does not have to be a local extremum,
therefore boundary points need to be considered separately.
Example. Find the extremum values of
f (x, y ) = 2x + y 3xy , x, y [0, 1]
The only local extremum is f 13 , 23 = 32 .On the boundary,
x =0
2y + 2 x = 1
f (x, y ) =
2x
y =0
x + 1
y =1
Hence, the maximum is f (1, 0) = 2 and the minimum
f (0, 0) = f (1, 1) = 0.
Dr. Tran Thai-Duong (IU HCMC)
Optimization
Aug 6, 2012
10 / 16
Optimization
Aug 6, 2012
11 / 16
Optimization
Aug 6, 2012
11 / 16
Example
Find the extreme values of f (x, y ) = x + 2y on the ellipse 3x 2 + 4y 2 = 3
Solution. g (x, y ) = 3x 2 + 4y 2 3
The Lagrange equation is
8y = fx gy = fy gx = 12x
Substitute y =
3x
2
3x
2
2
3 = 12x 2 3 = 0
Therefore x = 12 and
y = 32 x = 43
Maximum is f 12 . 34 = 2. Minimum is f 21 . 43 = 2
Optimization
Aug 6, 2012
12 / 16
Example
Optimization
Aug 6, 2012
13 / 16
Example
Optimization
Aug 6, 2012
13 / 16
Example
Find the extremum of f (x, y , z) = xyz subject to the constraint
xy + yz + zx = 3
Solution. g (x, y , z) = xy + yz + zx 3, then
fx = yz, fy = xz, fz = xy , gx = y + z, gy = x + z, gz = x + y
From the constraint, at least two variables must be different from zero.
Assume x and y are not zero and Solve the equations
xy (x + z) = xz(x + y )
xy (y + z) = yz(x + y )
xy + yz + xz = 3
we then get x = y = z = 1
max=f(1,1,1)=1, min=f(-1,-1,-1)=-1
Dr. Tran Thai-Duong (IU HCMC)
Optimization
Aug 6, 2012
14 / 16
Optimization
2x
3 .
Aug 6, 2012
15 / 16
2x
3 .
Remark. x [0, 100] and the value of f is minimum iff x = 0, 100. Hence,
we get the maximum f (80, 60) = 800.4 600.6 = 20(40.4 30.6 )
Optimization
Aug 6, 2012
15 / 16
HOMEWORK #8
1.
a.
b.
c.
Optimization
Aug 6, 2012
16 / 16