Geometry · real student question

Find the distance from the point (1, 4, -1) to the line (0,0,0) + a*(3, 1, 2).

Question

Find the distance from the point P=(1,4,1)P=(1,4,-1) to the line

:  (0,0,0)+a(3,1,2),aR\ell:\;(0,0,0)+a(3,1,2),\qquad a\in\mathbb{R}

Step-by-step solution

  1. Set up the cross-product formula. For a line through a point QQ with direction d\mathbf d, the distance from PP is

    d=QP×ddd=\frac{\left\|\overrightarrow{QP}\times\mathbf d\right\|}{\|\mathbf d\|}

    Here QQ is the origin, so QP=p=(1,4,1)\overrightarrow{QP}=\mathbf p=(1,4,-1) and d=(3,1,2)\mathbf d=(3,1,2). Geometrically the numerator is the area of the parallelogram spanned by the two vectors, and dividing by the base d\|\mathbf d\| leaves the height — which is exactly the distance.

  2. Compute the cross product.

    p×d=ijk141312=(42(1)1,  (1)312,  1143)=(9,5,11)\mathbf p\times\mathbf d=\begin{vmatrix}\mathbf i&\mathbf j&\mathbf k\\ 1&4&-1\\ 3&1&2\end{vmatrix}=\left(4\cdot 2-(-1)\cdot 1,\;(-1)\cdot 3-1\cdot 2,\;1\cdot 1-4\cdot 3\right)=(9,\,-5,\,-11)

    The middle component uses the minus sign built into the determinant expansion, which is where sign errors concentrate.

  3. Take the two lengths.

    p×d=81+25+121=227,d=9+1+4=14\left\|\mathbf p\times\mathbf d\right\|=\sqrt{81+25+121}=\sqrt{227},\qquad \|\mathbf d\|=\sqrt{9+1+4}=\sqrt{14}

  4. Divide to get the distance.

    d=22714=2271416.21434.0267d=\frac{\sqrt{227}}{\sqrt{14}}=\sqrt{\frac{227}{14}}\approx\sqrt{16.2143}\approx 4.0267

  5. Cross-check with the projection method. The foot of the perpendicular is at parameter

    a=pddd=3+4214=514a^{*}=\frac{\mathbf p\cdot\mathbf d}{\mathbf d\cdot\mathbf d}=\frac{3+4-2}{14}=\frac{5}{14}

    giving the foot 514(3,1,2)=(1.0714,0.3571,0.7143)\tfrac{5}{14}(3,1,2)=(1.0714,\,0.3571,\,0.7143). The distance from PP to that point is (11.0714)2+(40.3571)2+(10.7143)2=4.0267  \sqrt{(1-1.0714)^2+(4-0.3571)^2+(-1-0.7143)^2}=4.0267\;\checkmark — the same value by an independent route.

Answer

d=22714=227144.0267d=\sqrt{\frac{227}{14}}=\frac{\sqrt{227}}{\sqrt{14}}\approx 4.0267

Need to solve a different problem like this? Open the solver →