01 / 22

Distances & Angles:
Lines & Planes

Learn to compute distances between points, lines, and planes, and find the angles at which lines and planes meet in three-dimensional space.

Multivariable Calculus

Lines and Planes in 3D Space

In multivariable calculus, a line is described by a point and a direction vector. A plane is described by a point and a normal vector. Together these representations let us measure how far apart objects are and the angles they form.

Line
\(\mathbf{r}(t) = \mathbf{P}_0 + t\,\mathbf{d}\), where \(\mathbf{d}\) is the direction vector
Plane
\(\mathbf{n} \cdot (\mathbf{r} - \mathbf{P}_0) = 0\), equivalently \(ax + by + cz = d\)

Why Measure Distances and Angles?

Distances tell us the shortest separation between geometric objects: how close a satellite's path comes to the Earth's surface, or the clearance between structural beams. Angles tell us how objects are oriented relative to one another: the tilt of a drill into rock, or the banking of a road surface.

Key Tool: The Dot Product

\(O\)
\(\mathbf{a}\)
\(\mathbf{b}\)
\(\theta\)

The dot product gives the projection of one vector onto another. When \(\theta = 90^\circ\), the dot product is zero: the vectors are perpendicular.

Distance: Point to Plane

\(ax + by + cz = d\)
\(P_1\)
\(D\)
\(\mathbf{n}\)

The distance is the length of the perpendicular projection from the point onto the plane, computed by projecting the displacement vector onto the unit normal.

Distance: Point to Line

\(\ell\)
\(P_0\)
\(\mathbf{d}\)
\(P_1\)
\(D\)

The cross product \(\overrightarrow{P_0P_1}\times\mathbf{d}\) gives a vector whose magnitude equals the area of the parallelogram formed by those two vectors. Dividing by \(|\mathbf{d}|\) converts that area into a height: the perpendicular distance.

Distance Between Skew Lines

\(\ell_1\)
\(\ell_2\)
\(P_1\)
\(P_2\)
\(D\)

The vector \(\mathbf{d}_1\times\mathbf{d}_2\) is perpendicular to both lines. Projecting the displacement \(\overrightarrow{P_1P_2}\) onto this common perpendicular gives the shortest distance.

Parallel vs Skew vs Intersecting

Parallel
\(\mathbf{d}_1 \times \mathbf{d}_2 = \mathbf{0}\). Lines never meet. Use point-to-line distance formula.
Skew
\(\mathbf{d}_1 \times \mathbf{d}_2 \neq \mathbf{0}\) and lines don't share a point. Use the skew-line formula.
Intersecting
\(\mathbf{d}_1 \times \mathbf{d}_2 \neq \mathbf{0}\) but lines share a point. Distance is 0.

Angle Between Two Lines

\(\ell_1\)
\(\ell_2\)
\(\theta\)

We always report the acute angle (or zero if the lines are parallel). This is why we take the absolute value of the dot product before applying \(\cos^{-1}\).

Angle Between Two Planes

Plane 1
Plane 2
\(\mathbf{n}_1\)
\(\mathbf{n}_2\)
\(\theta\)

The angle between two planes equals the angle between their normal vectors. Again we use the absolute value to get the acute angle.

Angle: Line Meets Plane

proj
\(\ell\)
\(\alpha\)
\(\mathbf{n}\)

Key insight: The angle between the line and the plane is the complement of the angle between the line and the normal. Since the dot product gives the angle with the normal, we use \(\sin\) instead of \(\cos\).

Step-by-Step Approach

1
Identify the objects. Are you working with a point, line, or plane? Extract \(\mathbf{P}_0\), \(\mathbf{d}\), or \(\mathbf{n}\) from the equations.
2
Choose the right formula. Distance uses cross products (point-to-line) or projections (point-to-plane, skew lines). Angles use dot products.
3
Compute the needed vectors. Find displacement vectors like \(\overrightarrow{P_0P_1}\), then the relevant cross or dot product.
4
Take absolute values / magnitudes. Distances and acute angles are always non-negative. Don't forget the absolute value.
5
Simplify and interpret. Express your final answer with units if applicable. Verify the result makes geometric sense.

Example 1: Point to Plane

Find the distance from the point \(P_1 = (3, -1, 2)\) to the plane \(2x + y - 2z = 4\).

