✖

Equation of a line in 3D

The previous articles dealt with describing a line in the plane. In this article we will show how to describe a line in 3D.

Parametric equations of a line in 3D

When we looked at the parametric equations of a line in the plane, we explained that if a line p passes through a point A and has a direction vector u→, then every point X on the line p can be written as

X=A+t⋅u→,t∈R.

We call the number t the parameter. The equation above leads to the familiar system of equations

x=a1+t⋅u1y=a2+t⋅u2

Let’s look at the figure:

The line p and the direction vector \vec{\mathbf{u}}

If we add a scalar multiple of the direction vector (t times u→) to the point A, we get the point B. And the same works for every point on the line.

This idea works just as well in 3D. In 3D we can also determine a line p by a point A that the line passes through and a direction vector u→, and then every point X on the line satisfies

X=A+t⋅u→,t∈R.

We get exactly the same equation. The only difference is that we are in 3D, so the points X and A have three coordinates rather than two, and the direction vector u→ has three components. The equation then gives a system of three equations instead of two:

x=a1+t⋅u1,y=a2+t⋅u2,z=a3+t⋅u3,

where x, y, z are the coordinates of a point X(x, y, z) somewhere on the line, u→=(u1,u2,u3) is the direction vector and A(a1, a2, a3) is a point in 3D that the line passes through.

Chapters: Parametric equations of a line, General equation of a line, Normal vector of a line, Slope-intercept form of a line, Equation of a line in 3D