Skip to content
Family Table Math
Auto

Intersections of Lines and Planes

Two lines in a plane either cross, run parallel, or are the same line. In 3-space there’s a fourth option: lines that aren’t parallel but still never meet. This page sorts out every way two lines, or a line and a plane, can sit in 3-space, and shows you how to find the intersection point when there is one.

Two lines in 3-space are always in exactly one of these four situations:

ConfigurationDirections parallel?Common points
Intersectingnoexactly one
Skewnonone
Parallel and distinctyesnone
Coincidentyesall of them (the same line)

Skew lines are not parallel and don’t intersect. Think of a road running east–west and a highway overpass running north–south above it. They can’t happen in 2-space, because two non-parallel lines in a plane always cross. Skew lines always lie in two parallel planes.

Two skew lines: not parallel and never meeting, lying in parallel planes x y z L₁ L₂ shortest gap
Skew lines: different directions, no common point. They lie in parallel planes.

Write the lines with different parameters, say r⃗=r⃗1+tm⃗1\vec{r} = \vec{r}_1 + t\vec{m}_1 and r⃗=r⃗2+sm⃗2\vec{r} = \vec{r}_2 + s\vec{m}_2.

  1. Compare the directions. Is m⃗1\vec{m}_1 a scalar multiple of m⃗2\vec{m}_2?
  2. If they’re parallel: test whether a point of one line is on the other. Yes means coincident; no means parallel and distinct.
  3. If they’re not parallel: set the parametric equations equal, component by component. That gives three equations in two unknowns, tt and ss. Solve two of them, then check the third.
    • The third equation works: the lines intersect. Substitute tt (or ss) to get the point.
    • The third equation fails: the lines are skew.

A line and a plane in 3-space can:

  • meet in one point (the line crosses the plane),
  • be parallel and distinct (no common points), or
  • coincide: the line lies in the plane (infinitely many common points).

To find out which, substitute the line’s parametric equations into the plane’s scalar equation and solve for tt:

Result of solving for tMeaning
one value of ttone point of intersection; substitute tt into the line
a false statement like 0=50 = 5the line is parallel to the plane, no intersection
a true statement like 0=00 = 0every tt works: the line lies in the plane

Quick test with vectors: the line is parallel to the plane (or in it) exactly when its direction is perpendicular to the plane’s normal, m⃗⋅n⃗=0\vec{m} \cdot \vec{n} = 0. If m⃗⋅n⃗≠0\vec{m} \cdot \vec{n} \ne 0, the line crosses the plane at exactly one point.

If the plane is given in vector or parametric form, convert it to a scalar equation first (see equations of planes). It makes the substitution much simpler.

Show that these lines intersect, and find the point of intersection.

L1:r⃗=[1,2,3]+t[1,−1,2]L2:r⃗=[2,−2,8]+s[1,2,−1]L_1: \vec{r} = [1, 2, 3] + t[1, -1, 2] \qquad L_2: \vec{r} = [2, -2, 8] + s[1, 2, -1]

IB courses write the same vectors as columns, so [1,2,3][1, 2, 3] is (123)\begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}; it means exactly the same thing.

Solution. The directions [1,−1,2][1, -1, 2] and [1,2,−1][1, 2, -1] aren’t multiples, so the lines aren’t parallel. Set the components equal:

1+t=2+s(x)2−t=−2+2s(y)3+2t=8−s(z)\begin{aligned} 1 + t &= 2 + s && (x) \\ 2 - t &= -2 + 2s && (y) \\ 3 + 2t &= 8 - s && (z) \end{aligned}

Add the xx and yy equations: 3=3s3 = 3s, so s=1s = 1. Then the xx equation gives t=2t = 2.

Check the zz equation: 3+2(2)=73 + 2(2) = 7 and 8−1=78 - 1 = 7 ✓.

All three equations work, so the lines intersect. With t=2t = 2 in L1L_1: (1+2, 2−2, 3+4)=(3,0,7)(1 + 2,\ 2 - 2,\ 3 + 4) = (3, 0, 7).

Check with s=1s = 1 in L2L_2: (2+1, −2+2, 8−1)=(3,0,7)(2 + 1,\ -2 + 2,\ 8 - 1) = (3, 0, 7) ✓.

Let L1:r⃗=[1,0,2]+t[2,1,−1]L_1: \vec{r} = [1, 0, 2] + t[2, 1, -1].

  • (a) Classify L1L_1 and L2:r⃗=[0,4,1]+s[1,−1,2]L_2: \vec{r} = [0, 4, 1] + s[1, -1, 2].
  • (b) Classify L1L_1 and L3:r⃗=[5,2,0]+u[−4,−2,2]L_3: \vec{r} = [5, 2, 0] + u[-4, -2, 2].

