Skip to content
MathClicksIGCSE← All notes Cambridge IGCSE® Mathematics 0580 Extended Chapter 18 — Curved Graphs

18.3  Using Graphs to Solve Equations

Solving equations with graphs — where a curve meets the x-axis, where it meets a line, and the rearrangement trick that turns a new equation into a line on a graph you already have.

Roots: where the curve meets the x-axis

A graph is a picture of every solution at once. The graph of y = f(x) is the set of all points whose coordinates satisfy the equation — so any question about f(x) can be answered by looking at the graph, provided you know where to look. The most important place is the x-axis.

Key idea On the x-axis, y = 0. So the solutions (the roots) of f(x) = 0 are exactly the x-coordinates of the points where the graph of y = f(x) crosses or touches the x-axis.
f(x) = 0  ⇔  graph of y = f(x) meets the x-axis Roots are read off the x-axis

y = x² − 2x − 3 crosses the x-axis at x = −1 and x = 3

x y -2 -1 1 2 3 4 4 2 -2 -4 y = x²-2x-3 x = -1 x = 3 (0, -3)

Reading the diagram: the curve cuts the x-axis at (−1, 0) and (3, 0), so the equation x² − 2x − 3 = 0 has solutions x = −1 and x = 3. The green point (0, −3) is the y-intercept — useful for sketching, but it is not a root.

Why this works A point lies on the curve when its coordinates satisfy y = x² − 2x − 3, and it lies on the x-axis when y = 0. A point doing both at once satisfies 0 = x² − 2x − 3 — which is precisely the equation you are solving.
Example 1The graph of y = x² − 2x − 3 is drawn above. (a) Use the graph to solve x² − 2x − 3 = 0. (b) Check your answer by factorising.
1
(a) Find where the curve meets the x-axis and read off the x-coordinates only. curve crosses at (-1, 0) and (3, 0)  →  x = -1  or  x = 3
2
(b) Factorise: find two numbers that multiply to −3 and add to −2. They are −3 and +1. x² − 2x − 3 = (x − 3)(x + 1)
3
Set each bracket to zero — the algebra agrees with the graph. x − 3 = 0 → x = 3     x + 1 = 0 → x = −1
x = −1  or  x = 3
Exam tip When a question says “use your graph”, the mark scheme accepts a small tolerance (usually ±0.1) on each reading — but it must come from your graph, so draw the curve carefully and mark the crossing points.

Where a curve meets a line

Roots are just the special case where the “other graph” is the x-axis. In general, to solve f(x) = g(x) you draw both graphs on the same axes and find their points of intersection. At an intersection point the two graphs share the same x and the same y — so that value of x makes f(x) and g(x) equal.

Key idea The solutions of f(x) = g(x) are the x-coordinates of the points where the graphs of y = f(x) and y = g(x) intersect.
Watch out The y-coordinates are not the answer. If the curve and line cross at (4, 8) and (−1, 3), the solutions of the equation are x = 4 and x = −1 — full stop. Writing “x = 4, y = 8” is only correct when the question asks for the coordinates of the intersection points (as simultaneous equations questions do).

Intersection explorer

The curve y = x² − 2x is fixed. Choose a line y = mx + c and watch which equation the crossing points solve. Try m = 1, c = 4 (two solutions), m = 2, c = −4 (a tangent) and m = 0, c = −3 (no solutions).

x y -3 -2 -1 1 2 3 4 5 8 6 4 2 -2 -4 y = x²-2x
Exam tip Before reaching for a ruler, count the intersection points. If the line crosses the curve twice, the examiner expects two x-values — a single answer loses a mark even if it is one of the correct readings.

The rearrangement trick: one graph, many equations

This is the skill Paper 4 loves. You have carefully plotted y = f(x) — and then part (c) asks you to solve a different equation, one you have not drawn. You are not expected to plot a new curve. Instead, rearrange the new equation until your drawn curve appears on one side; whatever is left on the other side is the straight line you add to your grid.

new equation  →  f(x) = (straight line)  →  draw the line, read the x-values Rearrange so the drawn curve stands alone

Suppose the curve y = x² − 3x is already drawn.

