Open Mathhh

Line equations in space

Vectors · worksheets 101 to 110 · 3 min read

I can

  • find a point on a line for a given value of t
  • write the line through two points A and B
  • find a missing coordinate of a point on a line

Key idea

A line in space is written (x, y, z) = (start point) + t(direction). The start point and the direction are both vectors with three parts. Each value of t gives one point on the line.

The line through A and B is r = A + t(B − A). The direction is the vector AB. When t = 0 you get A, and when t = 1 you get B.

If a point on the line has one unknown coordinate k, use a known coordinate to find t first. Then put t in the third equation to find k.

Worked examples

Example 1: L: (x, y, z) = (1, 2, 3) + t(2, −1, 0). Find the point when t = 3.

Watch it: the line (1, 2, 3) + t(2, −1, 0): the point when t = 3, step by step:

  1. Multiply the direction by t = 3.
  2. Add to (1, 2, 3).
  3. That is the point at t = 3.
  4. The line starts at (1, 2, 3). Three steps along it reach (7, −1, 3).
  1. 3 × (2, −1, 0) = (6, −3, 0).
  2. Add the start point: (1 + 6, 2 − 3, 3 + 0).

The point is (7, −1, 3).

Example 2: A(1, 0, 2), B(3, 4, −2). The line is r = A + t(B − A). Find the point when t = 2.

Watch it: A(1, 0, 2), B(3, 4, −2): the point on r = A + t(B − A) when t = 2, step by step:

  1. Subtract: (3 − 1, 4 − 0, −2 − 2).
  2. Multiply by t = 2.
  3. Add to A = (1, 0, 2).
  4. That is the point at t = 2.
  5. At t = 1 the line is at B. At t = 2 it has gone twice as far.
  1. B − A = (2, 4, −4).
  2. 2 × (2, 4, −4) = (4, 8, −8).
  3. Add A: (1 + 4, 0 + 8, 2 − 8).

The point is (5, 8, −6).

Example 3: L: (x, y, z) = (2, 1, −3) + t(1, 2, −1). The point (5, 7, k) lies on the line. Find k.

Watch it: the line (2, 1, −3) + t(1, 2, −1) passes through (5, 7, k): find k, step by step:

  1. Use x: 2 + t = 5.
  2. Take 2 from both sides: t = 3.
  3. Check y: 1 + 2 × 3 = 7. Yes.
  4. z: −3 − 1 × 3 = −6.
  5. So k = −6.
  1. Use x: 2 + t = 5, so t = 3.
  2. Check y: 1 + 2 × 3 = 7. Yes.
  3. z: −3 − 3 = −6.

k = −6

Try it

L: (x, y, z) = (0, 4, 1) + t(3, −1, 2). Find the point on the line when t = 2.
Show answer(6, 2, 5)
L: (x, y, z) = (0, 4, 1) + t(3, −1, 2). Find the point on the line when t = −1.
Show answer(-3, 5, -1)
A(1, 1, 1), B(2, 3, 0). The line AB is r = A + t(B − A). Find the point on the line when t = 3.
Show answer(4, 7, -2)
L: (x, y, z) = (1, −1, 2) + t(2, 1, −1). The point (k, 1, 0) lies on the line. Find k.
Show answer5
L: (x, y, z) = (1, −1, 2) + t(2, 1, −1). The point (−3, −3, k) lies on the line. Find k.
Show answer4

Common mistakes

  • Forgetting to multiply every part of the direction by t.
  • Using A − B for the direction. For the line through A and B the direction is B − A, if r = A + t(B − A).
  • Finding t but not putting it into the unknown coordinate.

Remember

  • Point = start + t × direction.
  • Use a known coordinate to find t.

Practise this

Worksheets 101 to 110 of Vectors practise this note. Sign in to Mathhh, write your answers by hand and see your marks straight away.

Open Mathhh

More Vectors notes

Keep learning

All Vectors notes · All study notes