Analytic Geometry › Chapter 3

Lines and Planes in Space

Cartesian equations of lines and planes, distances, relative positions and intersections.

3.1Cartesian Equations of a Line

A line in space is fixed by a point P_0(x_0,y_0,z_0) and a direction vector \mathbf d=(a,b,c)\ne\mathbf 0.

Symmetric form

If abc\neq0, the line through P_0 with direction \mathbf d is

\frac{x-x_0}{a}=\frac{y-y_0}{b}=\frac{z-z_0}{c}.

If a component is zero, say a=0, the line is x=x_0 together with \dfrac{y-y_0}{b}=\dfrac{z-z_0}{c}.

Equivalently, a line is the intersection of two non-parallel planes, a_1x+b_1y+c_1z+d_1=0 and a_2x+b_2y+c_2z+d_2=0. In the plane, a line is a single equation ax+by+c=0.

Example

Find the line through A(1,2,3) and B(3,2,7).

The direction is \overrightarrow{AB}=(2,0,4), or (1,0,2). Since the y-component is zero:

y=2,\qquad \frac{x-1}{1}=\frac{z-3}{2}.

3.2Cartesian Equation of a Plane

A plane is fixed by a point P_0(x_0,y_0,z_0) and a normal vector \mathbf n=(a,b,c)\neq\mathbf0.

Plane equation

a(x-x_0)+b(y-y_0)+c(z-z_0)=0\iff ax+by+cz+d=0,\quad d=-(ax_0+by_0+cz_0).

Through three non-collinear points A,B,C, take \mathbf n=\overrightarrow{AB}\times\overrightarrow{AC}. If the plane meets the axes at (p,0,0), (0,q,0), (0,0,r), then

\frac xp+\frac yq+\frac zr=1.

Example

Find the plane through A(1,0,0), B(0,2,0), C(0,0,3).

Intercept form: x+\tfrac y2+\tfrac z3=1, that is 6x+3y+2z=6.

Check with the normal: \overrightarrow{AB}=(-1,2,0), \overrightarrow{AC}=(-1,0,3), and \overrightarrow{AB}\times\overrightarrow{AC}=(6,3,2).

3.3Distances, Relative Positions, and Common Points

Distance formulas

Let the plane be ax+by+cz+d=0 and let \mathbf d be a direction vector of a line through P_1.

\operatorname{dist}(P_0,\text{plane})=\frac{|ax_0+by_0+cz_0+d|}{\sqrt{a^2+b^2+c^2}},\qquad \operatorname{dist}(P_0,\text{line})=\frac{\bigl|\overrightarrow{P_1P_0}\times\mathbf d\bigr|}{|\mathbf d|}.

For two skew lines with directions \mathbf d_1,\mathbf d_2 through P_1,P_2:

\operatorname{dist}=\frac{\bigl|\overrightarrow{P_1P_2}\cdot(\mathbf d_1\times\mathbf d_2)\bigr|}{|\mathbf d_1\times\mathbf d_2|}.

The angle \theta between two planes satisfies \cos\theta=\dfrac{|\mathbf n_1\cdot\mathbf n_2|}{|\mathbf n_1||\mathbf n_2|}.

ObjectsTestResult
Line \mathbf d, plane \mathbf n\mathbf d\cdot\mathbf n\ne0one common point
\mathbf d\cdot\mathbf n=0, point of line not on planeparallel, no common point
\mathbf d\cdot\mathbf n=0, point of line on planeline lies in the plane
Two planes\mathbf n_1\times\mathbf n_2\ne\mathbf0meet in a line
\mathbf n_1\times\mathbf n_2=\mathbf0parallel or coincident
Two lines\mathbf d_1\times\mathbf d_2=\mathbf0parallel or coincident
\mathbf d_1\times\mathbf d_2\ne\mathbf 0, \overrightarrow{P_1P_2}\cdot(\mathbf d_1\times\mathbf d_2)=0meet in one point
\mathbf d_1\times\mathbf d_2\ne\mathbf 0, \overrightarrow{P_1P_2}\cdot(\mathbf d_1\times\mathbf d_2)\ne0skew

Example

Distance from P_0(1,2,3) to the plane 2x-2y+z-3=0.

\frac{|2-4+3-3|}{\sqrt{4+4+1}}=\frac{2}{3}.

3.4Intersections of Lines and Planes

To intersect a line with a plane, write the line with a parameter t and substitute into the plane equation. To intersect two planes, the direction of the common line is \mathbf n_1\times\mathbf n_2.

Example: line and plane

Intersect the line \dfrac{x-1}{2}=\dfrac{y+1}{1}=\dfrac{z-2}{-1}=t with the plane x+2y+z=7.

