Academy
Formulas/maths/3d Geometry/Vector Equation of a Line

Vector Equation of a Line

Line through point with position vector a, parallel to vector b. λ ∈ ℝ is the parameter. Every point on the line corresponds to a unique λ.
Derivation

Let the line pass through point AA (position vector a\mathbf{a}) and be parallel to vector b\mathbf{b}.

For any point PP (position vector r\mathbf{r}) on the line, the vector AP=ra\overrightarrow{AP} = \mathbf{r}-\mathbf{a} must be parallel to b\mathbf{b}:

ra=λbfor some λR\mathbf{r}-\mathbf{a} = \lambda\mathbf{b} \quad \text{for some } \lambda \in \mathbb{R} r=a+λb\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}

Different values of λ\lambda give different points on the line:

  • λ=0\lambda = 0: point AA itself
  • λ>0\lambda > 0: points in the direction of b\mathbf{b} from AA
  • λ<0\lambda < 0: points in the opposite direction

Line through two points A(a)A(\mathbf{a}) and B(b)B(\mathbf{b}):

r=a+λ(ba)=(1λ)a+λb\mathbf{r} = \mathbf{a} + \lambda(\mathbf{b}-\mathbf{a}) = (1-\lambda)\mathbf{a}+\lambda\mathbf{b}

Converting to Cartesian: If a=(x1,y1,z1)\mathbf{a} = (x_1,y_1,z_1) and b=(a,b,c)\mathbf{b} = (a,b,c), writing r=(x,y,z)\mathbf{r} = (x,y,z):

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 λ\lambda: (xx1)/a=(yy1)/b=(zz1)/c(x-x_1)/a = (y-y_1)/b = (z-z_1)/c.