Solution.

(a) [2,1,−1][2, 1, -1] and [1,−1,2][1, -1, 2] aren’t multiples, so the lines aren’t parallel. Set them equal:

1+2t=s(x),t=4−s(y),2−t=1+2s(z)1 + 2t = s \quad (x), \qquad t = 4 - s \quad (y), \qquad 2 - t = 1 + 2s \quad (z)

Substitute the xx equation into the yy equation: t=4−(1+2t)t = 4 - (1 + 2t), so 3t=33t = 3 and t=1t = 1. Then s=3s = 3.

Check the zz equation: 2−1=12 - 1 = 1, but 1+2(3)=71 + 2(3) = 7. They don’t match, so there’s no common point. The lines are skew.

(b) [−4,−2,2]=−2[2,1,−1][-4, -2, 2] = -2[2, 1, -1], so the lines are parallel. Is (5,2,0)(5, 2, 0) on L1L_1? From xx: 1+2t=51 + 2t = 5 gives t=2t = 2. Then y=2y = 2 ✓ and z=2−2=0z = 2 - 2 = 0 ✓. So the lines are coincident: they’re the same line written two ways.

Find the intersection of each line with the plane x+y+z=7x + y + z = 7.

  • (a) r⃗=[2,−1,0]+t[1,3,−2]\vec{r} = [2, -1, 0] + t[1, 3, -2]
  • (b) r⃗=[1,1,1]+t[2,−1,−1]\vec{r} = [1, 1, 1] + t[2, -1, -1]
  • (c) r⃗=[3,2,2]+t[2,−1,−1]\vec{r} = [3, 2, 2] + t[2, -1, -1]

Solution.

(a) Substitute x=2+tx = 2 + t, y=−1+3ty = -1 + 3t, z=−2tz = -2t:

(2+t)+(−1+3t)+(−2t)=7⇒1+2t=7⇒t=3(2 + t) + (-1 + 3t) + (-2t) = 7 \quad\Rightarrow\quad 1 + 2t = 7 \quad\Rightarrow\quad t = 3

The point is (2+3, −1+9, −6)=(5,8,−6)(2 + 3,\ -1 + 9,\ -6) = (5, 8, -6). Check: 5+8−6=75 + 8 - 6 = 7 ✓.

(b) Substitute x=1+2tx = 1 + 2t, y=1−ty = 1 - t, z=1−tz = 1 - t:

(1+2t)+(1−t)+(1−t)=7⇒3=7(1 + 2t) + (1 - t) + (1 - t) = 7 \quad\Rightarrow\quad 3 = 7

That’s false for every tt, so there’s no intersection: the line is parallel to the plane. (Check: [2,−1,−1]⋅[1,1,1]=0[2, -1, -1] \cdot [1, 1, 1] = 0.)

(c) Substitute x=3+2tx = 3 + 2t, y=2−ty = 2 - t, z=2−tz = 2 - t:

(3+2t)+(2−t)+(2−t)=7⇒7=7(3 + 2t) + (2 - t) + (2 - t) = 7 \quad\Rightarrow\quad 7 = 7

True for every tt, so every point of the line is on the plane: the line lies in the plane.

Find the point on the plane 2x−y+2z−1=02x - y + 2z - 1 = 0 closest to A(4,−1,5)A(4, -1, 5), and the distance from AA to the plane.

Solution. The closest point is where the line through AA perpendicular to the plane meets it. That line runs in the direction of the normal [2,−1,2][2, -1, 2]:

r⃗=[4,−1,5]+t[2,−1,2]\vec{r} = [4, -1, 5] + t[2, -1, 2]

Substitute x=4+2tx = 4 + 2t, y=−1−ty = -1 - t, z=5+2tz = 5 + 2t into the plane:

2(4+2t)−(−1−t)+2(5+2t)−1=08+4t+1+t+10+4t−1=09t+18=0t=−2\begin{aligned} 2(4 + 2t) - (-1 - t) + 2(5 + 2t) - 1 &= 0 \\ 8 + 4t + 1 + t + 10 + 4t - 1 &= 0 \\ 9t + 18 &= 0 \\ t &= -2 \end{aligned}

The foot of the perpendicular is (4−4, −1+2, 5−4)=(0,1,1)(4 - 4,\ -1 + 2,\ 5 - 4) = (0, 1, 1). Check: 0−1+2−1=00 - 1 + 2 - 1 = 0 ✓.

The distance is the length of the segment from AA to (0,1,1)(0, 1, 1):

