Equations of Straight Lines
A straight line is fixed by its direction and one point. The direction is its gradient; the point tells you where that direction must pass.
Three useful forms of a line
- is useful when the gradient and the are known. The y-intercept is the y-value where the line crosses the y-axis. This form cannot represent a vertical line.
- is the . Use it when one point and the gradient are known.
- is a general linear form, where and are not both zero. If , isolate to see that the gradient is . If , the line is vertical.
To find an x-intercept, set ; to find a y-intercept, set . For , this gives and respectively.
For , multiply the gradient equation by :
The resulting line equation also includes the original point.
Choose the information before the formula
- Find the required gradient: use the given gradient, calculate it from two points, copy it from a parallel line, or take the negative reciprocal of a perpendicular line.
- Choose one known point on the required line.
- Substitute into . If the required line is vertical, write instead.
- Rearrange to the requested form. Keep exact fractions during the working.
Swipe left or right to see the whole diagram →
From two points to one equation
Worked example
Find the line through (-4, 3) and (6, -2)
- Use : .
- Multiply by 2 and rearrange: , so .
The forms , and describe the same line. For a “show that” question, finish in the exact printed form rather than with rounded decimals.
Find where two lines meet
At an intersection, one coordinate pair satisfies both line equations. Solve the equations by substitution or elimination, then substitute back to find the second coordinate.
Worked example
Find the intersection of and
Coursebook Exercise 3C Q7(a).
- Substitute into the first equation: .
- Simplify: , so .
- Substitute into either original line: .
Parallel distinct lines have no intersection. Coincident lines are the same line and have infinitely many common points. In either case, solving the equations does not produce one unique coordinate pair.
Choose the line method
Find the equation of the line through that is parallel to .
Show worked answer
Rearranging the given line gives gradient . The parallel line has the same gradient.
, hence .
