Equations Of Lines
Theory
The equation of a line is satisfied by every point on the line. In gradient–intercept form \(y=mx+c\) you can read the gradient and \(y\)-intercept straight off; the general form \(ax+by+c=0\) has integer coefficients. This Year 11 Mathematics Advanced page covers converting between the forms, finding intercepts, testing whether a point lies on a line, finding the equation from a gradient and a point or from two points, and perpendicular bisectors.
The equation of a line is a rule connecting \(x\) and \(y\) that every point on the line satisfies, and no other point does. A point lies on the line exactly when its coordinates make the equation true.
In gradient–intercept form, \(y=mx+c\), the coefficient of \(x\) is the gradient \(m\) and the constant \(c\) is the \(y\)-intercept: the line cuts the \(y\)-axis at \((0,c)\).
In general form, \(ax+by+c=0\), all the terms are on one side and \(a\), \(b\) and \(c\) are integers, usually with \(a\) positive. For example, \(y=-\dfrac{2}{3}x+4\) in general form is \(2x+3y-12=0\).
The \(x\)-intercept is where the line cuts the \(x\)-axis, so \(y=0\) there. The \(y\)-intercept is where it cuts the \(y\)-axis, so \(x=0\) there.
A line is fixed by its gradient and one point on it. If two points are given, find the gradient from them first. Parallel lines have the same gradient; perpendicular gradients multiply to \(-1\).
The two forms of the equation of a straight line:
For the line through \((x_1,y_1)\) with gradient \(m\) (the point–gradient form, covered fully on the next page):
| To find | Do this |
|---|---|
| gradient | make \(y\) the subject; \(m\) is the coefficient of \(x\) |
| \(y\)-intercept | put \(x=0\) (or read \(c\) from \(y=mx+c\)) |
| \(x\)-intercept | put \(y=0\) and solve for \(x\) |
| whether a point lies on the line | substitute both coordinates and check the equation is true |
How to find the equation of a line
- Find the gradient \(m\): it is given, or use \(m=\dfrac{y_2-y_1}{x_2-x_1}\) for two points, or use a parallel (same \(m\)) or perpendicular (\(m_1m_2=-1\)) line.
- Find \(c\): substitute a known point into \(y=mx+c\) and solve. (Or use \(y-y_1=m(x-x_1)\) and rearrange.)
- Write the answer in the form asked. For general form, clear fractions and move every term to one side.
- Check: the given points must satisfy your equation.
Using an equation
- Gradient and \(y\)-intercept: rearrange to \(y=mx+c\).
- Intercepts: put \(y=0\) for the \(x\)-intercept and \(x=0\) for the \(y\)-intercept.
- Does a point lie on the line? Substitute its \(x\)-value and compare the \(y\)-value you get with the point’s \(y\)-coordinate.
- Perpendicular bisector of \(AB\): it passes through the midpoint of \(AB\) and its gradient is \(-\dfrac{1}{m_{AB}}\) (Example 4).
(i) state the gradient and the \(y\)-intercept
(ii) find the \(x\)-intercept
(iii) determine whether \((-1,9)\) and \((4,-5)\) lie on the line.
(i) In \(y=mx+c\), the gradient is the coefficient of \(x\) and \(c\) is the \(y\)-intercept.
\(\therefore\) \(\boldsymbol{m=-3}\), \(\boldsymbol{c=6}\): the line cuts the \(y\)-axis at \((0,6)\).
(ii) At the \(x\)-intercept, \(y=0\):
| \(0\) | \(=\) | \(-3x+6\) |
| \(3x\) | \(=\) | \(6\) |
| \(x\) | \(=\) | \(2\) |
\(\therefore\) the \(x\)-intercept is \(\boldsymbol{(2,0)}\).
(iii) Substitute each \(x\)-value:
| \(x=-1:\ \ y\) | \(=\) | \(-3(-1)+6=9\) |
| \(x=4:\ \ y\) | \(=\) | \(-3(4)+6=-6\) |
\(\therefore\) \((-1,9)\) lies on the line; \((4,-5)\) does not, since \(-6\neq -5\).
(ii) Write \(y=\dfrac{3}{4}x-2\) in general form.
(i) Make \(y\) the subject:
| \(5x-2y-10\) | \(=\) | \(0\) |
| \(2y\) | \(=\) | \(5x-10\) |
| \(y\) | \(=\) | \(\dfrac{5}{2}x-5\) |
\(\therefore\) gradient \(\boldsymbol{m=\dfrac{5}{2}}\) and \(y\)-intercept \(\boldsymbol{(0,-5)}\).
\(x\)-intercept: put \(y=0\): \(5x-10=0\), so \(x=2\), giving \(\boldsymbol{(2,0)}\).
(ii) Multiply every term by \(4\) to clear the fraction, then move all terms to one side:
| \(y\) | \(=\) | \(\dfrac{3}{4}x-2\) |
| \(4y\) | \(=\) | \(3x-8\) |
| \(0\) | \(=\) | \(3x-4y-8\) |
\(\therefore\) \(\boldsymbol{3x-4y-8=0}\)
Find the gradient, then substitute a point to find \(c\).
| \(m\) | \(=\) | \(\dfrac{3-(-1)}{4-(-2)}=\dfrac{4}{6}=\dfrac{2}{3}\) |
Substitute \((-2,-1)\) into \(y=\dfrac{2}{3}x+c\):
| \(-1\) | \(=\) | \(\dfrac{2}{3}(-2)+c\) |
| \(-1\) | \(=\) | \(-\dfrac{4}{3}+c\) |
| \(c\) | \(=\) | \(\dfrac{1}{3}\) |
\(\therefore\) \(\boldsymbol{y=\dfrac{2}{3}x+\dfrac{1}{3}}\)
General form: multiply by \(3\) and rearrange.
| \(3y\) | \(=\) | \(2x+1\) |
| \(0\) | \(=\) | \(2x-3y+1\) |
\(\therefore\) \(\boldsymbol{2x-3y+1=0}\)
Check with the other point \((4,3)\): \(2(4)-3(3)+1=8-9+1=0\). ✓
(i) Find \(A\), \(B\) and the area of \(\triangle OAB\), where \(O\) is the origin.
(ii) Find the equation of the perpendicular bisector of \(AB\) in general form.
(i) \(x\)-intercept: put \(y=0\); \(y\)-intercept: put \(x=0\).
| \(3x-24\) | \(=\) | \(0\ \Rightarrow\ x=8\) |
| \(4y-24\) | \(=\) | \(0\ \Rightarrow\ y=6\) |
\(A(8,0)\) and \(B(0,6)\). \(\triangle OAB\) is right-angled at \(O\) with legs \(8\) and \(6\):
| \(\text{Area}\) | \(=\) | \(\dfrac{1}{2}\times 8\times 6=24\) |
\(\therefore\) \(\boldsymbol{A(8,0)}\), \(\boldsymbol{B(0,6)}\), area \(\boldsymbol{=24}\) square units.
(ii) The bisector passes through the midpoint of \(AB\) and is perpendicular to \(AB\).
Midpoint \(=\left(\dfrac{8+0}{2},\dfrac{0+6}{2}\right)=(4,3)\)
| \(m_{AB}\) | \(=\) | \(\dfrac{6-0}{0-8}=-\dfrac{3}{4}\) |
| \(m_\perp\) | \(=\) | \(\dfrac{4}{3}\) |
| \(y-3\) | \(=\) | \(\dfrac{4}{3}(x-4)\) |
| \(3y-9\) | \(=\) | \(4x-16\) |
| \(0\) | \(=\) | \(4x-3y-7\) |
\(\therefore\) \(\boldsymbol{4x-3y-7=0}\)
Check: \(M(4,3)\) satisfies it, \(4(4)-3(3)-7=0\), and \(M\) is \(5\) units from both \(A\) and \(B\).
Common pitfalls
Frequently asked questions
What is the general form of a straight line?
It is \(ax+by+c=0\), with all terms on one side and \(a\), \(b\), \(c\) integers, usually with \(a\) positive. For example, \(y=2x-3\) becomes \(2x-y-3=0\).
How do you find the equation of a line through two points?
Find the gradient from the two points, substitute either point into \(y=mx+c\) to find \(c\), then write the equation. Check that the other point also satisfies it.
How do you find the x- and y-intercepts of a line?
Put \(y=0\) and solve for the \(x\)-intercept; put \(x=0\) and solve for the \(y\)-intercept. For \(2x+3y-12=0\) these are \((6,0)\) and \((0,4)\).
How do you check if a point lies on a line?
Substitute the coordinates of the point into the equation. If the equation is true, the point lies on the line; if not, it does not.
What is the perpendicular bisector of an interval?
It is the line through the midpoint of the interval at right angles to it. Its gradient is the negative reciprocal of the gradient of the interval, \(-\dfrac{1}{m_{AB}}\).