Transformations: Stretching, Flipping, and Shifting Functions
You already know what y = x² looks like — that classic U-shaped parabola. But what happens when you start tweaking the equation? Add a number here, multiply there, toss in a negative sign… the graph moves, stretches, and flips in predictable ways.
Once you learn the rules of transformations, you can sketch almost any function without plotting dozens of points. Let’s build that intuition step by step.
1. The Base Function: y = x²
Here’s our starting point — plain old y = x². Every transformation we explore will modify this curve. Keep this shape in your head as the “before” picture.
The vertex is at (0, 0), it opens upward, and it’s perfectly symmetric around the y-axis. Now let’s start moving it around.
2. Vertical Shift: y = x² + k
The simplest transformation — just add a number. If k is positive, the whole graph slides up. If k is negative, it slides down. Nothing else changes: same width, same shape, just a different height.
Slide k up and down. Notice how the red curve moves but keeps the exact same shape as the gray base curve. The vertex moves from (0, 0) to (0, k). That’s all a vertical shift does — it picks up the entire graph and sets it down at a new height.
3. Horizontal Shift: y = (x - h)²
This one trips people up. You’d think y = (x - 3)² would shift the graph left by 3, right? Nope — it shifts it right by 3. The sign is “backwards” from what you’d expect.
Here’s why: the vertex happens where the thing being squared equals zero. For (x - 3)² = 0, that’s when x = 3. So the vertex moves to x = 3 — that’s to the right.
The “backwards” rule: In (x - h)², a positive h shifts the graph right, and a negative h shifts it left. Think of it this way: the graph moves to wherever makes the inside equal zero. If you have (x - 3)², x needs to be +3 to zero it out. That’s the new vertex.
4. Vertical Stretch: y = a * x²
Multiplying the whole function by a stretches or compresses the parabola vertically. Big values of |a| make it narrow and steep. Small values make it wide and flat.
Try these experiments with the slider:
- a = 2: Steeper — every y-value is doubled
- a = 0.5: Wider — every y-value is halved
- a = 1: Same as the base (no change)
- a = 0: A flat line at y = 0 — the parabola has been squished completely!
- a between 0 and -1: What happens?
5. Reflection: What Negative a Does
When a is negative, the parabola flips upside-down. It reflects across the x-axis. A value like a = -1 gives you a perfect mirror image. Combine a negative sign with a stretch and you get a flipped and stretched graph.
The blue curve opens up, the red opens down. They’re mirror images across the x-axis. This is exactly what happens when you slide a past zero in the section above — go back and try it!
Reflection is just a special case of vertical stretch where a is negative. You don’t need to memorize it as a separate rule. Negative a = flip + stretch.
6. Combine Them All: Vertex Form
Now the big payoff. We can apply all three transformations at once:
y = a(x - h)² + k
This is called vertex form because you can read the vertex right off the equation: it’s at (h, k). The value of a controls the width and direction.
Try building these specific parabolas:
- A parabola with vertex at (2, -3) that opens upward → set h = 2, k = -3, a = 1
- Same vertex but opens downward → just flip a to -1
- A really wide parabola centered at (-1, 4) → h = -1, k = 4, a = 0.3
- Can you make it pass through the origin? Adjust a until the curve hits (0, 0)!
Challenge: A parabola has its vertex at (3, -2) and passes through the point (5, 6). Can you find the value of a? Set h = 3 and k = -2, then adjust the a slider until the curve passes through (5, 6). Then check your answer with algebra: plug (5, 6) into y = a(x - 3)² - 2 and solve for a.
7. It Works on ANY Function!
Here’s the coolest part: these transformation rules aren’t just for parabolas. They work on every function. Shifting, stretching, and flipping follow the same rules whether you’re looking at x², sin(x), |x|, or sqrt(x).
Watch — here are four different base functions, all transformed the same way:
Parabola: y = a(x - h)² + k
Sine wave: y = a * sin(x - h) + k
Absolute value: y = a|x - h| + k
Square root: y = a * sqrt(x - h) + k
Same sliders, four different functions, same transformation rules. This is one of the most powerful ideas in math: once you understand transformations, you can handle any function — even ones you haven’t seen before. Shift h units right, shift k units up, stretch by a. That’s it. Every time.
8. Connection to Vertex Form
Let’s bring it all together. In algebra, you learned that every quadratic can be written as:
y = a(x - h)² + k
Now you know what that really means. It’s not just a formula to memorize — it’s a set of instructions for building a parabola from scratch:
- Start with y = x²
- Stretch it by a factor of a (and flip it if a is negative)
- Shift right by h units
- Shift up by k units
The vertex is at (h, k) because that’s where you moved the bottom of the U.
Vertex form IS transformation language. When your teacher asks you to “convert to vertex form,” they’re really asking: what shifts and stretches turn y = x² into this particular parabola? The answer gives you the vertex, the direction, and the width — all in one equation.
Final challenge: The equation y = -2(x + 1)² + 5 is in vertex form. Without graphing, answer these questions:
- Where is the vertex? (Careful with the sign of h!)
- Does it open up or down?
- Is it wider or narrower than y = x²?
- What is the maximum y-value the function reaches?
Then go back to the combined sliders in Section 6 and set a = -2, h = -1, k = 5 to check your answers visually!