β—€ Back to Note

Tony's Intertwingled Memex β€’ Reference Manual

Equations of Lines in 3D

Formulas & Definitions
Core Definition

In three-dimensional space (R3\mathbb{R}^3R3), a line cannot be defined by a single slope value (y=mx+by = mx + by=mx+b). Instead, a line is uniquely determined by a known initial point P0(x0,y0,z0)P_0(x_0, y_0, z_0)P0​(x0​,y0​,z0​) with position vector rβƒ—0=⟨x0,y0,z0⟩\vec{r}_0 = \langle x_0, y_0, z_0 \rangler0​=⟨x0​,y0​,z0β€‹βŸ© and a non-zero direction vector vβƒ—=⟨a,b,c⟩\vec{v} = \langle a, b, c \ranglev=⟨a,b,c⟩:

  1. Vector Equation (Vector-Valued Function):
    rβƒ—(t)=rβƒ—0+tvβƒ—=⟨x0+at,y0+bt,z0+ct⟩,t∈R\vec{r}(t) = \vec{r}_0 + t\vec{v} = \langle x_0 + at, y_0 + bt, z_0 + ct \rangle, \quad t \in \mathbb{R}r(t)=r0​+tv=⟨x0​+at,y0​+bt,z0​+ct⟩,t∈R
  2. Parametric Equations:
    x=x0+at,y=y0+bt,z=z0+ctx = x_0 + at, \quad y = y_0 + bt, \quad z = z_0 + ctx=x0​+at,y=y0​+bt,z=z0​+ct
  3. Symmetric Equations (assuming a,b,c≠0a, b, c \neq 0a,b,c=0):
    xβˆ’x0a=yβˆ’y0b=zβˆ’z0c\frac{x - x_0}{a} = \frac{y - y_0}{b} = \frac{z - z_0}{c}axβˆ’x0​​=byβˆ’y0​​=czβˆ’z0​​

Concept Explanation

Geometric & Vector Interpretation

A line in space is generated by tracing the terminal point of a position vector rβƒ—(t)\vec{r}(t)r(t) as the real scalar parameter ttt varies from βˆ’βˆž-\inftyβˆ’βˆž to +∞+\infty+∞.

  • When t=0t = 0t=0, rβƒ—(0)=rβƒ—0\vec{r}(0) = \vec{r}_0r(0)=r0​, placing us directly at the initial reference point P0P_0P0​.
  • When t=1t = 1t=1, rβƒ—(1)=rβƒ—0+vβƒ—\vec{r}(1) = \vec{r}_0 + \vec{v}r(1)=r0​+v, advancing one full direction vector along the trajectory.
  • Changing the scalar parameter ttt moves a point forward or backward along the directed path.
            ^ z
            |           . Q (t = 1)
            |          /
            |   v     /  r(t) = r_0 + t*v
            |  -->   /
            |       . P_0 (t = 0)
            |      /
            |     / r_0
            |    /
            +------------------> y
           /
          /
         v x

From Parametric to Symmetric Equations

Eliminating the parameter ttt transforms time-dependent motion into a purely static geometric path in R3\mathbb{R}^3R3:

  1. Solve each coordinate equation for ttt:
    t=xβˆ’x0a,t=yβˆ’y0b,t=zβˆ’z0ct = \frac{x - x_0}{a}, \quad t = \frac{y - y_0}{b}, \quad t = \frac{z - z_0}{c}t=axβˆ’x0​​,t=byβˆ’y0​​,t=czβˆ’z0​​
  2. Equate the expressions for ttt to form two simultaneous linear equations defining the intersection of two planes:
    xβˆ’x0a=yβˆ’y0b=zβˆ’z0c\frac{x - x_0}{a} = \frac{y - y_0}{b} = \frac{z - z_0}{c}axβˆ’x0​​=byβˆ’y0​​=czβˆ’z0​​
Edge Case: Zero Components in Direction Vector (a,b,Β orΒ c=0a, b, \text{ or } c = 0a,b,Β orΒ c=0)

If one of the direction vector components is zero (e.g., b=0b = 0b=0), division by zero is undefined. We isolate the constant coordinate and equate the remaining terms:

y=y0,xβˆ’x0a=zβˆ’z0cy = y_0, \quad \frac{x - x_0}{a} = \frac{z - z_0}{c}y=y0​,axβˆ’x0​​=czβˆ’z0​​
Geometrically, this restricts the line to lie entirely within the vertical plane y=y0y = y_0y=y0​.

Bounded Line Segments

