Mathwords logoMathwords

Parametric Equations of a Line — Definition, Formula & Example

Parametric equations of a line describe a line by giving x and y separately in terms of a third variable, the parameter t. You start at one point and move t steps along a fixed direction.

The line through the point (x0,y0)(x_0, y_0) with nonzero direction vector ⟨a,b⟩\langle a, b \rangle is the set of all points (x0+at,  y0+bt)(x_0 + at,\; y_0 + bt) for t∈Rt \in \mathbb{R}. In vector form this is r⃗(t)=r⃗0+tv⃗\vec{r}(t) = \vec{r}_0 + t\vec{v}. In three dimensions you add a third equation, z=z0+ctz = z_0 + ct.

Key Formula

x=x0+at,y=y0+btx = x_0 + a t, \qquad y = y_0 + b t
Where:
  • (x0,y0)(x_0, y_0) = A known point on the line, reached when t = 0
  • ⟨a,b⟩\langle a, b \rangle = A direction vector; it cannot be the zero vector. When a is not 0, the slope is b/a.
  • tt = The parameter, which can be any real number
  • (x,y)(x, y) = The point on the line that matches a given value of t

Worked Example

Problem: Write parametric equations for the line through P(2, −1) and Q(6, 5). Then use them to find the midpoint of segment PQ.
Step 1: Find a direction vector by subtracting the coordinates of P from those of Q.
v⃗=⟨6−2,  5−(−1)⟩=⟨4,6⟩\vec{v} = \langle 6 - 2,\; 5 - (-1) \rangle = \langle 4, 6 \rangle
Step 2: Use P as the starting point and attach the direction vector to t.
x=2+4t,y=−1+6tx = 2 + 4t, \qquad y = -1 + 6t
Step 3: With this setup, t = 0 gives P and t = 1 gives Q. The value t = 1/2 lands exactly halfway between them.
x=2+4(12)=4,y=−1+6(12)=2x = 2 + 4\left(\tfrac{1}{2}\right) = 4, \qquad y = -1 + 6\left(\tfrac{1}{2}\right) = 2
Answer: The line is x = 2 + 4t, y = −1 + 6t, and the midpoint of PQ is (4, 2). As a check, t = 1 gives (6, 5), which is Q. If you eliminate t, you get y = (3/2)x − 4, a line with slope 6/4 = 3/2.

Why It Matters

A line in three dimensions has no slope-intercept form, so the parametric (vector) form is the standard way to write it in multivariable calculus and linear algebra. Physics uses the same formula for motion at constant velocity: position = starting position + velocity × time. Computer graphics also relies on it to trace rays and to blend smoothly between two points.

Common Mistakes

Mistake: Using the second point's coordinates as the direction vector, for example writing x = 2 + 6t, y = −1 + 5t for the line through (2, −1) and (6, 5).
Correction: The direction vector is the difference Q − P = ⟨4, 6⟩, not Q itself. Check your equations: t = 1 should return the second point.

Related Terms