EXAMPLE 6 Find the point(s) on the plane
x+y-z = 3 that are closest to the origin.
Solution: To begin with, we let f denote the square
of the distance from a point ( x,y,z) to the origin.
Consequently,
Thus, we want to
minimize f(x,y,z) = x2 + y2 +z2
subject to x + y - z =
3
To do so, we define the Lagrangian of the problem to be
L( x,y,l) = x2 + y2 +z2 -l( x+y-z - 3)
Since Lx = 2x-l ,Ly = 2y-l, Lz= 2z+l, and Ll
= -(x+y-z - 3), the critical points of L are the solutions to
2x=l , 2y=l, -2z=l,
and x + y - z =
3
Since 2x+ 2y -
2z = 6, the other three equations imply that
l+ l +l = 6, or l = 2
However, l = 2 implies that x=1,
y=1, and z=-1, which means that (1,1,-1) is the point on x+y-z =
3 closest to the origin.
|
|
fx( x,y,z) -lgx( x,y,z) -mhx( x,y,z) , |
| |
|
fy( x,y,z) -lgy( x,y,z) -mhy( x,y,z) , |
| |
|
fy( x,y,z) -lgz( x,y,z) -mhz( x,y,z) , |
|
|