Equations of linear graphs
What the and the in mean, how to read them from an equation, how to find the equation of a line drawn on a grid, vertical and horizontal lines, and what the gradient and intercept mean in a real situation. Extended: lines written as , and the equation of a line through two points.
What the syllabus says
C3.5 (Core)
- Interpret and obtain the equation of a straight-line graph in the form .
Notes and examples
- Questions may:
- use and request lines in the forms
- involve finding the equation when the graph is given
- ask for the gradient or -intercept of a graph from an equation, e.g. find the gradient and -intercept of the graph with the equation .
- Candidates are expected to give equations of a line in a fully simplified form.
E3.5 (Extended)
- Interpret and obtain the equation of a straight-line graph.
Notes and examples
- Questions may:
- use and request lines in different forms, e.g.
- involve finding the equation when the graph is given
- ask for the gradient or -intercept of a graph from an equation, e.g. find the gradient and -intercept of the graph with equation .
- Candidates are expected to give equations of a line in a fully simplified form.
Quoted from the Cambridge IGCSE Mathematics 0580 syllabus for 2025 to 2027.
What y = mx + c means
Every straight line that is not vertical has an equation that can be written
The equation is a rule that every point on the line obeys: put in the -coordinate of any point on the line and it gives that point's -coordinate.
- is the gradient: how much changes for every 1 unit increase in .
- is the -intercept: where the line crosses the -axis, at the point .
Why the two numbers mean this. Put into and you get , so the line passes through , which is on the -axis. Now increase by 1: goes up by exactly , so goes up by . That is the definition of the gradient.
For example, has gradient and -intercept : it crosses the -axis at and rises 6 for every 1 across.
Reading the gradient and intercept from an equation
Before you read anything off, make sure the equation starts "", with on its own. Then:
- the gradient is the number multiplying , including its sign;
- the -intercept is the number on its own, including its sign.
The terms can come in either order. is the same line as , so its gradient is and its -intercept is . A common slip is to take the first number you see as the gradient.
Watch the hidden numbers:
- : the gradient is , because means .
- : the gradient is and the -intercept is . The line goes through the origin.
- : the gradient is .
Vertical and horizontal lines
Two kinds of line have very short equations.
- Horizontal lines have equations , for a number . Every point on the line has -coordinate 3, wherever it is across. Its gradient is : it is .
- Vertical lines have equations . Every point on the line has -coordinate 3. A vertical line cannot be written as , because its gradient cannot be calculated.
The trap is the letter. The line is vertical, even though it "contains" an : it is the set of points whose -coordinate is 3, and they sit one above another. The -axis itself is the line , and the -axis is the line .
Finding the equation from a graph
To write down the equation of a straight line drawn on a grid:
- Find the gradient from two clear grid points (rise over run, using the axis scales).
- Read the -intercept : the -value where the line crosses the -axis.
- Write with your two numbers in it.
- Check with another point on the line: its coordinates should fit the equation.
If the line crosses the -axis off the visible grid, or not at a clear point, use one point and the gradient to work back to . A question asking for "the equation of the line" wants a full equation, starting "", not just the two numbers.
Worked example 1
Find the equation of the line drawn on the grid.
Two clear grid points: and .
Gradient .
The line crosses the -axis at , so .
Equation: .
Check with : . It fits.
Answer:
Worked example 2
Find the equation of the line drawn on the grid.
Two clear grid points: and .
Run . Rise . Gradient .
The line crosses the -axis at , so .
Equation: .
Check with : . It fits.
Answer:
Check yourself
Write down the gradient and the -intercept of the line .
Answer it in the portal, where your answer is checked as you type →
Check yourself
Find the equation of the line drawn on the grid.
Answer it in the portal, where your answer is checked as you type →
Interpreting the gradient and intercept
Many straight-line graphs describe something real, and the two numbers then have meanings.
- The gradient is a rate: the change in the quantity for each one unit of the quantity. Its units are " units per unit".
- The intercept is the starting value: the value of when .
For example, if a plumber charges dollars for hours of work, the gradient 45 means 45 dollars for each hour, and the intercept 60 means a fixed call-out charge of 60 dollars, paid even for no time at all.
A negative gradient means the quantity is falling. If the fuel in a tank is litres after hours, the tank starts with 50 litres and loses 4 litres every hour. It is empty when : , so hours.
When you explain a gradient in words, always say what changes, by how much, and for each what: "the cost goes up by 45 dollars for each extra hour".
Worked example 3
The charge on a phone battery, %, is given by , where is the number of hours since it was fully charged. (a) Write down the gradient and explain what it means. (b) Explain what the 100 means. (c) After how many hours is the battery flat?
(a) Written as , the gradient is . The charge falls by 8 percentage points every hour.
(b) 100 is the -intercept, the charge when : the battery starts fully charged, at 100%.
(c) Flat means : , so and .
Answer: (a) : the charge falls by 8% each hour (b) the starting charge, 100% (c) hours
Fully simplified answers
Cambridge expects the equation of a line in a fully simplified form. That means:
- on its own on the left: , not ;
- like terms collected: , not ;
- no common factor left over: simplifies, by dividing every term by 2, to ;
- no brackets left unexpanded: is not finished.
A fraction gradient is fine: is fully simplified. So is ; the order of the terms does not matter.
Equations in other forms Extended
Extended candidates must also work with equations such as , for example . The same line can be written in many ways, so to read its gradient and intercept, rearrange to make the subject.
Take :
- Subtract from both sides: .
- Divide every term by 4: .
- Read off: gradient , -intercept .
Two quick facts help with this form. Putting gives the -intercept straight away (, so ), and putting gives where the line crosses the -axis (, so ).
A question may also ask you to give an equation in a particular form, such as where , and are integers. Start from , clear any fractions by multiplying every term, then collect and on one side. For example, becomes , then .
Worked example 4 Extended
Find the gradient and the -intercept of the line .
Make the subject. Subtract : .
Divide every term by : .
Gradient , -intercept .
Check the intercept directly: gives , so .
Answer: gradient , -intercept
Equation of a line through two points Extended
With no grid, you can still find the equation of a line from two points on it.
- Calculate the gradient: .
- Substitute and the coordinates of one of the points into and solve for .
- Write the equation, and check it with the other point.
Either point gives the same , because both lie on the line. The check with the second point catches almost every arithmetic slip, so it is worth the ten seconds.
Worked example 5 Extended
Find the equation of the line through and . Give your answer (a) in the form , (b) in the form .
Gradient: .
Substitute into : , so .
(a) .
Check with : . It fits.
(b) Add to both sides: .
Answer: (a) (b)
Check yourself Extended
Find the gradient and the -intercept of the line .
Answer it in the portal, where your answer is checked as you type →
Check yourself Extended
Find the equation of the line through and . Give your answer in the form .
Answer it in the portal, where your answer is checked as you type →
Key points
In , is the gradient and is the -intercept, the point .
Read and only once is on its own; keep their signs.
is horizontal (gradient 0); is vertical.
From a graph: gradient from two grid points, from the -axis crossing, then write .
In context, the gradient is the rate of change and the intercept is the starting value.
Extended: rearrange to ; through two points, find then substitute a point to find .
Where marks are lost
Reading the gradient of as 7. The gradient multiplies : it is .
Giving only the numbers, such as , , when the question asks for the equation.
Writing for a vertical line, or for a horizontal one.
Taking as the -coordinate of any point on the line, rather than the point where .
Extended: reading the gradient of as 3. Make the subject first: the gradient is .
Extended: dividing only some of the terms when making the subject.
Leaving an answer unsimplified, such as .
Related IGCSE Mathematics 0580 lessons
An original lesson written to the Cambridge IGCSE Mathematics 0580 syllabus (2025 to 2027). The worked examples and questions are our own, not Cambridge questions. Back to every IGCSE Mathematics 0580 lesson.