(4−0)2+(−1−1)2+(5−1)2=16+4+16=6\sqrt{(4 - 0)^2 + (-1 - 1)^2 + (5 - 1)^2} = \sqrt{16 + 4 + 16} = 6

You’ll see a faster formula for this distance in distances in 3-space.

Using the same parameter for both lines. Writing both lines with tt asks whether they’re at the same point for the same tt, which is a different (and usually wrong) question. Use tt for one line and ss for the other.

Not checking the third equation. Two of the three component equations can almost always be solved. The third one decides between “intersecting” and “skew”. Skip it and you’ll call skew lines intersecting.

Calling non-parallel lines intersecting. That’s true in 2-space but not in 3-space. Non-parallel lines in 3-space can be skew.

Misreading 0 = 0 and 0 = 5. When tt cancels out, a true statement means the line lies in the plane; a false statement means no intersection. Neither means "t=0t = 0".

Stopping at the value of t. The question asks for a point. Substitute tt back into the line’s equations, then check the point in the plane.

1. (Warm-up) L1L_1 passes through (1,0,2)(1, 0, 2) with direction [2,−4,6][2, -4, 6], and L2L_2 passes through (3,−4,8)(3, -4, 8) with direction [−1,2,−3][-1, 2, -3]. Are the lines parallel? Are they coincident?

Solution

[2,−4,6]=−2[−1,2,−3][2, -4, 6] = -2[-1, 2, -3], so the lines are parallel.

Is (3,−4,8)(3, -4, 8) on L1L_1? From xx: 1+2t=31 + 2t = 3 gives t=1t = 1. Then y=0−4=−4y = 0 - 4 = -4 ✓ and z=2+6=8z = 2 + 6 = 8 ✓. Yes, so the lines are coincident.

2. (Warm-up) Does the line r⃗=[1,2,3]+t[1,0,−1]\vec{r} = [1, 2, 3] + t[1, 0, -1] intersect the plane x+z=5x + z = 5?

Solution

Substitute: (1+t)+(3−t)=5(1 + t) + (3 - t) = 5 gives 4=54 = 5, which is false. No intersection: the line is parallel to the plane. (Check: [1,0,−1]⋅[1,0,1]=0[1, 0, -1] \cdot [1, 0, 1] = 0.)

3. (Core) Find the point where the line x=3+tx = 3 + t, y=−2+2ty = -2 + 2t, z=1−tz = 1 - t meets the plane 2x+y−3z=152x + y - 3z = 15.

Solution2(3+t)+(−2+2t)−3(1−t)=156+2t−2+2t−3+3t=157t+1=15t=2\begin{aligned} 2(3 + t) + (-2 + 2t) - 3(1 - t) &= 15 \\ 6 + 2t - 2 + 2t - 3 + 3t &= 15 \\ 7t + 1 &= 15 \\ t &= 2 \end{aligned}

The point is (5,2,−1)(5, 2, -1). Check: 10+2+3=1510 + 2 + 3 = 15 ✓.

4. (Core) Show that L1:r⃗=[2,1,0]+t[1,1,1]L_1: \vec{r} = [2, 1, 0] + t[1, 1, 1] and L2:r⃗=[−1,4,−1]+s[2,−1,1]L_2: \vec{r} = [-1, 4, -1] + s[2, -1, 1] intersect, and find the point.

Solution

The directions aren’t multiples. Set the components equal:

2+t=−1+2s(x),1+t=4−s(y),t=−1+s(z)2 + t = -1 + 2s \quad (x), \qquad 1 + t = 4 - s \quad (y), \qquad t = -1 + s \quad (z)

Subtract the yy equation from the xx equation: 1=−5+3s1 = -5 + 3s, so s=2s = 2. Then t=1t = 1 from the yy equation.

Check zz: t=1t = 1 and −1+s=1-1 + s = 1 ✓. The lines intersect at t=1t = 1 on L1L_1: (3,2,1)(3, 2, 1).

Check on L2L_2 with s=2s = 2: (−1+4, 4−2, −1+2)=(3,2,1)(-1 + 4,\ 4 - 2,\ -1 + 2) = (3, 2, 1) ✓.

5. (Core) Classify the lines L1:r⃗=[1,1,0]+t[1,2,−1]L_1: \vec{r} = [1, 1, 0] + t[1, 2, -1] and L2:r⃗=[2,0,3]+s[1,1,1]L_2: \vec{r} = [2, 0, 3] + s[1, 1, 1].

Solution

The directions [1,2,−1][1, 2, -1] and [1,1,1][1, 1, 1] aren’t multiples, so the lines aren’t parallel.

1+t=2+s(x),1+2t=s(y),−t=3+s(z)1 + t = 2 + s \quad (x), \qquad 1 + 2t = s \quad (y), \qquad -t = 3 + s \quad (z)

