Equations of straight lines
Studying this course? Keep your progress in one place.
Key facts
- The gradient between two points is .
- Use , or (gradient ).
- Parallel lines have equal gradients; perpendicular lines have .
- The distance between two points is .
- In a linear model the gradient is the rate of change and the intercept is the starting value.
Gradient and equation
Find the gradient from two points, then use with either point.
The gradient is the change in divided by the change in , and the y-intercept is where .
For : , so the gradient is .
Worked example
Find the equation of the line through and .
- 1
.
- 2
Use : .
y = mx + c
- Gradient m
- y-intercept c
y − y₁ = m(x − x₁)
- Gradient m
- Passes through (x₁, y₁)
ax + by + c = 0
- Gradient −a/b
- Integer coefficients
What is the gradient of ?
Parallel and perpendicular
Parallel lines have equal gradients; perpendicular lines have gradients whose product is .
Parallel lines have . Perpendicular lines have , so : flip the fraction and change the sign.
has gradient and is perpendicular to with gradient .
Worked example
Find the equation of the line through perpendicular to with gradient .
- 1
The perpendicular gradient is .
- 2
.
- 3
Multiply by : .
Parallel
- m₁ = m₂
- Never meet
Perpendicular
- m₁m₂ = −1
- Meet at 90°
A line has gradient . What is the gradient of a perpendicular line?
Lengths and areas
Use gradients to show right angles, the distance formula for lengths, then half base times height.
Set for the -intercept and for the -intercept. For these are and , giving a triangle with the origin of area .
The distance between and is .
Worked example
Show that for , , , and find the area of the triangle.
- 1
.
- 2
.
- 3
, so the lines are perpendicular.
- 4
and .
- 5
Area .
What is the distance between and ?
Straight-line models
In the gradient is the rate of change and the intercept is the starting value.
A linear model assumes a constant rate: cost per mile (gradient) and a fixed fee (intercept). Temperature conversion and distance-time graphs (gradient is speed) are other examples.
A limitation is that real situations may have minimum charges, waiting time or limits on the values.
Worked example
A -mile journey costs and a -mile journey costs . Find the model, and where it meets a rival with .
- 1
.
- 2
, so and .
- 3
Set equal: .
- 4
.
In , what does the represent?
Try an exam question
The line passes through and . Find an equation for . The line passes through and is perpendicular to . Find an equation for in the form where , and are integers.
[5 marks]
- [1]Gradient of is .
- [1]: .
- [1]Gradient of is .
- [1].
- [1].
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