Question: A 3D line is given by
$$r(t) = (8, 8, 9) + t(9, 4, 5), t ∈ R $$
Let $P(x, y, z)$ be the point on the line that is nearest to the the origin. Find the point $(x, y, z)$.
I know I can find the normal, n to vector v(9,4,5) by doing cross product of u x v where u is just origin to point (8,8,9). By doing cross product of u x v, I got my n to be (-5,41,-40). From here, I compare the ||n|| which is the vertical distance by finding another normal to the line which is OP x v.
If I equate this ||n|| = ||OP x v||, I would get
$$||(9y-8z, 9x+8z ,8x-8y)|| = ||(-5,41,-40)||$$
Finally, by simultaneous equation where by
$$9y-8z=-5,\>\>\> 9x+8z=41,\>\>\>8x-8y=-40$$
and solve it to be $y=5,\>\>\> x=-1,\>\>\> z= 25/4$
which is the wrong answer. The answer to the question is
$$x=-365/122,\>\>\> y= 190/61, \>\>\>z = 353/122$$
But,I simply can't figure this out.
Attached: (A sketch on this question) which I'm not sure is accurate or not.
Let $\vec{a}$ and $\vec{b}$ represent two points on the lines. Use the area formula and the dot product below,
$$\frac 12 d |\vec{a}-\vec{b}|=\frac 12 ab \sin\theta, \>\>\>\vec{a}\cdot \vec{b}=ab \cos\theta$$
to get the distance to the nearest point,
$$d^2= \frac{ (ab)^2-(\vec{a}\cdot \vec{b})^2}{(\vec{a}-\vec{b})^2}$$
Then, just pick two points from the curve above, say, (8,8,9) and (-1,4,4), and plug them into the above expression,
$$d^2=\frac{3297}{122}$$
The nearest point can be solved by letting,
$$\frac{3297}{122}=(8+9t)^2+(8+4t)^2+(9+5t)^2$$
which can be simplified to
$$t^2+\frac{298}{122}t+\frac{22201}{122^2}= \left(t+\frac{149}{122}\right)^2=0$$
Therefore, $t=-\frac{149}{122}$ and the nearest point is
$$(8, 8, 9) -(9, 4, 5)\frac{149}{122}=\left(\frac{365}{122}, \frac{ 190}{61}, \frac{353}{122} \right)$$