Skip to content

Mathematics · Ch 11 — Three-Dimensional Geometry

Equation of a Line in Space

11.3

Equation of a Line in Space

Equation of a Line in Space

In two-dimensional geometry, a line is determined by a point and a slope, or by two points. In three-dimensional space, a line is uniquely determined if we know either:

  • (i) a point through which it passes and its direction, or
  • (ii) two distinct points through which it passes.

We develop both the vector and cartesian forms of the equation of a line in space.


Equation of a Line through a Given Point and Parallel to a Given Vector

Let a line pass through a point AA with position vector a⃗\vec{a}, parallel to a given vector b⃗\vec{b}. For any point PP on the line with position vector r⃗\vec{r}, the vector AP→=r⃗−a⃗\overrightarrow{AP} = \vec{r} - \vec{a} is parallel to b⃗\vec{b}, so there is a scalar λ\lambda with r⃗−a⃗=λb⃗\vec{r} - \vec{a} = \lambda \vec{b}. This gives the vector equation:

r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda \vec{b}

As λ\lambda takes all real values, PP traces the entire line. The vector b⃗\vec{b} is the direction vector of the line.


Cartesian Form

Let A=(x1,y1,z1)A = (x_1, y_1, z_1), direction ratios a,b,ca, b, c (so b⃗=ai^+bj^+ck^\vec{b} = a\hat{i} + b\hat{j} + c\hat{k}), and P=(x,y,z)P = (x, y, z). Substituting into r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda \vec{b} and equating the coefficients of i^,j^,k^\hat{i}, \hat{j}, \hat{k} gives the parametric equations:

x=x1+λa,y=y1+λb,z=z1+λcx = x_1 + \lambda a, \quad y = y_1 + \lambda b, \quad z = z_1 + \lambda c

Eliminating the parameter by solving each for λ\lambda:

λ=x−x1a,λ=y−y1b,λ=z−z1c\lambda = \frac{x - x_1}{a}, \quad \lambda = \frac{y - y_1}{b}, \quad \lambda = \frac{z - z_1}{c}

Since λ\lambda is common to all three, we obtain the cartesian (symmetric) equation:

x−x1a=y−y1b=z−z1c\frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c}

Watch out

If any one of a,b,ca, b, c is zero, the corresponding term is undefined. For example, if b=0b = 0, the equation becomes x−x1a=z−z1c\frac{x - x_1}{a} = \frac{z - z_1}{c} with y=y1y = y_1, meaning the line is parallel to the xzxz-plane.


Equation of a Line through Two Given Points

Let the line pass through AA and BB with position vectors a⃗\vec{a} and b⃗\vec{b}. Its direction vector is AB→=b⃗−a⃗\overrightarrow{AB} = \vec{b} - \vec{a}, so the vector equation is:

r⃗=a⃗+λ(b⃗−a⃗)\vec{r} = \vec{a} + \lambda (\vec{b} - \vec{a})


Cartesian Form …