Algebra

Function Transformations: Shifts, Reflections, Stretches

Master function transformations with this complete guide. Learn how shifts, reflections, stretches, and compressions change the graph of any function, and how to combine multiple transformations.

Frequently asked questions

Why does f(x − 3) shift the graph to the right?

The new function g(x) = f(x − 3) gives the same output as f only when its input is 3 larger. For instance, g(3) = f(0). So every point of the graph moves 3 units right. Changes inside the parentheses act on the input, so they work in the opposite direction from what you might expect.

In what order do you apply transformations?

Write the function as a · f(b(x − h)) + k, factoring b out of the input. Then apply the stretches and reflections first (the a and b parts), and the shifts (h and k) last. Doing a shift before a stretch can put the graph in the wrong place.

What is the difference between f(−x) and −f(x)?

The function −f(x) reflects the graph over the x-axis, flipping it upside down. The function f(−x) reflects it over the y-axis, flipping it left to right. For f(x) = √x, the graph of −√x lies below the x-axis, while √(−x) extends to the left of the y-axis.

How do you tell a stretch from a compression?

For a vertical change a · f(x), a stretch happens when |a| > 1 and a compression when 0 < |a| < 1. For a horizontal change f(bx), it is reversed: |b| > 1 compresses the graph horizontally by a factor of 1/|b|, and 0 < |b| < 1 stretches it. So f(2x) is half as wide as f(x).

How do you transform y = x² into y = 2(x + 1)² − 3?

Start with y = x². The (x + 1) shifts it 1 unit left, the factor 2 stretches it vertically by a factor of 2, and the −3 shifts it 3 units down. The vertex moves from (0, 0) to (−1, −3), and the parabola opens upward and is narrower than the original.

Try these solvers

Trigonometry13 min read

Graphing Sine and Cosine Functions: Amplitude, Period and Shifts

Every sine or cosine graph comes from four numbers: amplitude, period, phase shift and midline. Learn to read them from y = A sin(B(x − C)) + D, plot five key points per cycle, factor out B before reading the shift, write an equation from a graph and model a Ferris wheel.

Algebra10 min read

Domain and Range Explained: How to Find Them for Any Function

Domain and range describe every function's inputs and outputs. Learn systematic methods to find them for polynomials, rationals, radicals, and more.

Algebra13 min read

Vertex Form of a Quadratic: How to Find the Vertex 3 Ways

Vertex form y = a(x − h)² + k puts the vertex (h, k) in plain sight. See why it works, find the vertex of one parabola by −b/2a, completing the square and the roots, avoid the a ≠ 1 trap, write the equation from a vertex and a point, and find a ball's maximum height.

Stuck on your own problem?

Snap a photo in Solver AI for iPhone and iPad and see every step, so you can do the next one yourself.