Graph transformations online

Choose a base function — x², |x|, √x, x³, 1/x or 2ˣ — and change the parameters of y = a · f(b(x − c)) + d. The graph transformations calculator shows the original graph as a dashed line and the new one as a solid line, and lists the transformations in order.

y = (x − 2)² + 1
−8 −6 −4 −2 2 4 6 8 −4 −2 2 4 xy

Drag the sliders and the graph and its properties update straight away. Drag the graph with the mouse to move it, and use the buttons in the top right to zoom in and out.

Function
y = (x − 2)² + 1

y = (x − 2)² + 1 is the graph of y = x² after the transformations listed below.

Step-by-step breakdown
  1. Step 1translation to the right by vector (2, 0)
  2. Step 2translation up by vector (0, 1)

Formula

y=a · f(b(x − c)) + d

c and d translate the graph by the vector (c, d), parallel to the x- and y-axes; b and a stretch it parallel to the x- and y-axes; and a negative b or a reflects the graph in the y- or x-axis.

How we got there

y = (x − 2)² + 1

Order matters: the calculator applies the transformations in the textbook order — first the changes inside the bracket, then those outside it.

How to transform a graph

  1. Translate parallel to the x-axis

    y = f(x − c) is a translation by the vector (c, 0): c to the right, or to the left if c < 0. y = (x − 2)² is a parabola with its turning point at (2, 0).

  2. Translate parallel to the y-axis

    y = f(x) + d is a translation by the vector (0, d): d up, or down if d < 0.

  3. Stretch

    y = a · f(x) is a stretch parallel to the y-axis, scale factor a; y = f(bx) is a stretch parallel to the x-axis, scale factor 1/b.

  4. Reflect

    y = −f(x) is a reflection in the x-axis; y = f(−x) is a reflection in the y-axis.

Graph transformations still confusing? Find a maths tutor for Year 10

Why a minus moves the graph right

For f(x − 2) to take the same value as f(0), x has to be 2. So every point on the graph moves 2 units to the right.

In the same way, f(2x) already reaches the value f(4) at x = 2, so the graph is squashed towards the y-axis: a stretch parallel to the x-axis, scale factor 1/2.

Where you need it

Graph transformations are on the GCSE Higher tier — translations and reflections of y = f(x) — and come back at A level with stretches and combined transformations: you match an equation to its graph and the other way round.

They also explain completed square form, y = a(x − p)² + q: it is the parabola y = x², translated and stretched.

Common mistakes

  • Moving the graph of f(x + 3) to the right: it actually moves 3 to the left.
  • Getting the scale factor of f(bx) the wrong way round: it is 1/b, not b, so when b > 1 the graph is squashed.
  • Translating by c before stretching by b: the result is different.

Table of values

Values of the function at a few points, so you can plot the graph by hand.

y = (x − 2)² + 1

xy
05
12
21
32
45

Frequently asked questions

To the right by 2 — a translation by the vector (2, 0) — even though there is a minus sign in the bracket: the value f had at x, the new function has at x + 2.

2f(x) is a stretch parallel to the y-axis, scale factor 2: the graph gets ‘taller’. f(2x) is a stretch parallel to the x-axis, scale factor 1/2: the graph gets ‘narrower’.

Reflect the part of the graph below the x-axis in the x-axis and leave the rest as it is. This is a separate transformation, not part of the formula on this page.

For y = a · f(b(x − c)) + d: the stretch by b (and the reflection in the y-axis if b < 0), the translation by c, the stretch by a (and the reflection in the x-axis if a < 0), then the translation by d.

Translate y = x² by 1 to the right, stretch it parallel to the y-axis with scale factor 2, and translate it 3 up. The turning point ends up at (1, 3).

Any function. This page has x², |x|, √x, x³, 1/x and 2ˣ, and there is a separate page for trig graphs.

Struggling with graphs?

Book a free introductory lesson with a Mathema tutor. 30 minutes online, no commitment — we find the gap and the plan to close it.