Substitute x=1+2t, y=-1+t, z=2-t: (1+2t)+2(-1+t)+(2-t)=7, so 1+3t=7 and t=2.

The common point is (5,1,0). Check: 5+2+0=7.

Example: two planes

Intersect x+y+z=3 with x-y+2z=2.

The normals are (1,1,1) and (1,-1,2), so the direction is (1,1,1)\times(1,-1,2)=(3,-1,-2).

Setting z=0 gives x+y=3, x-y=2, so x=\tfrac52, y=\tfrac12. The line is

\frac{x-5/2}{3}=\frac{y-1/2}{-1}=\frac{z}{-2}.

Q3Chapter 3: Quiz and Problems

Common student mistakes

Common errorIn 2x-y+4z=12, the vector (2,-1,4) lies in the plane

Correct(2,-1,4) is perpendicular to the plane

The coefficients of x,y,z form the normal vector, not a direction inside the plane.

Common errorDistance to a plane: ax_0+by_0+cz_0+d

Correct\dfrac{|ax_0+by_0+cz_0+d|}{\sqrt{a^2+b^2+c^2}}

Do not forget the absolute value and the division by |\mathbf n|.

Common errorTwo lines that are not parallel must meet

CorrectThey may be skew

In space two lines can miss each other without being parallel. Test \overrightarrow{P_1P_2}\cdot(\mathbf d_1\times\mathbf d_2).

Common errorThe line with direction (1,0,2) is \dfrac{x-1}{1}=\dfrac{y-2}{0}=\dfrac{z-3}{2}

Correcty=2,\ \dfrac{x-1}{1}=\dfrac{z-3}{2}

Never divide by zero. A zero component means the coordinate is constant.

Common errorThe line of two planes has direction \mathbf n_1+\mathbf n_2

CorrectThe direction is \mathbf n_1\times\mathbf n_2

The line lies in both planes, so it is perpendicular to both normals.

Multiple-choice quiz

1 The plane through (1,2,3) with normal (2,-1,4) is
2 The distance from the origin to 3x-4y+12z=26 is
3 A line with direction (1,1,-2) and the plane x+y+z=3
4 The x-axis and the line x=0,\ y=1 are
5 The plane through the origin containing (1,0,0) and (0,1,1) is
6 The angle between the planes with normals (1,0,0) and (1,1,0) is
7 The distance from the origin to the line through (1,0,0) with direction (0,1,0) is
8 The line \dfrac{x-1}{2}=\dfrac{y+2}{-3}=\dfrac{z}{4} passes through
Answered 0 of 8 · Correct 0

Written problems

Problem 1. Find the line of intersection of x-y+z=1 and 2x+y-z=5. (6 marks)

Show solution

The normals are (1,-1,1) and (2,1,-1). Their cross product is (0,3,3), so a direction is (0,1,1).

Adding the equations gives 3x=6, so x=2, and then z=y-1. Taking y=0 gives the point (2,0,-1). Check: 2+0-1=1 and 4-0+1=5.

x=2,\qquad y=z+1\qquad(\text{parametrically }(2,\ t,\ t-1)).

Problem 2. Find the distance between the planes 2x-y+2z=3 and 2x-y+2z=9. (3 marks)

Show solution

The planes are parallel with \sqrt{4+1+4}=3. The distance is \dfrac{|9-3|}{3}=2.

Problem 3. Find where the line \dfrac{x-1}{1}=\dfrac{y}{2}=\dfrac{z+1}{-1} meets the plane 2x-y+z=4. (5 marks)

Show solution

Put x=1+t, y=2t, z=-1-t. Then 2+2t-2t-1-t=4, so 1-t=4 and t=-3.

The point is (-2,-6,2). Check: -4+6+2=4.

Problem 4. Find the angle between the planes x+y+z=1 and x-y+z=3. (4 marks)

Show solution

The normals are (1,1,1) and (1,-1,1). \cos\theta=\dfrac{|1-1+1|}{\sqrt3\sqrt3}=\dfrac13, so \theta=\arccos\tfrac13\approx70.5^\circ.

Short essay

Essay. Explain how the relative position of a line and a plane is decided, and why one dot-product test cannot tell "parallel" from "contained". (about 150 words)

Show model answer

With direction \mathbf d and plane normal \mathbf n, the test is \mathbf d\cdot\mathbf n. If it is non-zero the line crosses the plane in exactly one point, found by substituting the line into the plane equation. If it is zero the line is parallel to the plane, but the test only compares directions. It carries no information about position, so parallel and contained look the same. To separate them, test one point of the line in the plane equation: if it satisfies the equation the line lies in the plane, otherwise the line is parallel and distinct.