Interactive visualiser

Transformations of graphs

Change aa, bb, cc and dd in y=a f(b(x−c))+dy = a\,f\big(b(x-c)\big) + d and watch the graph move away from the original y=f(x)y = f(x), with two marked points tracked to their images.

Loading the visualiser…

Works on a phone, tablet or computer — nothing to install, no account.

What you are looking at

Each parameter does one job. aa stretches the graph vertically by scale factor ∣a∣|a|, bb stretches it horizontally by scale factor 1∣b∣\dfrac{1}{|b|}, and cc and dd translate it by the vector (cd)\begin{pmatrix} c \\ d \end{pmatrix}. A negative aa reflects the graph in the xx-axis and a negative bb reflects it in the yy-axis. The visualiser draws the original as a dashed curve and the transformed graph in blue, and lists the transformations in words as you move the sliders.

Two key points, AA and BB, are marked on the original graph, for example (0,0)(0, 0) and (1,1)(1, 1) on y=x2y = x^2. Dashed yellow lines join each one to its image A′A' or B′B', and the working panel applies the rule (x,y)↦(xb+c, ay+d)(x, y) \mapsto \left(\dfrac{x}{b} + c,\ ay + d\right). For y=exy = e^x it also tracks the horizontal asymptote, which moves from y=0y = 0 to y=dy = d. Animate replays the change in stages: horizontal stretch, then vertical stretch, then translation.

Try this

  1. 1With f(x)=x2f(x) = x^2, set c=3c = 3. The equation reads y=(x−3)2y = (x-3)^2 and the vertex moves to (3,0)(3, 0): a minus sign inside the bracket moves the graph to the right.
  2. 2Choose f(x)=sin⁡xf(x) = \sin x and set b=2b = 2. The graph is squeezed towards the yy-axis, B(π2,1)B\left(\dfrac{\pi}{2}, 1\right) moves to (π4,1)\left(\dfrac{\pi}{4}, 1\right), and the working names a horizontal stretch with scale factor 12\dfrac{1}{2}.
  3. 3Choose f(x)=exf(x) = e^x, then set a=−1a = -1 and d=2d = 2. The graph is reflected in the xx-axis and the yellow asymptote moves up to y=2y = 2.
  4. 4Set all four sliders away from their defaults and press Animate. The graph passes through each stage in turn, showing the order in which the transformations act for this form of the equation.

Mistakes students make

  • Moving y=f(x−3)y = f(x-3) three units to the left. It moves 3 units to the right, because xx has to be 3 larger to give ff the same input as before.
  • Reading y=f(2x)y = f(2x) as a stretch with scale factor 2. It is a horizontal stretch with scale factor 12\dfrac{1}{2}: every xx-coordinate is halved.
  • Translating y=f(2x+4)y = f(2x+4) by 4 units. Factorise first: f(2x+4)=f(2(x+2))f(2x+4) = f\big(2(x+2)\big) is a horizontal stretch with scale factor 12\dfrac{1}{2} followed by a translation 2 units to the left.

Where it is taught

  • IB Maths AA SL 2.11 · HL 2.11 Transformations of graphs
  • Edexcel A-Level Maths Pure Year 1 · Graphs and transformations
  • Greek Lykeio (Β΄ Λυκείου) · Άλγεβρα, chapter 2: vertical and horizontal shifts of a graph

Teaching this?

Put this visualiser on your lesson board with one tap. Your student sees every drag, live, on their own screen — and Owlileo marks the homework, runs the tests and keeps the parents informed.

Start free →