My exercise is as follows:
Using Lagrange multipliers find the distance from the point $(1,2,−1)$ to the plane given by the equation $x−y + z = 3. $
My thought process:
- Langrange Multipliers let you find the maximum and/or minimum of a function given a function as a constraint on your input. For example, if I'm told to find the maximum value of some plane given the constraint $x^2+y^2 = 1$, the only $x$ values I can take are ones on the unit circle.
- It does this by assuming that any intersecting contour lines of the function and constraining function must have the condition $\nabla f = \lambda \nabla g$. Intersecting contour lines are necessary for the constraining function and function to be equal to eachother.
- In this case, we are trying to find the distance from the point $(1,2,-1)$ to the plane of equation $x-y+z=3$.
- Now, given my intuition, $x-y+z=3$ ought to be $g(x,y,z)$ since in these types of problems some function equal to a constant will be this $g(x,y,z)$ (although I'm not exactly sure why).
- This leads me to ponder what form $f(x,y,z)$ will have such that $F(x,y,z) = f(x,y,z) - \lambda g(x,y,z)$.
- The minimum distance from a point to a plane should be a straight line, and that line should be perpendicular to the plane. That means it should be the normal vector, or gradient, of that plane. However, I don't know how that helps me. I need a function $f(x,y,z)$ to use.
Here's my lecturer's answer:
- We want to minimize $$d = \sqrt {(x-1)^2+(y-2)^2 + (z+1)^2}$$
- Equivalent to minimizing $(x-1)^2+(y-2)^2 + (z+1)^2$ with the same constraint.
Thus, it is rendered to
$$F(x,y,z) = (x-1)^2+(y-2)^2 + (z+1)^2 - \lambda (x-y+z-3)$$
Upon solving $\lambda$ apparently didn't need to be considered when minimizing, as it dropped out in row operations and back-substitutions from the simultaneous equations you get from considering the partial derivatives. This leaves me with the following questions:
Why are we working with the distance from the origin to the point rather than the point to the plane?
Is what is meant by "minimize" is find the smallest output value for the plane given the constraint its inputs must also satisfy $(x-1)^2+(y-2)^2 + (z+1)^2$?
How did he reach the conclusion $\sqrt{(x-1)^2+(y-2)^2 + (z+1)^2}$ is equivalent to minimizing $(x-1)^2+(y-2)^2 + (z+1)^2$ subject to the same constraint?
Why is my thinking in normal vectors a bad idea?
The values that solve the linear equations are the points needed for minimum distance. Why is that?