Gradient and y = mx + c
Gradient from rise over run and from two points, gradient-intercept form, rearranging equations into y = mx + c and sketching using the gradient and y-intercept.
Gradient measures steepness: how much a line goes up for every one step across. It is the most useful number about a line, because in real life it is a rate, such as dollars per hour or litres per kilometre.
Gradient
Read from left to right. Going up is a positive rise, going down is negative.
| Line | Gradient |
|---|---|
| Rises from left to right | positive |
| Falls from left to right | negative |
| Horizontal | $0$ (no rise) |
| Vertical | undefined (no run, and we can't divide by $0$) |
Find the gradient of the line through $(-1, 4)$ and $(3, -4)$.
Gradient as a rate
If petrol costs $\$2.10$ per litre, the cost is $C = 2.1L$. Graphed, that is a straight line through the origin with gradient $2.1$: each extra litre adds $\$2.10$. Whenever $y = kx$, we say $y$ is directly proportional to $x$, and the gradient $k$ is the rate. Double the litres and you double the cost.
Gradient-intercept form
Here $m$ is the gradient and $c$ is the $y$-intercept. Why? Put $x = 0$ and you get $y = c$, so the line crosses the $y$-axis at $c$. And each time $x$ goes up by $1$, $mx$ goes up by $m$, so the line rises $m$ for every $1$ across.
Find the gradient and $y$-intercept of $3x + 2y = 8$.
Sketching from $m$ and $c$
Sketch $y = \dfrac23 x - 1$.
c moves the starting point on the y-axis; m sets the steepness.
Set $c = 1$, then find the gradient that makes the line pass through $(2, 5)$. Now find two other pairs of $m$ and $c$ that also pass through $(2, 5)$. What pattern links them?
Your turn
Find the gradient and $y$-intercept of $4x - 2y = 10$.
Show the working
$-2y = -4x + 10$. Divide by $-2$: $y = 2x - 5$. Gradient $2$, $y$-intercept $-5$.
Find the gradient of the line through $(1, 2)$ and $(4, 11)$.
$m = \dfrac{11 - 2}{4 - 1} = \dfrac93 = 3$.
Find the gradient of the line through $(-2, 5)$ and $(2, -3)$.
$m = \dfrac{-3 - 5}{2 - (-2)} = \dfrac{-8}{4} = -2$.
The gradient of a horizontal line is:
A horizontal line has no rise, so $m = \dfrac{0}{\text{run}} = 0$.
Find the gradient of $y = 4 - 3x$.
Rewrite as $y = -3x + 4$. The coefficient of $x$ is $-3$.
Find the $y$-intercept of $y = 4 - 3x$.
When $x = 0$, $y = 4$.
$2x + 3y = 6$ in gradient-intercept form is:
$3y = -2x + 6$. Divide every term by $3$: $y = -\dfrac23 x + 2$.
Find the gradient of $6x + 3y = 9$.
$3y = -6x + 9$, so $y = -2x + 3$. Gradient $-2$.
Which line has gradient $-\tfrac12$ and $y$-intercept $3$?
Substitute $m = -\tfrac12$ and $c = 3$ into $y = mx + c$.
Challenge: A line has gradient $3$ and $y$-intercept $1$. The point $(k, 7)$ is on it. Find $k$.
The line is $y = 3x + 1$. Substitute: $7 = 3k + 1$, so $k = 2$.
Challenge: A line through $(2, 3)$ and $(6, k)$ has gradient $1.5$. Find $k$.
The run is $6 - 2 = 4$, so the rise is $1.5 \times 4 = 6$. Then $k = 3 + 6 = 9$.
Coaching Centre