Linear and Quadratic Functions
Senior 3 · Mathematics
Linear and Quadratic Functions
Lesson 1 of 5
25 min
Rwanda's roads climb and fall across the hills, and anyone who has pushed a loaded bicycle uphill knows that some stretches are much steeper than others. Mathematics measures steepness with one number, the gradient: how far a line rises for each unit it runs across.
In S1 you drew lines such as and read off their gradient and intercepts. This lesson makes that exact: the gradient between any two points, and the gradient and intercepts of a line written in its general form .

Definition
Gradient (slope) of the line through and , with :
Notation: the gradient is usually called . The change in is also written ("delta "), so .
Example: for and , : the line rises 3 units for every 4 units across.
Important
What the sign of the gradient tells you
| Gradient | The line, read from left to right | Example |
|---|---|---|
| rises | ||
| falls | ||
| is horizontal | ||
| undefined | is vertical (the run is 0, and you cannot divide by 0) |
The bigger the size , the steeper the line.
Definition
Linear function: a function of the form . Its graph is a straight line with gradient that cuts the -axis at .
Example: has gradient 2, -intercept and -intercept .
Definition
General Cartesian equation of a line: an equation of the form
where , and are real numbers and and are not both zero. Every straight line, including vertical ones, can be written this way.
Example: becomes , with , , .
Important
Gradient and intercept from the general equation. If , make the subject:
If , the equation is , that is, : a vertical line with no gradient. If , the line is horizontal and .
Worked example 1: gradient from two points
Find the gradient of the line through (a) and (b) and .
Solution (a) . The line falls 1 unit for each unit across.
(b) , which has no value. Both points have , so is the vertical line , and its gradient is undefined.
Worked example 2: from the general equation to the graph
For the line , find the gradient and both intercepts, and draw it.
Solution Here , , , so .
-intercept: put : , so . -intercept: put : , so .
Check a third point: gives , so ; and from , a run of 4 with a rise of 3 also reaches ✓.
Worked example 3: gradient as a rate of change
A school's water tank holds 2,000 litres. When the tap at the bottom is left open, the volume after minutes is (illustrative figures).
(a) Give the gradient and the -intercept, and say what each means. (b) When is the tank empty?
Solution (a) The gradient is : the volume falls by 50 litres every minute. The -intercept is 2,000: the volume at , a full tank.
(b) Put : , so . The tank is empty after 40 minutes; this is the -intercept.
Worked example 4: a road gradient in per cent
A road sign gives a gradient as a percentage: 10% means the road rises (or falls) 10 m for every 100 m measured horizontally, a gradient of .
(a) A road rises 45 m over a horizontal distance of 600 m. Give its gradient as a decimal and as a percentage. (b) How much height does a lorry lose over 250 m, measured horizontally, of a 10% descent?
Solution (a) . (b) m.

Warning
Keep the same order top and bottom. If you start with on top, start with underneath: . Mixing the order, , gives the wrong sign.
Rise over run, not run over rise. The change in goes on top.
Mind the minus sign in . For , , not . If in doubt, make the subject.
Tip
Intercepts are the quickest way to draw a line from its general form: cover the term to find the -intercept, and cover the term to find the -intercept. Then check with a third point.
Khan Academy: Slope from equation. Watch how the gradient is read from equations written in several different forms, including by making y the subject.
Practice
Show your working. The last three are harder.
Sources and credits
The graphs, worked examples, practice items and quiz questions were written by Ganzaa; the water-tank figures are illustrative. This lesson adapts CC BY-SA material and is shared under CC BY-SA 4.0.