The Cartesian Form of a Line

Make t the subject and the parameter vanishes.

Three equations sharing one t

The vector equation r = (1, 2, 3) + t(2, 1, 4) says three things at once, one for each coordinate. Read it row by row: x = 1 + 2t, y = 2 + t and z = 3 + 4t.

All three rows use the same t. Choosing t = 2 gives the point (5, 4, 11), and each coordinate of that point comes from the one value t = 2.

Make t the subject

Rearrange each row to say what t is. From x = 1 + 2t, take 1 from both sides and divide by 2: t = (x − 1)/2. From y = 2 + t: t = (y − 2)/1. From z = 3 + 4t: t = (z − 3)/4.

At any point of the line, these three expressions are all equal to the same number, that point’s t.

Set them equal

Since all three equal t, they equal each other: (x − 1)/2 = (y − 2)/1 = (z − 3)/4. This is the Cartesian form of the line. The parameter has gone, and what is left is two equations linking x, y and z.

A point lies on the line exactly when its three fractions agree. For (5, 4, 11): (5 − 1)/2 = 2, (4 − 2)/1 = 2 and (11 − 3)/4 = 2, all equal, so the point is on the line, at t = 2. For (5, 4, 10) the third fraction is 7/4, not 2, so that point is not on the line.

a1.5dOr = a + λd = (1, 1) + 1.5(2, 1) = (4, 2.5)

λ = 1.5: r = a + λd = (4, 2.5), λ copies of d laid head to tail from A, and sweeping λ through every value traces the whole line

Slide P to λ = 2 and read r = a + 2d

The flat line r = (1, 1) + λ(2, 1), whose Cartesian form is (x − 1)/2 = (y − 1)/1. At λ = 1.5 the point is (4, 2.5), and (4 − 1)/2 = 1.5 and (2.5 − 1)/1 = 1.5. Drag the point: both fractions stay equal to λ wherever it goes.

Reading it back

In general, the line through the point (a₁, a₂, a₃) with direction (d₁, d₂, d₃) is (x − a₁)/d₁ = (y − a₂)/d₂ = (z − a₃)/d₃. The numbers taken away on top give the point; the numbers underneath give the direction.

Watch the signs. (x + 2)/3 = (y − 1)/(−2) = z/5 is (x − (−2))/3 = (y − 1)/(−2) = (z − 0)/5, so the point is (−2, 1, 0) and the direction is (3, −2, 5).

Put it in the standard form first

The reading only works when each top is x, y or z minus a number, with nothing multiplying the letter. Take (2x − 4)/6 = (y + 1)/3 = (3 − z)/2.

The first fraction is 2(x − 2)/6 = (x − 2)/3. The third is (3 − z)/2 = −(z − 3)/2 = (z − 3)/(−2). So the line is (x − 2)/3 = (y + 1)/3 = (z − 3)/(−2): the point (2, −1, 3) and the direction (3, 3, −2).

A zero in the direction

Take r = (5, 2, 1) + t(3, 0, 4). The middle row is y = 2 + 0t, so y = 2 at every point of the line, and t cannot be made the subject of that row: there is nothing to divide by.

So that coordinate is written on its own: (x − 5)/3 = (z − 1)/4, y = 2. The line lies in the plane y = 2.

With two zeros, two coordinates are fixed. The line through (1, 2, 0) with direction (0, 0, 1) is x = 1, y = 2: a vertical line, with z free.

xt = 0t = 1

The plane y = 2 seen face-on, with x across and z up. The line (x − 5)/3 = (z − 1)/4 runs through it, from (5, 2, 1) at t = 0 to (8, 2, 5) at t = 1: 3 across and 4 up for each step, while y stays 2.

Through two points

For the line through A(1, 2, 3) and B(3, 3, 7), use A as the point and AB = (2, 1, 4) as the direction. The Cartesian form is (x − 1)/2 = (y − 2)/1 = (z − 3)/4, the line above.

Check B: (3 − 1)/2 = 1, (3 − 2)/1 = 1 and (7 − 3)/4 = 1. All equal, at t = 1.

Back to vector form

To go the other way, set each fraction equal to a parameter. From (x − 2)/3 = (y + 1)/3 = (z − 3)/(−2) = λ: x = 2 + 3λ, y = −1 + 3λ and z = 3 − 2λ, so r = (2, −1, 3) + λ(3, 3, −2).

The usual mistakes

Swapping the roles. The point goes on top, subtracted; the direction goes underneath, dividing. (x − 2)/1 = (y − 1)/2 = (z − 4)/3 is not the line r = (1, 2, 3) + t(2, 1, 4).

