Every non-vertical straight line can be written as y = mx + c, where m is the gradient and c is the y-intercept, the point where the line crosses the y-axis. To find the equation of a line, you need m and one point on it: put them into y = mx + c and solve for c. That is the whole of Cambridge IGCSE 0580 sub-topic E3.5 in two sentences; the rest is knowing which form the question wants and avoiding a few classic slips.
Core and Extended students both study this sub-topic, but at different depths. If your child wants guided practice matched to their tier, our IGCSE Cambridge maths tutors teach from the 0580 sub-topic list.
Core and Extended: what each must do
| Skill | Core (C3.5) | Extended (E3.5) |
|---|---|---|
| Read m and c from y = mx + c | Yes | Yes |
| Find the equation from a graph | Yes | Yes |
| Vertical lines x = k | Yes | Yes |
| Rearrange and use ax + by = c | No | Yes |
| Give the equation fully simplified | Yes | Yes |
Core lines are given and requested as y = mx + c or x = k. Extended questions may switch between forms, for instance giving a line as 2x + 5y = 15 and asking for its gradient, or asking you to write your answer as ax + by = c. Before this topic, make sure gradient from two points is secure; our guide on gradient, midpoint and length covers it.
The four forms you will see
- y = mx + c. Gradient m, y-intercept (0, c). For example, y = −3x + 4 has gradient −3 and crosses the y-axis at (0, 4).
- ax + by = c. Rearrange to make y the subject before you read the gradient. Extended only.
- x = k. A vertical line through every point with x-coordinate k. It has no y = mx + c form.
- y = k. A horizontal line with gradient 0.
A quick check for the ax + by = c form: the gradient is −a/b. In 3x + y = 4, that gives −3/1 = −3, which matches y = −3x + 4. Use the shortcut to check your rearranging, not to replace it, because the working is what earns method marks.
Worked example 1: gradient and intercept from ax + by = c (Extended)
Find the gradient and the y-intercept of the line 3x − 2y = 12.
Make y the subject:
- −2y = −3x + 12
- y = (3/2)x − 6
Gradient = 3/2. y-intercept = −6, so the line crosses the y-axis at (0, −6).
A common slip is to divide only the x-term by −2 and forget the constant. Divide every term.
Worked example 2: the line through two points
Find the equation of the line through (−1, 7) and (3, −5). Give it in the form y = mx + c, then in the form ax + by = c.
Gradient: m = (−5 − 7)/(3 − (−1)) = −12/4 = −3.
Substitute one point into y = −3x + c. Using (−1, 7): 7 = 3 + c, so c = 4.
y = −3x + 4, or in the other form, 3x + y = 4.
Check with the other point: −3 × 3 + 4 = −5. ✓ Always check with the point you did not use. It takes ten seconds and catches most sign errors.
Worked example 3: the equation from a graph
A line crosses the y-axis at (0, −2) and passes through (6, 2). Find its equation.
The intercept is read straight off: c = −2.
Gradient = (2 − (−2))/(6 − 0) = 4/6 = 2/3.
y = (2/3)x − 2.
If the question asks for integer coefficients, multiply by 3: 3y = 2x − 6, or 2x − 3y = 6.
When a graph is printed, choose two points where the line crosses grid corners exactly. Reading (6, 2) is safer than estimating (5, 1.4).
Worked example 4: where two lines meet
Find where y = 2x − 1 meets x + 3y = 18. Then decide whether (−4, −9) lies on y = 2x − 1.
Substitute the first equation into the second:
- x + 3(2x − 1) = 18
- x + 6x − 3 = 18
- 7x = 21, so x = 3
Then y = 2(3) − 1 = 5. The lines meet at (3, 5). Check in the second equation: 3 + 15 = 18. ✓
For the point: 2(−4) − 1 = −9, which matches the y-coordinate, so (−4, −9) lies on the line.
This is the bridge to algebra. On a calculator paper, the same question may ask you to read the intersection from a drawn graph instead; our guide to solving simultaneous equations for IGCSE covers both routes.
Non-calculator and calculator papers
Papers 1 and 2. Straight-line questions sit naturally here. Fractions are the main hazard: gradients like 2/3 and intercepts like 7/2 must be handled without decimals, and the final equation is expected in a fully simplified form.
Papers 3 and 4. Lines are more often a tool inside something bigger: a line drawn on a curve's graph to solve an equation, a boundary of a shaded region, or a line used in a rate question. Our guide to inequalities and shaded regions shows how boundary lines are drawn solid or broken.
Mistakes our tutors see
- Reading the gradient from ax + by = c without rearranging. In 4x + 5y = 20 the gradient is −4/5, not 4.
- Mixing up m and c after rearranging, especially when the constant comes first, as in y = 7 − 2x.
- Writing y = 5 for a vertical line. A vertical line through (5, −2) is x = 5.
- Not simplifying. 2y = 6x + 4 should become y = 3x + 2.
- Losing a negative when substituting a point, such as 7 = −3 × (−1) + c becoming 7 = −3 + c.
- Skipping the check with the second point.
When to get help
Signs that this topic needs a tutor's attention:
- Equations are found correctly from two points, but questions that give the line in another form, such as 3x − 2y = 12, go wrong.
- A student cannot say, without calculating, whether a line slopes up or down from its equation.
- Graph questions on Paper 4 lose marks because lines are drawn short or from only two points.
- Rearranging is the real problem, which shows up across many topics, not just this one.
Self-check
- Find the gradient and y-intercept of 4x + 5y = 20.
- Find the equation of the line with gradient 4 through (2, 3).
- Find the equation of the line through (−3, 1) and (3, 5), in the form ax + by = c with integer coefficients.
- Write down the equation of the line through (5, −2) and (5, 7).
- Where does 2x + y = 10 cross the x-axis?
Answers. 1: y = −(4/5)x + 4, so gradient −4/5, intercept 4. 2: 3 = 8 + c gives c = −5, so y = 4x − 5. 3: gradient 4/6 = 2/3 and c = 3, so y = (2/3)x + 3, which is 2x − 3y = −9. 4: x = 5. 5: put y = 0, so (5, 0).
Where it leads
The next step is lines parallel or perpendicular to a given line, which our guide to parallel and perpendicular line equations covers. Beyond 0580, the 0606 Additional Mathematics topic on straight-line graphs asks students to turn curved relationships into straight lines and find unknown constants from the gradient and intercept; see our guide to 0606 straight lines and linear form. All of the strand's sub-topics are mapped in our IGCSE coordinate geometry strand guide.
How Maths Bodhi helps
Straight lines are a quick win when the algebra is secure and a steady leak of marks when it is not. In the free demo our tutor asks for one equation from two points and one rearrangement from ax + by = c, then shows the student where the method breaks. Lessons follow the 0580 tier the student is entered for, and written method is checked every session. Many Grade 10 families choose our Class 10 IGCSE maths tutoring for exam-year support.
Home tuition is available in Gurgaon (Gurugram). Students elsewhere in India and abroad learn with us online. You can book a free demo class.
Written and checked by the Maths Bodhi team. Facts checked against official Cambridge International and Pearson sources, November 2026.
Frequently asked questions
- What does y = mx + c mean in IGCSE maths?
- It is the equation of a straight line. m is the gradient, which tells you how steep the line is, and c is the y-intercept, the value of y where the line crosses the y-axis.
- How do you find the equation of a line from two points?
- Find the gradient from the two points, put it into y = mx + c, substitute one of the points to find c, then check the equation with the other point.
- How do you find the gradient from an equation like 2x + 5y = 15?
- Rearrange to make y the subject: 5y = −2x + 15, so y = −(2/5)x + 3. The gradient is −2/5 and the y-intercept is 3.
- Is ax + by = c in IGCSE Core?
- In the 0580 2025–2027 syllabus, Core lines are used and requested as y = mx + c or x = k. The ax + by = c form is listed for Extended.
- What is the equation of a vertical line?
- A vertical line through all points with x-coordinate k has equation x = k. It cannot be written as y = mx + c because its gradient is undefined.
- What does fully simplified mean for the equation of a line?
- It means no common factors are left and like terms are collected. For example, 4y = 8x − 12 should be written as y = 2x − 3.
