Transformations of Functions
Shift, stretch and reflect graphs by changing a formula, and predict the graph of y = a·f(x − h) + k from a parent function.
Welcome back!
Step 1 of 12Learn
One shape, many positions
Learn a handful of basic graphs, called parent functions, and you can sketch thousands of others by moving and stretching them. The most useful parents are:
- y = x (a line through the origin)
- y = x2 (a parabola with vertex at the origin)
- y = x3 (an S-shaped curve)
- y = |x| (a V shape)
- y = √x (half a sideways parabola, starting at the origin)
- y = 1/x (two curved branches)
Every transformation follows from one idea: changes outside the function affect the outputs (y-values), and changes inside affect the inputs (x-values).
Vertical shift. y = f(x) + k moves the graph up k units (down if k is negative). Every output gets k added, so every point rises by k.
Horizontal shift. y = f(x − h) moves the graph right h units. This is the one that feels backward. To get the same output as the parent gave at x = 0, you now need x − h = 0, which means x = h. So the whole graph slides to the right. For example, y = (x − 3)2 has its vertex at x = 3, not −3, and y = (x + 3)2 has its vertex at x = −3.
Step 2 of 12Explore
Transform the absolute value graph
This is y = a|x − h| + k. Move h and k to slide the V; its corner always sits at (h, k). Make a negative to flip it upside down, and change its size to make it steeper or flatter.
- Corner x
- 2
- Corner y
- -1
- Slope of right branch
- 1
Step 3 of 12Practice · Fill in the blanks
Fill in the blanks
The graph of y = (x + 5)2 − 4 is the graph of y = x2 shifted units and units .
Step 4 of 12Learn
Stretches and reflections
Multiplying changes the shape instead of the position.
Vertical stretch or compression. y = a·f(x) multiplies every output by a. If a = 3, the graph becomes three times as tall: the point (2, 4) on y = x2 becomes (2, 12) on y = 3x2. If a = ½, the graph is squashed to half height.
Reflection over the x-axis. If a is negative, every output changes sign, so the graph flips upside down. y = −x2 is a parabola opening downward.
Reflection over the y-axis. y = f(−x) replaces each input by its opposite, mirroring the graph left to right. For y = √x, which starts at the origin and goes right, y = √(−x) starts at the origin and goes left.
Horizontal stretch or compression. y = f(bx) squeezes the graph horizontally by a factor of b. Like horizontal shifts, it works opposite to intuition: y = f(2x) is narrower, because you reach each output with half the input.
Putting it together. The general form y = a·f(x − h) + k combines a vertical stretch by |a|, a reflection if a < 0, a shift right h and a shift up k. For y = −2(x − 1)2 + 8: start with x2, stretch by 2, flip it, move the vertex to (1, 8). The result is a downward parabola with maximum value 8 at x = 1.
Step 5 of 12Explore
Stretch, compress and reflect a cubic
This is y = a·(b·x)3. The outside number a stretches vertically (and flips the graph when negative); the inside number b squeezes horizontally. Watch the point that started at (1, 1).
- Output at x = 1
- 1
- x where output equals a
- 1
Step 6 of 12Practice · Match the pairs
Match each equation to its transformation of y = f(x).
Tap an answer, then tap the place where it belongs (or drag it there).
- y = f(x) − 3
- y = f(x − 3)
- y = −f(x)
- y = f(−x)
- y = 3f(x)
Step 7 of 12Note
Step 8 of 12Flashcards
Transformation cheat sheet
Tap a card to flip it.
Step 9 of 12Practice · Work it out
The vertex of y = x2 is (0, 0). What is the y-coordinate of the vertex of y = −2(x − 1)2 + 8?
Step 10 of 12Practice · Spot the mistake
Dev described the graph of y = √(x + 4) − 2 compared with y = √x. Tap the incorrect statement.
Step 11 of 12Practice · What would you do?
What would you do?
A video game designer has a jump arc modeled by y = −(x − 2)2 + 4, peaking at (2, 4). She wants the same arc to peak twice as high, at the same place. Which change works?
Step 12 of 12Practice · Choose one
Which equation describes y = |x| reflected over the x-axis and then shifted 3 units up?
Lesson complete!