Allday Education

Transformations of Functions

A function transformation takes a graph you already know — like f(x)=x2f(x) = x^2 or f(x)=xf(x) = |x| — and moves, stretches, or flips it. Instead of plotting a new function point by point, you read the transformation off the equation and slide the old graph into place. Every transformation is one of three moves: a shift, a stretch or compression, or a reflection.

The whole topic comes down to one question: is the change inside the function's parentheses or outside? Outside changes act on the output, so they move the graph vertically and behave exactly like you'd expect. Inside changes act on the input, so they move the graph horizontally — and they work backwards from what the sign suggests. Keep that inside-outside split straight and every transformation problem is quick.

Shifts: adding and subtracting

Adding a constant outside the function shifts the graph vertically: f(x)+kf(x) + k moves every point up kk units (down if kk is negative). This one matches intuition — bigger outputs mean a higher graph.

Adding a constant inside the function shifts the graph horizontally, and the direction is the opposite of the sign: f(xh)f(x - h) moves the graph right hh units, so f(x3)f(x - 3) is a shift right 33 and f(x+3)f(x + 3) is a shift left 33. To read the direction correctly, match the inside to the pattern xhx - h: in f(x+3)f(x + 3), we have x+3=x(3)x + 3 = x - (-3), so h=3h = -3 and the graph moves left.

In the graph below, the black curve is f(x)=x2f(x) = x^2 and the blue curve is g(x)=(x2)2+1g(x) = (x - 2)^2 + 1: the same parabola shifted right 22 and up 11. The vertex moved from (0,0)(0, 0) to (2,1)(2, 1), and every other point moved with it.

-4-3-2-11234-3-2-112345xy

Stretches and compressions: multiplying

Multiplying the function by a constant changes its shape. Outside the function, af(x)a \cdot f(x) stretches the graph vertically when a>1|a| > 1 and compresses it toward the xx-axis when 0<a<10 < |a| < 1. Every yy-value gets multiplied by aa, so 2f(x)2f(x) makes the graph twice as tall at every point.

The xx-intercepts do not move under a vertical stretch — a point with y=0y = 0 stays at y=0y = 0 no matter what you multiply by. That's a fast way to check whether a graph was stretched or shifted: if the intercepts stayed put but the graph got steeper, it was a stretch.

Reflections: the negative sign

A negative sign outside the function reflects the graph across the xx-axis: f(x)-f(x) flips every point to the opposite side, so a parabola opening up becomes a parabola opening down. A negative sign inside the function, f(x)f(-x), reflects the graph across the yy-axis instead — same inside-outside logic as shifts: outside acts vertically, inside acts horizontally.

Transformations stack. The function g(x)=2(x+1)2+5g(x) = -2(x + 1)^2 + 5 takes f(x)=x2f(x) = x^2, shifts it left 11, stretches it vertically by 22, reflects it across the xx-axis, and shifts it up 55. Read the pieces one at a time and the graph draws itself: the vertex lands at (1,5)(-1, 5) and the parabola opens down, twice as steep as the parent. The graph below shows the black parent f(x)=x2f(x) = x^2 and the blue result g(x)g(x).

-5-4-3-2-1123-3-2-112345xy

Worked examples

Example 1: describe a shift

Describe the transformation of f(x)=x2f(x) = x^2 that produces g(x)=(x4)2+2g(x) = (x - 4)^2 + 2.

Match the inside to the pattern xhx - hx4=xh,h=4x - 4 = x - h, \quad h = 4
A positive hh shifts the graph rightright 4\text{right } 4
The +2+\,2 outside shifts the graph upup 2\text{up } 2
Check with the vertex: (0,0)(0, 0) moves to(4,2)(4, 2)

Answer: Shift right 44 and up 22

Example 2: a stretch and a reflection together

Describe the transformation of f(x)=xf(x) = |x| that produces g(x)=2xg(x) = -2|x|.

The factor 22 outside stretches the graph vertically by 222f(x)2f(x)
The negative sign reflects it across the xx-axis2f(x)-2f(x)
Track one point: (3,3)(3, 3) is on ffg(3)=23=6g(3) = -2|3| = -6
So (3,3)(3, 3) moves to (3,6)(3, -6) — twice as far from the axis, on the other side

Answer: Vertical stretch by 22, then a reflection across the xx-axis; the V opens downward

Example 3: write the equation from a description

Write the equation for f(x)=xf(x) = \sqrt{x} shifted left 55 and down 22.

Left 55 means h=5h = -5, so the inside is x(5)x - (-5)x+5\sqrt{x + 5}
Down 22 subtracts 22 outsidex+52\sqrt{x + 5} - 2
Check the starting point: (0,0)(0, 0) on ff moves to(5,2)(-5, -2)

Answer: g(x)=x+52g(x) = \sqrt{x + 5} - 2

Example 4: track a single point

The point (2,5)(2, 5) is on the graph of ff. Where does it land on the graph of g(x)=f(x3)+7g(x) = f(x - 3) + 7?

The inside x3x - 3 shifts the graph right 33, so the xx-coordinate increases by 332+3=52 + 3 = 5
The +7+\,7 outside shifts the graph up 77, so the yy-coordinate increases by 775+7=125 + 7 = 12
Confirm: g(5)=f(53)+7=f(2)+7=5+7g(5) = f(5 - 3) + 7 = f(2) + 7 = 5 + 7g(5)=12g(5) = 12

Answer: (5,12)(5, 12)

Try one yourself

Common questions

Why does f(x+3)f(x + 3) move the graph left instead of right?

The change is happening to the input. To get the same output ff used to give at x=0x = 0, you now have to plug in x=3x = -3, because f(3+3)=f(0)f(-3 + 3) = f(0). Every point needs an input 33 smaller than before, so the whole graph slides 33 units left. Matching the inside to xhx - h handles the sign automatically.

Does the order of transformations matter?

Yes, when a stretch or reflection is combined with a vertical shift. For g(x)=2f(x)+5g(x) = -2f(x) + 5, the stretch and reflection happen before the shift up 55 — the same order of operations you'd use to evaluate the expression. Shifts in different directions (one horizontal, one vertical) can happen in either order.

How can I tell a vertical stretch from a shift on a graph?

Look at the xx-intercepts and the overall shape. A shift moves every point the same distance and keeps the shape identical. A stretch changes the steepness and leaves any point on the xx-axis exactly where it was, since multiplying 00 by aa still gives 00.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1