Mathematics Topic

Gradient of a Straight Line

  1. Read notes
  2. Flashcards
  3. Quiz
  4. Confident

Study focus - 3 things

  1. The gradient of a line is its rise divided by its run: the vertical change over the horizontal change between any two points on it
  2. From two points use m = (y2 - y1) / (x2 - x1), subtracting in the same order on top and bottom; the sign tells you whether the line rises or falls
  3. A horizontal line has gradient 0; a vertical line has no gradient; in real problems the gradient is a rate such as J$ per km

Visual notes

Gradient triangle on the line through A(1, 3) and B(4, 9)
A straight line rising from (0, 1) to (4.5, 10) passes through A(1, 3) and B(4, 9). A right-angled triangle joins A to the point (4, 3) and then up to B: the run is 3 units to the right and the rise is 6 units up, so the gradient is 6 divided by 3, which is 2.

The green line passes through A(1, 3) and B(4, 9). The orange legs are the run (3 across from A) and the rise (6 up to B). One unit across is drawn as long as one unit up.

Four lines: positive, negative, zero and no gradient
Four lines on one grid. The line y = 2x rises from left to right, gradient 2. The line y = -x falls from left to right, gradient -1. The horizontal line y = 3 has gradient 0. The vertical line x = -3 has no gradient.

Rising left to right means a positive gradient, falling means negative, flat means zero. The vertical line has no gradient at all.

Section 1What the gradient measures

The gradient (also called the slope) of a straight line tells you how steep the line is and which way it leans. It is the vertical change divided by the horizontal change as you travel along the line from one point to another: gradient = rise ÷ run. The usual symbol is m. Because the line is straight, any two points on it give the same gradient.

Section 2Reading the gradient from a graph

Choose two points that sit exactly where grid lines cross. From the left point, step across to the right and then up or down to reach the other point; these steps and the line form a slope triangle. The run is the step to the right. The rise is the step up (positive) or down (negative). Divide the rise by the run. Count in units of the axes rather than in grid squares, because the two axes can use different scales.

Section 3Gradient from two points

For the points (x1, y1) and (x2, y2) the gradient is m = (y2 - y1) / (x2 - x1). Subtract the y values and the x values in the same order. If you swap which point comes first, both the top and the bottom change sign and the answer is the same; if you mix the order, the sign of the answer is wrong. For (2, 5) and (6, 13): m = (13 - 5) / (6 - 2) = 8/4 = 2.

Section 4Sign and steepness

A line that rises from left to right has a positive gradient. A line that falls from left to right has a negative gradient. The bigger the size of the gradient, ignoring the sign, the steeper the line: a line with gradient -3 is steeper than a line with gradient 2, and it falls while the other rises.

Section 5Horizontal and vertical lines

A horizontal line has no rise, so its gradient is 0 divided by the run, which is 0. Its equation is y = c, where c is the height of the line. A vertical line has no run, and dividing by 0 is not allowed, so a vertical line has no gradient (the gradient is undefined). Its equation is x = c. Zero gradient and no gradient are different things.

Section 6Gradient from an equation

When a line is written y = mx + c, the gradient is m, the number multiplying x. If the equation is in another form, such as 2x + 3y = 12, rearrange it to make y the subject first: 3y = -2x + 12, so y = -(2/3)x + 4 and the gradient is -2/3. The number in front of x in the original equation (here 2) is not the gradient.

Section 7Gradient as a rate

In a real problem the gradient is a rate of change with units: the change in the up-and-down quantity for each one unit of the left-to-right quantity. If a graph shows a taxi fare in J$ against distance in km, a gradient of 100 means the fare goes up by J$100 for each extra kilometre. A negative gradient means the quantity falls, as with the litres left in a draining tank over time.

Examples

The line in the first diagram passes through A(1, 3) and B(4, 9). Find its gradient from the slope triangle, then check it with the formula using the points in both orders.

Run: from x = 1 to x = 4 is 3 to the right. Rise: from y = 3 to y = 9 is 6 up. Gradient = rise ÷ run = 6/3 = 2. Formula with A first: (9 - 3)/(4 - 1) = 6/3 = 2. Formula with B first: (3 - 9)/(1 - 4) = -6/-3 = 2. The two orders agree because the top and the bottom change sign together. The gradient is 2.

Suppose a taxi fare graph (fare in J$ on the vertical axis, distance in km on the horizontal axis) is a straight line through the points (4, 780) and (10, 1380). (a) Find the gradient and say what it means. (b) A different line passes through (2, k) and (6, 11) and has gradient 3/2. Find k.

(a) m = (1380 - 780)/(10 - 4) = 600/6 = 100. The gradient is 100 J$ per km: the fare rises by J$100 for each extra kilometre. (b) (11 - k)/(6 - 2) = 3/2, so (11 - k)/4 = 3/2. Multiply both sides by 4: 11 - k = 6, so k = 5. Check: (11 - 5)/(6 - 2) = 6/4 = 3/2, which is the gradient given.

Now let's water it

Session runs notes to flashcards to quiz back-to-back.

Where this comes from