The form \(y = mx + c\)
Every straight line that is not vertical can be written as:
Here \(m\) is the gradient, which measures how steep the line is, and \(c\) is the \(y\)-intercept, the value of \(y\) where the line crosses the \(y\)-axis.
- What each letter does
- \(m\) is the change in \(y\) for every \(+1\) step in \(x\). A positive \(m\) slopes up to the right, a negative \(m\) slopes down. \(c\) shifts the whole line up or down without changing its steepness.
Reading \(m\) and \(c\)
When the equation is already in the form \(y = mx + c\), the numbers are sitting in plain view. In \(y = 3x - 1\), the gradient is \(3\) and the line crosses the \(y\)-axis at \((0, -1)\). The sign travels with the number: in \(y = -2x + 5\), the gradient is \(-2\) and the intercept is \(+5\).
The intercept keeps its sign
Read \(y = 4x - 7\) as gradient \(4\) and \(c = -7\), not \(+7\). The subtraction is part of the constant term.
Building the equation from a gradient and a point
If you know the gradient and one point on the line, substitute the point to find \(c\).
A line has gradient \(4\) and passes through \((2, 5)\). Find its equation.
Rearranging into the form
Sometimes an equation is given as \(ax + by = c\). Rearrange it so \(y\) is alone on the left, then read off \(m\) and \(c\) as before.
Write \(4x + 2y = 10\) in slope intercept form and state its gradient and intercept.
Check yourself
1. State the gradient and \(y\)-intercept of \(y = -3x + 7\). +
Read them off directly: the gradient is \(\mathbf{-3}\) and the \(y\)-intercept is \(\mathbf{(0, 7)}\).
2. A line has gradient \(5\) and passes through \((0, -2)\). Find its equation. +
The point \((0, -2)\) is the \(y\)-intercept, so \(c = -2\). With \(m = 5\), the equation is \(\mathbf{y = 5x - 2}\).
3. Rearrange \(3x + y = 4\) into slope intercept form. +
Subtract \(3x\) from both sides: \(y = -3x + 4\). So \(\mathbf{y = -3x + 4}\), gradient \(-3\), intercept \((0, 4)\).
Part of the Standard Maths library. Spotted an error or want a topic added? That feedback makes the notes better.