To write down the equation of a straight line you need two things: a gradient and one point on the line. Every method below is a way of collecting those two ingredients.
Writing the equation of a line
| Given | Method | Example |
|---|---|---|
| Gradient and one point | \(y-y_1=m(x-x_1)\) | \(m=2\) through \((3,-1)\) \(y+1=2(x-3)\) \(y=2x-7\) |
| Two points | Find \(m\) first, then use the point-gradient form with either point. | \((1,2)\) and \((4,11)\) \(m=\dfrac{11-2}{4-1}=3\) \(y-2=3(x-1)\) \(y=3x-1\) |
| Gradient and \(y\)-intercept | \(y=mx+c\) | \(m=-\dfrac{1}{2},\ c=4\) \(y=-\dfrac{1}{2}x+4\) |
Horizontal and vertical lines through \((h,\,k)\)
| Line | Equation | Sketch |
|---|---|---|
| Horizontal line (parallel to the \(x\)-axis) | \(y=k\) | |
| Vertical line (parallel to the \(y\)-axis) | \(x=h\) |
Perpendicular bisector of \(AB\)
A line can be perpendicular to \(AB\) without cutting it in half, and a line can bisect \(AB\) without meeting it at right angles. The perpendicular bisector does both: it passes through the midpoint \(M\) and is perpendicular to \(AB\).
For a perpendicular bisector, substitute the midpoint — not \(A\) or \(B\) — into the point-gradient form, and use the perpendicular gradient, not \(m_{AB}\).
Need help? Join our JC Math tuition classes.
Learn more