Skip to content
mathlab
0
0
0 XP
Lvl 1
KJ
Lesson 2 ~40 min Linear Relationships C · Path +90 XP

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.

Today's hook: One skate ramp rises $0.9$ m over a run of $3$ m. Another goes from the point $(-2, 5)$ to the point $(4, -7)$ on a plan. You can see the first one is gentle. The second is a pair of coordinates, and eyeballing it will not do.
0/5QUESTS
Think First
warm-up

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.

Record your answer in your workbook.
1
The Big Idea
+5 XP to read

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.

(x₁, y₁) (x₂, y₂) x₂ − x₁ y₂ − y₁ rise ——— run the same triangle, written with letters
$m = \dfrac{y_2 - y_1}{x_2 - x_1}$
y on top
Rise over run means the y-difference is the numerator. Getting this the wrong way round inverts every answer.
Same order, both times
Whichever point you subtract first on top, subtract first on the bottom too.
Check the sign against the picture
Rising to the right is positive, falling is negative. A quick sketch catches a sign error instantly.
2
What You'll Master
objectives

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
3
Words You Need
vocabulary
GradientA measure of steepness, equal to the rise divided by the run. Written $m$.
RiseThe vertical change between two points, $y_2 - y_1$. Negative when the interval falls.
RunThe horizontal change between two points, $x_2 - x_1$.
UndefinedHaving no value. A vertical interval has an undefined gradient because its run is zero.
CollinearLying on the same straight line. Three points are collinear when the gradients between them agree.
4
Rise Over Run Becomes Subtraction
+5 XP to read

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.

5
Order Does Not Matter, Consistency Does
+5 XP to read

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.

6
Reading the Sign and the Size
+5 XP to read

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.

7
Flat and Upright
+5 XP to read

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.

8
Three Points on One Line
+5 XP to read

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 · A falling interval
+15 XP per step
Q1
PROBLEM
Find the gradient of the interval joining $A(-2, 5)$ and $B(4, -7)$.
  1. 1
    Label 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.
  2. 2
    Substitute 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.
  3. 3
    Simplify
    $m = \frac{-12}{6} = -2$
  4. 4
    Check the sign against a sketch
    The 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.
Answer$m = -2$
Watch Me Solve It · Testing for collinearity
+15 XP per step
Q2
PROBLEM
Show that $A(1, 2)$, $B(4, 8)$ and $C(7, 14)$ are collinear.
  1. 1
    Find the gradient of the first pair
    $m_{AB} = \frac{8 - 2}{4 - 1} = \frac{6}{3} = 2$
  2. 2
    Find 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.
  3. 3
    State the conclusion with its reason
    The 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.
Answer$m_{AB} = m_{BC} = 2$ and the intervals share $B$, so the points are collinear
Watch Me Solve It · Finding a missing coordinate
+15 XP per step
Q3
PROBLEM
The interval joining $(2, k)$ and $(6, 11)$ has gradient $3$. Find $k$.
  1. 1
    Write 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.
  2. 2
    Clear the denominator
    $\frac{11 - k}{4} = 3$
    $11 - k = 12$
  3. 3
    Solve
    $-k = 1$
    $k = -1$
  4. 4
    Check
    $\frac{11 - (-1)}{6 - 2} = \frac{12}{4} = 3$
    Substituting back reproduces the given gradient, so the value is correct.
Answer$k = -1$
D
Brain Trainer · Rise over run, in symbols
5 problems

Five gradient items. Sketch each one roughly first and predict the sign before you calculate.

  1. 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. 2 Find the gradient of the interval joining $(-3, 2)$ and $(5, 2)$.

    Equal y-coordinates, so the rise is zero.$m = 0$
  3. 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. 4 Find the gradient of the interval joining $(-2, -5)$ and $(1, 4)$.

    $\dfrac{4 - (-5)}{1 - (-2)} = \dfrac{9}{3}$$m = 3$
  5. 5 Find the gradient of the interval joining $(6, 1)$ and $(2, 9)$.

    $\dfrac{9 - 1}{2 - 6} = \dfrac{8}{-4}$$m = -2$
Complete in your workbook.
MC1
Straightforward substitution
+10 XP

The gradient of the interval joining $(1, 3)$ and $(5, 11)$ is:

MC2
The undefined case
+10 XP

Which interval has an undefined gradient?

MC3
Reversing the labels
+10 XP

A student calculates the gradient of the interval joining $P$ and $Q$, then repeats the calculation with the labels swapped. The second answer is:

MC4
A negative fractional gradient
+10 XP

The gradient of the interval joining $(-4, 6)$ and $(2, -3)$ is:

MC5
Are they collinear
+10 XP

For which set of three points are the gradients between successive pairs equal?

Q6
Calculate and justify the order
+15 XP
Q6
SHORT ANSWER
Find the gradient of the interval joining $A(-5, 8)$ and $B(3, -4)$. Then repeat the calculation with the two points labelled the other way round, and explain why the two results agree.
Write your working in your book.
Q7
Collinear or not
+15 XP
Q7
SHORT ANSWER
Show that $P(-2, -3)$, $Q(1, 3)$ and $R(4, 9)$ are collinear. Explain what your calculation would have shown had the points not been collinear, and why the two intervals must share a point for the argument to work.
Write your working in your book.
Q8
Solve for the unknown
+15 XP
Q8
SHORT ANSWER
The interval joining $A(k, 4)$ and $B(2, -8)$ has gradient $-4$. Find $k$, showing your working, and verify your answer.
Write your working in your book.
S
Stretch Challenge · Why any two points give the same gradient
+25 XP
S
CHALLENGE
A straight line passes through the points $A$, $B$ and $C$, in that order. Explain, using similar triangles, why the gradient calculated from $A$ and $B$ must equal the gradient calculated from $A$ and $C$. Then explain what this guarantees about the phrase "the gradient of a line".
R
Quick Review
recap

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 6
First Steps
3-Day Streak
3 in a Row
Lesson Ace
Stretch Seeker
Daily Warrior

Mark lesson as complete

Tick when you've finished Learn, Practice and the Stretch. Earns +90 XP and +25 coins.