How far is a point from a plane? How close do two skew lines come? “Distance” here always means the shortest distance, which is measured along a perpendicular. Every formula on this page comes from one of two ideas you already know: vector projections and the area of a parallelogram from the cross product .
Suppose Q Q Q is any point on a plane and P P P is a point off it. The vector Q P → \overrightarrow{QP} QP usually points off at an angle. The part of it that points straight away from the plane, along the normal n ⃗ \vec{n} n , is exactly the distance you want. That’s the length of the scalar projection of Q P → \overrightarrow{QP} QP onto n ⃗ \vec{n} n :
d = ∣ Q P → ⋅ n ⃗ ∣ ∣ n ⃗ ∣ d = \frac{\left|\overrightarrow{QP} \cdot \vec{n}\right|}{|\vec{n}|} d = ∣ n ∣ QP ⋅ n
The absolute value is there because a distance can’t be negative.
The distance d from P to a plane is the length of the projection of QP onto the normal n
Q
P
foot
n
QP
d
plane
The distance d d d is the length of the projection of Q P → \overrightarrow{QP} QP onto the normal n ⃗ \vec{n} n .
For the line A x + B y + C = 0 Ax + By + C = 0 A x + B y + C = 0 , the normal is n ⃗ = [ A , B ] \vec{n} = [A, B] n = [ A , B ] . Take P ( x 1 , y 1 ) P(x_1, y_1) P ( x 1 , y 1 ) and any point Q ( x 0 , y 0 ) Q(x_0, y_0) Q ( x 0 , y 0 ) on the line. Then
Q P → ⋅ n ⃗ = A ( x 1 − x 0 ) + B ( y 1 − y 0 ) = A x 1 + B y 1 − ( A x 0 + B y 0 ) = A x 1 + B y 1 + C \overrightarrow{QP} \cdot \vec{n} = A(x_1 - x_0) + B(y_1 - y_0) = Ax_1 + By_1 - (Ax_0 + By_0) = Ax_1 + By_1 + C QP ⋅ n = A ( x 1 − x 0 ) + B ( y 1 − y 0 ) = A x 1 + B y 1 − ( A x 0 + B y 0 ) = A x 1 + B y 1 + C
because A x 0 + B y 0 = − C Ax_0 + By_0 = -C A x 0 + B y 0 = − C (Q Q Q is on the line). Dividing by ∣ n ⃗ ∣ |\vec{n}| ∣ n ∣ gives the standard formula:
d = ∣ A x 1 + B y 1 + C ∣ A 2 + B 2 d = \frac{|Ax_1 + By_1 + C|}{\sqrt{A^2 + B^2}} d = A 2 + B 2 ∣ A x 1 + B y 1 + C ∣
The nice thing: you never actually need to find Q Q Q . Substitute the point into the left side of the equation, take the absolute value, and divide by the length of the normal.
Exactly the same argument in 3-space: for the plane A x + B y + C z + D = 0 Ax + By + Cz + D = 0 A x + B y + C z + D = 0 and the point P ( x 1 , y 1 , z 1 ) P(x_1, y_1, z_1) P ( x 1 , y 1 , z 1 ) ,
d = ∣ A x 1 + B y 1 + C z 1 + D ∣ A 2 + B 2 + C 2 d = \frac{|Ax_1 + By_1 + Cz_1 + D|}{\sqrt{A^2 + B^2 + C^2}} d = A 2 + B 2 + C 2 ∣ A x 1 + B y 1 + C z 1 + D ∣
Parallel planes are the same distance apart everywhere. Pick any point on one plane and use the point-to-plane formula with the other. If the two equations have the same normal, A x + B y + C z + D 1 = 0 Ax + By + Cz + D_1 = 0 A x + B y + C z + D 1 = 0 and A x + B y + C z + D 2 = 0 Ax + By + Cz + D_2 = 0 A x + B y + C z + D 2 = 0 , this simplifies to
d = ∣ D 1 − D 2 ∣ A 2 + B 2 + C 2 d = \frac{|D_1 - D_2|}{\sqrt{A^2 + B^2 + C^2}} d = A 2 + B 2 + C 2 ∣ D 1 − D 2 ∣
The same idea works for two parallel lines in 2-space.
In 3-space a line has no single normal, so use the cross product instead. Let Q Q Q be a point on the line with direction m ⃗ \vec{m} m , and let θ \theta θ be the angle between Q P → \overrightarrow{QP} QP and m ⃗ \vec{m} m . From the right triangle in the figure, d = ∣ Q P → ∣ sin θ d = |\overrightarrow{QP}| \sin\theta d = ∣ QP ∣ sin θ . Since ∣ Q P → × m ⃗ ∣ = ∣ Q P → ∣ ∣ m ⃗ ∣ sin θ |\overrightarrow{QP} \times \vec{m}| = |\overrightarrow{QP}|\,|\vec{m}| \sin\theta ∣ QP × m ∣ = ∣ QP ∣ ∣ m ∣ sin θ ,
d = ∣ Q P → × m ⃗ ∣ ∣ m ⃗ ∣ d = \frac{\left|\overrightarrow{QP} \times \vec{m}\right|}{|\vec{m}|} d = ∣ m ∣ QP × m
Another way to see it: ∣ Q P → × m ⃗ ∣ \left|\overrightarrow{QP} \times \vec{m}\right| QP × m is the area of the parallelogram formed by the two vectors, and area ÷ \div ÷ base = = = height.
The distance d from P to a line is the height of the parallelogram formed by QP and m
θ
Q
P
m
QP
d
line
The distance d d d is the height of the parallelogram formed by Q P → \overrightarrow{QP} QP and m ⃗ \vec{m} m .
Let the lines be r ⃗ = r ⃗ 1 + t m ⃗ 1 \vec{r} = \vec{r}_1 + t\vec{m}_1 r = r 1 + t m 1 and r ⃗ = r ⃗ 2 + s m ⃗ 2 \vec{r} = \vec{r}_2 + s\vec{m}_2 r = r 2 + s m 2 , through points P 1 P_1 P 1 and P 2 P_2 P 2 . The shortest segment between skew lines is perpendicular to both lines, so it runs in the direction
n ⃗ = m ⃗ 1 × m ⃗ 2 \vec{n} = \vec{m}_1 \times \vec{m}_2 n = m 1 × m 2
Project the connecting vector P 1 P 2 → \overrightarrow{P_1P_2} P 1 P 2 onto n ⃗ \vec{n} n :
d = ∣ P 1 P 2 → ⋅ ( m ⃗ 1 × m ⃗ 2 ) ∣ ∣ m ⃗ 1 × m ⃗ 2 ∣ d = \frac{\left|\overrightarrow{P_1P_2} \cdot (\vec{m}_1 \times \vec{m}_2)\right|}{|\vec{m}_1 \times \vec{m}_2|} d = ∣ m 1 × m 2 ∣ P 1 P 2 ⋅ ( m 1 × m 2 )
This is really the point-to-plane formula again: the two skew lines lie in parallel planes with normal n ⃗ \vec{n} n , and d d d is the gap between those planes. If the answer is 0 0 0 , the lines actually intersect. (For parallel lines, m ⃗ 1 × m ⃗ 2 = 0 ⃗ \vec{m}_1 \times \vec{m}_2 = \vec{0} m 1 × m 2 = 0 , so use the point-to-line formula instead.)
Distance Formula point to line in 2-space ∣ A x 1 + B y 1 + C ∣ A 2 + B 2 \dfrac{\lvert Ax_1 + By_1 + C \rvert}{\sqrt{A^2 + B^2}} A 2 + B 2 ∣ A x 1 + B y 1 + C ∣ point to plane ∣ A x 1 + B y 1 + C z 1 + D ∣ A 2 + B 2 + C 2 \dfrac{\lvert Ax_1 + By_1 + Cz_1 + D \rvert}{\sqrt{A^2 + B^2 + C^2}} A 2 + B 2 + C 2 ∣ A x 1 + B y 1 + C z 1 + D ∣ point to line in 3-space ∣ Q P → × m ⃗ ∣ ∣ m ⃗ ∣ \dfrac{\lvert \overrightarrow{QP} \times \vec{m} \rvert}{\lvert \vec{m} \rvert} ∣ m ∣ ∣ QP × m ∣ skew lines ∣ P 1 P 2 → ⋅ ( m ⃗ 1 × m ⃗ 2 ) ∣ ∣ m ⃗ 1 × m ⃗ 2 ∣ \dfrac{\lvert \overrightarrow{P_1P_2} \cdot (\vec{m}_1 \times \vec{m}_2) \rvert}{\lvert \vec{m}_1 \times \vec{m}_2 \rvert} ∣ m 1 × m 2 ∣ ∣ P 1 P 2 ⋅ ( m 1 × m 2 )∣
Find the distance from P ( 5 , 3 ) P(5, 3) P ( 5 , 3 ) to the line 3 x − 4 y + 8 = 0 3x - 4y + 8 = 0 3 x − 4 y + 8 = 0 .
Solution.
d = ∣ 3 ( 5 ) − 4 ( 3 ) + 8 ∣ 3 2 + ( − 4 ) 2 = ∣ 11 ∣ 5 = 11 5 = 2.2 d = \frac{|3(5) - 4(3) + 8|}{\sqrt{3^2 + (-4)^2}} = \frac{|11|}{5} = \frac{11}{5} = 2.2 d = 3 2 + ( − 4 ) 2 ∣3 ( 5 ) − 4 ( 3 ) + 8∣ = 5 ∣11∣ = 5 11 = 2.2
Check with a projection. The point Q ( 0 , 2 ) Q(0, 2) Q ( 0 , 2 ) is on the line (0 − 8 + 8 = 0 0 - 8 + 8 = 0 0 − 8 + 8 = 0 ). Then Q P → = [ 5 , 1 ] \overrightarrow{QP} = [5, 1] QP = [ 5 , 1 ] and n ⃗ = [ 3 , − 4 ] \vec{n} = [3, -4] n = [ 3 , − 4 ] :
∣ [ 5 , 1 ] ⋅ [ 3 , − 4 ] ∣ ∣ [ 3 , − 4 ] ∣ = ∣ 15 − 4 ∣ 5 = 11 5 \frac{|[5, 1] \cdot [3, -4]|}{|[3, -4]|} = \frac{|15 - 4|}{5} = \frac{11}{5} ∣ [ 3 , − 4 ] ∣ ∣ [ 5 , 1 ] ⋅ [ 3 , − 4 ] ∣ = 5 ∣15 − 4∣ = 5 11
Same answer ✓.
(a) Find the distance from P ( 2 , − 1 , 4 ) P(2, -1, 4) P ( 2 , − 1 , 4 ) to the plane 2 x − y + 2 z − 3 = 0 2x - y + 2z - 3 = 0 2 x − y + 2 z − 3 = 0 .
(b) Find the distance between the planes 2 x − y + 2 z − 3 = 0 2x - y + 2z - 3 = 0 2 x − y + 2 z − 3 = 0 and 4 x − 2 y + 4 z + 9 = 0 4x - 2y + 4z + 9 = 0 4 x − 2 y + 4 z + 9 = 0 .
Solution.
(a)
d = ∣ 2 ( 2 ) − ( − 1 ) + 2 ( 4 ) − 3 ∣ 2 2 + ( − 1 ) 2 + 2 2 = ∣ 10 ∣ 9 = 10 3 ≈ 3.33 d = \frac{|2(2) - (-1) + 2(4) - 3|}{\sqrt{2^2 + (-1)^2 + 2^2}} = \frac{|10|}{\sqrt{9}} = \frac{10}{3} \approx 3.33 d = 2 2 + ( − 1 ) 2 + 2 2 ∣2 ( 2 ) − ( − 1 ) + 2 ( 4 ) − 3∣ = 9 ∣10∣ = 3 10 ≈ 3.33
(rounded to two decimal places).
(b) The normals [ 2 , − 1 , 2 ] [2, -1, 2] [ 2 , − 1 , 2 ] and [ 4 , − 2 , 4 ] [4, -2, 4] [ 4 , − 2 , 4 ] are parallel, so the planes are parallel. Pick a point on the first plane: with x = z = 0 x = z = 0 x = z = 0 , − y − 3 = 0 -y - 3 = 0 − y − 3 = 0 , so Q ( 0 , − 3 , 0 ) Q(0, -3, 0) Q ( 0 , − 3 , 0 ) . Its distance to the second plane:
d = ∣ 4 ( 0 ) − 2 ( − 3 ) + 4 ( 0 ) + 9 ∣ 4 2 + ( − 2 ) 2 + 4 2 = 15 36 = 15 6 = 2.5 d = \frac{|4(0) - 2(-3) + 4(0) + 9|}{\sqrt{4^2 + (-2)^2 + 4^2}} = \frac{15}{\sqrt{36}} = \frac{15}{6} = 2.5 d = 4 2 + ( − 2 ) 2 + 4 2 ∣4 ( 0 ) − 2 ( − 3 ) + 4 ( 0 ) + 9∣ = 36 15 = 6 15 = 2.5
Check with the shortcut: divide the second equation by 2 2 2 to match normals: 2 x − y + 2 z + 4.5 = 0 2x - y + 2z + 4.5 = 0 2 x − y + 2 z + 4.5 = 0 . Then d = ∣ − 3 − 4.5 ∣ 3 = 7.5 3 = 2.5 d = \dfrac{|-3 - 4.5|}{3} = \dfrac{7.5}{3} = 2.5 d = 3 ∣ − 3 − 4.5∣ = 3 7.5 = 2.5 ✓.
Find the distance from P ( 3 , 1 , − 2 ) P(3, 1, -2) P ( 3 , 1 , − 2 ) to the line r ⃗ = [ 1 , 0 , 1 ] + t [ 2 , − 1 , 2 ] \vec{r} = [1, 0, 1] + t[2, -1, 2] r = [ 1 , 0 , 1 ] + t [ 2 , − 1 , 2 ] .
Solution. Take Q ( 1 , 0 , 1 ) Q(1, 0, 1) Q ( 1 , 0 , 1 ) on the line and m ⃗ = [ 2 , − 1 , 2 ] \vec{m} = [2, -1, 2] m = [ 2 , − 1 , 2 ] . Then Q P → = [ 2 , 1 , − 3 ] \overrightarrow{QP} = [2, 1, -3] QP = [ 2 , 1 , − 3 ] , and
Q P → × m ⃗ = [ 2 , 1 , − 3 ] × [ 2 , − 1 , 2 ] = [ 1 ( 2 ) − ( − 3 ) ( − 1 ) , ( − 3 ) ( 2 ) − 2 ( 2 ) , 2 ( − 1 ) − 1 ( 2 ) ] = [ − 1 , − 10 , − 4 ] \begin{aligned}
\overrightarrow{QP} \times \vec{m} &= [2, 1, -3] \times [2, -1, 2] \\
&= [1(2) - (-3)(-1),\ (-3)(2) - 2(2),\ 2(-1) - 1(2)] \\
&= [-1, -10, -4]
\end{aligned} QP × m = [ 2 , 1 , − 3 ] × [ 2 , − 1 , 2 ] = [ 1 ( 2 ) − ( − 3 ) ( − 1 ) , ( − 3 ) ( 2 ) − 2 ( 2 ) , 2 ( − 1 ) − 1 ( 2 )] = [ − 1 , − 10 , − 4 ]
d = ( − 1 ) 2 + ( − 10 ) 2 + ( − 4 ) 2 2 2 + ( − 1 ) 2 + 2 2 = 117 3 = 3 13 3 = 13 ≈ 3.61 d = \frac{\sqrt{(-1)^2 + (-10)^2 + (-4)^2}}{\sqrt{2^2 + (-1)^2 + 2^2}} = \frac{\sqrt{117}}{3} = \frac{3\sqrt{13}}{3} = \sqrt{13} \approx 3.61 d = 2 2 + ( − 1 ) 2 + 2 2 ( − 1 ) 2 + ( − 10 ) 2 + ( − 4 ) 2 = 3 117 = 3 3 13 = 13 ≈ 3.61
(rounded to two decimal places).
In intersections of lines and planes , Example 2 showed that these lines are skew. Find the distance between them.
L 1 : r ⃗ = [ 1 , 0 , 2 ] + t [ 2 , 1 , − 1 ] L 2 : r ⃗ = [ 0 , 4 , 1 ] + s [ 1 , − 1 , 2 ] L_1: \vec{r} = [1, 0, 2] + t[2, 1, -1] \qquad L_2: \vec{r} = [0, 4, 1] + s[1, -1, 2] L 1 : r = [ 1 , 0 , 2 ] + t [ 2 , 1 , − 1 ] L 2 : r = [ 0 , 4 , 1 ] + s [ 1 , − 1 , 2 ]
Solution. A vector perpendicular to both lines:
n ⃗ = [ 2 , 1 , − 1 ] × [ 1 , − 1 , 2 ] = [ 1 ( 2 ) − ( − 1 ) ( − 1 ) , ( − 1 ) ( 1 ) − 2 ( 2 ) , 2 ( − 1 ) − 1 ( 1 ) ] = [ 1 , − 5 , − 3 ] \vec{n} = [2, 1, -1] \times [1, -1, 2] = [1(2) - (-1)(-1),\ (-1)(1) - 2(2),\ 2(-1) - 1(1)] = [1, -5, -3] n = [ 2 , 1 , − 1 ] × [ 1 , − 1 , 2 ] = [ 1 ( 2 ) − ( − 1 ) ( − 1 ) , ( − 1 ) ( 1 ) − 2 ( 2 ) , 2 ( − 1 ) − 1 ( 1 )] = [ 1 , − 5 , − 3 ]
Connect a point on each line: P 1 ( 1 , 0 , 2 ) P_1(1, 0, 2) P 1 ( 1 , 0 , 2 ) and P 2 ( 0 , 4 , 1 ) P_2(0, 4, 1) P 2 ( 0 , 4 , 1 ) give P 1 P 2 → = [ − 1 , 4 , − 1 ] \overrightarrow{P_1P_2} = [-1, 4, -1] P 1 P 2 = [ − 1 , 4 , − 1 ] .
d = ∣ [ − 1 , 4 , − 1 ] ⋅ [ 1 , − 5 , − 3 ] ∣ 1 2 + ( − 5 ) 2 + ( − 3 ) 2 = ∣ − 1 − 20 + 3 ∣ 35 = 18 35 ≈ 3.04 d = \frac{|[-1, 4, -1] \cdot [1, -5, -3]|}{\sqrt{1^2 + (-5)^2 + (-3)^2}} = \frac{|-1 - 20 + 3|}{\sqrt{35}} = \frac{18}{\sqrt{35}} \approx 3.04 d = 1 2 + ( − 5 ) 2 + ( − 3 ) 2 ∣ [ − 1 , 4 , − 1 ] ⋅ [ 1 , − 5 , − 3 ] ∣ = 35 ∣ − 1 − 20 + 3∣ = 35 18 ≈ 3.04
(rounded to two decimal places). The answer isn’t 0 0 0 , which confirms the lines don’t meet.
Dropping the absolute value. The dot product can be negative, depending on which side of the plane the point is on. Distance is always positive (or zero), so take the absolute value.
Forgetting to divide by the length of the normal. ∣ A x 1 + B y 1 + C z 1 + D ∣ |Ax_1 + By_1 + Cz_1 + D| ∣ A x 1 + B y 1 + C z 1 + D ∣ on its own is not the distance unless ∣ n ⃗ ∣ = 1 |\vec{n}| = 1 ∣ n ∣ = 1 . Divide by A 2 + B 2 + C 2 \sqrt{A^2 + B^2 + C^2} A 2 + B 2 + C 2 .
Leaving the equation in the wrong form. The formula needs A x + B y + C z + D = 0 Ax + By + Cz + D = 0 A x + B y + C z + D = 0 . For a plane written as 2 x + 3 y + 6 z = 14 2x + 3y + 6z = 14 2 x + 3 y + 6 z = 14 , the constant is D = − 14 D = -14 D = − 14 , not 14 14 14 .
Using the shortcut for planes whose normals don’t match. ∣ D 1 − D 2 ∣ ∣ n ⃗ ∣ \dfrac{|D_1 - D_2|}{|\vec{n}|} ∣ n ∣ ∣ D 1 − D 2 ∣ only works when both equations use the same normal. Scale one equation first, or just pick a point on one plane.
Using a dot product for point-to-line distance in 3-space. A line in 3-space has no single normal, so the point-to-plane formula doesn’t apply. Use ∣ Q P → × m ⃗ ∣ ∣ m ⃗ ∣ \dfrac{|\overrightarrow{QP} \times \vec{m}|}{|\vec{m}|} ∣ m ∣ ∣ QP × m ∣ .
Using the skew-line formula on parallel lines. If the lines are parallel, m ⃗ 1 × m ⃗ 2 = 0 ⃗ \vec{m}_1 \times \vec{m}_2 = \vec{0} m 1 × m 2 = 0 and you’d divide by zero. Find the distance from a point on one line to the other line instead.
1. (Warm-up) Find the distance from ( 1 , 2 ) (1, 2) ( 1 , 2 ) to the line 6 x + 8 y − 2 = 0 6x + 8y - 2 = 0 6 x + 8 y − 2 = 0 .
Solution d = ∣ 6 ( 1 ) + 8 ( 2 ) − 2 ∣ 36 + 64 = 20 10 = 2 d = \frac{|6(1) + 8(2) - 2|}{\sqrt{36 + 64}} = \frac{20}{10} = 2 d = 36 + 64 ∣6 ( 1 ) + 8 ( 2 ) − 2∣ = 10 20 = 2
2. (Warm-up) Find the distance from the origin to the plane 2 x + 3 y + 6 z = 14 2x + 3y + 6z = 14 2 x + 3 y + 6 z = 14 .
Solution Rewrite as 2 x + 3 y + 6 z − 14 = 0 2x + 3y + 6z - 14 = 0 2 x + 3 y + 6 z − 14 = 0 :
d = ∣ 0 + 0 + 0 − 14 ∣ 4 + 9 + 36 = 14 7 = 2 d = \frac{|0 + 0 + 0 - 14|}{\sqrt{4 + 9 + 36}} = \frac{14}{7} = 2 d = 4 + 9 + 36 ∣0 + 0 + 0 − 14∣ = 7 14 = 2
3. (Core) Find the distance from ( 4 , − 2 , 1 ) (4, -2, 1) ( 4 , − 2 , 1 ) to the plane x − 2 y + 2 z + 5 = 0 x - 2y + 2z + 5 = 0 x − 2 y + 2 z + 5 = 0 .
Solution d = ∣ 4 − 2 ( − 2 ) + 2 ( 1 ) + 5 ∣ 1 + 4 + 4 = 15 3 = 5 d = \frac{|4 - 2(-2) + 2(1) + 5|}{\sqrt{1 + 4 + 4}} = \frac{15}{3} = 5 d = 1 + 4 + 4 ∣4 − 2 ( − 2 ) + 2 ( 1 ) + 5∣ = 3 15 = 5
4. (Core) Find the distance between the parallel lines 3 x + 4 y − 10 = 0 3x + 4y - 10 = 0 3 x + 4 y − 10 = 0 and 3 x + 4 y + 15 = 0 3x + 4y + 15 = 0 3 x + 4 y + 15 = 0 .
Solution The point ( 2 , 1 ) (2, 1) ( 2 , 1 ) is on the first line: 6 + 4 − 10 = 0 6 + 4 - 10 = 0 6 + 4 − 10 = 0 . Its distance to the second line:
d = ∣ 3 ( 2 ) + 4 ( 1 ) + 15 ∣ 9 + 16 = 25 5 = 5 d = \frac{|3(2) + 4(1) + 15|}{\sqrt{9 + 16}} = \frac{25}{5} = 5 d = 9 + 16 ∣3 ( 2 ) + 4 ( 1 ) + 15∣ = 5 25 = 5 (Shortcut: same normal, so d = ∣ − 10 − 15 ∣ 5 = 5 d = \dfrac{|-10 - 15|}{5} = 5 d = 5 ∣ − 10 − 15∣ = 5 .)
5. (Core) Find the distance between the planes x + 2 y − 2 z = 4 x + 2y - 2z = 4 x + 2 y − 2 z = 4 and − 2 x − 4 y + 4 z = 10 -2x - 4y + 4z = 10 − 2 x − 4 y + 4 z = 10 .
Solution Divide the second equation by − 2 -2 − 2 : x + 2 y − 2 z = − 5 x + 2y - 2z = -5 x + 2 y − 2 z = − 5 . Now both planes have normal [ 1 , 2 , − 2 ] [1, 2, -2] [ 1 , 2 , − 2 ] , and in the form A x + B y + C z + D = 0 Ax + By + Cz + D = 0 A x + B y + C z + D = 0 the constants are D 1 = − 4 D_1 = -4 D 1 = − 4 and D 2 = 5 D_2 = 5 D 2 = 5 :
d = ∣ − 4 − 5 ∣ 1 + 4 + 4 = 9 3 = 3 d = \frac{|-4 - 5|}{\sqrt{1 + 4 + 4}} = \frac{9}{3} = 3 d = 1 + 4 + 4 ∣ − 4 − 5∣ = 3 9 = 3
6. (Core) Find the distance from P ( 2 , 3 , − 1 ) P(2, 3, -1) P ( 2 , 3 , − 1 ) to the line r ⃗ = [ 0 , 1 , 1 ] + t [ 1 , 2 , 2 ] \vec{r} = [0, 1, 1] + t[1, 2, 2] r = [ 0 , 1 , 1 ] + t [ 1 , 2 , 2 ] .
Solution Q ( 0 , 1 , 1 ) Q(0, 1, 1) Q ( 0 , 1 , 1 ) is on the line, so Q P → = [ 2 , 2 , − 2 ] \overrightarrow{QP} = [2, 2, -2] QP = [ 2 , 2 , − 2 ] , and m ⃗ = [ 1 , 2 , 2 ] \vec{m} = [1, 2, 2] m = [ 1 , 2 , 2 ] .
[ 2 , 2 , − 2 ] × [ 1 , 2 , 2 ] = [ 2 ( 2 ) − ( − 2 ) ( 2 ) , ( − 2 ) ( 1 ) − 2 ( 2 ) , 2 ( 2 ) − 2 ( 1 ) ] = [ 8 , − 6 , 2 ] [2, 2, -2] \times [1, 2, 2] = [2(2) - (-2)(2),\ (-2)(1) - 2(2),\ 2(2) - 2(1)] = [8, -6, 2] [ 2 , 2 , − 2 ] × [ 1 , 2 , 2 ] = [ 2 ( 2 ) − ( − 2 ) ( 2 ) , ( − 2 ) ( 1 ) − 2 ( 2 ) , 2 ( 2 ) − 2 ( 1 )] = [ 8 , − 6 , 2 ] d = 64 + 36 + 4 1 + 4 + 4 = 104 3 = 2 26 3 ≈ 3.40 d = \frac{\sqrt{64 + 36 + 4}}{\sqrt{1 + 4 + 4}} = \frac{\sqrt{104}}{3} = \frac{2\sqrt{26}}{3} \approx 3.40 d = 1 + 4 + 4 64 + 36 + 4 = 3 104 = 3 2 26 ≈ 3.40 (rounded to two decimal places).
7. (Core) Find the distance from P ( 6 , − 1 ) P(6, -1) P ( 6 , − 1 ) to the line r ⃗ = [ 1 , 2 ] + t [ 3 , 4 ] \vec{r} = [1, 2] + t[3, 4] r = [ 1 , 2 ] + t [ 3 , 4 ] .
Solution Convert to scalar form. The direction [ 3 , 4 ] [3, 4] [ 3 , 4 ] gives normal [ 4 , − 3 ] [4, -3] [ 4 , − 3 ] , so 4 x − 3 y + C = 0 4x - 3y + C = 0 4 x − 3 y + C = 0 . With ( 1 , 2 ) (1, 2) ( 1 , 2 ) : 4 − 6 + C = 0 4 - 6 + C = 0 4 − 6 + C = 0 , so C = 2 C = 2 C = 2 .
d = ∣ 4 ( 6 ) − 3 ( − 1 ) + 2 ∣ 16 + 9 = 29 5 = 5.8 d = \frac{|4(6) - 3(-1) + 2|}{\sqrt{16 + 9}} = \frac{29}{5} = 5.8 d = 16 + 9 ∣4 ( 6 ) − 3 ( − 1 ) + 2∣ = 5 29 = 5.8
8. (Challenge) Show that the lines L 1 : r ⃗ = [ 0 , 0 , 1 ] + t [ 1 , 1 , 0 ] L_1: \vec{r} = [0, 0, 1] + t[1, 1, 0] L 1 : r = [ 0 , 0 , 1 ] + t [ 1 , 1 , 0 ] and L 2 : r ⃗ = [ 2 , 0 , 3 ] + s [ 0 , 1 , 1 ] L_2: \vec{r} = [2, 0, 3] + s[0, 1, 1] L 2 : r = [ 2 , 0 , 3 ] + s [ 0 , 1 , 1 ] are skew by finding the distance between them.
Solution The directions aren’t parallel. A common perpendicular:
n ⃗ = [ 1 , 1 , 0 ] × [ 0 , 1 , 1 ] = [ 1 ( 1 ) − 0 ( 1 ) , 0 ( 0 ) − 1 ( 1 ) , 1 ( 1 ) − 1 ( 0 ) ] = [ 1 , − 1 , 1 ] \vec{n} = [1, 1, 0] \times [0, 1, 1] = [1(1) - 0(1),\ 0(0) - 1(1),\ 1(1) - 1(0)] = [1, -1, 1] n = [ 1 , 1 , 0 ] × [ 0 , 1 , 1 ] = [ 1 ( 1 ) − 0 ( 1 ) , 0 ( 0 ) − 1 ( 1 ) , 1 ( 1 ) − 1 ( 0 )] = [ 1 , − 1 , 1 ] P 1 P 2 → = [ 2 , 0 , 2 ] \overrightarrow{P_1P_2} = [2, 0, 2] P 1 P 2 = [ 2 , 0 , 2 ] , so
d = ∣ [ 2 , 0 , 2 ] ⋅ [ 1 , − 1 , 1 ] ∣ 3 = 4 3 ≈ 2.31 d = \frac{|[2, 0, 2] \cdot [1, -1, 1]|}{\sqrt{3}} = \frac{4}{\sqrt{3}} \approx 2.31 d = 3 ∣ [ 2 , 0 , 2 ] ⋅ [ 1 , − 1 , 1 ] ∣ = 3 4 ≈ 2.31 (rounded to two decimal places). The lines aren’t parallel and the distance isn’t 0 0 0 , so they never meet: they’re skew.
9. (Challenge) An engineer models a sloped solar panel as part of the plane 2 x + 2 y + z = 12 2x + 2y + z = 12 2 x + 2 y + z = 12 , with distances in metres. A sensor is mounted at S ( 5 , 4 , 9 ) S(5, 4, 9) S ( 5 , 4 , 9 ) .
(a) How far is the sensor from the plane of the panel?
(b) Find the point on the plane closest to the sensor.
Solution (a)
d = ∣ 2 ( 5 ) + 2 ( 4 ) + 9 − 12 ∣ 4 + 4 + 1 = 15 3 = 5 m d = \frac{|2(5) + 2(4) + 9 - 12|}{\sqrt{4 + 4 + 1}} = \frac{15}{3} = 5 \text{ m} d = 4 + 4 + 1 ∣2 ( 5 ) + 2 ( 4 ) + 9 − 12∣ = 3 15 = 5 m (b) Follow the normal from S S S : r ⃗ = [ 5 , 4 , 9 ] + t [ 2 , 2 , 1 ] \vec{r} = [5, 4, 9] + t[2, 2, 1] r = [ 5 , 4 , 9 ] + t [ 2 , 2 , 1 ] . Substitute into the plane:
2 ( 5 + 2 t ) + 2 ( 4 + 2 t ) + ( 9 + t ) = 12 ⇒ 27 + 9 t = 12 ⇒ t = − 5 3 2(5 + 2t) + 2(4 + 2t) + (9 + t) = 12 \quad\Rightarrow\quad 27 + 9t = 12 \quad\Rightarrow\quad t = -\frac{5}{3} 2 ( 5 + 2 t ) + 2 ( 4 + 2 t ) + ( 9 + t ) = 12 ⇒ 27 + 9 t = 12 ⇒ t = − 3 5 The closest point is
( 5 − 10 3 , 4 − 10 3 , 9 − 5 3 ) = ( 5 3 , 2 3 , 22 3 ) \left(5 - \frac{10}{3},\ 4 - \frac{10}{3},\ 9 - \frac{5}{3}\right) = \left(\frac{5}{3},\ \frac{2}{3},\ \frac{22}{3}\right) ( 5 − 3 10 , 4 − 3 10 , 9 − 3 5 ) = ( 3 5 , 3 2 , 3 22 ) Check: 10 3 + 4 3 + 22 3 = 36 3 = 12 \dfrac{10}{3} + \dfrac{4}{3} + \dfrac{22}{3} = \dfrac{36}{3} = 12 3 10 + 3 4 + 3 22 = 3 36 = 12 ✓. Also, the distance from S S S is ∣ t ∣ ∣ n ⃗ ∣ = 5 3 ( 3 ) = 5 |t|\,|\vec{n}| = \dfrac{5}{3}(3) = 5 ∣ t ∣ ∣ n ∣ = 3 5 ( 3 ) = 5 m ✓, matching part (a).