3.1 Straight lines, gradients and straight-line models — Learn
Prerequisites: plotting coordinates; reading a gradient as rise over run; rearranging a formula; solving a linear equation.
By the end of this section you can: work out the gradient of a line from two points; write the equation of a line from a gradient and a point, and from two points; move between the forms , and ; read the gradient and the intercept of a straight-line model with their units.
1. The gradient of a line
The gradient of a line measures how steeply it rises. It is the change in for each unit of change in . You can read it as rise over run.
For two points and on a line,
The order matters. Subtract the first coordinates from the second, on the top and on the bottom, or the sign comes out wrong.
A line that rises from left to right has a positive gradient. A line that falls from left to right has a negative gradient. A horizontal line has gradient . A vertical line has no gradient: dividing by a zero change in is not allowed.
Example 1. Work out the gradient of the line through and .
Subtract the coordinates of the first point from the second:
The line rises units for every units across, so the gradient is .
Example 2. Work out the gradient of the line through and .
The gradient is negative, so the line falls as it moves right.
2. The equation of a line
Two facts fix a straight line: one point on it, and its gradient. The equation of the line through with gradient is
You can also write every non-vertical line in the form
Here is the gradient and is the intercept on the -axis, the value of where the line crosses it.
Example 3. Find the equation of the line with gradient through .
Substitute the point and the gradient into :
The subtraction of a negative gives a plus on the left. Expand the bracket:
Subtract from both sides:
The line cuts the -axis at .
Example 4. Find the equation of the line through and .
The gradient is , from Example 1. Substitute one point, here :
Expand the bracket:
Add , which is , to both sides:
So . Check the answer by substituting the other point, : . Both points fit, so the equation is right.
3. The form
A line can also be written with all the terms on one side:
This form handles vertical lines as well, and marks often ask for it with whole numbers. Clear the fractions by multiplying every term.
Take Example 4 and multiply by :
Collect everything on the left:
To find where a line crosses the axes, substitute for the -intercept and for the -intercept.
Example 5. Find where crosses the axes.
Put :
Put :
The line crosses the -axis at and the -axis at .
4. Straight-line models
Many real quantities are linked by a straight line. The equation then carries meaning:
- the gradient is the rate of change, in units of the vertical quantity per unit of the horizontal quantity;
- the intercept is the starting value, when the horizontal quantity is .
Example 6. A taxi charges a fixed £3 plus £2 for each kilometre. Write a model for the cost, and say what the gradient and the intercept mean.
Let be the distance in kilometres and the cost in pounds:
The gradient is . It costs £2 for each extra kilometre. The intercept is . It is the fixed charge, paid before the taxi moves. For a journey of km,
The fare is £19.
The units of a gradient are the units of divided by the units of . Here the gradient is pounds per kilometre.
5. Try it: the line explorer
Predict first. You will change the gradient and the intercept in . Before you touch the controls, predict what happens to the line when is negative, and what happens when changes but stays the same. Write both predictions down.
Test. Move the slider for and watch the direction of the line. Then keep fixed and move the slider for . The readout names the gradient, the intercept, and the equation in the form .
Explain. For one setting, read the step drawn on the graph: across and up by the gradient. Write two sentences saying why changing moves the whole line up or down without tilting it.
Watch out. Three slips are common on this page.
The sign of the gradient. A line that falls as it moves right has a negative gradient. Read the direction before you calculate, and expect a minus sign.
The sign inside the bracket. The form subtracts both coordinates. For the point the left side is , not . A quick substitution of the point back into your answer catches this at once.
The two intercepts. The -intercept is in , at the point . The -intercept is where , and it is a different number. Re-check: after finding an equation, substitute both given points, and confirm that each one makes the two sides equal.
Progress check
Return to the chapter problem. The centre line of the causeway runs through and .
- Work out the gradient of the causeway.
- Write the equation of the causeway in the form .
- Rewrite it in the form .
- The lake's rim passes through and . Substitute each point into your equation to check that both lie on the causeway.
You should now be able to
- work out the gradient of a line from two points, with the correct sign;
- find the equation of a line from a gradient and a point, and from two points;
- move between , and ;
- find where a line crosses each axis;
- read the gradient and the intercept of a straight-line model and give their units;
- check a line equation by substituting a point back into it.