P.S. Apologies in advance if this was the wrong forum for this question.
The question: find the point on the plane that is closest to the point .
So I guess in math terms the problem is to find where
It's clear that
And of course, what you're supposed to do is set them equal to zero and solve. Only problem is, I have no clue how to do that. Any help appreciated. Thanks in advance.
Edit: Never mind, is it as stupid as I think it is?
Is that the solution? If so, I think I should bash my head against a wall.
What you are doing now is finding the distance between some arbitrary point (x,y,z) and the point (1,2,3).
If you're going to minimize that, then you'll find x = 1 indeed, and y = 2 and z = 3, since the closest point will be the point itself
What you're forgetting is to implement the fact that your point isn't arbitrary, it has to satisfy x-y+z=4.
You could do this with Lagrange multipliers, or substitute (for example) y by x+z-4 in your expression, leaving a two-variable problem.
Another hint: since you're only asked to find the closest point, you might as well minimize dē, the square distance.
This way you'll lose the annoying square root, but your solution will be the same since minimal distance implies minimal quadratic distance.
Hello, Markholden,
Your equation describes a plane in in normal form. That means you know the perpendicular direction to this plane: .
If you use this direction and the given point you can construct a straight line which intercept the plane in the point you are looking for:
Plane:
Line:
Calculating the intercept:
Calculate the scalar products:
Plug in this value into the equation of the line:
The distance between this point and the given point is:
EB
[quote=markholden;28463]The question: find the point on the plane that is closest to the point .
So I guess in math terms the problem is to find where
quote]
One way of doing this is to write:
Then you want to find which minimised which is a point at which:
, and
These give a pair of linear simultaneous equations which can be solved for and , then can be found by plugging these into the equation of the plane.
RonL
Hello, Mark!
Find the point on the plane that is closest to the point
I would take TD's advice and use Lagrangian multipliers.
We want to minimize: .
. . with the constraint:
We have: .
Then: /
Substitute into (4): .
. . and we have: .
Substitute into (4), (5), (6): .
Therefore, the closest point is: .