Part 21 of 30 · TransformationsSee the whole course

Function transformations: shifts, flips and stretches

Short answer

A transformation changes a graph by changing the rule in one place. Outside the brackets a change acts on the heights: lift, lower, flip, stretch. Inside the brackets a change acts on x, and it goes the other way: x − 3 slides the graph 3 to the right.

Start from a parent graph

Every transformation starts from a basic shape, the parent. The parabola y = x² is the easiest to watch, because it has a clear bottom point, the vertex. Other parents you will meet are |x| and √x. A transformation takes the parent and moves or reshapes it, without changing what kind of graph it is.

The four moves

The one thing to remember: outside acts on heights, inside acts on x and goes backwards. The reason is that the inside is what you feed in. To get the same output as before you must feed in an x that is 3 bigger, so the whole picture moves 3 to the right.

Worked example: y = −2(x − 1)² + 3

Read the moves from the rule, starting from y = x²:

Inside: x − 1, so slide 1 to the right.
In front: −2, so stretch by 2 and flip it over.
At the end: + 3, so lift it up 3.

The vertex moves from (0, 0) to (1, 3). Check with a point: the parent point (2, 4) lands on (3, −5), because −2(3 − 1)² + 3 = −2(4) + 3 = −5 ✓.

Play with it below. The gray parent stays put, and the orange dot follows the parent point (2, 4) to where it lands.

y = −2(x − 1)² + 3
  1. inside: x − 1, 1 to the right
  2. in front: −2, stretched 2× and flipped
  3. at the end: + 3, 3 up
The vertex of the bowl moves from (0, 0) to (1, 3). The parent point (2, 4) lands on (3, −5).

In what order?

Do the moves in the same order you would calculate the rule: the inside first, then the number in front, then the number at the end. For y = −2(x − 1)² + 3: put in x, take away 1, square, multiply by −2, then add 3.

Watch it explained in under a minute

The same idea, narrated step by step. Square version for sharing: download the 1:1 video.

The five mistakes to avoid

Try it yourself

Describe the moves from y = x². Tap a question to see the answer.

1. y = x² − 4

Lower it by 4. The vertex moves to (0, −4).

2. y = (x + 3)²

Slide it 3 to the left. The vertex moves to (−3, 0).

3. y = −(x − 2)² + 5

Slide 2 right, flip it over, lift it 5. The vertex is (2, 5) and it opens downward like an arch.

Where this fits in

The next four posts take one move at a time, starting with vertical shifts.

Quick answers

Questions about this topic

What is a function transformation?

A change to a function’s rule that moves or reshapes its graph in a predictable way: shifting it, flipping it, or stretching it.

Why does x − 3 move the graph to the right?

The inside is the input. To get the same output as before, you must put in an x that is 3 bigger, so every point moves 3 to the right. Changes inside the brackets always act backwards.

In what order do you apply transformations?

In the same order you would calculate the rule: the inside first, then the number in front, then the number added at the end.

Do transformations work on any function?

Yes. The same moves work on a line, a parabola, an absolute value graph, a square root, or any other function.

Keep going

Learn it by playing

Pip: Math Adventure is a math game for iPhone where functions, lines, equations and calculus are puzzles you solve by playing. It is coming soon to the App Store.

Join the list and we will tell you the day Pip is out.