4B

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

Gradient
$$m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}$$

Read from left to right. Going up is a positive rise, going down is negative.

LineGradient
Rises from left to rightpositive
Falls from left to rightnegative
Horizontal$0$ (no rise)
Verticalundefined (no run, and we can't divide by $0$)
Example 1●

Find the gradient of the line through $(-1, 4)$ and $(3, -4)$.

$m = \dfrac{-4 - 4}{3 - (-1)} = \dfrac{-8}{4}$
Subtract the y values and the x values in the same order: second point minus first point.
$m = -2$
The line drops 2 units for every 1 across, so it slopes down.

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

Gradient-intercept form
$$y = mx + c$$

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.

Example 2●●

Find the gradient and $y$-intercept of $3x + 2y = 8$.

$2y = -3x + 8$
The form y = mx + c needs y on its own. Subtract 3x from both sides.
$y = -\dfrac32 x + 4$
Divide every term by 2.
Gradient $-\dfrac32$, $y$-intercept $4$

Sketching from $m$ and $c$

Example 3●●

Sketch $y = \dfrac23 x - 1$.

Plot $(0, -1)$.
Start at the y-intercept.
Plot $(3, 1)$.
The gradient 2/3 means rise 2 for every run of 3. From (0, −1), go 3 right and 2 up.
Rule a line through both points.
Sketch from m and c

c moves the starting point on the y-axis; m sets the steepness.

Try this

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$.

Flashcards
Gradient from two points
$m = \dfrac{y_2 - y_1}{x_2 - x_1}$
$y = mx + c$
$m$ is the gradient, $c$ is the $y$-intercept
Gradient of a vertical line
Undefined
Practice
  1. Find the gradient of the line through $(1, 2)$ and $(4, 11)$.

  2. Find the gradient of the line through $(-2, 5)$ and $(2, -3)$.

  3. The gradient of a horizontal line is:

  4. Find the gradient of $y = 4 - 3x$.

  5. Find the $y$-intercept of $y = 4 - 3x$.

  6. $2x + 3y = 6$ in gradient-intercept form is:

  7. Find the gradient of $6x + 3y = 9$.

  8. Which line has gradient $-\tfrac12$ and $y$-intercept $3$?

  9. Challenge: A line has gradient $3$ and $y$-intercept $1$. The point $(k, 7)$ is on it. Find $k$.

  10. Challenge: A line through $(2, 3)$ and $(6, k)$ has gradient $1.5$. Find $k$.

Formula sheet