Graphs of functions

Maths · Algebra and graphs. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths topics

The graph of y = x squared minus 2x drawn on a grid for x from −2 to 4: a U-shaped curve.
The graph of y = x squared minus 2x drawn on a grid for x from −2 to 4: a U-shaped curve.

The idea

To draw the graph of a function, make a table of values, plot the points and join them with a smooth curve. You should know the shapes: a quadratic is a U or an upside-down U, a cubic has an S shape, a reciprocal graph such as y = 6/x has two separate branches, and an exponential graph such as y = 2x rises faster and faster.

Graphs solve equations. The solutions of f(x) = 0 are the x-values where the curve crosses the x-axis. To solve a different equation, draw a suitable straight line and read the x-values where it meets the curve.

The gradient of a curve at a point is the gradient of the tangent drawn there.

In simpler words

To draw a graph of a function, work out y for several values of x, plot the points and join them with a smooth curve. Learn the shapes: a quadratic is a U, a cubic is an S, a reciprocal has two separate curved pieces, and an exponential climbs faster and faster. Where the curve crosses the x-axis, y is zero, so those x-values solve f(x) = 0.

An everyday comparison

A table of values is like a dot-to-dot picture. The more dots you plot, the clearer the shape, and joining them with a smooth curve is like drawing the outline freehand instead of with a ruler. Solving f(x) = k is like laying a horizontal rod across the picture at height k and reading where it touches the outline. The comparison stops at gaps: dot-to-dot never skips a point, but a reciprocal graph has no point at x = 0.

Rules to remember

Common mistake

In a table of values, a negative x must be squared with brackets: (−2)2 = +4, not −4. Also join points with a smooth curve, never with a ruler.

In the exam

Fill every gap in the table, squaring negatives in brackets. Plot each point as a small cross and join with one smooth curve, no ruler. To solve an equation, show the rearrangement that leaves the drawn function on one side and write 'draw y = ...' for the other. Draw the line, mark the crossings and write x = ... for each. For a gradient, draw the tangent, take two far-apart points on it, write change in y ÷ change in x and give the value.

Worked example

The graph of y = x3 − 2x is drawn. Which straight line must be drawn to solve x3 − 3x − 1 = 0?

  1. The left side must become x3 − 2x, so add x + 1 to both sides.
  2. Left: x3 − 3x − 1 + x + 1 = x3 − 2x. Right: 0 + x + 1 = x + 1.
  3. So x3 − 2x = x + 1. Draw y = x + 1 and read the x-coordinates where it meets the curve.

Answer: The line y = x + 1

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Read the full notes

Keep going

← Graphs in practical situationsSketching curves →Take a Maths test