Tables of values and graphs of functions · Mathematics… | StemPy Lab
Course 18.3·Lesson 1 of 3
Tables of values and graphs of functions
A rule such as y = x squared minus 2x minus 3 becomes a curve when you make a table of values and plot it. You draw straight lines, parabolas and reciprocal curves, and, in the Extended content, cubics and exponentials. You then use the graphs to solve equations, by the roots, by a horizontal line, and by where a line meets a curve.
about 25 min1 simulation1 practice question
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
Parts of this chapter are marked Extended. They are tested only on the Extended papers of Cambridge IGCSE Mathematics. If you sit the Core papers, you can read them as a stretch.
From a rule to a curve
A rule such as y=x2−2x−3 gives a value of y for every x. To see all the pairs at once, we draw the graph.
Make a table of values. Choose a sensible range of x, with negative numbers, zero and positive numbers.
Work out each y carefully. Put each negative number in brackets.
Plot the points as small crosses.
Join them. Use a ruler for a straight line. For a curve, draw one smooth line by hand, with no corners and no flat tops.
For y=x2−2x−3:
x
−1
0
1
2
3
y
0
−3
−4
−3
0
A graph of the parabola y equals x squared minus 2x minus 3 for x from minus 2 to 4. Seven red points from the table are marked: (minus 2, 5), (minus 1, 0), (0, minus 3), (1, minus 4), (2, minus 3), (3, 0) and (4, 5). A dashed vertical line at x equals 1 shows the axis of symmetry. A straight green line, y equals 1 minus x, crosses the curve at about x equals minus 1.56 and x equals 2.56.
The curve is a parabola. It is symmetric about the line x=1. Its lowest point is (1,−4). It meets the x-axis at x=−1 and x=3, and the y-axis at y=−3.
The standard types
Core content. You must be able to tabulate and draw three kinds of function.
A straight line, y=ax+b. For example y=2x−3. The gradient is a and the line meets the y-axis at b. Two points are enough, and a third is a check.
A parabola, y=±x2+ax+b. The sign of x2 decides the shape. With +x2 the curve is a U shape with a lowest point. With −x2 it is an upside-down U with a highest point.
A reciprocal curve, y=xa, with x=0. For y=x6 the points (1,6), (2,3), (3,2) and (6,1) are on one branch, and (−1,−6), (−2,−3), (−3,−2) and (−6,−1) on the other. The graph has two separate branches and never touches either axis. Do not join them, and do not try x=0.
Extended content. The same method works for more functions.
Powers, y=axn, with n=−2,−1,−21,0,21,1,2,3, and sums of up to three of these. Examples are y=x3+x−4 and y=2x+x23.
Exponential functions, y=abx+c. For example y=4×2x. The graph rises faster and faster, and it never goes below the horizontal axis.
Growth and decay. A culture of 50 bacteria doubles every hour, so N=50×2t. After 0,1,2,3 hours there are 50,100,200,400 bacteria. A car that loses one fifth of its value each year has value V=V0×0.8t. The first is growth and the second is decay.
Solving equations from graphs
A graph solves several kinds of equation. The chapter on Quadratic Equations solves the same equations by factorising and by the formula, which gives exact answers to check a graph against.
f(x)=0. The solutions are the x-values where the curve meets the x-axis. These are the roots. For x2−2x−3=0 they are −1 and 3.
f(x)=k. Draw the horizontal line y=k. The x-values of the points where it meets the curve are the solutions.
f(x)=g(x). Draw both graphs. The x-values where they meet are the solutions. To solve x2−2x−3=1−x, draw the curve and the line y=1−x. They meet at x≈−1.56 and x≈2.56.
A graph gives answers that are as accurate as the drawing. In an exam you say "approximately" and give one or two decimal places.
When there is no graph, a change of sign finds a root. For f(x)=x3+x−4 we have f(1)=−2 and f(2)=6. The sign changes, so a root lies between 1 and 2. Then f(1.3)=−0.503 and f(1.4)=0.144, so the root is between 1.3 and 1.4, close to 1.38.
Practise with new numbers
Try it in Python
The program makes a table of values for f(x)=x3+x−4. Then it narrows the root by halving the gap, again and again, while the sign changes.
Common mistakes
Joining the two branches of y=xa. They are separate, and x=0 is not allowed.
Using a ruler for a curve. Draw a smooth curve through the points.
Dropping a bracket. For x=−3 in x2+3x, the value is (−3)2+3(−3)=0, not −18.
Giving y-values as solutions. The solutions of an equation are x-values.
Quoting a graph reading too exactly. A graph gives an estimate, so give an approximate value.
Remember these
Table, plot, smooth curve. Check the points with the shape you expect.
Roots: where the curve meets the x-axis. f(x)=k: use the line y=k.
f(x)=g(x): the x-values where the two graphs meet.
A change of sign between two x-values means a root lies between them.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Find y when x=−2 for y=3−x2.
What does the graph of y=x5 look like?
The graph of y=x2−2x−3 is drawn. Where does it meet the line y=5?
For f(x)=x3+x−4, f(1)=−2 and f(2)=6. What does this tell you?
Extended. A culture is N=50×2t bacteria after t hours. After how many whole hours does it first exceed 1000?
References
Cambridge International, IGCSE Mathematics 0580 syllabus (2025, 2026 and 2027), section 2.10 Graphs of functions (Core and Extended).
Enroll free in Graphs of Functions and Function Notation
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.