Substitute the yy equation into the xx equation: 1+t=3+2t1 + t = 3 + 2t, so t=−2t = -2 and s=−3s = -3.

Check zz: −t=2-t = 2 but 3+s=03 + s = 0. They don’t match, so the lines are skew.

6. (Core) Find the intersection of the line r⃗=[0,0,5]+u[1,2,−1]\vec{r} = [0, 0, 5] + u[1, 2, -1] and the plane r⃗=[1,0,0]+s[1,1,0]+t[0,1,1]\vec{r} = [1, 0, 0] + s[1, 1, 0] + t[0, 1, 1].

Solution

First convert the plane to scalar form. Normal:

[1,1,0]×[0,1,1]=[1(1)−0(1), 0(0)−1(1), 1(1)−1(0)]=[1,−1,1][1, 1, 0] \times [0, 1, 1] = [1(1) - 0(1),\ 0(0) - 1(1),\ 1(1) - 1(0)] = [1, -1, 1]

So x−y+z+D=0x - y + z + D = 0, and (1,0,0)(1, 0, 0) gives D=−1D = -1: x−y+z−1=0x - y + z - 1 = 0.

Substitute the line, x=ux = u, y=2uy = 2u, z=5−uz = 5 - u:

u−2u+(5−u)−1=0⇒4−2u=0⇒u=2u - 2u + (5 - u) - 1 = 0 \quad\Rightarrow\quad 4 - 2u = 0 \quad\Rightarrow\quad u = 2

The point is (2,4,3)(2, 4, 3). Check: 2−4+3−1=02 - 4 + 3 - 1 = 0 ✓.

7. (Core) For what value of kk is the line r⃗=[1,−1,2]+t[k,1,2]\vec{r} = [1, -1, 2] + t[k, 1, 2] parallel to the plane 3x−y+2z=53x - y + 2z = 5? For that kk, does the line lie in the plane?

Solution

Parallel means m⃗⋅n⃗=0\vec{m} \cdot \vec{n} = 0:

[k,1,2]⋅[3,−1,2]=3k−1+4=3k+3=0⇒k=−1[k, 1, 2] \cdot [3, -1, 2] = 3k - 1 + 4 = 3k + 3 = 0 \quad\Rightarrow\quad k = -1

Test the point (1,−1,2)(1, -1, 2) in the plane: 3+1+4=8≠53 + 1 + 4 = 8 \ne 5. So the line is parallel to the plane but not in it.

8. (Challenge) Find the foot of the perpendicular from P(1,5,−2)P(1, 5, -2) to the plane x+2y−2z−6=0x + 2y - 2z - 6 = 0, and the distance from PP to the plane.

Solution

The perpendicular line through PP has the plane’s normal as its direction: r⃗=[1,5,−2]+t[1,2,−2]\vec{r} = [1, 5, -2] + t[1, 2, -2]. Substitute:

(1+t)+2(5+2t)−2(−2−2t)−6=01+t+10+4t+4+4t−6=09t+9=0t=−1\begin{aligned} (1 + t) + 2(5 + 2t) - 2(-2 - 2t) - 6 &= 0 \\ 1 + t + 10 + 4t + 4 + 4t - 6 &= 0 \\ 9t + 9 &= 0 \\ t &= -1 \end{aligned}

The foot is (0,3,0)(0, 3, 0). Check: 0+6−0−6=00 + 6 - 0 - 6 = 0 ✓.

Distance: 12+22+(−2)2=9=3\sqrt{1^2 + 2^2 + (-2)^2} = \sqrt{9} = 3.

9. (Challenge) Find the value of kk so that the lines L1:r⃗=[1,2,k]+t[1,0,1]L_1: \vec{r} = [1, 2, k] + t[1, 0, 1] and L2:r⃗=[3,−1,0]+s[0,1,2]L_2: \vec{r} = [3, -1, 0] + s[0, 1, 2] intersect. Find the point of intersection.

Solution

Set the components equal:

1+t=3(x),2=−1+s(y),k+t=2s(z)1 + t = 3 \quad (x), \qquad 2 = -1 + s \quad (y), \qquad k + t = 2s \quad (z)

The first two give t=2t = 2 and s=3s = 3. For the lines to meet, the zz equation must also hold: k+2=6k + 2 = 6, so k=4k = 4.

The point is (1+2, 2, 4+2)=(3,2,6)(1 + 2,\ 2,\ 4 + 2) = (3, 2, 6). Check on L2L_2: (3, −1+3, 0+6)=(3,2,6)(3,\ -1 + 3,\ 0 + 6) = (3, 2, 6) ✓.