Distance from a point to a plane; intersections
The two remaining building blocks: distance from a point to a plane, and finding where two objects meet , line-plane intersection, two-plane intersection, etc.
Distance from a point to a plane
Vector form. Plane: r ⃗ ⋅ n ⃗ = d \vec r\cdot\vec n = d r ⋅ n = d . Point: p ⃗ \vec p p . The distance is
D = ∣ p ⃗ ⋅ n ⃗ − d ∣ ∣ n ⃗ ∣ . D = \frac{|\vec p\cdot\vec n - d|}{|\vec n|}. D = ∣ n ∣ ∣ p ⋅ n − d ∣ .
Cartesian form. Plane: A x + B y + C z + D = 0 Ax + By + Cz + D = 0 A x + B y + C z + D = 0 . Point: ( x 0 , y 0 , z 0 ) (x_0, y_0, z_0) ( x 0 , y 0 , z 0 ) . Distance:
D = ∣ A x 0 + B y 0 + C z 0 + D ∣ A 2 + B 2 + C 2 . D = \frac{|Ax_0 + By_0 + Cz_0 + D|}{\sqrt{A^2 + B^2 + C^2}}. D = A 2 + B 2 + C 2 ∣ A x 0 + B y 0 + C z 0 + D ∣ .
Why? The foot of perpendicular from p ⃗ \vec p p to the plane is p ⃗ − p ⃗ ⋅ n ⃗ − d ∣ n ⃗ ∣ 2 n ⃗ \vec p - \dfrac{\vec p\cdot\vec n - d}{|\vec n|^2}\vec n p − ∣ n ∣ 2 p ⋅ n − d n . The distance equals the magnitude of that projection.
Line meets plane
Line: r ⃗ = a ⃗ + t d ⃗ \vec r = \vec a + t\vec d r = a + t d . Plane: r ⃗ ⋅ n ⃗ = e \vec r\cdot\vec n = e r ⋅ n = e .
Substitute: ( a ⃗ + t d ⃗ ) ⋅ n ⃗ = e ⇒ t = e − a ⃗ ⋅ n ⃗ d ⃗ ⋅ n ⃗ (\vec a + t\vec d)\cdot\vec n = e \Rightarrow t = \dfrac{e - \vec a\cdot\vec n}{\vec d\cdot\vec n} ( a + t d ) ⋅ n = e ⇒ t = d ⋅ n e − a ⋅ n .
If d ⃗ ⋅ n ⃗ ≠ 0 \vec d\cdot\vec n \ne 0 d ⋅ n = 0 , this gives the unique t t t at which the line meets the plane. Plug t t t back into the line's equation to find the point.
If d ⃗ ⋅ n ⃗ = 0 \vec d\cdot\vec n = 0 d ⋅ n = 0 , the line is parallel to the plane. Then:
a ⃗ ⋅ n ⃗ = e \vec a\cdot\vec n = e a ⋅ n = e : line lies in the plane.
a ⃗ ⋅ n ⃗ ≠ e \vec a\cdot\vec n \ne e a ⋅ n = e : line never meets the plane.
Two planes meet in a line
Planes r ⃗ ⋅ n ⃗ 1 = e 1 \vec r\cdot\vec n_1 = e_1 r ⋅ n 1 = e 1 and r ⃗ ⋅ n ⃗ 2 = e 2 \vec r\cdot\vec n_2 = e_2 r ⋅ n 2 = e 2 with n ⃗ 1 ∦ n ⃗ 2 \vec n_1 \not\parallel \vec n_2 n 1 ∥ n 2 meet in a line. The direction of the intersection line is n ⃗ 1 × n ⃗ 2 \vec n_1 \times \vec n_2 n 1 × n 2 (perpendicular to both normals).
To find a point on the line, set one coordinate to a convenient value (say z = 0 z = 0 z = 0 ) and solve the two-by-two linear system in x x x and y y y .
If n ⃗ 1 ∥ n ⃗ 2 \vec n_1 \parallel \vec n_2 n 1 ∥ n 2 (parallel planes) the two planes either coincide (e 1 / ∣ n ⃗ 1 ∣ = e 2 / ∣ n ⃗ 2 ∣ e_1/|\vec n_1| = e_2/|\vec n_2| e 1 /∣ n 1 ∣ = e 2 /∣ n 2 ∣ ) or never meet.
Three planes
Three planes can meet in a point (unique intersection , generic case), in a line (one redundant equation), or in no point (inconsistent). Solve the 3 × 3 3\times 3 3 × 3 linear system in ( x , y , z ) (x, y, z) ( x , y , z ) ; the determinant of the coefficient matrix tells you:
Non-zero ⇒ \Rightarrow ⇒ unique point.
Zero ⇒ \Rightarrow ⇒ planes are either parallel or share a common line.
Distance between parallel planes
A x + B y + C z = D 1 Ax + By + Cz = D_1 A x + B y + C z = D 1 and A x + B y + C z = D 2 Ax + By + Cz = D_2 A x + B y + C z = D 2 :
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 ∣ .
Just take any point on one plane and compute its distance to the other.
Worked examples
Example 1. Distance from ( 1 , 1 , 1 ) (1, 1, 1) ( 1 , 1 , 1 ) to 2 x + y − z = 5 2x + y - z = 5 2 x + y − z = 5 .
D = ∣ 2 + 1 − 1 − 5 ∣ 4 + 1 + 1 = 3 6 D = \dfrac{|2 + 1 - 1 - 5|}{\sqrt{4 + 1 + 1}} = \dfrac{3}{\sqrt 6} D = 4 + 1 + 1 ∣2 + 1 − 1 − 5∣ = 6 3 .
Example 2. Where does the line r ⃗ = ( 1 , 2 , 3 ) + t ( 2 , 1 , − 1 ) \vec r = (1, 2, 3) + t(2, 1, -1) r = ( 1 , 2 , 3 ) + t ( 2 , 1 , − 1 ) meet the plane x + y + z = 9 x + y + z = 9 x + y + z = 9 ?
( 1 + 2 t ) + ( 2 + t ) + ( 3 − t ) = 9 ⇒ 6 + 2 t = 9 ⇒ t = 3 / 2 (1 + 2t) + (2 + t) + (3 - t) = 9 \Rightarrow 6 + 2t = 9 \Rightarrow t = 3/2 ( 1 + 2 t ) + ( 2 + t ) + ( 3 − t ) = 9 ⇒ 6 + 2 t = 9 ⇒ t = 3/2 . Point: ( 1 + 3 , 2 + 3 / 2 , 3 − 3 / 2 ) = ( 4 , 7 / 2 , 3 / 2 ) (1 + 3, 2 + 3/2, 3 - 3/2) = (4, 7/2, 3/2) ( 1 + 3 , 2 + 3/2 , 3 − 3/2 ) = ( 4 , 7/2 , 3/2 ) .
Example 3. Find the line of intersection of x + y + z = 6 x + y + z = 6 x + y + z = 6 and x − y + z = 2 x - y + z = 2 x − y + z = 2 .
Normals: ( 1 , 1 , 1 ) (1, 1, 1) ( 1 , 1 , 1 ) and ( 1 , − 1 , 1 ) (1, -1, 1) ( 1 , − 1 , 1 ) . Cross product: ( 2 , 0 , − 2 ) ∝ ( 1 , 0 , − 1 ) (2, 0, -2) \propto (1, 0, -1) ( 2 , 0 , − 2 ) ∝ ( 1 , 0 , − 1 ) . Direction.
A point on the line: set y = 0 y = 0 y = 0 . Then x + z = 6 x + z = 6 x + z = 6 and x + z = 2 x + z = 2 x + z = 2 , inconsistent. So try z = 0 z = 0 z = 0 : x + y = 6 x + y = 6 x + y = 6 , x − y = 2 x - y = 2 x − y = 2 gives x = 4 , y = 2 x = 4, y = 2 x = 4 , y = 2 . Point ( 4 , 2 , 0 ) (4, 2, 0) ( 4 , 2 , 0 ) .
Line: r ⃗ = ( 4 , 2 , 0 ) + t ( 1 , 0 , − 1 ) \vec r = (4, 2, 0) + t(1, 0, -1) r = ( 4 , 2 , 0 ) + t ( 1 , 0 , − 1 ) .
Example 4. Find the distance between the parallel planes 2 x − 2 y + z = 5 2x - 2y + z = 5 2 x − 2 y + z = 5 and 2 x − 2 y + z = 11 2x - 2y + z = 11 2 x − 2 y + z = 11 .
D = ∣ 5 − 11 ∣ 4 + 4 + 1 = 6 3 = 2 D = \dfrac{|5 - 11|}{\sqrt{4 + 4 + 1}} = \dfrac{6}{3} = 2 D = 4 + 4 + 1 ∣5 − 11∣ = 3 6 = 2 .
Example 5. Foot of perpendicular from ( 1 , 0 , 0 ) (1, 0, 0) ( 1 , 0 , 0 ) on the plane x + y + z = 1 x + y + z = 1 x + y + z = 1 .
Parametrise along normal: ( 1 + t , t , t ) (1 + t, t, t) ( 1 + t , t , t ) . On plane: 1 + 3 t = 1 1 + 3t = 1 1 + 3 t = 1 , so t = 0 t = 0 t = 0 . Foot: ( 1 , 0 , 0 ) (1, 0, 0) ( 1 , 0 , 0 ) , the point is on the plane.
Use ( 0 , 0 , 0 ) (0, 0, 0) ( 0 , 0 , 0 ) instead: ( t , t , t ) (t, t, t) ( t , t , t ) , 3 t = 1 3t = 1 3 t = 1 , t = 1 / 3 t = 1/3 t = 1/3 . Foot: ( 1 / 3 , 1 / 3 , 1 / 3 ) (1/3, 1/3, 1/3) ( 1/3 , 1/3 , 1/3 ) .
Example 6. Determine whether the planes x + y + z = 1 x + y + z = 1 x + y + z = 1 , x − y + z = 3 x - y + z = 3 x − y + z = 3 , 2 x + z = 4 2x + z = 4 2 x + z = 4 meet in a single point, in a line, or are inconsistent.
Coefficient matrix: ( 1 1 1 1 − 1 1 2 0 1 ) \begin{pmatrix} 1 & 1 & 1 \\ 1 & -1 & 1 \\ 2 & 0 & 1 \end{pmatrix} 1 1 2 1 − 1 0 1 1 1 . Determinant: 1 ( − 1 − 0 ) − 1 ( 1 − 2 ) + 1 ( 0 + 2 ) = − 1 + 1 + 2 = 2 ≠ 0 1(-1 - 0) - 1(1 - 2) + 1(0 + 2) = -1 + 1 + 2 = 2 \ne 0 1 ( − 1 − 0 ) − 1 ( 1 − 2 ) + 1 ( 0 + 2 ) = − 1 + 1 + 2 = 2 = 0 . Unique solution.
Solve: from first two, subtract: 2 y = − 2 ⇒ y = − 1 2y = -2 \Rightarrow y = -1 2 y = − 2 ⇒ y = − 1 . From third: 2 x + z = 4 2x + z = 4 2 x + z = 4 . Substitute into first: x + z = 2 x + z = 2 x + z = 2 . From these two: x = 2 x = 2 x = 2 , z = 0 z = 0 z = 0 . So intersection: ( 2 , − 1 , 0 ) (2, -1, 0) ( 2 , − 1 , 0 ) .
Try it yourself
Distance from ( 0 , 0 , 0 ) (0, 0, 0) ( 0 , 0 , 0 ) to x + 2 y + 2 z = 9 x + 2y + 2z = 9 x + 2 y + 2 z = 9 .
Distance from ( 1 , 2 , 3 ) (1, 2, 3) ( 1 , 2 , 3 ) to x − 2 y − 2 z = 1 x - 2y - 2z = 1 x − 2 y − 2 z = 1 .
Find where the line r ⃗ = ( 2 , 1 , 0 ) + t ( 1 , − 1 , 1 ) \vec r = (2, 1, 0) + t(1, -1, 1) r = ( 2 , 1 , 0 ) + t ( 1 , − 1 , 1 ) meets the plane x + y + z = 5 x + y + z = 5 x + y + z = 5 .
Line of intersection of 2 x + 3 y − z = 5 2x + 3y - z = 5 2 x + 3 y − z = 5 and x − y + 2 z = 7 x - y + 2z = 7 x − y + 2 z = 7 .
Distance between parallel planes x + 2 y + 3 z = 14 x + 2y + 3z = 14 x + 2 y + 3 z = 14 and x + 2 y + 3 z = 21 x + 2y + 3z = 21 x + 2 y + 3 z = 21 .
Foot of perpendicular from ( 3 , − 1 , 4 ) (3, -1, 4) ( 3 , − 1 , 4 ) to 2 x − 3 y + z = 7 2x - 3y + z = 7 2 x − 3 y + z = 7 .
Find λ \lambda λ if the distance from ( 2 , 1 , 5 ) (2, 1, 5) ( 2 , 1 , 5 ) to 2 x + 2 y − z = λ 2x + 2y - z = \lambda 2 x + 2 y − z = λ is 3 3 3 .
Show that the planes x + y + z = 1 x + y + z = 1 x + y + z = 1 , 2 x + 2 y + 2 z = 3 2x + 2y + 2z = 3 2 x + 2 y + 2 z = 3 , x + y + z = 5 x + y + z = 5 x + y + z = 5 have no common point.
Three planes: x + y = 2 x + y = 2 x + y = 2 , y + z = 4 y + z = 4 y + z = 4 , x + z = 6 x + z = 6 x + z = 6 . Find their common point.
Find the line of intersection of the x y xy x y -plane and the plane x + y + z = 6 x + y + z = 6 x + y + z = 6 .
Find the plane through the line of intersection of x + 2 y − z = 1 x + 2y - z = 1 x + 2 y − z = 1 and 2 x − y + z = 3 2x - y + z = 3 2 x − y + z = 3 , and through the point ( 1 , 1 , 1 ) (1, 1, 1) ( 1 , 1 , 1 ) .
Distance from ( 1 , 1 , 1 ) (1, 1, 1) ( 1 , 1 , 1 ) to the line r ⃗ = ( 0 , 0 , 0 ) + t ( 1 , 1 , 0 ) \vec r = (0, 0, 0) + t(1, 1, 0) r = ( 0 , 0 , 0 ) + t ( 1 , 1 , 0 ) .
Show that lines r ⃗ = ( 1 , 1 , 0 ) + t ( 1 , 0 , 1 ) \vec r = (1, 1, 0) + t(1, 0, 1) r = ( 1 , 1 , 0 ) + t ( 1 , 0 , 1 ) and r ⃗ = ( 0 , 1 , 1 ) + s ( 1 , 1 , 0 ) \vec r = (0, 1, 1) + s(1, 1, 0) r = ( 0 , 1 , 1 ) + s ( 1 , 1 , 0 ) lie in a common plane and find that plane.
Find a point equidistant from the planes 2 x + y − z = 5 2x + y - z = 5 2 x + y − z = 5 , x − y + z = 3 x - y + z = 3 x − y + z = 3 , and x − 2 y + z = 1 x - 2y + z = 1 x − 2 y + z = 1 .
Pitfalls and tricks
The formula ∣ A x 0 + B y 0 + C z 0 + D ∣ / ⋯ |Ax_0 + By_0 + Cz_0 + D|/\sqrt{\cdots} ∣ A x 0 + B y 0 + C z 0 + D ∣/ ⋯ is the workhorse for point-to-plane distance.
Line and plane: solve the parametric equation in the plane equation. Set d ⃗ ⋅ n ⃗ = 0 \vec d\cdot\vec n = 0 d ⋅ n = 0 as a special-case check first.
Two planes meet in a line whose direction is n ⃗ 1 × n ⃗ 2 \vec n_1\times\vec n_2 n 1 × n 2 . Find a point by setting one coordinate.
For three planes , use determinants. Non-zero ⇒ \Rightarrow ⇒ unique point; zero ⇒ \Rightarrow ⇒ check consistency separately.
Always sketch the configuration , even rough , to verify your algebraic answer.