Mathematics Topic
Gradient of a Straight Line
- Read notes
- Flashcards
- Quiz
- Confident
Study focus - 3 things
- 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
- 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
- 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
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.
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
- CSEC Mathematics Syllabus (CXC 05/G/SYLL 16, revised 2016; registry URL names an Oct 2025 amendment) · Caribbean Examinations Council (CXC) · Section 7, Specific Objective 7.8 · Syllabus scope
- Siyavula Mathematics, CAPS Grades 8 to 11 (online textbooks) · Siyavula Education · Chapter 8, 8.3 Gradient of a line, checked against (https://www.siyavula.com/read/za/mathematics/grade-10/analytical-geometry/08-analytical-geometry-02) · Facts
- Siyavula Mathematics, CAPS Grades 8 to 11 (online textbooks) · Siyavula Education · Chapter 6, 6.2 Linear functions, checked against (https://www.siyavula.com/read/za/mathematics/grade-10/functions/06-functions-01) · Facts
- Beginning and Intermediate Algebra (2nd ed.) · Tyler Wallace (wallace.ccfaculty.org) · Section 2.2, Graphing - Slope, checked against (https://www.wallace.ccfaculty.org/book/2.2%20Slope.pdf) · Facts