Revision notes for CIE IGCSE Maths Equation of a Line. Open the guide for explanations and worked examples. Written against the CIE IGCSE Maths (0580) specification, so the content matches what's examinable rather than general Maths background.
Revision notes for CIE IGCSE Maths Equation of a Line. Open the guide for explanations and worked examples. Written against the CIE IGCSE Maths (0580) specification, so the content matches what's examinable rather than general Maths background.
A coordinate grid has two axes:
A point is written as (x,y)(x,y)(x,y). The first number tells you how far across to go, and the second number tells you how far up or down to go.
Origin
The origin is the point where the x-axis and y-axis meet. Its coordinates are (0,0)(0,0)(0,0).
Straight-line graphs often have equations involving xxx and yyy. For example, y=2x+3y=2x+3y=2x+3 means: choose an xxx value, multiply it by 2, then add 3 to get the matching yyy value.
The most useful form for a straight-line equation is:
y=mx+cy=mx+cy=mx+cGradient and y-intercept
In y=mx+cy=mx+cy=mx+c:

A positive gradient slopes upwards as you move from left to right. A negative gradient slopes downwards.
The main idea
If a line is written as y=mx+cy=mx+cy=mx+c, you can read off the gradient and y-intercept immediately.
Reading the gradient and y-intercept
A straight line has equation y=4x−6y=4x-6y=4x−6. Write down its gradient and the point where it crosses the y-axis.
Compare the equation with y=mx+cy=mx+cy=mx+c.
y=4x−6y=4x-6y=4x−6The number multiplying xxx is the gradient, so the gradient is 4.
The constant term is the y-intercept, so the line crosses the y-axis when y=−6y=-6y=−6.
The point on the y-axis has x=0x=0x=0, so the coordinate is (0,−6)(0,-6)(0,−6).
Forgetting the coordinate of the y-intercept
The y-intercept is not just the number -6. As a point, it is (0,−6)(0,-6)(0,−6) because every point on the y-axis has x=0x=0x=0.
If you know the gradient and the point where the line crosses the y-axis, you can build the equation straight away.
Use:
y=mx+cy=mx+cy=mx+cwhere mmm is the gradient and ccc is the y-intercept.
Writing the equation from a y-intercept
A line has gradient 3 and passes through (0,−4)(0,-4)(0,−4). Find its equation.
The gradient is 3, so m=3m=3m=3.
The line passes through (0,−4)(0,-4)(0,−4), so the y-intercept is -4. This means c=−4c=-4c=−4.
Substitute into y=mx+cy=mx+cy=mx+c.
y=3x−4y=3x-4y=3x−4Quick check
If the point given has coordinates (0,c)(0,c)(0,c), it is already the y-intercept. You do not need to substitute it into a long formula.
Sometimes the equation is not written as y=mx+cy=mx+cy=mx+c straight away.
For example:
y=7−2xy=7-2xy=7−2xThis is the same as:
y=−2x+7y=-2x+7y=−2x+7So the gradient is -2 and the y-intercept is 7.
Reading an equation with the terms swapped
A straight line has equation y=5−xy=5-xy=5−x. Find the gradient and the coordinates of the y-intercept.
Rewrite the equation so the xxx term comes first.
y=−x+5y=-x+5y=−x+5The coefficient of xxx is -1, so the gradient is -1.
The constant term is 5, so the line crosses the y-axis at (0,5)(0,5)(0,5).
Missing the hidden 1
In y=5−xy=5-xy=5−x, the term −x-x−x means −1x-1x−1x. So the gradient is -1, not just “negative”.
Some equations are given in forms like:
2y−6x=102y-6x=102y−6x=10To find the gradient, first make yyy the subject. That means rearrange the equation until yyy is on its own.
Make y the subject
To make yyy the subject means to rearrange an equation so it begins y=…y=\dotsy=….
Rearranging to find the gradient
A straight line has equation 3y−12x=93y-12x=93y−12x=9. Find its gradient.
Start with the equation.
3y−12x=93y-12x=93y−12x=9Add 12x12x12x to both sides to move the xxx term away from the left-hand side.
3y=12x+93y=12x+93y=12x+9Divide every term by 3.
y=4x+3y=4x+3y=4x+3Now compare with y=mx+cy=mx+cy=mx+c. The gradient is 4.
Rearranging when x is added
A line has equation x+4y=12x+4y=12x+4y=12. Rearrange it to make yyy the subject, then write down the gradient.
Start with the equation.
x+4y=12x+4y=12x+4y=12Subtract xxx from both sides.
4y=12−x4y=12-x4y=12−xDivide every term by 4.
y=3−14xy=3-\frac{1}{4}xy=3−41xWrite it in y=mx+cy=mx+cy=mx+c order.
y=−14x+3y=-\frac{1}{4}x+3y=−41x+3The gradient is −14-\frac{1}{4}−41.
Divide every term
When dividing by the number in front of yyy, divide every term on the right-hand side as well. For example, from 4y=12−x4y=12-x4y=12−x, you get y=3−14xy=3-\frac{1}{4}xy=3−41x.
If you can see two points on a line, you can calculate the gradient.
Gradient formula
The gradient between two points is:
gradient=change in ychange in x\text{gradient}=\frac{\text{change in }y}{\text{change in }x}gradient=change in xchange in yThis is often remembered as “rise over run”.
For points (x1,y1)(x_1,y_1)(x1,y1) and (x2,y2)(x_2,y_2)(x2,y2), the formula is:
m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}m=x2−x1y2−y1Finding an equation from two points
A straight line passes through A(0,2)A(0,2)A(0,2) and B(3,8)B(3,8)B(3,8). Find the equation of the line.
Find the change in yyy from AAA to BBB.
8−2=68-2=68−2=6Find the change in xxx from AAA to BBB.
3−0=33-0=33−0=3Calculate the gradient.
m=63=2m=\frac{6}{3}=2m=36=2Since the line passes through (0,2)(0,2)(0,2), the y-intercept is 2.
Put m=2m=2m=2 and c=2c=2c=2 into y=mx+cy=mx+cy=mx+c.
y=2x+2y=2x+2y=2x+2Use the point where x is zero
If one of your points is on the y-axis, such as (0,2)(0,2)(0,2), it gives you ccc immediately. That saves time.
When a straight line is drawn on a grid, use two clear grid points.
Choose points where the line goes exactly through a grid crossing. Avoid guessing halfway points unless the graph clearly shows them.
Finding an equation from a drawn line
A line passes through the points (0,5)(0,5)(0,5) and (2,−1)(2,-1)(2,−1). Find its equation.
The point (0,5)(0,5)(0,5) is on the y-axis, so the y-intercept is 5.
Find the change in yyy from (0,5)(0,5)(0,5) to (2,−1)(2,-1)(2,−1).
−1−5=−6-1-5=-6−1−5=−6Find the change in xxx.
2−0=22-0=22−0=2Calculate the gradient.
m=−62=−3m=\frac{-6}{2}=-3m=2−6=−3Use y=mx+cy=mx+cy=mx+c with m=−3m=-3m=−3 and c=5c=5c=5.
y=−3x+5y=-3x+5y=−3x+5Getting the sign of the gradient wrong
If the line goes down as you move from left to right, the gradient must be negative. This is a useful sanity check.
Parallel lines
Parallel lines are straight lines that never meet. They have the same gradient.
Parallel lines can have different y-intercepts. For example, y=2x+1y=2x+1y=2x+1 and y=2x−5y=2x-5y=2x−5 are parallel because both have gradient 2.
Writing the equation of a parallel line
A line is parallel to y=−3x+4y=-3x+4y=−3x+4 and crosses the y-axis at (0,7)(0,7)(0,7). Find its equation.
Parallel lines have the same gradient.
The gradient of y=−3x+4y=-3x+4y=−3x+4 is -3.
The new line crosses the y-axis at (0,7)(0,7)(0,7), so c=7c=7c=7.
Substitute into y=mx+cy=mx+cy=mx+c.
y=−3x+7y=-3x+7y=−3x+7Parallel line after rearranging first
A line has equation 2y−8x=62y-8x=62y−8x=6. Write down the equation of another line parallel to it.
Rearrange the equation to make yyy the subject.
2y=8x+62y=8x+62y=8x+6Divide every term by 2.
y=4x+3y=4x+3y=4x+3The gradient is 4, so any parallel line must also have gradient 4.
Choose a different y-intercept, for example -2.
y=4x−2y=4x-2y=4x−2Many answers can be correct
If a question asks for “another line parallel to” a given line, there are many possible answers. Keep the same gradient but choose a different y-intercept.
To match equations with lines on a graph, look for two quick clues:
A horizontal line has equation y=cy=cy=c, where ccc is a constant. For example, y=3y=3y=3 is a horizontal line through every point with y-coordinate 3.
Matching a line to its equation
A graph shows four lines. One line slopes downwards and crosses the y-axis at 4. Which equation matches it: y=2xy=2xy=2x, y=4−3xy=4-3xy=4−3x, y=3x+4y=3x+4y=3x+4, or y=4y=4y=4?
The line slopes downwards, so its gradient is negative.
The line crosses the y-axis at 4, so c=4c=4c=4.
Look for the equation with negative gradient and y-intercept 4.
The matching equation is:
y=4−3xy=4-3xy=4−3xIn the exam
First check whether the equation is already in y=mx+cy=mx+cy=mx+c form. If not, rearrange it before reading the gradient.
For a graph question, choose two clear grid points and calculate “change in yyy over change in xxx”.
For parallel lines, copy the gradient exactly and change only the y-intercept if you need a different line.
Check yourself
If a line has equation y=−5x+2y=-5x+2y=−5x+2, what are its gradient and y-intercept?
How would you rearrange 2x+3y=122x+3y=122x+3y=12 to make yyy the subject?
What must be the same for two straight lines to be parallel?
Test yourself with 5 quick questions on this guide. Answer them all correctly to complete it.
Test yourself on this topic, or move on to the next guide.
How was this guide?