30% off your first 3 months

Get the deal

Function transformations

A transformation moves or reshapes a graph by changing its rule.

Guide 5 of 8
A graph of y equals x squared in white with its lowest point at 0, 0, and in blue the same curve moved: y equals x minus 2, squared, plus 1, with its lowest point at 2, 1. Blue arrows go 2 right and 1 up from 0, 0.xy−3−2−112345−1123456780
y = (x − 2)² + 1. The graph of x² moved 2 right and 1 up.

Why it works. Inside the bracket, x−2x - 2 reaches each value 2 steps later than xx does, so every point slides 2 to the right. Adding 1 outside adds 1 to every output, so every point rises by 1. That is why a change inside looks backwards and a change outside does not.


Move it yourself

Move h, k and a, and watch the curve follow: h moves it sideways, k up and down, a stretches and flips it.

A graph of y equals x squared in white with its lowest point at 0, 0, and in blue the same curve moved: y equals x minus 2, squared, plus 1, with its lowest point at 2, 1. Blue arrows go 2 right and 1 up from 0, 0.xy−3−2−112345−1123456780

Your turn

The graph of y=x2y = x^2 is moved 3 left and 4 down. What is its new rule?

Or just show the answer

y=(x+3)2−4y = (x + 3)^2 - 4

Left 3 is x+3x + 3 inside the square, and down 4 is −4-4 outside. So y=(x+3)2−4y = (x + 3)^2 - 4, with its vertex at (−3,−4)(-3, -4).


Watch out for

  • Mistake 1. Struck through: (x − 2)^2 → 2 left; written over it: (x − 2)^2 → 2 right.

    Reading x−2x - 2 inside as 2 to the left.

    x−2x - 2 inside moves the graph 2 right; x+2x + 2 moves it 2 left.

  • Mistake 2. Struck through: x^2 + 1 → 1 right; written over it: x^2 + 1 → 1 up.

    Moving x2+1x^2 + 1 sideways.

    A number added outside moves it up or down: x2+1x^2 + 1 is 1 up.

  • Mistake 3. Struck through: −x^2 → down; written over it: −x^2 → flipped.

    Thinking −x2-x^2 moves the graph down.

    A minus in front flips it over the x-axis, so it opens downward.


Stuck on your own homework?

Open DuckyHelper and say it out loud. It sees your screen, so it works through your own problem with you and draws it, like the board above.

“Show me on a graph what each number in my function's rule does to it.”

Plus is $14 a month for your first 3 months. DuckyHelper is an app for Mac (Apple silicon, macOS 14 or later), Windows and Linux.


Read the whole guide as text

A transformation moves or reshapes a graph by changing its rule. f(x)+kf(x) + k moves the graph up k, and f(x−h)f(x - h) moves it right h. A number in front, af(x)a f(x), stretches it up and down, and a minus sign in front flips it over the x-axis. So y=(x−2)2+1y = (x - 2)^2 + 1 is the graph of y=x2y = x^2 moved 2 right and 1 up.

Worked example

How does y=(x−2)2+1y = (x - 2)^2 + 1 move the graph of y=x2y = x^2? Where is its lowest point?

  1. Start from y=x2y = x^2. Its lowest point, the vertex, is (0,0)(0, 0).
  2. Inside, x−2x - 2 means 2 to the right: x=2x = 2 now gives what x=0x = 0 gave before.
    (2−2)2=02(2 - 2)^2 = 0^2
  3. Outside, +1+1 means 1 up: every output is 1 more.
  4. So the vertex moves from (0,0)(0, 0) to (2,1)(2, 1).
    (2−2)2+1=1(2 - 2)^2 + 1 = 1

Answer: 2 to the right and 1 up, so the vertex is (2,1)(2, 1)

Algebra 2: all 8 guides
Questions and jobs

Do anything

Ask it a question or hand it a job, in any app.

Doing jobs for you is in the Mac app. Asking works on Mac, Windows and Linux.