Skip to content

Mathematics · Ch 9 — Three-Dimensional Geometry

Equation of a Line in Space (Cartesian and Vector Form)

5

Equation of a Line in Space (Cartesian and Vector Form)

A straight line in space is completely determined by (a) one point on it and its direction, or (b) any two distinct points on it (which together fix both a point and, via their difference, a direction) -- so its equation can always be built from these two ingredients, in either vector or Cartesian form.

Vector equation through a point, parallel to a given vector. Let the line pass through a point AA with position vector a⃗\vec a, and be parallel to a given vector b⃗=ai^+bj^+ck^\vec b=a\hat i+b\hat j+c\hat k (not the zero vector). Let PP be any point on the line, with position vector r⃗\vec r. Since PP lies on the line through AA in the direction b⃗\vec b, the vector AP⃗=r⃗−a⃗\vec{AP}=\vec r-\vec a must be parallel to b⃗\vec b, i.e. equal to some scalar multiple of it: r⃗−a⃗=λb⃗\vec r-\vec a=\lambda\vec b for some real number λ\lambda (a parameter). Rearranging gives the vector equation of a line:

r⃗=a⃗+λb⃗,λ∈R.\vec r=\vec a+\lambda\vec b,\qquad \lambda\in\mathbb R.

As λ\lambda ranges over all real numbers, r⃗\vec r traces out every point of the line exactly once; λ=0\lambda=0 gives the point AA itself.

Cartesian (symmetric) form -- derivation. Write r⃗=xi^+yj^+zk^\vec r=x\hat i+y\hat j+z\hat k for a general point P(x,y,z)P(x,y,z) on the line, and a⃗=x1i^+y1j^+z1k^\vec a=x_1\hat i+y_1\hat j+z_1\hat k for the known point A(x1,y1,z1)A(x_1,y_1,z_1). Substituting into r⃗=a⃗+λb⃗\vec r=\vec a+\lambda\vec b and equating the i^\hat i, j^\hat j, k^\hat k components separately gives three scalar equations,

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

Solving each for λ\lambda (whenever a,b,c≠0a,b,c\ne0) gives λ=x−x1a=y−y1b=z−z1c\lambda=\dfrac{x-x_1}{a}=\dfrac{y-y_1}{b}=\dfrac{z-z_1}{c}, i.e. the Cartesian equation of a line in symmetric form:

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

Here (x1,y1,z1)(x_1,y_1,z_1) is any known point on the line and a,b,ca,b,c are its direction ratios (any proportional triple works equally well, since a common scalar factor cancels from all three fractions). If one of a,b,ca,b,c is zero, the corresponding coordinate is simply constant along the line (e.g. a=0a=0 means every point has x=x1x=x_1); the symmetric form is still written with that zero in the denominator, understood as this convention rather than an actual division. …