Grade 12 IB Math is live, AA and AI · see the IB course

Grade 12 · MCV4U · Calculus & Vectors

MCV4U: Equations of Lines in 3D

In 2D, y=mx+by = mx + b describes a line. In 3D there is no single slope, so a line is described the way you would give directions: start here, then walk this way. That needs a point and a direction vector.

How It Works

Vector form. r⃗=r0⃗+td⃗\vec{r} = \vec{r_0} + t\vec{d}, where r0⃗\vec{r_0} is the position vector of a point on the line and d⃗\vec{d} is a direction vector. Each value of the parameter tt gives one point of the line; t=0t = 0 is the starting point.

Parametric form. Split the vector equation into components. For r0⃗=[x0,y0,z0]\vec{r_0} = [x_0, y_0, z_0] and d⃗=[a,b,c]\vec{d} = [a, b, c]: x=x0+atx = x_0 + at, y=y0+bty = y_0 + bt, z=z0+ctz = z_0 + ct.

Symmetric form. Solve each parametric equation for tt and set them equal: x−x0a=y−y0b=z−z0c\frac{x - x_0}{a} = \frac{y - y_0}{b} = \frac{z - z_0}{c}. If a component of d⃗\vec{d} is 00, that coordinate never changes, so write it separately, such as y=−1y = -1, and keep the other two fractions.

Reading an equation. The numbers added to tt (or subtracted from xx, yy, zz in symmetric form) give a point; the multipliers of tt (or the denominators) give the direction. Watch the signs: x+12\frac{x + 1}{2} means x0=−1x_0 = -1.

Through two points. Subtract to get a direction vector, then use either point.

The same line, many equations. Any point on the line and any nonzero multiple of d⃗\vec{d} work. That is why two equations can look different and still describe one line.

Is a point on the line? Find tt from one coordinate, then check that same tt gives the other two. Parallel lines have collinear direction vectors. They are the same line if one line's point satisfies the other's equation, and distinct otherwise.

5 Worked Examples

Easy first, test level last. Try each one on paper, then open the solution.

  1. Easy

    Write vector, parametric and symmetric equations of the line through (2,−1,4)(2, -1, 4) with direction [3,0,−2][3, 0, -2].
    Show solution
    1. Vector: r⃗=[2,−1,4]+t[3,0,−2]\vec{r} = [2, -1, 4] + t[3, 0, -2].
    2. Parametric: x=2+3tx = 2 + 3t, y=−1y = -1, z=4−2tz = 4 - 2t.
    3. The yy component of the direction is 00, so yy is fixed and stays out of the fractions.

    Answer: r⃗=[2,−1,4]+t[3,0,−2]\vec{r} = [2, -1, 4] + t[3, 0, -2]; x=2+3tx = 2 + 3t, y=−1y = -1, z=4−2tz = 4 - 2t; x−23=z−4−2\frac{x - 2}{3} = \frac{z - 4}{-2}, y=−1y = -1

  2. Easy

    Find vector and symmetric equations of the line through A(1,3,−2)A(1, 3, -2) and B(4,1,0)B(4, 1, 0).
    Show solution
    1. Direction: AB⃗=[3,−2,2]\vec{AB} = [3, -2, 2].
    2. Use AA as the point.

    Answer: r⃗=[1,3,−2]+t[3,−2,2]\vec{r} = [1, 3, -2] + t[3, -2, 2] and x−13=y−3−2=z+22\frac{x - 1}{3} = \frac{y - 3}{-2} = \frac{z + 2}{2}

  3. Medium

    Is P(7,−1,2)P(7, -1, 2) on the line r⃗=[1,3,−2]+t[3,−2,2]\vec{r} = [1, 3, -2] + t[3, -2, 2]? Is Q(4,1,1)Q(4, 1, 1)?
    Show solution
    1. For PP: 1+3t=71 + 3t = 7 gives t=2t = 2. Then y=3−4=−1y = 3 - 4 = -1 and z=−2+4=2z = -2 + 4 = 2. Both match.
    2. For QQ: 1+3t=41 + 3t = 4 gives t=1t = 1. Then y=1y = 1, which matches, but z=0≠1z = 0 \ne 1.

    Answer: PP is on the line (at t=2t = 2); QQ is not

  4. Medium

    Write parametric equations for the line x+12=y−4−3=z5\frac{x + 1}{2} = \frac{y - 4}{-3} = \frac{z}{5}, and find where it crosses the xzxz-plane.
    Show solution
    1. Point (−1,4,0)(-1, 4, 0) and direction [2,−3,5][2, -3, 5]: x=−1+2tx = -1 + 2t, y=4−3ty = 4 - 3t, z=5tz = 5t.
    2. The xzxz-plane is y=0y = 0: 4−3t=04 - 3t = 0, so t=43t = \frac{4}{3}.
    3. Then x=−1+83=53x = -1 + \frac{8}{3} = \frac{5}{3} and z=203z = \frac{20}{3}.

    Answer: x=−1+2tx = -1 + 2t, y=4−3ty = 4 - 3t, z=5tz = 5t; it crosses at (53,0,203)\left(\frac{5}{3}, 0, \frac{20}{3}\right)

  5. Test level

    Find a vector equation of the line through A(2,0,−1)A(2, 0, -1) parallel to L:x−34=y+1−2=z−52L: \frac{x - 3}{4} = \frac{y + 1}{-2} = \frac{z - 5}{2}. Is it the same line as LL? Where does it cross the xyxy-plane?
    Show solution
    1. LL has direction [4,−2,2][4, -2, 2]; divide by 22 to use [2,−1,1][2, -1, 1]. So r⃗=[2,0,−1]+t[2,−1,1]\vec{r} = [2, 0, -1] + t[2, -1, 1].
    2. Same line only if AA is on LL: 2−34=−14\frac{2 - 3}{4} = -\frac{1}{4} but 0+1−2=−12\frac{0 + 1}{-2} = -\frac{1}{2}. Not equal, so AA is not on LL.
    3. The xyxy-plane is z=0z = 0: −1+t=0-1 + t = 0, so t=1t = 1, giving (4,−1,0)(4, -1, 0).

    Answer: r⃗=[2,0,−1]+t[2,−1,1]\vec{r} = [2, 0, -1] + t[2, -1, 1], a distinct line parallel to LL; it crosses the xyxy-plane at (4,−1,0)(4, -1, 0)

Learn It on Martian Lab

Martian Lab teaches this in the Equations of Lines in 3D lesson of its MCV4U Lines and Planes unit. Watch it, then take the Lines and Planes practice tests to see if it stuck.

Watch the Equations of Lines in 3D lesson free

Start Practicing

No credit card required to start.

Get started