Solution 4 PDF
Solution 4 PDF
∂f ∂f
Solution: To find critical points, we solve ∂x = 0 and ∂y = 0, i.e.
3x2 − 3y = 0
3y2 − 3x = 0
f xx = 6x f xy = −3
f yx = −3 f yy = 6y
P f xx ( P) f yy ( P) f xy ( P) 2
f xx f yy − f xy ( P) P is:
(0, 0) 0 0 −3 −9 saddle
(1, 1) 6 6 −3 (6)(6) − (−3)2 > 0 local minimum
∂f ∂f
Solution: To solve for critical points, we solve ∂x = 0 and ∂y = 0, i.e.
From the first equation, we get two cases: Case A: cos x = 0, or Case B: cos y = 0.
Case A: Since cos x = 0, we have x = π2 + kπ where k is any integer. Then
sin x = ±1 (depending on whether k is even or odd), and the second equation
Page 1
MATH 2023 Critical Points, Lagrange’s Multiplier Problem Set #4
sin x sin y = 0 then tells us that sin y = 0, and so y = mπ where m is any integer.
Critical points obtained in this case are:
π
( x, y) = + kπ, mπ , where m and k are any integers.
2
f xx = − sin x cos y
f xy = − cos x sin y
f yy = − sin x cos y
2
f xx f yy − f xy = sin2 x cos2 y − cos2 x sin2 y
P f xx f yy f xy 2
f xx f yy − f xy P is:
( π2
+ kπ, mπ ) k odd, m odd −1 −1 0 1 local max
( π2
+ kπ, mπ ) k odd, m even 1 1 0 1 local min
( π2
+ kπ, mπ ) k even, m odd 1 1 0 1 local min
( π2
+ kπ, mπ ) k even, m even −1 −1 0 1 local max
(qπ, π2 + nπ ) any integers q, n 0 0 ±1 −1 saddle
(d) f ( x, y) = x4 + y4
Solution: By solving ∇ f = 4x3 i + 4y3 j = 0, we get (0, 0) as the only critical point
2 = 0 at (0, 0), and so the Second
of f . However, one can check that f xx f yy − f xy
Derivative Test does not conclude anything.
However, this function f ( x, y) = x4 + y4 is always non-negative. Therefore,
f ( x, y) ≥ f (0, 0) = 0 for any ( x, y). In other words, (0, 0) is a local minimum
point (in fact a global minimum).
Page 2
MATH 2023 Critical Points, Lagrange’s Multiplier Problem Set #4
2 = 0, f
(b) (0, 0) is a local minimum, f xx f yy − f xy xx > 0 and f yy = 0 at (0, 0).
2 = 0, f
(c) (0, 0) is a local maximum, f xx f yy − f xy xx = 0 and f yy < 0 at (0, 0).
3. (F) Using Lagrange’s Multipliers, find the maximum and minimum values of the given
function subject to the given constraint:
(a) f ( x, y) = x + 2y subject to x2 + y2 = 4
∂f ∂g
=λ 1 = λ · 2x
∂x ∂x
∂f ∂g
=λ 2 = λ · 2y
∂y ∂y
g( x, y) = 4 x 2 + y2 = 4
1 1
= 2x and =y
λ λ
Therefore, 2x = y and combine with the third equation, we get:
r r
2 2 2 2 4 4 4
x + (2x ) = 4 =⇒ 5x = 4 =⇒ x = =⇒ x = or − .
5 5 5
Since y = 2x, the candidate points are:
√ √ √ √
( x, y) = ( 4/5, 2 4/5), (− 4/5, −2 4/5).
Page 3
MATH 2023 Critical Points, Lagrange’s Multiplier Problem Set #4
Solution: Note that the constraint is not yet in the level-set form. By rearrange-
ment, we get:
x2 + y2 − 3xy = 20
Therefore, we let g( x, y) = x2 + y2 − 3xy and then the constraint becomes the
level-set g( x, y) = 20. We need to solve the Lagrange’s Multiplier system ∇ f ( x, y) =
λ∇ g( x, y) and g( x, y) = 20:
1 = λ(2x − 3y)
−1 = λ(2y − 3x )
2 2
x + y − 3xy = 20
Solutions are: ( x, y) = (−2, 2), (2, −2). Substitute them into f , we get:
yz = λ · 2x
xz = λ · 4y
xy = λ · 8z
x + 2y + 4z2 = 9
2 2
The strategy of solving this system is as follows: Suppose the third equation
xy = λ · 8z 6= 0, then by dividing the first equation by the third one gives:
yz 2λx z x
= =⇒ = =⇒ 4z2 = x2 .
xy 8λz x 4z
xz 4yλ z y
= =⇒ = =⇒ y2 = 2z2
xy 8zλ y 2z
Page 4
MATH 2023 Critical Points, Lagrange’s Multiplier Problem Set #4
Then, substitute x2 = 4z2 and y2 = 2z2 into the fourth equation gives: 4z2 + 4z2 +
4z2 = 9. This gives the solutions for z, which can be used to determine the values
of x and y.
Next, we need to find the solutions for the case when the third equation is zero,
i.e. xy = λ · 8z = 0.
We skip the detail of computations here. Below are the results:
( x, y, z) f ( x, y, z)
(±3, 0, 0) 0
(0, 0, ±√ 3/2) 0
(0, ±3/ 2, 0) 0q
√ √ √
(± 3, ± 3/2, ± 3/2) ± 2 32 3
q q
The maximum is 32 32 and the minimum is − 32 32 .
Solution: Let g( x1 , . . . , xn ) = x12 + . . . + xn2 , then the constraint becomes the level-
set g = 1. The Lagrange’s Multiplier system is:
∂f ∂g
=λ 1 = 2λx1
∂x1 ∂x1
∂f ∂g
=λ 2 = 2λx2
∂x2 ∂x2
.. ..
. .
∂f ∂g
=λ n = 2λxn
∂xn ∂xn
g ( x1 , . . . , x n ) = 1 x12 + . . . + xn2 = 1
It is a very large system. However, it is helpful to note that λ cannot be zero
(otherwise from the first equation we would have 1 = 0). By rearrangement, we
can get:
1 2 n
x1 = , x2 = , . . . , xn = .
2λ 2λ 2λ
Substitute them into the constraint equation, we get:
2 2 n 2
1 2
+ +...+ =1
2λ 2λ 2λ
After simplification, we get:
12 + 22 + . . . + n 2 p
= 1 =⇒ 2λ = ± 12 + 22 + . . . + n2 .
(2λ)2
1 2 n
Therefore, the candidate points are: x1 = 2λ , x2 = 2λ , . . . , xn = where
√ 2λ
2λ = ± 12 + 22 + . . . + n2 .
1 2 n 12 + 22 + . . . + n2
f ( x1 , . . . , x n ) = +2· +...+n· = ±√
2λ 2λ 2λ 12 + 22 + . . . + n2
2 +22 + ... + n2 2 2 2
The minimum is − √1 and the maximum is √1 +2 +...+n .
12 +22 +...+n2 12 +22 +...+n2
Page 5
MATH 2023 Critical Points, Lagrange’s Multiplier Problem Set #4
4. (FF) The rationale behind Lagrange’s Multipliers method is that if a function f achieves
its maximum or minimum on the constraint g = c at points P, then the level sets of f and
g at P must be tangent to each other, and so ∇ f ( P) is parallel to ∇ g( P). Therefore, we
solve the system:
∇ f ( P) = λ∇ g( P) and g( P) = c
to locate all such P’s.
However, another way to determine whether ∇ f ( P) and ∇ g( P) are parallel is by their
cross product:
∇ f ( P) k ∇ g( P) if and only if ∇ f ( P) × ∇ g( P) = 0.
5. (F) A closed rectangular water tank is to be made with three different materials. The
top part will be made by a thin material which costs $1 per cm2 . The four sides will use
stronger material which costs $2 per cm2 . To support the weight of water, the bottom of
the tank has to be made with very durable and strengthened material which costs $5 per
cm2 .
Suppose the volume of the water tank is to be 96cm3 . What dimensions of the tank will
minimize the cost of construction?
Solution: (Sketch) Let l be the length, w be the width and h be the height.
Page 6
MATH 2023 Critical Points, Lagrange’s Multiplier Problem Set #4
Answer: (l, w, h) = (4, 4, 6) is the only solution to the Lagrange’s Multiplier system. It
must give the minimum, since the maximum does not exist. Given any fixed volume,
we can always construct a rectangular cube with arbitrarily large surface area.
z2 = x2 + y2 , or equivalently z2 − x2 − y2 = 0.
√ √ √
3(10+ 10) 1+ 10
Therefore, the required point is 10+20 10 , 20 , 2 and the distance from this
q √
point to (1, 3, 1) is given by 11
2 − 10.
x2 y2 z2 = 1.
(a) Show that for any point ( a, b, c) on the surface, its tangent plane does not contain the
origin.
Therefore, the normal vector to the required tangent plane can be taken to be:
n = ab2 c2 i + a2 bc2 j + a2 b2 ck
Page 7
MATH 2023 Critical Points, Lagrange’s Multiplier Problem Set #4
As the plane passes through ( a, b, c), the equation of the tangent is then given by:
As ( a, b, c) lies on the surface x2 y2 z2 , we can assume that all of a, b and c are non-
zero (otherwise if any of them are zero, we would get 0 = 1). After simplification,
we get:
x y z
ab2 c2 x + a2 bc2 y + a2 b2 cz = 3a2 b2 c2 =⇒ + + = 3.
a b c
By substituting ( x, y, z) = (0, 0, 0), we get LHS = 0 whereas RHS = 3. Therefore,
(0, 0, 0) is not contained on the tangent plane.
(b) Find all points ( a, b, c) on the surface such that the tangent plane at these points are
closest to the origin.
3
d= q
1 1 1
a2
+ b2
+ c2
Since ( a, b, c) lies on the given surface, they are subject to the constraint a2 b2 c2 =
1. Therefore, the distance is also given by:
3 3
d= q =√
b2 c2 + a2 c2 + b2 c2 b2 c2 + a2 c2 + b2 c2
a2 b2 c2
f ( a, b, c) = a2 b2 + b2 c2 + c2 a2 (to be maximized)
2 2 2
g( a, b, c) = a b c = 1 (constraint)
Page 8
MATH 2023 Critical Points, Lagrange’s Multiplier Problem Set #4
8. (FF) Suppose
f ( x, y) = 2x2 + xy − 8x − y + 6
Let T be the triangular region (boundary included) in the xy-plane with vertices (0, 0),
(0, 3) and (3, 0).
(a) Find all the interior critical point(s) of f in the region T.
(b) Find the maximum and minimum values of f ( x, y) when ( x, y) is restricted on the
vertical side of T, i.e. the line segment joining (0, 0) and (0, 3).
(c) Find the maximum and minimum values of f ( x, y) when ( x, y) is restricted on the
horizontal side of T, i.e. the line segment joining (0, 0) and (3, 0).
(d) Write the equation of the line joining the vertices (0, 3) and (3, 0). Hence find the
maximum and minimum values of f ( x, y) when ( x, y) is restricted to the hypotenuse
of T.
f x = λgx 4x + y − 8 = λ
f y = λgy x−1 = λ
g( x, y) = 3 x+y = 3
Page 9
MATH 2023 Critical Points, Lagrange’s Multiplier Problem Set #4
end-points, we get:
(e) Determine the absolute maximum and minimum of f ( x, y) over the domain T.
Solution: Since f has no interior critical point in the region T, its absolute max
and min must take place on the boundary of the region, i.e. the three sides of the
triangle. From previous parts, we got:
side max min
vertical 6 3
horizontal 6 -2
hypotenuse 3 -1
Therefore, the absolute maximum of f is 6 and the absolute minimum is −2 over
the region T.
x = a + tu1 ,
13.6
y = b + tu
Directional Derivatives and
2
Partial derivatives tell us a lot about the rate of cha
is a straight-line passing through ( a, b) in the direction of û. ever,
As such,
they dothe
not intersection
directly answer some important
curve of the vertical plane shown in the diagram below can be are as:a point 1a, b, f1a, b22 on the surfa
standing at
expressed
fx and fy tell you the rate of change (or slope) of th
z = f ( a + tu1 , b + tu2 ) parallel to the x-axis and y-axis, respectively. But y
directions from that point and find a different rate
observation in mind, we pose several questions.
z • Suppose you are standing on a surface and you w
dinate direction—say, northwest or south-southea
function in such a direction?
• Suppose you are standing on a surface and you re
(a,, b,
b, f (a,
(a b)) In which direction will it roll?
z f (x, y) • If you are hiking up a mountain, in what direction
you want to follow the steepest path?
These questions will be answered in this section a
tive, followed by one of the central concepts of cal
x P0(a, b)
u y
Directional Derivatives
Unit vector u
Let 1a, b, f1a, b22 be a point on the surface z = f
FIGURE 13.63 xy-plane (Figure 13.63). Our aim is to find the ra
P01a, b2. In general, this rate of change is neither f
dz
Therefore, the first derivative dt 兩u兩 ⫽measures the slope of tangent at ( a, b, f ( a, b)), whereas
t =0 1 u or u = 8 0, 1 9 ), but it turns out to be a combinatio
2
the second derivative dt2 d z
indicates whether u ⫽ sin
2 the curve is concaveFigure
up 13.64a
or downshows the unit vector u at an an
around
t =0 nents are u = 8 u 1, u 2 9 = 8 cos u, sin u 9 . The deri
the point ( a, b, f ( a, b)). u1 ⫽ cos the line / in the xy-plane through P0 in the directio
(a) h units from P0 along /, has coordinates P1a + h co
ᐉ
Now imagine the plane Q perpendicular to the
y P(a ⫹ h cos , b ⫹ h sin ) the surface z = f1x, y2 in a curve C. Consider two
they have z-coordinates f1a, b2 and f1a + h cos u,
u
Page 10 h sin of the secant line between these points is
h
f1a + h cos u, b + h sin
P0(a, b) h cos h
u ⫽ 具u , u 典 ⫽ 具cos , sin 典 The derivative of f in the direction of u is obtaine
MATH 2023 Critical Points, Lagrange’s Multiplier Problem Set #4
dz
= f x u1 + f y u2
dt
d2 z
= f xx u21 + 2 f xy u1 u2 + f yy u22
dt2
dz ∂ f dx ∂ f dy
= +
dt ∂x dt ∂y dt
d d
= f x ( a + tu1 ) + f y (b + tu2 )
dt dt
= f x u1 + f y u2
d2 z
d dz
=
dt2 dt dt
d
= f x u1 + f y u2 (from above)
dt
d fx d fy
= u1 + u2
dt dt
∂ f x dx ∂ f x dy
= + u1
∂x dt ∂y dt
∂ f y dx ∂ f y dy
+ + u2
∂x dt ∂y dt
= f xx u1 + f xy u2 u1 (recall that x = a + tu1
+ f yx u1 + f yy u2 u2 and y = b + tu2 )
= f xx u21 + f xy u2 u1 + f yx u1 u2 + f yy u22
= f xx u21 + 2 f xy u1 u2 + f yy u22 (Mixed Partials Theorem)
Page 11
MATH 2023 Critical Points, Lagrange’s Multiplier Problem Set #4
Solution: If f xx 6= 0, then:
d2 z
= f xx u21 + 2 f xy u1 u2 + f yy u22
dt2
2 f xy f yy 2
2
= f xx u1 + u1 u2 + u
f xx f xx 2
" 2 2 #
2 f xy f xy f xy f yy 2
2
= f xx u1 + u1 u2 + u2 − u2 + u
f xx f xx f xx f xx 2
" ! #
2 2
f xy
f xy f yy
= f xx u1 + u2 + − 2 + u22
f xx f xx f xx
" ! #
2
f xx f yy − f xy2
f xy
= f xx u1 + u2 + 2
u22
f xx f xx
For the case f yy 6= 0, we can obtain the result using symmetry argument: by
switching x with y, and u1 with u2 .
d2 z
The last case is trivial (since dt2
= f xx u21 + 2 f xy u1 u2 + f yy u22 ).
(c) The nature of the point ( a, b, f ( a, b)) can be determined by the following argument:
2 > 0 and f d2 z
i. If f xx f yy − f xy xx > 0, what can you say about dt2
? Using this observa-
tion, conclude the nature of the point ( a, b, f ( a, b)).
d2 z d2 z
and therefore dt2
≥ 0 for any u1 and u2 . The only situation with dt2
= 0 is
f xy
that both u1 + f xx u2= 0 and u2 = 0. However, it would imply u1 = u2 = 0,
which contradicts to the fact that u = u1 i + u2 j is a unit (hence non-zero)
vector.
2
Therefore, ddt2z > 0 for any unit direction u. The graph z = f ( x, y) is concave
up in all directions u, and so the critical point must be a local minimum.
Page 12
MATH 2023 Critical Points, Lagrange’s Multiplier Problem Set #4
2 > 0 and f
ii. How about if f xx f yy − f xy xx < 0?
d2 z
and therefore ≤ 0. By similar discussion as in (i), the only situation in
dt2
d2 z
which dt2
= 0 is that u1 = u2 = 0 (that is impossible for a unit vector u).
2
Therefore, ddt2z < 0 for any unit vector u. The graph z = f ( x, y) is concave
down in all directions u, and so the critical point must be a local maximum.
2 > 0 and f
iii. How about if f xx f yy − f xy xx = 0?
2 > 0.
Solution: This is not possible. Otherwise we would have − f xy
2 < 0?
iv. What if f xx f yy − f xy
2
In either case, whether ddt2z is positive or negative depends on the choice of
u1 and u2 . In other words, the graph z = f ( x, y) is concave up in some
directions and concave down in some other directions. The critical point is a
saddle.
2
In the last case where f xx = f yy = 0, we then have ddt2z = 2 f xy u1 u2 . Therefore,
whether it is positive or negative depends only the choice of u. The critical
point is again a saddle.
Page 13