To define a finite line segment between two endpoints P(x0,y0,z0)P(x_0, y_0, z_0)P(x0​,y0​,z0​) and Q(x1,y1,z1)Q(x_1, y_1, z_1)Q(x1​,y1​,z1​), we set the direction vector to vβƒ—=PQβƒ—=⟨x1βˆ’x0,y1βˆ’y0,z1βˆ’z0⟩\vec{v} = \vec{PQ} = \langle x_1 - x_0, y_1 - y_0, z_1 - z_0 \ranglev=PQ​=⟨x1β€‹βˆ’x0​,y1β€‹βˆ’y0​,z1β€‹βˆ’z0β€‹βŸ© and restrict the parameter domain:

rβƒ—(t)=rβƒ—0+tvβƒ—,0≀t≀1\vec{r}(t) = \vec{r}_0 + t\vec{v}, \quad 0 \le t \le 1r(t)=r0​+tv,0≀t≀1


Engineering Applications

  • Aerospace Trajectory Mapping: Describing spacecraft launch corridors, satellite orbit insertions, and commercial flight waypoints as time-dependent parametric curves rβƒ—(t)\vec{r}(t)r(t).
  • Robotics & CNC Machining: Generating linear G-code toolpaths where robotic cutting tools or laser heads translate between Cartesian coordinates.
  • Structural Engineering: Defining geometric centerlines for steel cables, truss members, and utility conduits in 3D Building Information Modeling (BIM).

Example Problems

Example 1: Three Standard Forms from Two Points

Find the vector, parametric, and symmetric equations of the line passing through P(2,βˆ’1,4)P(2, -1, 4)P(2,βˆ’1,4) and Q(5,3,βˆ’2)Q(5, 3, -2)Q(5,3,βˆ’2).

Solution
  1. Compute Direction Vector:
    vβƒ—=PQβƒ—=⟨5βˆ’2,3βˆ’(βˆ’1),βˆ’2βˆ’4⟩=⟨3,4,βˆ’6⟩\vec{v} = \vec{PQ} = \langle 5 - 2, 3 - (-1), -2 - 4 \rangle = \langle 3, 4, -6 \ranglev=PQ​=⟨5βˆ’2,3βˆ’(βˆ’1),βˆ’2βˆ’4⟩=⟨3,4,βˆ’6⟩
  2. Vector Equation:
    rβƒ—(t)=⟨2,βˆ’1,4⟩+t⟨3,4,βˆ’6⟩=⟨2+3t,βˆ’1+4t,4βˆ’6t⟩\vec{r}(t) = \langle 2, -1, 4 \rangle + t\langle 3, 4, -6 \rangle = \langle 2 + 3t, -1 + 4t, 4 - 6t \rangler(t)=⟨2,βˆ’1,4⟩+t⟨3,4,βˆ’6⟩=⟨2+3t,βˆ’1+4t,4βˆ’6t⟩
  3. Parametric Equations:
    x=2+3t,y=βˆ’1+4t,z=4βˆ’6tx = 2 + 3t, \quad y = -1 + 4t, \quad z = 4 - 6tx=2+3t,y=βˆ’1+4t,z=4βˆ’6t
  4. Symmetric Equations:
    xβˆ’23=y+14=zβˆ’4βˆ’6\frac{x - 2}{3} = \frac{y + 1}{4} = \frac{z - 4}{-6}3xβˆ’2​=4y+1​=βˆ’6zβˆ’4​

Example 2: Direction Vector with a Zero Component

Find the symmetric equations for the line through P0(1,4,βˆ’3)P_0(1, 4, -3)P0​(1,4,βˆ’3) parallel to vβƒ—=⟨2,0,5⟩\vec{v} = \langle 2, 0, 5 \ranglev=⟨2,0,5⟩.

Solution
  1. Parametric Equations:
    x=1+2t,y=4+0t=4,z=βˆ’3+5tx = 1 + 2t, \quad y = 4 + 0t = 4, \quad z = -3 + 5tx=1+2t,y=4+0t=4,z=βˆ’3+5t
  2. Symmetric Form: Since b=0b = 0b=0, yyy remains fixed at 444:
    y=4,xβˆ’12=z+35y = 4, \quad \frac{x - 1}{2} = \frac{z + 3}{5}y=4,2xβˆ’1​=5z+3​

Connections & References

  • Parent Concepts: Vectors in 2D and 3D | Dot and Cross Products
  • Related Notes: Distance Between a Point and a Line in Space | Relationships Between Lines in Space | Cross Product
  • Course Sessions: Calc-3 Session 04