From reading lines to writing equations
You can read — this year you will write it yourself.
In Grade 7 you learned that every straight line has the equation , where is the and is the . Give you the equation, and you can picture the line.
Launching your learning experience…
You already know . This Stage 9 guide takes the next step: finding the equation of a line straight from its graph or from two points, recognising parallel lines, and interpreting real-life graphs with confidence — one short step at a time.
Mapped to the Cambridge Lower Secondary Mathematics curriculum framework.
You can read — this year you will write it yourself.
In Grade 7 you learned that every straight line has the equation , where is the and is the . Give you the equation, and you can picture the line.
Read the gradient and the -intercept straight off the drawn line.
When a straight line is already drawn, finding its equation is a two-part job: read off the gradient , then read off the -intercept .
Use the two points to find , then work backwards to find .
Sometimes there is no drawn line — just two points. That is still enough to find the equation.
Suppose a line passes through and .
Parallel lines have exactly the same gradient.
Two lines are parallel when they run in the same direction and never meet. There is a beautifully simple test for this in algebra.
Parallel lines have exactly the same gradient .
So , and are all parallel — every one has gradient 2. They cross the -axis at different points, but they slope in exactly the same way.
The gradient is a rate and the intercept a starting amount.
Straight-line graphs describe the real world. On a real-life graph, the gradient and intercept always carry meaning.
A few examples of what the parts mean:
To compare two real-life lines, look at both numbers. A steeper line has a larger rate; a higher intercept means a larger starting amount. Two phone tariffs, for instance, can be compared instantly from their graphs.
Finding equations of lines is a tool you will reach for again and again.
Being able to find the equation of any line opens the door to a great deal of maths ahead:
Sources: Cambridge Lower Secondary Mathematics curriculum framework (Stage 9). Last reviewed 2026-05-19.
Step-by-step solutions for linear functions and graphs , written exactly the way a tutor would explain them at the board.
Question
A line crosses the -axis at 3 and goes up 2 for every 1 across. Write its equation.
Step-by-step solution
Step 1
The gradient is the rise divided by the run.
Step 2
The -intercept is where the line crosses the -axis.
Step 3
Slot and into .
Answer
The equation of the line is .
Question
Find the gradient of the line through the points and .
Question
A line passes through and . Find its equation.
Question
Find the equation of the line parallel to that passes through .
Question
A taxi charges a fixed $3, plus $2 for every kilometre. Write an equation for the cost, and find the cost of an 8 km trip.
Step-by-step solution
Step 1
The fixed $3 is the -intercept, and the $2 per km is the gradient.
Step 2
Let be the cost and the distance. The equation is:
The important words for linear functions and graphs and what they mean — learn these so you can explain your thinking clearly.
A relationship between two quantities whose graph is a straight line.
A measure of the steepness of a line: the change in divided by the change in .
Example
A line rising 6 for every 2 across has a gradient of 3.
The -value where a line crosses the -axis; the value of when .
The rule that links the and values of every point on the line.
The general equation of a straight line, where is the gradient and is the -intercept.
Lines that run in the same direction and never meet; they have exactly the same gradient.
A pair of numbers that gives the position of a point on a grid.
A right-angled triangle drawn between two points on a line to read off the rise and the run.
How quickly one quantity changes compared with another; on a graph it is the gradient.
On a real-life graph, the starting value shown by the -intercept before any change happens.
The -value where a line crosses the -axis; the value of when .
The point where the -axis and -axis cross.
The slip-ups students most often make with linear functions and graphs — and simple ways to avoid them.
Why it happens
The order of the division is easy to mix up.
How to avoid it
Always divide the change in by the change in , in that order — 'up over across'.
Why it happens
Both and are just numbers, so they get confused.
Why it happens
Parallel lines look similar, so all their numbers seem to match.
How to avoid it
Parallel lines need only the same gradient. Their intercepts are usually different.
Why it happens
The gradient feels like the main result, so the work seems done.
How to avoid it
The equation is not complete without . Substitute a point and solve for it.
Why it happens
Any two points on the line seem equally good.
How to avoid it
Pick step-triangle points where the line passes exactly through grid corners for an accurate reading.
All rights reserved
©2026 Tutopiya
All resources on this platform are independently created by Tutopiya and have no endorsement from the International Baccalaureate Organization.
This year you work the other way. Given a graph, or even just two points, you will find the equation yourself.
Why does this matter? In the real world, a graph often comes first — you measure data, plot it, and see a straight line. Finding its equation lets you make predictions and compare relationships.
Keep your Grade 7 toolkit close — gradient, intercept and are still the heart of everything here.
For the gradient, draw a step triangle between two clear points on the line. Count the rise, count the run, and divide. If the line goes up 4 for every 2 across, .
For the intercept, simply look where the line crosses the -axis. If it crosses at 1, then .
Putting the two together, the equation is .
A couple of careful points:
Once you have and , just slot them into .
Step one — find the gradient. The gradient is the change in divided by the change in :
Step two — find the intercept. You know , so the equation so far is . Substitute one of the points — say — and solve for :
So the full equation is . Always check with the other point: — correct.
This two-step method works for any pair of points on a straight line.
This makes some questions quick to answer. If a line is parallel to and passes through , you already know its gradient is 4. Then find as before: gives , so the line is .
The opposite is also worth knowing: lines with different gradients are not parallel — they will cross at exactly one point somewhere.
To interpret a graph fully, describe the story in words: the starting amount, the rate of change, and what happens where lines cross.
Later you will meet curved graphs, but the language of gradient and intercept you sharpen here stays useful throughout.
If graph work feels hard later, it is usually the gradient calculation between two points that needs a refresh. Come back to this guide whenever you need it — there is no prize for rushing.
Step-by-step solution
Step 1
Find the change in between the two points.
Step 2
Find the change in between the two points.
Step 3
Divide the change in by the change in .
Answer
The gradient of the line is 3.
Step-by-step solution
Step 1
Find the gradient from the two points.
Step 2
Write , then substitute the point .
Step 3
Solve for .
Step 4
Check with the other point: — correct.
Answer
The equation of the line is .
Step-by-step solution
Step 1
Parallel lines share a gradient, so this line also has gradient 5.
Step 2
Write , then substitute the point .
Step 3
Solve for .
Answer
The equation of the parallel line is .
Step 3
Substitute for an 8 km trip.
Step 4
Work out the cost.
Answer
The cost equation is , and an 8 km trip costs $19.
How to avoid it
The gradient is the number multiplying . In , the gradient is 3, not 5.