IGCSE / O Level Mathematics · Topic 2 Algebra and graphs · Chapter 18 · pp. 193–218
Graphs of functions
A graph turns an equation into a picture. Make a table of values, plot the points and join them with a smooth curve, and you can read off solutions, turning points and gradients without solving anything by algebra. The shape of the curve tells you the type of function before you plot a single point.
Learning objectives
- Construct a table of values and plot the graph of a quadratic function.
- Solve quadratic equations by reading where a graph crosses the x-axis or a line.
- Find the turning point of a quadratic from its completed square form. (Extended)
- Plot reciprocal, cubic and exponential graphs, and recognise each type by its shape.
- Estimate the gradient of a curve by drawing a tangent. (Extended)
- Solve equations by drawing a line on a graph, and sketch functions from their key points. (Extended)
Book exercises: 18.1 to 18.11 and Student assessments 1 to 3 (pp. 193–218).
Quadratic graphs
🔑 Key ideas
- A quadratic function has the form y = ax2 + bx + c, where a, b and c are constants and a ≠ 0.
- Its graph is a smooth curve called a parabola.
- a > 0 gives a ∪ shape. a < 0 gives an ∩ shape.
- A parabola is symmetrical: the y values in the table repeat either side of the turning point.
| x | −4 | −3 | −2 | −1 | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|---|---|---|---|
| y = x2 | 16 | 9 | 4 | 1 | 0 | 1 | 4 | 9 | 16 |
| y = −x2 | −16 | −9 | −4 | −1 | 0 | −1 | −4 | −9 | −16 |
📘 Example 1 · Plot y = x2 − 5x + 6 for 0 ≤ x ≤ 5
- List the x values: 0, 1, 2, 3, 4, 5.
- Substitute each one. For x = 1: 12 − 5(1) + 6 = 1 − 5 + 6 = 2.
- For x = 4: 42 − 5(4) + 6 = 16 − 20 + 6 = 2. The values are symmetrical, as expected.
- The full table: y = 6, 2, 0, 0, 2, 6.
- Plot the six points and join them with a smooth ∪-shaped curve (a > 0).
- Check: the curve dips below the x-axis between x = 2 and x = 3. At x = 2.5, y = 6.25 − 12.5 + 6 = −0.25. ✔
📘 Example 2 · Table of values for y = −x2 + x + 2, −3 ≤ x ≤ 4
- Bracket negative x values. x = −3: −(−3)2 + (−3) + 2 = −9 − 3 + 2 = −10.
- Careful: −x2 means −(x2), so −(−3)2 = −9, not +9.
- x = 0: −0 + 0 + 2 = 2. x = 2: −4 + 2 + 2 = 0.
- Full table for x = −3 to 4: y = −10, −4, 0, 2, 2, 0, −4, −10.
- a = −1 < 0, so the curve is ∩-shaped. Its highest point is between x = 0 and x = 1.
📘 Example 3 · Find y for y = 2x2 − 2x − 3 when x = −2 and x = −1
- x = −2: 2(−2)2 − 2(−2) − 3.
- Square first: (−2)2 = 4, so 2 × 4 = 8.
- −2(−2) = +4, so y = 8 + 4 − 3 = 9.
- x = −1: 2(1) + 2 − 3 = 1.
🧪 Try it: function plotter
Pick a type, set the numbers and the x range. The plotter builds the table of values, draws the graph and lists its key features.
✏️ Try it
- For y = x2 + x − 2, find y when x = −3, x = 0 and x = 2.
- Is the graph of y = −x2 + 2x + 3 ∪-shaped or ∩-shaped? Find y when x = 4.
- For y = x2 − 2x − 15, find y when x = −4.
Answers
1. 9 − 3 − 2 = 4; −2; 4 + 2 − 2 = 4 · 2. ∩ (a = −1 is negative); −16 + 8 + 3 = −5 · 3. 16 + 8 − 15 = 9
Graphical solution of a quadratic equation
🔑 Key ideas
- On the x-axis, y = 0. So the solutions of ax2 + bx + c = 0 are the x values where the graph of y = ax2 + bx + c crosses the x-axis.
- One graph can solve many equations: rearrange the new equation so one side is the function you plotted, then draw the other side as a line.
- The solutions are the x values where the curve and the line cross. Read them to 1 d.p.
- No crossing points means no real solutions.
📘 Example 4 · Use the graph of y = x2 − 4x + 3 to solve x2 − 4x + 3 = 0
- Table for −2 ≤ x ≤ 5: y = 15, 8, 3, 0, −1, 0, 3, 8.
- Plot and join the points (the graph above).
- The equation says y = 0, so look where the curve crosses the x-axis.
- It crosses at x = 1 and x = 3.
- Check: 1 − 4 + 3 = 0 ✔ and 9 − 12 + 3 = 0 ✔.
📘 Example 5 · Use the same graph to solve x2 − 4x + 1 = 0
- The plotted function is x2 − 4x + 3. The new equation has + 1 instead of + 3.
- Add 2 to both sides: x2 − 4x + 3 = 2.
- So draw the line y = 2 on the same axes.
- Read the x values where the line meets the curve: x ≈ 0.3 and x ≈ 3.7.
- Check: 0.32 − 4(0.3) + 1 = 0.09 − 1.2 + 1 = −0.11, close to 0. ✔
📘 Example 6 · Use the same graph to solve x2 − 4x = 0
- Add 3 to both sides: x2 − 4x + 3 = 3.
- Draw the line y = 3.
- It meets the curve at x = 0 and x = 4.
- Check by factorising: x(x − 4) = 0 gives x = 0 or x = 4. ✔
✏️ Try it
- Where does the graph of y = x2 − x − 6 cross the x-axis?
- Which line would you draw on the graph of y = x2 − 4x + 3 to solve x2 − 4x − 2 = 0? Estimate the solutions.
- Use the graph above to explain why x2 − 4x + 5 = 0 has no solutions.
Answers
1. x = −2 and x = 3 · 2. Add 5: x2 − 4x + 3 = 5, so draw y = 5. x ≈ −0.4 and x ≈ 4.4 · 3. It becomes x2 − 4x + 3 = −2. The line y = −2 is below the curve's lowest point (y = −1), so they never cross.
The completed square form and the turning point Extended
🔑 Key ideas
- A quadratic can be written in completed square form: y = a(x − b)2 + c. For example, y = x2 + 6x − 4 = (x + 3)2 − 13.
- You can plot it straight from this form: there is no need to expand the brackets.
- The turning point is at (b, c). Watch the sign: (x + 3)2 means b = −3.
- a > 0: ∪ shape, the turning point is a minimum. a < 0: ∩ shape, it is a maximum.
📘 Example 7 · Plot y = (x − 4)2 + 2 for 0 ≤ x ≤ 6 and give its turning point
- Work inside the bracket first. x = 0: (0 − 4)2 + 2 = 16 + 2 = 18.
- x = 1: (−3)2 + 2 = 11. x = 2: (−2)2 + 2 = 6.
- Full table for x = 0 to 6: y = 18, 11, 6, 3, 2, 3, 6.
- Plot and join: a ∪ shape, because a = 1 is positive.
- The lowest point is at x = 4, y = 2: the turning point is a minimum at (4, 2).
- Check with the rule: (x − b)2 + c with b = 4, c = 2 gives (4, 2). ✔
📘 Example 8 · Turning point of y = −2(x − 5)2 + 30, without plotting
- Match to a(x − b)2 + c: a = −2, b = 5, c = 30.
- a is negative, so the curve is ∩-shaped and the turning point is a maximum.
- Answer: maximum at (5, 30).
- Check: (x − 5)2 is never negative, so −2(x − 5)2 is at most 0. y is largest, 30, when x = 5. ✔
📘 Example 9 · Turning point of y = x2 + 6x − 4
- Halve the x coefficient: 6 ÷ 2 = 3, so start with (x + 3)2 = x2 + 6x + 9.
- That has + 9 but we need − 4, so subtract 13: y = (x + 3)2 − 13.
- (x + 3) = (x − (−3)), so b = −3 and c = −13.
- a = 1 > 0, so the answer is a minimum at (−3, −13).
✏️ Try it
- Give the turning point of y = (x + 3)2 − 6. Is it a maximum or a minimum?
- Give the turning point of y = −(x − 2)2 + 3. Is it a maximum or a minimum?
- For y = 2(x − 1)2 − 3, find y when x = 3, and write down the turning point.
Answers
1. (−3, −6), minimum · 2. (2, 3), maximum · 3. 2(2)2 − 3 = 5; minimum at (1, −3)
The reciprocal function
🔑 Key ideas
- A reciprocal function has the form y = . Its graph is a hyperbola.
- x = 0 has no y value (you cannot divide by 0), so the table has a gap there and the graph comes in two separate branches.
- Never join the two branches across the y-axis.
| x | −4 | −3 | −2 | −1 | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|---|---|---|---|
| y = 2/x | −0.5 | −0.7 | −1 | −2 | — | 2 | 1 | 0.7 | 0.5 |
Types of graph Extended
Graphs of f(x) = axn take a different shape for each value of n. Learn to name them on sight.
📘 Example 10 · Plot y = 2x2 for −3 ≤ x ≤ 3
- Square first, then double. x = −3: 2 × 9 = 18. x = −2: 2 × 4 = 8. x = −1: 2 × 1 = 2.
- x = 0 gives 0, and the positive x values repeat the pattern.
- Table: y = 18, 8, 2, 0, 2, 8, 18.
- n = 2, so it is a quadratic: a ∪-shaped parabola, narrower than y = x2.
Exponential functions Extended
🔑 Key ideas
- An exponential function has the form y = ax: the x is in the index.
- Every graph y = ax passes through (0, 1), because a0 = 1.
- For negative x, a−x = , which gets closer and closer to 0. The x-axis is an asymptote.
📘 Example 11 · Table of values for y = 2x, −3 ≤ x ≤ 3
- x = 0: 20 = 1.
- Positive x: 21 = 2, 22 = 4, 23 = 8.
- Negative x mean “one over”: 2−1 = 0.5, 2−2 = 0.25, 2−3 = 0.125.
- Table: y = 0.125, 0.25, 0.5, 1, 2, 4, 8.
- Check: each step right doubles y. ✔
✏️ Try it
- For y = , find y when x = −4 and when x = 0.5.
- For f(x) = 3x, find f(−2) as a fraction and a decimal (2 d.p.).
- Name the type of graph for f(x) = 2x3 and for f(x) = x−2.
Answers
1. −0.5 and 4 · 2. ≈ 0.11 · 3. Cubic curve; reciprocal (both branches above the x-axis)
Gradients of curves Extended
🔑 Key ideas
- A straight line has one gradient everywhere: .
- A curve's gradient changes from point to point.
- The gradient of a curve at a point = the gradient of the tangent at that point. A tangent is a straight line that just touches the curve there.
- Pick two points on the tangent far apart: the answer is more accurate.
📘 Example 12 · Gradient of y = 2x2 at x = 1
- Find the point: x = 1 gives y = 2(1)2 = 2, so (1, 2).
- Draw the tangent at (1, 2) with a ruler: it touches the curve there and nowhere else nearby.
- Choose two points on the tangent: (0, −2) and (3, 10).
- Gradient = = = 4.
Solving equations by graphical methods Extended
The same trick as before works for any curve: rearrange so one side is the plotted function, then draw the other side as a line.
📘 Example 13 · Use the graph of y = 3x2 − x − 2 to solve 3x2 − 7 = 0
- First, 3x2 − x − 2 = 0 is where the curve crosses the x-axis: x ≈ −0.7 and x = 1.
- For 3x2 − 7 = 0, we need the left side to be 3x2 − x − 2.
- Subtract x from both sides: 3x2 − x − 7 = −x.
- Add 5 to both sides: 3x2 − x − 2 = −x + 5.
- Draw the line y = −x + 5 and read the crossing points: x ≈ −1.5 and x ≈ 1.5.
- Check: x2 = 7 ÷ 3 ≈ 2.33, so x ≈ ±1.53. ✔
📘 Example 14 · Use the graph of y = + x to solve x2 − x = 1
- Table for −4 ≤ x ≤ 4 (no value at x = 0): −4.25, −3.3, −2.5, −2, —, 2, 2.5, 3.3, 4.25.
- The graph never touches the x-axis, so + x = 0 has no solution.
- For x2 − x = 1, divide both sides by x: x − 1 = .
- Add x to both sides: 2x − 1 = + x.
- Draw y = 2x − 1 and read the crossings: x ≈ −0.6 and x ≈ 1.6.
- Check: 1.62 − 1.6 = 2.56 − 1.6 = 0.96 ≈ 1. ✔
✏️ Try it
- A tangent to a curve passes through (1, 3) and (3, 11). What is the gradient of the curve at that point?
- The tangent to y = x2 at x = 1 passes through (0, −1) and (2, 3). Find the gradient at x = 1.
- You have the graph of y = x3 + x − 2. Which line do you draw to solve x3 = 7 − x?
Answers
1. = 4 · 2. = 2 · 3. Add x − 2 to both sides: x3 + x − 2 = 5, so draw y = 5.
Recognising and sketching functions Extended
🔑 Key ideas
- A plot uses a table of values on graph paper. A sketch shows only the shape and the key points, and is much quicker.
- Every sketch shows where the graph crosses both axes.
- Quadratics: if the curve never meets the x-axis, show the turning point instead.
- Reciprocal and exponential graphs: show the asymptotes, dotted if they are not the axes.
| Type | Shape | What to label |
|---|---|---|
| Linear y = mx + c | Straight line | Both intercepts |
| Quadratic | ∪ if x2 term positive, ∩ if negative | Intercepts; turning point if it misses the x-axis |
| Cubic | Rises overall if x3 term positive, falls if negative; up to 3 x-intercepts | Both intercepts; a repeated root just touches |
| Reciprocal , | Two branches | Asymptotes |
| Exponential ax | Through (0, 1), flat on one side | y-intercept, asymptote |
📘 Example 15 · Sketch y = −3x + 5
- y-axis: put x = 0, so y = 5.
- x-axis: put y = 0, so 0 = −3x + 5, 3x = 5, x = ≈ 1.67.
- Gradient −3 is negative, so the line slopes down to the right.
- Sketch: a straight line through (0, 5) and (, 0).
📘 Example 16 · Sketch y = x2 − 8x + 15
- y-axis: x = 0 gives y = 15.
- x-axis: x2 − 8x + 15 = 0 factorises to (x − 3)(x − 5) = 0, so x = 3 or x = 5.
- The x2 term is positive, so the curve is ∪-shaped.
- Turning point: halfway between the roots, x = 4. Then y = 16 − 32 + 15 = −1.
- Sketch through (0, 15), (3, 0), (5, 0), with a minimum at (4, −1).
📘 Example 17 · Sketch y = −x2 − 4x − 9
- y-axis: x = 0 gives y = −9.
- x-axis: −x2 − 4x − 9 = 0 does not factorise, and the quadratic formula gives no solutions (b2 − 4ac = 16 − 36 < 0). The curve never meets the x-axis.
- So find the turning point. Completed square: y = −(x + 2)2 − 5, giving (−2, −5).
- The x2 term is negative, so the curve is ∩-shaped with a maximum at (−2, −5), crossing the y-axis at (0, −9).
📘 Example 18 · Sketch y = (x − 2)(x − 3)(x − 5)
- y-axis: x = 0 gives (−2)(−3)(−5) = −30.
- x-axis: (x − 2)(x − 3)(x − 5) = 0, so x = 2, 3 or 5.
- Expanding would give +x3, so the curve rises overall from bottom left to top right.
- Sketch through (0, −30), (2, 0), (3, 0), (5, 0).
📘 Example 19 · Sketch y = (−x + 1)(x2 − 6x + 9)
- y-axis: x = 0 gives (1)(9) = 9.
- Factorise the quadratic: x2 − 6x + 9 = (x − 3)2.
- So (−x + 1)(x − 3)2 = 0 gives x = 1 or x = 3 (a repeated root).
- Expanding would give −x3, so the curve falls overall from top left to bottom right.
- The repeated root means the curve just touches the x-axis at x = 3. It crosses at x = 1 and meets the y-axis at (0, 9).
📘 Example 20 · Sketch y = + 2 and give its asymptotes
- Start from y = : both branches above the x-axis, asymptotes x = 0 and y = 0.
- + 2 adds 2 to every y value, so the whole graph moves up 2 units.
- The horizontal asymptote moves up too: y = 2 (draw it dotted). The vertical asymptote is still the y-axis.
📘 Example 21 · Recognise y = 2x against y = −2x
- y = 2x: passes through (0, 1), rises steeply to the right, and flattens onto the x-axis to the left.
- y = −2x makes every y value negative: it is the same curve reflected in the x-axis.
- So y = −2x passes through (0, −1), falls steeply to the right, and its asymptote is still y = 0.
✏️ Try it
- Where does the line y = 2x − 4 cross each axis?
- For y = (x − 4)(x − 6), give the intercepts and the turning point.
- For y = 2x − 4, give the y-intercept, the x-intercept and the asymptote.
Answers
1. (0, −4) and (2, 0) · 2. (0, 24), (4, 0), (6, 0); minimum at (5, −1) · 3. (0, −3); 2x = 4 gives (2, 0); asymptote y = −4
Chapter summary
- Plot a curve from a table of values, bracketing negative x values, and join the points with a smooth curve.
- Quadratic y = ax2 + bx + c: a parabola, ∪ if a > 0 and ∩ if a < 0.
- Solutions of f(x) = 0 are where the graph crosses the x-axis. For other equations, make one side f(x) and draw the other side as a line.
- y = a(x − b)2 + c has its turning point at (b, c): a minimum if a > 0, a maximum if a < 0.
- Reciprocal : a hyperbola with two branches and asymptotes. Cubic: up to three x-intercepts. Exponential ax: through (0, 1) with the x-axis as an asymptote.
- Gradient of a curve = gradient of the tangent at that point.
- A sketch shows the shape, the intercepts and, where needed, the turning point and asymptotes.
📄 Practice questions
The book's Exercises 18.1 to 18.11 and Student assessments 1 to 3 are in the printable assignment for this chapter.
Mini-quiz
Source: Cambridge IGCSE Mathematics Core and Extended (4th edition, Pimentel and Wall), Chapter 18 (Graphs of functions). Explanations, the Try it answers, the tool and the quiz are Guru Jazzy's own. This page is not made or endorsed by Cambridge or Hodder Education.