Analytic geometry · Space

A Line and a Plane: Angle, Intersection, Position

A line and a plane in space can relate in only three ways: the line pierces the plane in one point, runs parallel to it, or lies entirely in it. Which case occurs, and at what angle the line meets the plane, is decided by two vectors: the line's direction \(\vec p\) and the plane's normal \(\vec N\). This post works through the three cases and then uses them to solve the classic problems: projecting a point, reflecting it, and projecting a whole line onto a plane.

1. The setting

Throughout, the line and the plane are

\[ p:\ \frac{x - x_1}{l} = \frac{y - y_1}{m} = \frac{z - z_1}{n}, \quad \vec p = \{l, m, n\}; \qquad \alpha:\ Ax + By + Cz + D = 0, \quad \vec N = \{A, B, C\}. \]

The line passes through \(M_1(x_1, y_1, z_1)\) in direction \(\vec p\); the plane is perpendicular to \(\vec N\). Our running example will be

\[ p:\ \frac{x - 1}{2} = \frac{y + 1}{1} = \frac{z - 2}{-1}, \qquad \alpha:\ x + 2y + 2z - 6 = 0. \]

2. The angle between a line and a plane

The angle \(\theta\) between a line and a plane is the angle between the line and its orthogonal projection onto the plane, so \(0^\circ \le \theta \le 90^\circ\). The normal \(\vec N\) stands at \(90^\circ\) to the plane, so the angle between \(\vec p\) and \(\vec N\) is \(90^\circ - \theta\). Its cosine is therefore \(\sin\theta\):

1° Angle between line and plane \[ \sin\theta = \frac{|\vec p\cdot\vec N|}{|\vec p|\,|\vec N|} = \frac{|Al + Bm + Cn|}{\sqrt{A^2 + B^2 + C^2}\,\sqrt{l^2 + m^2 + n^2}}. \]
  • Parallel (\(\theta = 0\)): \( Al + Bm + Cn = 0 \), the direction is perpendicular to the normal.
  • Perpendicular (\(\theta = 90^\circ\)): \( \frac Al = \frac Bm = \frac Cn \), the direction is parallel to the normal.