1
Identify: \(a=2,\; b=1,\; c=-2,\; d=4\) and \((x_1,y_1,z_1) = (3,-1,2)\).
2
Numerator: \(|2(3) + 1(-1) + (-2)(2) - 4| = |6 - 1 - 4 - 4| = |-3| = 3\).
3
Denominator: \(\sqrt{2^2+1^2+(-2)^2} = \sqrt{4+1+4} = 3\).
4
Result: \(D = \dfrac{3}{3} = \boxed{1}\).

Example 2: Point to Line

Find the distance from \(P_1 = (1, 0, -1)\) to the line through \(P_0 = (2, 1, 3)\) with direction \(\mathbf{d} = \langle 1, -1, 2\rangle\).

1
Displacement: \(\overrightarrow{P_0P_1} = \langle 1-2,\; 0-1,\; -1-3\rangle = \langle -1, -1, -4\rangle\).
2
Cross product: \(\overrightarrow{P_0P_1}\times\mathbf{d} = \begin{vmatrix}\mathbf{i}&\mathbf{j}&\mathbf{k}\\-1&-1&-4\\1&-1&2\end{vmatrix} = \langle -6, -2, 2\rangle\).
3
Magnitudes: \(|\overrightarrow{P_0P_1}\times\mathbf{d}| = \sqrt{36+4+4} = \sqrt{44}\), and \(|\mathbf{d}| = \sqrt{6}\).
4
Result: \(D = \dfrac{\sqrt{44}}{\sqrt{6}} = \sqrt{\dfrac{44}{6}} = \sqrt{\dfrac{22}{3}} \approx \boxed{2.71}\).

Example 3: Skew Lines

Lines: \(\ell_1\) through \((1,0,0)\) with \(\mathbf{d}_1 = \langle 1,1,0\rangle\); \(\ell_2\) through \((0,1,1)\) with \(\mathbf{d}_2 = \langle 0,1,1\rangle\). Find the distance and angle.

Common Mistakes

✕ Forgetting absolute value
The dot product can be negative. Always take \(|\mathbf{a}\cdot\mathbf{b}|\) for acute angles and distances.
✕ Using \(\cos\) for line-to-plane
The angle between a line and a plane uses \(\sin\alpha\), not \(\cos\alpha\). The complement relationship trips many students.
✕ Mixing up \(\mathbf{d}\) and \(\mathbf{n}\)
Lines are defined by direction vectors; planes by normal vectors. Using a direction vector as a normal (or vice versa) gives wrong results.

Formula Summary

Quantity Formula Key Vector
Point to Plane \(\frac{|ax_1+by_1+cz_1-d|}{|\mathbf{n}|}\) Normal \(\mathbf{n}\)
Point to Line \(\frac{|\overrightarrow{P_0P_1}\times\mathbf{d}|}{|\mathbf{d}|}\) Direction \(\mathbf{d}\)
Skew Lines \(\frac{|\overrightarrow{P_1P_2}\cdot(\mathbf{d}_1\times\mathbf{d}_2)|}{|\mathbf{d}_1\times\mathbf{d}_2|}\) \(\mathbf{d}_1\times\mathbf{d}_2\)
Angle: Lines \(\cos\theta = \frac{|\mathbf{d}_1\cdot\mathbf{d}_2|}{|\mathbf{d}_1||\mathbf{d}_2|}\) Directions
Angle: Planes \(\cos\theta = \frac{|\mathbf{n}_1\cdot\mathbf{n}_2|}{|\mathbf{n}_1||\mathbf{n}_2|}\) Normals
Angle: Line/Plane \(\sin\alpha = \frac{|\mathbf{d}\cdot\mathbf{n}|}{|\mathbf{d}||\mathbf{n}|}\) \(\mathbf{d}\) and \(\mathbf{n}\)

Question 1 of 5

What is the distance from the point \((1,2,3)\) to the plane \(x + y + z = 1\)?

Question 2 of 5

Which formula gives the distance from a point to a line in \(\mathbb{R}^3\)?

Question 3 of 5

Find the angle between the planes \(x + y = 0\) and \(y + z = 0\).

Question 4 of 5

A line has direction \(\mathbf{d} = \langle 1,0,1\rangle\) and a plane has normal \(\mathbf{n} = \langle 0,1,0\rangle\). What is the angle between the line and the plane?

Question 5 of 5

Two lines have directions \(\mathbf{d}_1 = \langle 2,1,-1\rangle\) and \(\mathbf{d}_2 = \langle 1,-1,0\rangle\). Their cross product is \(\mathbf{d}_1\times\mathbf{d}_2 = \langle -1,-1,-3\rangle\). Which statement is true?