Writing a plus. Rearranging x = 1 + 2t subtracts 1, so the top is x − 1, not x + 1.

Reading the minus signs into the point. In (x − 1)/2, the point’s x-coordinate is 1, not −1.

Reading a line that is not in standard form. In (3 − z)/2 the direction’s z-component is −2, not 2.

A zip wire

In the application below, a zip wire is given in Cartesian form. Setting each fraction equal to λ turns it back into coordinates, z = 0 finds the anchor on the ground, and the position of a fence post gives the height of the wire above it.

Worked example: A Zip Wire Given in Cartesian Form, and the Fence Post It Must Clear

Question A zip wire runs in a straight line whose Cartesian equation is x6 = y2 = z − 6−3, in meters, with z up, from the top of a platform at (0, 0, 6) down to an anchor on the ground. (a) Find where the anchor is, and the length of the wire. (b) A fence post stands at x = 6, y = 2, and its top is 2 m above the ground. By how much does the wire pass vertically above the top of the post?

  1. 1.Set each fraction equal to λ: x = 6λ, y = 2λ and z = 6 − 3λ. In vector form the wire is r = 006 + λ62−3, starting from the platform at λ = 0.

    platformpostdirection (6, 2, −3)(0, 0, 6)x = 6s, y = 2s, z = 6 − 3sr =006+ s62−3
    platformpostdirection (6, 2, −3)(0, 0, 6)x = 6s, y = 2s, z = 6 − 3sr =006+ s62−3
    Each fraction equals λ: x = 6λ, y = 2λ, z = 6 − 3λ, so r = 006 + λ62−3. The board writes s for λ.
  2. 2.The anchor is on the ground, where z = 0: 6 − 3λ = 0, so λ = 2, and the anchor is at (12, 4, 0).

    platformpost(12, 4, 0)(0, 0, 6)ground: 6 − 3s = 0, so s = 2anchor at (12, 4, 0)
    platformpost(12, 4, 0)(0, 0, 6)ground: 6 − 3s = 0, so s = 2anchor at (12, 4, 0)
    The anchor is on the ground, z = 0: λ = 2, at (12, 4, 0).
  3. 3.(a) The direction vector has length √36 + 4 + 9 = √49 = 7, and the wire runs from λ = 0 to λ = 2, so it is 2 × 7 = 14 m long. Check: √122 + 42 + 62 = √196 = 14.

    platformpost(12, 4, 0), 14 m of wire(0, 0, 6)36 + 4 + 9 = 49, and√49= 7wire = 2 × 7 = 14 m
    platformpost(12, 4, 0), 14 m of wire(0, 0, 6)36 + 4 + 9 = 49, and√49= 7wire = 2 × 7 = 14 m
    (a) Each step of the direction vector is 7 m, so the wire is 2 × 7 = 14 m long.
  4. 4.Above the post, x = 6 gives λ = 1, and then y = 2 × 1 = 2, which is the post's y as well, so the wire passes directly over the post.

    platformpost(12, 4, 0), 14 m of wire(0, 0, 6)x = 6 gives s = 1, and then y = 2the wire runs right over the post
    platformpost(12, 4, 0), 14 m of wire(0, 0, 6)x = 6 gives s = 1, and then y = 2the wire runs right over the post
    Above the post, x = 6 gives λ = 1, and y = 2 agrees: the wire passes right over it.
  5. 5.(b) At λ = 1 the wire is at height z = 6 − 3 = 3 m. The top of the post is at 2 m, so the wire clears it by 3 − 2 = 1 m.

    platformpost(12, 4, 0), 14 m of wire1 m clear(0, 0, 6)height there: 6 − 3 = 3 mclearance: 3 − 2 = 1 m
    platformpost(12, 4, 0), 14 m of wire1 m clear(0, 0, 6)height there: 6 − 3 = 3 mclearance: 3 − 2 = 1 m
    (b) There the wire is 3 m up and the post 2 m tall, so the wire clears it by 1 m.

Answer: (a) the anchor is at (12, 4, 0) and the wire is 14 m long; (b) 1 m

Common mistakes

  • Reading the point on the line as (6, 2, −3), the denominators. The denominators are the direction; the point comes from the numbers subtracted on top, here (0, 0, 6).
  • Taking the length of the wire as the horizontal distance to the anchor, √122 + 42 ≈ 12.6 m. The wire also drops 6 m, so the length includes the change in height.

More planes and the vector product problems, worked step by step →

Practice The Cartesian Form of a Line in the app