Point on plane closest to origin
From Wikipedia, the free encyclopedia
| The introduction to this article provides insufficient context for those unfamiliar with the subject. Please help improve the article with a good introductory style. |
Here we will find the point on an arbitrary plane that is closest to the origin using Lagrange multipliers.
First, let us start with an arbitrary plane, ax + by + cz = d. The distance, L, from the origin to a point [x,y,z] on the plane is given by:

Therefore the function that we want to minimize is: 
Our one constraint on x, y, and z is that the point [x,y,z] must lie on the given plane. Thus, g = ax + by + cz - d.
Next we define a new function with a Lagrange multiplier, λ.

Take the partial of f * with respect to x, y, and z and set each to zero.



Now each partial includes a λ and a
term.
If we solve each equation for
and set them equal to one another
we can find the relation:

From this we can derive y and z as functions of x:


Substitute these into y and z for the equation of the plane and solve for x to obtain:

From x you can solve for y and z:


And hence the point on the plane closest to the origin is:
![[x,y,z] = \Big[\frac {ad}{{a^2+b^2+c^2}} , \frac {bd}{{a^2+b^2+c^2}} , \frac {cd}{{a^2+b^2+c^2}}\Big]](../../../../math/8/5/b/85b5339440f3099ad998c9bcdc2bee90.png)
and the distance is given by:


