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 with nonzero direction vector is the set of all points for . In vector form this is . In three dimensions you add a third equation, .
Key Formula
Where:
- = A known point on the line, reached when t = 0
- = A direction vector; it cannot be the zero vector. When a is not 0, the slope is b/a.
- = The parameter, which can be any real number
- = 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.
Step 2: Use P as the starting point and attach the direction vector to t.
Step 3: With this setup, t = 0 gives P and t = 1 gives Q. The value t = 1/2 lands exactly halfway between them.
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.