Solve x² − 3x − 2 = 0

Add 2 to both sides so the left side becomes the drawn curve:

x² − 3x = 2

Draw the horizontal line y = 2 and read the x-values where it crosses the curve.

Solve x² − 4x + 1 = 0

Add x and subtract 1 on both sides to rebuild x² − 3x:

x² − 3x = x − 1

Draw the line y = x − 1 and read off the crossing x-values.

Both lines drawn on the graph of y = x² − 3x

x y -1 1 2 3 4 4 2 -2 y = x²-3x y = 2 x≈-0.6 x≈3.6 y = x-1 x≈0.3 x≈3.7 (1.5, -2.25)
Example 2The graph of y = x² − 3x is drawn for −1 ≤ x ≤ 4. By drawing a suitable straight line, solve (a) x² − 3x − 2 = 0 and (b) x² − 4x + 1 = 0.
1
(a) Rearrange the target so the drawn curve stands alone on the left. Add 2 to both sides. x² − 3x − 2 = 0  →  x² − 3x = 2
2
The left side is the drawn curve, so draw the line y = 2 and read the crossing x-values from the diagram above. x ≈ −0.6  and  x ≈ 3.6
3
(b) Rebuild x² − 3x on the left: the target has −4x, so add x to both sides; it has +1, so subtract 1 from both sides. x² − 4x + 1 = 0
x² − 3x + 1 = x   (added x)
x² − 3x = x − 1   (subtracted 1)
4
Draw y = x − 1 (it passes through (0, −1) and (1, 0)) and read the crossings. x ≈ 0.3  and  x ≈ 3.7
(a) x ≈ −0.6, 3.6     (b) x ≈ 0.3, 3.7
Why this works The exact answers are x = (3 ± 17)/2 for (a) and x = 2 ± 3 for (b) — graph readings to 1 decimal place are exactly what the mark scheme expects.
Exam tip Write the rearrangement and the line’s equation on your answer, e.g. “drawing y = x − 1”. The method mark is for the line — you keep it even if your curve is slightly wobbly and your readings drift.
Watch out The line you draw depends on both equations — the one drawn and the one to solve. Students lose marks by memorising “draw y = 2” style answers. Always do the rearrangement on paper: move terms until the drawn expression appears, and whatever is left over is the line.

Line meets curve: graphically and algebraically

A straight line and a quadratic curve form a pair of simultaneous equations — one linear, one non-linear. The graph shows you the solutions; algebra confirms them exactly. You should be able to run both methods and check one against the other.

Graphically

  1. Draw the curve and the line on the same grid.
  2. Mark every intersection point.
  3. Read off the coordinates — for simultaneous equations you give both x and y for each point.

Algebraically (substitution)

  1. Substitute the line into the curve: set curve = line.
  2. Rearrange to … = 0 and solve the quadratic (factorise or use the formula).
  3. Substitute each x back into the linear equation to find its y.

How many solutions? Count the crossings

PictureIntersectionsSolutions of curve = lineDiscriminant of the quadratic
Line cuts the curve2 points2 solutionsb² − 4ac > 0
Line just touches the curve (tangent)1 point1 repeated solutionb² − 4ac = 0
Line misses the curve0 pointsno real solutionsb² − 4ac < 0
Why this works Substituting the line into the curve always produces a quadratic, and a quadratic has 2, 1 or 0 real roots according to its discriminant. Every algebraic case is a picture: two crossings, a tangent, or a miss. Try all three in the intersection explorer above.

More worked examples

