Let the square of the distance function be "f(x,y,z)=x^2+y^2+z^2"
Given, the constraint function "g(x,y,z)=xy+12x+z^2"
Apply Lagrange Multiplier as,
So, find the gradient both sides to obtain,
Equate to gradients of both sides as,
From equation "2z=\\lambda (2z),\\lambda=1" , so plug "\\lambda=1" into "2y=\\lambda (x)" to obtain "x=2y".
Next, plug "x=2y" and "\\lambda=1" into equation "2x=\\lambda (y+12)" and solve for "y" as,
Subtract "y" from both sides to isolate variable "y" from constant as,
Divide both sides by "3" to obtain,
So, the value of "y" is "y=4" and "x=2y=2(4)=8"
Now, plug the values of "x" and "y" into constraint equation "xy+12x+z^2=144" and solve for "z" as,
Subtract "80" from both sides to obtain,
Now, plug "x=8,y=4" and "z=\u00b18" into objective function "f(x,y,z)=x^2+y^2+z^2" to obtain,
Next, find the square root of objective function as,
Therefore, the shortest distance from the surface "xy+12x+z^2=144" to the origin is "[12]".
Comments
Leave a comment