Richard P. answered 03/30/17
Tutor
4.9
(831)
PhD in Physics with 10+ years tutoring experience in STEM subjects
Introduce a Legrange multiplier, λ. The function to be studied is then:
h(x,y,z) = xyz + λ (z - exp(-x2-y2))
Denote the partial derivatives with subscripts ( for example hx is the partial derivative of h wrt x)
Then the conditions for extrema are: hx =0, hy =0 and hz = 0 These three equations work out to:
yz + λ (2x exp(-x2 -y2)) = 0
xz +λ(2y exp(-x2 -y2) )= 0
xy + λ =0
The last of these is easily solved for λ, giving λ = -xy. Substituting this into the first two, eliminating z using
the constraint equation z = exp(-x2-y2), and factoring out the common factor of exp(-x2-y2) gives:
y - 2 x2 y = 0 and x - 2 x y2 =0
This set of two nonlinear equations has 5 solutions:
The obvious one is x = y = 0.
The other four can be obtained by multiplying the first one by y and the second one by x. This leads to
x2 = y2 , Thus y = ± x. Plugging this into the first one yields x = ± sqrt(1/2). Thus in ordered triplet
notation (x,y,z), the five extrema are:
(0,0,1)
( sqrt(1/2), sqrt(1/2), exp(-1) )
( sqrt(1/2), -sqrt(1/2), exp(-1) )
( -sqrt(1/2), sqrt(1/2), exp(-1/ )
( -sqrt(1/2), -sqrt(1/2), exp(-1) )
( -sqrt(1/2), sqrt(1/2), exp(-1/ )
( -sqrt(1/2), -sqrt(1/2), exp(-1) )