θ P N p p′ α
Figure 1. A line \(p\) piercing the plane \(\alpha\) at \(P\). The angle \(\theta\) is measured between \(p\) and its projection \(p'\) onto the plane; the normal \(\vec N\) makes the complementary angle \(90^\circ - \theta\) with the line. That is why the formula has a sine.
Don't forget the absolute value The book writes \( \sin\theta = \frac{\vec p\cdot\vec N}{|\vec p|\,|\vec N|} \). Since \(\vec p\) and \(\vec N\) can each be reversed (\(-\vec p\) is the same line, \(-\vec N\) the same plane), the dot product can come out negative. The angle between a line and a plane lies in \([0^\circ, 90^\circ]\), so \(\sin\theta \ge 0\): take the absolute value.
Example 1 For the running example: \( \vec p\cdot\vec N = 2 + 2 - 2 = 2 \), \( |\vec p| = \sqrt6 \), \( |\vec N| = 3 \): \[ \sin\theta = \frac{2}{3\sqrt6} \approx 0.272, \qquad \theta \approx 15.8^\circ. \] The line is fairly flat with respect to the plane.

3. The intersection point

2° Finding the intersection point Write the line in parametric form, \[ x = x_1 + lt, \qquad y = y_1 + mt, \qquad z = z_1 + nt, \] and substitute \(x, y, z\) into the equation of the plane. The resulting equation gives the parameter \(t\), and with it the coordinates of the intersection point.

Why this is so convenient: the parametric form describes every point of the line with a single number \(t\). The question "which point of the line is in the plane?" becomes one linear equation in one unknown:

\[ (Al + Bm + Cn)\,t + (Ax_1 + By_1 + Cz_1 + D) = 0. \tag{*} \]
Example 2 Running example: \( x = 1 + 2t \), \( y = -1 + t \), \( z = 2 - t \). Substitute into \( x + 2y + 2z - 6 = 0 \): \[ (1 + 2t) + 2(-1 + t) + 2(2 - t) - 6 = 2t - 3 = 0 \ \Rightarrow\ t = \tfrac32. \] The intersection point is \( P\big(4, \tfrac12, \tfrac12\big) \). Check: \( 4 + 1 + 1 - 6 = 0 \) ✓.

4. Three possible positions

Equation (*) has the form \( a\,t + b = 0 \) with \( a = Al + Bm + Cn = \vec N\cdot\vec p \) and \( b = Ax_1 + By_1 + Cz_1 + D \) (the plane's equation evaluated at \(M_1\)). A linear equation has one solution, none, or infinitely many, and these are exactly the three geometric cases:

ConditionEquation (*)Position
\( Al + Bm + Cn \ne 0 \)exactly one \(t\)the line pierces the plane at one point
\( Al + Bm + Cn = 0 \), \( Ax_1 + By_1 + Cz_1 + D \ne 0 \)no solutionthe line is parallel to the plane, outside it
\( Al + Bm + Cn = 0 \), \( Ax_1 + By_1 + Cz_1 + D = 0 \)every \(t\) is a solutionthe line lies in the plane
3° Condition for the line \(p\) to lie in the plane \(\alpha\) \[ Ax_1 + By_1 + Cz_1 + D = 0 \qquad\text{and}\qquad Al + Bm + Cn = 0, \] where \(M_1(x_1, y_1, z_1)\) is a point of the line \(p\).

The two conditions are geometric: one point of the line is in the plane, and the line runs parallel to the plane. Together they force the whole line into the plane. Either one alone is not enough: the first only says the line meets the plane at \(M_1\), the second only that it is parallel.

Example 3 · Parallel, and lying in the plane Keep \( \alpha:\ x + 2y + 2z - 6 = 0 \) and take the direction \( \vec p = \{2, 2, -3\} \): \( 2 + 4 - 6 = 0 \), so any line with this direction is parallel to \(\alpha\).
  • Through \( (1, 0, 3) \): \( 1 + 0 + 6 - 6 = 1 \ne 0 \), so the line is parallel to the plane, at distance \( \frac{|1|}{3} = \frac13 \).
  • Through \( (2, 1, 1) \): \( 2 + 2 + 2 - 6 = 0 \), so the line \( \frac{x - 2}{2} = \frac{y - 1}{2} = \frac{z - 1}{-3} \) lies in the plane.

5. Classic problems

The tools above (parametric form, \(\vec p\), \(\vec N\), cross product) solve a family of standard problems. Each needs only a short idea.

Line through a point, perpendicular to a plane

Its direction is the normal: through \(A(a_1, a_2, a_3)\), the line is \( \frac{x - a_1}{A} = \frac{y - a_2}{B} = \frac{z - a_3}{C} \).

Plane through a point, perpendicular to a line

Its normal is the direction: \( l(x - a_1) + m(y - a_2) + n(z - a_3) = 0 \).

Projection and reflection of a point

  1. Draw the perpendicular from \(A\) to the plane: \( x = a_1 + At \), \( y = a_2 + Bt \), \( z = a_3 + Ct \).
  2. Its intersection with the plane is the projection \(A'\) (foot of the perpendicular), at parameter \(t_0\).
  3. The reflection \(A''\) is twice as far along the perpendicular: parameter \(2t_0\), i.e. \( A'' = 2A' - A \).
Example 4 Project and reflect \(A(3, 3, 3)\) in \( \alpha:\ x + 2y + 2z - 6 = 0 \). The perpendicular: \( (3 + t, 3 + 2t, 3 + 2t) \). Substituting: \( 9 + 9t = 0 \), \( t_0 = -1 \).
  • Projection: \( A'(2, 1, 1) \).
  • Reflection: \( A'' = 2A' - A = (1, -1, -1) \).
Check: both \(A\) and \(A''\) are at distance \(3\) from the plane (\( \frac{|9|}{3} \) and \( \frac{|-9|}{3} \)), on opposite sides.

Plane through a line and a point outside it

The plane contains the direction \(\vec p\) and the vector \( \overrightarrow{M_1B} \) from a point of the line to the given point \(B\), so its normal is \( \vec p\times\overrightarrow{M_1B} \).

Example 5 The plane through the line \(p\) of the running example and the origin \(B(0, 0, 0)\): \( \overrightarrow{M_1B} = \{-1, 1, -2\} \), \( \vec p\times\overrightarrow{M_1B} = \{2, 1, -1\}\times\{-1, 1, -2\} = \{-1, 5, 3\} \). The plane: \( -x + 5y + 3z = 0 \) (it passes through \(O\), and \(M_1(1, -1, 2)\) gives \(-1 - 5 + 6 = 0\) ✓).

Projection of a line onto a plane

The projection \(p'\) of a line \(p\) onto \(\alpha\) is the intersection of \(\alpha\) with the projecting plane: the plane through \(p\) perpendicular to \(\alpha\). That plane contains \(\vec p\) and \(\vec N\), so its normal is \( \vec p\times\vec N \).

Example 6 Running example: \( \vec p\times\vec N = \{2, 1, -1\}\times\{1, 2, 2\} = \{4, -5, 3\} \). The projecting plane through \(M_1(1, -1, 2)\): \[ 4(x - 1) - 5(y + 1) + 3(z - 2) = 0 \ \Longleftrightarrow\ 4x - 5y + 3z - 15 = 0. \] The projection is the line \[ p':\ \begin{cases} x + 2y + 2z - 6 = 0,\\ 4x - 5y + 3z - 15 = 0,\end{cases} \] with direction \( \{4, -5, 3\}\times\{1, 2, 2\} = \{-16, -5, 13\} \). It passes through \(P\big(4, \frac12, \frac12\big)\), where \(p\) pierces \(\alpha\), as it must.

6. Summary

QuestionAnswer
Angle\( \sin\theta = \frac{|Al + Bm + Cn|}{|\vec N||\vec p|} \)
Parallel\( Al + Bm + Cn = 0 \)
Perpendicular\( \frac Al = \frac Bm = \frac Cn \)
Intersection pointsubstitute the parametric form, solve for \(t\)
Line lies in the plane\( Ax_1 + By_1 + Cz_1 + D = 0 \) and \( Al + Bm + Cn = 0 \)
Projection of a pointintersect the perpendicular (direction \(\vec N\)) with the plane
Projection of a lineintersect \(\alpha\) with the plane through \(p\) with normal \(\vec p\times\vec N\)

7. Practice problems

Try each one before opening the solution. More solved problems from this topic are in Geometry.

Problem 1: Find the angle between the line \( \frac{x}{1} = \frac{y}{1} = \frac{z}{0} \) and the plane \( z = 0 \).

\( \vec p = \{1, 1, 0\} \), \( \vec N = \{0, 0, 1\} \): \( \sin\theta = 0 \), \(\theta = 0\). The line lies in the plane \(z = 0\) (it passes through the origin).

Problem 2: Where does the line \( x = 2 - t,\ y = 1 + t,\ z = 3t \) meet the plane \( x + y + z = 9 \)?

\( (2 - t) + (1 + t) + 3t = 9 \Rightarrow 3 + 3t = 9 \Rightarrow t = 2 \): the point \((0, 3, 6)\).

Problem 3: For which \(k\) is the line \( \frac{x - 1}{k} = \frac{y}{2} = \frac{z + 1}{1} \) parallel to the plane \( 3x - y + 4z = 0 \)? Does it then lie in the plane?

\( 3k - 2 + 4 = 0 \Rightarrow k = -\frac23 \). The point \((1, 0, -1)\): \( 3 - 0 - 4 = -1 \ne 0 \), so the line is parallel to the plane but not in it.

Problem 4: Find the foot of the perpendicular from \(A(1, 0, 0)\) to the plane \( x + y + z = 4 \).

\( (1 + t, t, t) \): \( 1 + 3t = 4 \), \( t = 1 \). Foot \((2, 1, 1)\); distance \( |t|\cdot|\vec N| = \sqrt3 \).

Problem 5: Find the line through \(A(1, 2, 3)\) perpendicular to the plane \( 2x - y + 5z = 0 \), and its intersection with the plane.

\( \frac{x - 1}{2} = \frac{y - 2}{-1} = \frac{z - 3}{5} \). Substituting \( (1 + 2t, 2 - t, 3 + 5t) \): \( 2 + 4t - 2 + t + 15 + 25t = 0 \), \( t = -\frac12 \): the point \( \big(0, \frac52, \frac12\big) \).

Problem 6: Show that the line \( x = t,\ y = 1 - t,\ z = 2 \) lies in the plane \( x + y + 5z - 11 = 0 \).

Direction \(\{1, -1, 0\}\): \( 1 - 1 + 0 = 0 \) (parallel). Point \((0, 1, 2)\): \( 0 + 1 + 10 - 11 = 0 \) (on the plane). Both conditions of 3° hold.

Final thoughts

All questions about a line and a plane come down to two numbers: \( \vec N\cdot\vec p = Al + Bm + Cn \), which compares the line's direction with the plane's normal, and \( Ax_1 + By_1 + Cz_1 + D \), which says whether a point of the line is in the plane. The first gives the angle (through a sine, since the normal is at \(90^\circ\) to the plane) and decides between piercing and parallel; the second separates "parallel outside" from "lying in". Substituting the parametric form into the plane's equation captures all of this in one line of algebra, and the projection and reflection problems are short applications of the same idea.

Related posts: the plane in space and the line in space.