- r = r₀ + tv
- (x, y, z) = (x₀, y₀, z₀) + t(a, b, c)
r₀ = (x₀, y₀, z₀) is a point on the line and v = (a, b, c) a direction vector, which may not be the zero
vector. Written coordinate by coordinate these are the line’s parametric equations: x = x₀ + ta,
y = y₀ + tb and z = z₀ + tc.
With r₀ = (1, 2, 3), v = (2, −1, 4) and t = 2:
(1, 2, 3) + 2(2, −1, 4) = (1 + 4, 2 − 2, 3 + 8) = (5, 0, 11)
The line through two points
Through A = (5, 1, 3) and B = (6, 5, 1) goes the line with A as its point and B − A as its direction:
v = (6 − 5, 5 − 1, 1 − 3) = (1, 4, −2), so r = (5, 1, 3) + t(1, 4, −2)
t = 0 gives A and t = 1 gives B. Values between 0 and 1 give the points of the segment between them, and
negative values points on the far side of A.
Is the point on the line?
Solve each coordinate for t. The point is on the line if all three give the same t.
For (8, 13, −3) and the line above:
- 8 = 5 + t gives t = 3
- 13 = 1 + 4t gives t = 3
- −3 = 3 − 2t gives t = 3
The same t, so the point is on the line. For (8, 13, −1) the third equation gives t = 2 instead, and the
point is not on the line.
The card works t out as t = ((x − x₀)a + (y − y₀)b + (z − z₀)c)/(a² + b² + c²). For the point on the
line above that is (3 · 1 + 12 · 4 + (−6) · (−2))/(1 + 16 + 4) = 63/21 = 3. The form gives the same t as
the coordinates when the point is on the line, and it also works when a coordinate of the direction is
0. When the point is off the line, the card says so instead of giving a t.
In the plane
The same form works in the plane with two coordinates: (x, y) = (x₀, y₀) + t(a, b). When a is not 0
the line has slope b/a, and it can be written as the
equation of a straight line,
y = mx + c. In space a single equation of that kind describes a plane rather than a line, which is
where the vector form is used.
Common mistakes
- Solving a single coordinate for t. One coordinate gives a t for any point at all. All three have
to give the same t.
- A point as the direction. The direction through A and B is B − A, not B.
- Taking the equation as unique. Another point on the line, or a multiple of the direction, gives a
different equation for the same line.
Common questions
When are two lines parallel?
When their direction vectors are parallel, that is when one is a number times the other; see
scalar multiplication of a vector.
How is a plane written the same way?
With two directions and two parameters; see the
parametric equation of a plane.