Example 3The graph of y = x² + 2x has been drawn. Find the equation of the straight line that should be drawn to solve x² + x − 5 = 0.
1
Compare the target with the drawn curve. The curve has +2x; the target has +x, so add x to both sides. x² + x − 5 = 0  →  x² + 2x − 5 = x
2
The curve has no constant term, so move the −5 across by adding 5 to both sides. x² + 2x = x + 5
3
The left side is now exactly the drawn curve, so the right side is the line. Check by subtracting: (x² + 2x) − (x + 5) = x² + x − 5 ✓
Draw the line y = x + 5
Example 4Solve the simultaneous equations y = x² − 2x and y = x + 4 algebraically, and interpret the answer graphically.
1
Both right-hand sides equal y, so set them equal to each other. x² − 2x = x + 4
2
Rearrange to zero and factorise: two numbers multiplying to −4 and adding to −3 are −4 and +1. x² − 3x − 4 = 0
(x − 4)(x + 1) = 0
x = 4  or  x = −1
3
Substitute each x into the linear equation y = x + 4 (easier and safer than the quadratic). x = 4: y = 8     x = −1: y = 3
4
Graphically: the line y = x + 4 crosses the curve y = x² − 2x at the points (4, 8) and (−1, 3). Set m = 1, c = 4 in the explorer above to see it.
(x, y) = (4, 8)  and  (−1, 3)
Example 5Show that the line y = 2x − 1 is a tangent to the curve y = x², and state the coordinates of the point of contact.
1
Set curve equal to line and rearrange to zero. x² = 2x − 1  →  x² − 2x + 1 = 0
2
Check the discriminant with a = 1, b = −2, c = 1. b² − 4ac = (−2)² − 4(1)(1) = 4 − 4 = 0
3
Zero discriminant means one repeated root — the line meets the curve at exactly one point, so it is a tangent. Factorise to find it. (x − 1)² = 0  →  x = 1 (repeated)
4
Find y from the line: y = 2(1) − 1 = 1. Check on the curve: 1² = 1 ✓
tangent, touching at (1, 1)
Exam trap A repeated root does not mean “two solutions that happen to be equal — write it twice”. Graphically it is one point of contact, and the word the examiner wants is tangent. Compare: y = 2x − 4 with the same curve gives x² − 2x + 4 = 0, discriminant 4 − 16 = −12 < 0 — the line misses the curve entirely and there are no real solutions.

Your turn

Practice set

  1. The graph of y = x² − x − 6 crosses the x-axis at x = −2 and x = 3. Write down the solutions of x² − x − 6 = 0.
  2. The curve y = x² − 2x and the line y = 3 intersect at x = −1 and x = 3. Write down, in the form x² + bx + c = 0, the equation whose solutions these are.
  3. The graph of y = x² + x is drawn. Which straight line should be drawn to solve x² − 6 = 0?
  4. Solve the simultaneous equations y = x² + 1 and y = 2x + 9 algebraically.
  5. Find the value of c for which the line y = 2x + c is a tangent to the curve y = x².

  1. The roots are the crossing x-values: x = −2 or x = 3
  2. At the intersections x² − 2x = 3, so x² − 2x − 3 = 0 — check: (x − 3)(x + 1) = 0 gives x = −1, 3 ✓  x² − 2x − 3 = 0
  3. x² − 6 = 0 → x² + x = x + 6, so draw y = x + 6 (the crossings are at x = ±6 ≈ ±2.4).
  4. x² + 1 = 2x + 9 → x² − 2x − 8 = 0 → (x − 4)(x + 2) = 0, then use y = 2x + 9: (4, 17) and (−2, 5)
  5. x² = 2x + c → x² − 2x − c = 0; tangent means b² − 4ac = 0: 4 + 4c = 0 → c = −1 (touching at (1, 1)).

Key points to remember

  • The solutions of f(x) = 0 are the x-coordinates where the graph of y = f(x) meets the x-axis.
  • The solutions of f(x) = g(x) are the x-coordinates of the intersection points of the two graphs — the y-values are not the answer.
  • To solve a new equation with a graph you already have, rearrange until the drawn curve stands alone; what remains on the other side is the straight line to draw.
  • Always write down the line you drew (e.g. “y = x − 1”) — that is where the method mark lives.
  • Line and curve as simultaneous equations: substitute, rearrange to zero, solve, then find each y from the linear equation.
  • Count crossings: 2 points, 1 point (tangent), or 0 points match discriminant > 0, = 0, < 0.
  • Graphical answers are read to about 1 decimal place — mark schemes allow a small tolerance on readings from your graph.

Where next?

✅ Mark scheme All notes

Progress is saved on this device only and appears on the notes home page.