Tutorial 3 Sol
Tutorial 3 Sol
Solution:
1
a) We begin by substituting y = 1 − x2 into f (x, y) = x2 + y 2 :
f (x, y = 1 − x2 ) = x2 + (1 − x2 )2
= x2 + 1 − 2x2 + x4
= x4 − x2 + 1
d2 f
= (12x2 − 2x)
dx2 x=(0,±1/2) x=(0,±1/2)
−2 for x = 0 (relative maximum)
=
4 for x = ±p1/2 (minimum)
p
The minimum we wanted then occurs at x = ± 1/2, where y = 1/2.
dy = −2xdx
2
Eliminating dy from df :
df = (2x − 4xy)dx
Similar to part (a), we minimise f by setting df /dx = 0 and eliminating
y using the equation of the curve y = 1 − x2 :
df
= 2x − 4xy = 0
dx
⇒2x − 4x(1 − x2 ) = 0
p
We solve for x and find x = 0 or x = ± 1/2. Categorising x as minimum
or maximum requires the second derivative. We apply d/dx to both sides
of (2):
2
d2 f dy d2 y
= 2 + 2 + 2y
dx2 dx dx2
At x = 0, we find:
y = 1,
dy
= 0,
dx
d2 y
= −2
dx2
d2 f
⇒ 2 = 2 − 4 = −2
dx
p
which is a maximum point. For x = ± 1/2:
1
y=
2
dy √
=∓ 2
dx
d2 y
= −2
dx2
d2 f
⇒ 2 =2+4−2=4
dx
3
which is a minimum point.
2x + λ2x = 0
2y + λ = 0
λ = −1 or λ = −2
p
For λ = −1, we find x = ± 1/2 and y = 1/2. Substituing these values
of (x, y) into f (x, y):
1 1 3
f (x, y) = + =
λ=−1 2 4 4
f (x, y) = 02 + 12 = 1
λ=−2
4
Since f (x, y)|λ=−1 < f (x, y)|λ=−2 , minimising f (x, y) would require (x, y) =
p
± 1/2, y = 1/2.
As expected, all three methods give the same answers for (x, y) to min-
imise the function f = x2 + y 2 with the same constraint.
2. Find the volume of the largest rectangular parallelepiped (that is, box),
with edges parallel to the axes, inscribed in the ellipsoid
x2 y 2 z 2
+ + = 1.
a2 b2 c2
Solution
Recall the use of Lagrange multiplier in maximizing a function f (x, y, z)
subject to constraint g(x, y, z) = 0. The Lagrange function is
x2 y2 z2
Here, we observe that the constraint a2 + b2 + c2 = 1 is an ellipsoid
centred at (0, 0, 0). Hence the vertices of the rectangular parallelepiped
(with edges parallel to the axes) are located at (±x, ±y, ±z), and the
volume is
V (x, y, z) = (2x)(2y)(2z) = 8xyz
a2 y 2 = b2 x2 ; a2 z 2 = c2 x2 ; b2 z 2 = c2 y 2
1 1 1
⇒ x = √ a; y = √ b; z = √ c
3 3 3
This would then give
8abc
Vmax = √
3 3