Solution:
Key idea: Let A A A and B B B be two points on the line and P P P the given point, with θ \theta θ the angle between A P → \overrightarrow{AP} A P and A B → \overrightarrow{AB} A B . The perpendicular distance from P P P to the line is d = ∣ A P → ∣ sin θ d = |\overrightarrow{AP}|\sin\theta d = ∣ A P ∣ sin θ , and ∣ A P → × A B → ∣ = ∣ A P → ∣ ∣ A B → ∣ sin θ |\overrightarrow{AP} \times \overrightarrow{AB}| = |\overrightarrow{AP}|\,|\overrightarrow{AB}|\sin\theta ∣ A P × A B ∣ = ∣ A P ∣ ∣ A B ∣ sin θ , so d = ∣ A P → × A B → ∣ ∣ A B → ∣ d = \dfrac{|\overrightarrow{AP} \times \overrightarrow{AB}|}{|\overrightarrow{AB}|} d = ∣ A B ∣ ∣ A P × A B ∣ .
Step 1 — Name the points and find the vectors.
Let P ( 6 , − 4 , 4 ) P(6, -4, 4) P ( 6 , − 4 , 4 ) , A ( 2 , 1 , 2 ) A(2, 1, 2) A ( 2 , 1 , 2 ) and B ( 3 , − 1 , 4 ) B(3, -1, 4) B ( 3 , − 1 , 4 ) . We subtract the coordinates of A A A .
A P → = ( 6 − 2 ) i ^ + ( − 4 − 1 ) j ^ + ( 4 − 2 ) k ^ \overrightarrow{AP} = (6 - 2)\hat{i} + (-4 - 1)\hat{j} + (4 - 2)\hat{k} A P = ( 6 − 2 ) i ^ + ( − 4 − 1 ) j ^ + ( 4 − 2 ) k ^
A P → = 4 i ^ − 5 j ^ + 2 k ^ \overrightarrow{AP} = 4\hat{i} - 5\hat{j} + 2\hat{k} A P = 4 i ^ − 5 j ^ + 2 k ^
A B → = ( 3 − 2 ) i ^ + ( − 1 − 1 ) j ^ + ( 4 − 2 ) k ^ \overrightarrow{AB} = (3 - 2)\hat{i} + (-1 - 1)\hat{j} + (4 - 2)\hat{k} A B = ( 3 − 2 ) i ^ + ( − 1 − 1 ) j ^ + ( 4 − 2 ) k ^
A B → = i ^ − 2 j ^ + 2 k ^ \overrightarrow{AB} = \hat{i} - 2\hat{j} + 2\hat{k} A B = i ^ − 2 j ^ + 2 k ^
Step 2 — Find the vector product.
We expand the determinant with A P → \overrightarrow{AP} A P in the second row and A B → \overrightarrow{AB} A B in the third.
A P → × A B → = ∣ i ^ j ^ k ^ 4 − 5 2 1 − 2 2 ∣ \overrightarrow{AP} \times \overrightarrow{AB} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 4 & -5 & 2 \\ 1 & -2 & 2 \end{vmatrix} A P × A B = i ^ 4 1 j ^ − 5 − 2 k ^ 2 2
A P → × A B → = i ^ [ ( − 5 ) ( 2 ) − ( 2 ) ( − 2 ) ] − j ^ [ ( 4 ) ( 2 ) − ( 2 ) ( 1 ) ] + k ^ [ ( 4 ) ( − 2 ) − ( − 5 ) ( 1 ) ] \overrightarrow{AP} \times \overrightarrow{AB} = \hat{i}\big[(-5)(2) - (2)(-2)\big] - \hat{j}\big[(4)(2) - (2)(1)\big] + \hat{k}\big[(4)(-2) - (-5)(1)\big] A P × A B = i ^ [ ( − 5 ) ( 2 ) − ( 2 ) ( − 2 ) ] − j ^ [ ( 4 ) ( 2 ) − ( 2 ) ( 1 ) ] + k ^ [ ( 4 ) ( − 2 ) − ( − 5 ) ( 1 ) ]
A P → × A B → = i ^ ( − 10 + 4 ) − j ^ ( 8 − 2 ) + k ^ ( − 8 + 5 ) \overrightarrow{AP} \times \overrightarrow{AB} = \hat{i}\,(-10 + 4) - \hat{j}\,(8 - 2) + \hat{k}\,(-8 + 5) A P × A B = i ^ ( − 10 + 4 ) − j ^ ( 8 − 2 ) + k ^ ( − 8 + 5 )
A P → × A B → = − 6 i ^ − 6 j ^ − 3 k ^ \overrightarrow{AP} \times \overrightarrow{AB} = -6\hat{i} - 6\hat{j} - 3\hat{k} A P × A B = − 6 i ^ − 6 j ^ − 3 k ^
Step 3 — Find the two magnitudes.
We need the length of the product and the length of A B → \overrightarrow{AB} A B .
∣ A P → × A B → ∣ = ( − 6 ) 2 + ( − 6 ) 2 + ( − 3 ) 2 |\overrightarrow{AP} \times \overrightarrow{AB}| = \sqrt{(-6)^2 + (-6)^2 + (-3)^2} ∣ A P × A B ∣ = ( − 6 ) 2 + ( − 6 ) 2 + ( − 3 ) 2
∣ A P → × A B → ∣ = 36 + 36 + 9 |\overrightarrow{AP} \times \overrightarrow{AB}| = \sqrt{36 + 36 + 9} ∣ A P × A B ∣ = 36 + 36 + 9
∣ A P → × A B → ∣ = 81 |\overrightarrow{AP} \times \overrightarrow{AB}| = \sqrt{81} ∣ A P × A B ∣ = 81
∣ A P → × A B → ∣ = 9 |\overrightarrow{AP} \times \overrightarrow{AB}| = 9 ∣ A P × A B ∣ = 9
∣ A B → ∣ = 1 2 + ( − 2 ) 2 + 2 2 |\overrightarrow{AB}| = \sqrt{1^2 + (-2)^2 + 2^2} ∣ A B ∣ = 1 2 + ( − 2 ) 2 + 2 2
∣ A B → ∣ = 1 + 4 + 4 |\overrightarrow{AB}| = \sqrt{1 + 4 + 4} ∣ A B ∣ = 1 + 4 + 4
∣ A B → ∣ = 9 |\overrightarrow{AB}| = \sqrt{9} ∣ A B ∣ = 9
∣ A B → ∣ = 3 |\overrightarrow{AB}| = 3 ∣ A B ∣ = 3
Step 4 — Divide to get the distance.
We put the two lengths into the formula for d d d .
d = 9 3 d = \frac{9}{3} d = 3 9
d = 3 d = 3 d = 3
Check: We can also use Pythagoras: ∣ A P → ∣ 2 |\overrightarrow{AP}|^2 ∣ A P ∣ 2 is the square of the hypotenuse, the projection of A P → \overrightarrow{AP} A P on the line is one leg and d d d is the other leg.
∣ A P → ∣ 2 = 16 + 25 + 4 |\overrightarrow{AP}|^2 = 16 + 25 + 4 ∣ A P ∣ 2 = 16 + 25 + 4
∣ A P → ∣ 2 = 45 |\overrightarrow{AP}|^2 = 45 ∣ A P ∣ 2 = 45
projection = A P → ⋅ A B → ∣ A B → ∣ \text{projection} = \frac{\overrightarrow{AP} \cdot \overrightarrow{AB}}{|\overrightarrow{AB}|} projection = ∣ A B ∣ A P ⋅ A B
projection = 4 + 10 + 4 3 \text{projection} = \frac{4 + 10 + 4}{3} projection = 3 4 + 10 + 4
projection = 6 \text{projection} = 6 projection = 6
d 2 = 45 − 6 2 d^2 = 45 - 6^2 d 2 = 45 − 6 2
d 2 = 9 d^2 = 9 d 2 = 9
So d = 3 d = 3 d = 3 again.
Therefore, the perpendicular distance of the point from the line is 3 3 3 units.