2.1 Equation of a straight line
Studying this course? Keep your progress in one place.
Key facts
- Gradient : the rise over the run, using the same point first in both.
- Three forms: gradient-intercept , point-gradient and general .
- Set for the -intercept and for the -intercept.
- Parallel lines have equal gradients; perpendicular gradients multiply to .
- In a linear model the gradient is the rate of change and is the starting value.
Gradient from two points
The gradient is the change in for each one-unit change in : the rise divided by the run.
The gradient measures how steep a line is. A positive gradient slopes upwards (left to right), a negative gradient slopes downwards, a horizontal line has , and a vertical line has an undefined gradient.
For and : , so rises by 2 for every 1 across.
- Gradient
What is the gradient of the line through and ?
Forms of the equation
Know three forms and convert between them: gradient-intercept, point-gradient and general.
Use gradient-intercept form when you know the gradient and the -intercept, and point-gradient form when you know a point and the gradient. General form has integer , , .
To find the gradient from general form, rearrange: , so . In general .
- Gradient-intercept
- Point-gradient
- General form
Worked example
Find the equation of the line through with gradient , in three forms.
- 1
Point-gradient form: .
- 2
Expand: (gradient-intercept form).
- 3
Move all terms to one side: (general form).
What is the gradient of ?
Intercepts
Set to find the -intercept and to find the -intercept.
The -intercept is where the line crosses the -axis, so set . The -intercept is where it crosses the -axis, so set .
For : gives , and gives . The intercepts are and .
In the -intercept is read straight from , and the -intercept is .
Where does cross the -axis?
Parallel and perpendicular lines
Parallel lines share a gradient; for perpendicular lines, flip the fraction and change the sign.
Parallel lines never meet and have . Perpendicular lines meet at a right angle and have , so .
Example: a line perpendicular to has gradient .
- Parallel
- Perpendicular
Worked example
Find the line through perpendicular to .
- 1
The given gradient is , so the perpendicular gradient is .
- 2
Point-gradient form: .
- 3
Rearrange: .
Which line is perpendicular to ?
Gradients in context
In real slopes and linear models the gradient is a rate of change, with units of per unit of .
A mountain road that rises 150 m over a horizontal distance of 2500 m has gradient , a 6% incline: 6 m of climb per 100 m across. Both lengths must be in the same units.
In a linear model , the gradient is the rate of change (for example 60 m per km) and is the starting value when .
- Gradient of a slope
- Angle of incline
A ramp rises 0.5 m over a horizontal distance of 6 m. What is its gradient?
Try an exam question
The line passes through and . (a) Find the gradient of . (b) Write the equation of in the form . (c) The line is perpendicular to and passes through . Find the equation of .
[5 marks]
- [1]Gradient formula .
- [1].
- [1], so .
- [1]Perpendicular gradient .
- [1], so .
That's the notes covered.
Carry on to the next subtopic.
Try a question
Find the gradient of .
1 mark, marked against the mark scheme
Find the gradient of .
1 mark, marked against the mark scheme