Linear Graphs (y = mx + c)
Studying this course? Keep your progress in one place.
Key facts
- In , is the gradient and is the y-intercept, the point .
- Gradient between two points: .
- To find an equation from two points: find , then substitute one point to find .
- Parallel lines have the same gradient; perpendicular gradients multiply to .
- is horizontal (gradient 0); is vertical (gradient undefined).
Gradient and intercept
m sets how steep the line is and c is where it crosses the y-axis.
In , is the gradient and is the y-intercept. If increases by 1, changes by . A positive slopes upward left to right; a negative slopes downward.
Always rearrange so is on its own before reading off and .
Worked example
Find the gradient of the line .
- 1
Divide every term by 2: .
- 2
Read off the coefficient of .
What is the gradient of ?
Gradient from two points
Divide the change in y by the change in x, subtracting in the same order on top and bottom.
This is "rise over run". It does not matter which point is point 1, as long as you are consistent.
Worked example
Find the gradient of the line through and .
- 1
.
- 2
.
What is the gradient of the line through and ?
Equation from two points
Find the gradient, then substitute one point to find c.
Alternatively use and rearrange into .
- 1
Gradient
(y₂ − y₁) ÷ (x₂ − x₁)
- 2
Substitute
m and one point into y = mx + c
- 3
Solve
for c
- 4
Write
y = mx + c
Worked example
Find the equation of the line through and .
- 1
Gradient: .
- 2
Substitute : , so .
Find the equation of the line through and .
Parallel and perpendicular
Parallel lines share a gradient; perpendicular gradients are negative reciprocals.
Parallel lines have the same gradient: and never meet.
Perpendicular lines meet at a right angle and , so . Flip the fraction and change the sign: becomes , and becomes .
A line has gradient 5. What is the gradient of a perpendicular line?
Horizontal and vertical lines
Horizontal lines are y = c; vertical lines are x = c.
A horizontal line has gradient 0. A vertical line has an undefined gradient. They are perpendicular to each other, although the negative reciprocal rule cannot be used since you cannot divide by 0.
What is the gradient of the line ?
Try an exam question
The points and lie on a straight line. (a) Find an equation of the line . (b) Write down the gradient of a line perpendicular to .
[4 marks]
- [1]Gradient .
- [1]Substitutes a point: .
- [1].
- [1]Perpendicular gradient .
That's the notes covered.
Carry on to the next subtopic.
Try a question
A straight line has equation . What is its gradient?
1 mark, marked against the mark scheme
A straight line has equation . What is its gradient?
1 mark, marked against the mark scheme