The Gradient Formula
Counting squares tells you the gradient when the squares are countable. Turning the count into a subtraction gives you a formula that works for any two points, and lets gradient be used inside an argument rather than read off a picture.
An interval goes from $(1, 2)$ to $(5, 10)$. How far across is it, and how far up? Which subtraction did you do for each? Now write those two subtractions as a single fraction.
The rise is the change in $y$, which is $y_2 - y_1$. The run is the change in $x$, which is $x_2 - x_1$. Gradient was always rise over run, so the formula is nothing more than those two subtractions stacked.
$$m = \frac{y_2 - y_1}{x_2 - x_1}$$
Everything rests on one right triangle. Draw the interval, then complete the triangle with a horizontal leg and a vertical leg. The vertical leg is the rise, the horizontal leg is the run, and the formula just names their lengths in terms of the coordinates.
Know
- the gradient formula $m = \dfrac{y_2 - y_1}{x_2 - x_1}$ for the interval joining $(x_1, y_1)$ and $(x_2, y_2)$
- that a horizontal interval has gradient $0$ and a vertical interval has an undefined gradient
- that three points are collinear exactly when the gradients between successive pairs are equal
Understand
- why the rise and run of the right triangle under an interval are the coordinate differences
- why swapping the order of the points leaves the gradient unchanged, but swapping it in only one of the two subtractions does not
- why the gradient of a line does not depend on which two of its points are used
Can Do
- find the gradient of the interval joining two points, including negative and zero cases
- identify horizontal and vertical intervals from their coordinates and state the gradient correctly
- use equal gradients to test three points for collinearity, and find an unknown coordinate from a given gradient
You already define gradient as $\dfrac{\text{rise}}{\text{run}}$, and you already find the rise and run by counting squares. The only new step is naming those counts.
Take two points $(x_1, y_1)$ and $(x_2, y_2)$ and complete the right triangle beneath the interval, as in the diagram. Its horizontal leg stretches from $x_1$ to $x_2$, so its length is the difference $x_2 - x_1$. Its vertical leg stretches from $y_1$ to $y_2$, so its length is $y_2 - y_1$.
Substituting into $\dfrac{\text{rise}}{\text{run}}$ gives
$m = \dfrac{y_2 - y_1}{x_2 - x_1}$
Nothing has changed except that the counting is now written down. That is what makes it usable when the coordinates are fractions, or when they are letters.
Call the points in either order and you get the same gradient. Take $(1, 2)$ and $(5, 10)$:
$\dfrac{10 - 2}{5 - 1} = \dfrac{8}{4} = 2$ and $\dfrac{2 - 10}{1 - 5} = \dfrac{-8}{-4} = 2$
Both subtractions flipped, so both signs flipped, and the two negatives cancelled in the fraction.
The danger is flipping only one of them. Writing $\dfrac{10 - 2}{1 - 5} = \dfrac{8}{-4} = -2$ produces the negative of the right answer, and nothing in the arithmetic looks wrong. It is the single commonest error in this topic.
The habit that prevents it: label the points before you start. Decide which is $(x_1, y_1)$, write it down, and let both subtractions follow the labels.
The gradient carries two pieces of information at once, and they are independent.
The sign gives the direction. Positive means the interval rises as you move right; negative means it falls. This is a claim you can check against a sketch in a second, and you should.
The size gives the steepness. A gradient of $3$ is three times as steep as a gradient of $1$, and a gradient of $-3$ is just as steep as $3$, in the other direction. So when comparing steepness, compare $|m|$ and ignore the sign.
A gradient between $-1$ and $1$ describes an interval shallower than a diagonal. Beyond that range it is steeper than a diagonal. A gradient of $\tfrac{1}{2}$ and a gradient of $2$ are equally far from flat, in opposite senses, and that observation returns when perpendicular lines appear.
Two cases deserve their own treatment, and the formula explains both rather than breaking on them.
A horizontal interval joins points with the same y-coordinate, such as $(-5, 2)$ and $(3, 2)$. The rise is $2 - 2 = 0$, so $m = \dfrac{0}{8} = 0$. Zero divided by something is zero, and the gradient is $0$.
A vertical interval joins points with the same x-coordinate, such as $(4, -1)$ and $(4, 9)$. The run is $4 - 4 = 0$, so the formula asks for $\dfrac{10}{0}$, which has no value. The gradient is undefined.
Undefined is not the same as zero, and neither is it infinity. It means the question has no numerical answer, because there is no run to divide by. Saying a vertical line has gradient $0$ swaps the two cases and is worth being careful about.
Here is the formula doing something a picture cannot do reliably.
Three points $A$, $B$ and $C$ are collinear if they lie on a single straight line. Testing this by eye is unreliable, because points that are very nearly collinear look collinear.
The test is arithmetic. Find the gradient of $AB$ and the gradient of $BC$. If they are equal, then the two intervals have the same steepness and share the point $B$, so they must be parts of the same line. If the gradients differ, there is a bend at $B$ and the points are not collinear.
The shared point matters. Two separate intervals with equal gradients are merely parallel; it is the common point $B$ that forces them onto the same line rather than two parallel ones.
Watch Me Solve It · 3 examples
-
1Label the points$(x_1, y_1) = (-2, 5), \qquad (x_2, y_2) = (4, -7)$Committing to the labels first is what keeps both subtractions in the same order.
-
2Substitute into the formula$m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{-7 - 5}{4 - (-2)}$Write the double negative before simplifying it, so it cannot be dropped.
-
3Simplify$m = \frac{-12}{6} = -2$
-
4Check the sign against a sketchThe interval goes from up on the left to down on the right, so it falls, and a negative gradient is correct. Its size $2$ says it is steeper than a diagonal.
-
1Find the gradient of the first pair$m_{AB} = \frac{8 - 2}{4 - 1} = \frac{6}{3} = 2$
-
2Find the gradient of the second pair$m_{BC} = \frac{14 - 8}{7 - 4} = \frac{6}{3} = 2$Use $B$ in both, so that the two intervals share a point.
-
3State the conclusion with its reasonThe gradients are equal, so $AB$ and $BC$ have the same steepness, and they share the point $B$. Two intervals of equal gradient through a common point lie on the same line, so $A$, $B$ and $C$ are collinear.
-
1Write the formula as an equation$\frac{11 - k}{6 - 2} = 3$The unknown appears in the rise, so the formula becomes an equation to solve rather than a calculation to perform.
-
2Clear the denominator$\frac{11 - k}{4} = 3$$11 - k = 12$
-
3Solve$-k = 1$$k = -1$
-
4Check$\frac{11 - (-1)}{6 - 2} = \frac{12}{4} = 3$Substituting back reproduces the given gradient, so the value is correct.
Brain Trainer · 5 problems
Five gradient items. Sketch each one roughly first and predict the sign before you calculate.
-
1 Find the gradient of the interval joining $(0, 0)$ and $(4, 6)$.
$\dfrac{6 - 0}{4 - 0}$, then simplify.$m = \tfrac{3}{2}$ -
2 Find the gradient of the interval joining $(-3, 2)$ and $(5, 2)$.
Equal y-coordinates, so the rise is zero.$m = 0$ -
3 Find the gradient of the interval joining $(4, -1)$ and $(4, 9)$.
Equal x-coordinates, so the run is zero and there is nothing to divide by.Undefined -
4 Find the gradient of the interval joining $(-2, -5)$ and $(1, 4)$.
$\dfrac{4 - (-5)}{1 - (-2)} = \dfrac{9}{3}$$m = 3$ -
5 Find the gradient of the interval joining $(6, 1)$ and $(2, 9)$.
$\dfrac{9 - 1}{2 - 6} = \dfrac{8}{-4}$$m = -2$
Multiple Choice · 5 questions
The gradient of the interval joining $(1, 3)$ and $(5, 11)$ is:
Which interval has an undefined gradient?
A student calculates the gradient of the interval joining $P$ and $Q$, then repeats the calculation with the labels swapped. The second answer is:
The gradient of the interval joining $(-4, 6)$ and $(2, -3)$ is:
For which set of three points are the gradients between successive pairs equal?
Short Answer · 3 questions
The formula is the counting written down
$m = \dfrac{y_2 - y_1}{x_2 - x_1}$. The numerator is the rise, the denominator is the run, and both come from the right triangle beneath the interval.
Label first, subtract second
Reversing both subtractions gives the same gradient. Reversing only one gives the negative of it, which is the commonest error in the topic.
Zero and undefined are different
A horizontal interval has zero rise, so $m = 0$. A vertical interval has zero run, so the gradient is undefined, which means no value exists rather than the value being zero.
Equal gradients plus a shared point means collinear
Compare $m_{AB}$ with $m_{BC}$. Equal gradients alone give parallel intervals; the shared point $B$ is what forces them onto one line.
Your Badges
0 of 6Mark lesson as complete
Tick when you've finished Learn, Practice and the Stretch. Earns +90 XP and +25 coins.