Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Graph a Transformed Function

A transformed function is a parent graph that has been shifted, stretched or reflected. Read the four numbers in a f(b(x−h))+ka\,f(b(x - h)) + k, apply the changes inside the brackets first, and move a few key points.

Recognize the task

The formula is a familiar parent with extra numbers: −2(x+3)2+5-2(x + 3)^2 + 5, x−2+1\sqrt{x - 2} + 1, −∣x+1∣+4-|x + 1| + 4, (2x−6)2(2x - 6)^2. Typical tasks: sketch the graph, give the new vertex or starting point, or the new domain and range. Test: cover the extra numbers. If a parent such as x2x^2, ∣x∣|x|, x\sqrt{x} or x3x^3 is left, this method applies.
Parent functions and the four transformations are defined in the transformations lesson.

Two ways to do it

Move key pointsusual
(x,y)  →  (xb+h, ay+k)(x, y) \;\to\; \left(\frac{x}{b} + h,\ a y + k\right)
Map the vertex and one or two more points of the parent with the general transformation, then draw the shape through them.
One transformation at a timestep by step
f(x)→f(bx)→f(b(x−h))→af(b(x−h))→af(b(x−h))+kf(x) \to f(bx) \to f(b(x - h)) \to a f(b(x - h)) \to a f(b(x - h)) + k
Apply the changes in this order and redraw after each (order of transformations).

Steps

StepOn g(x)=−2(x+3)2+5g(x) = -2(x + 3)^2 + 5
1Name the parent function and its key points. Pick the vertex or starting point and one more point.f(x)=x2f(x) = x^2: (0,0)(0, 0) and (1,1)(1, 1)
2Read a, b, h and k. Write the inside as b(x−h)b(x - h); a plus sign inside means hh is negative.a=−2a = -2, b=1b = 1, h=−3h = -3, k=5k = 5
3Apply the inside changes: horizontal. Divide xx-coordinates by bb, then add hh (horizontal translation).shift left 33: (−3,0)(-3, 0), (−2,1)(-2, 1)
4Apply the outside changes: vertical. Multiply yy-coordinates by aa (vertical stretch, a reflection if a<0a < 0), then add kk.(−3,5)(-3, 5), (−2,3)(-2, 3); opens downward
5Check one point in the formula. Substitute a mapped xx and compare with its mapped yy.Substitution ↗g(−2)=−2(1)2+5=3g(-2) = -2(1)^2 + 5 = 3 ✓

Worked examples

Example 1 · a shifted square root

shifts
g(x)=x−2+1g(x) = \sqrt{x - 2} + 1
parent x\sqrt{x}, start (0,0)(0, 0)
(0,0)→(2,1)(0, 0) \to (2, 1), (4,2)→(6,3)(4, 2) \to (6, 3)
right 22, up 11
domain [2,∞)[2, \infty), range [1,∞)[1, \infty)
starting point moved

Example 2 · a reflected absolute value

reflection
g(x)=−∣x+1∣+4g(x) = -|x + 1| + 4
a=−1a = -1, h=−1h = -1, k=4k = 4
(0,0)→(−1,4)(0, 0) \to (-1, 4), (1,1)→(0,3)(1, 1) \to (0, 3)
left 11, flip, up 44
V opening down, vertex (−1,4)(-1, 4), range (−∞,4](-\infty, 4]

Example 3 · a horizontal compression

factor first
g(x)=(2x−6)2=(2(x−3))2g(x) = (2x - 6)^2 = \big(2(x - 3)\big)^2
factor out b=2b = 2
(0,0)→(3,0)(0, 0) \to (3, 0), (1,1)→(3.5,1)(1, 1) \to (3.5, 1)
x→x2+3x \to \frac{x}{2} + 3
vertex (3,0)(3, 0); check g(3.5)=12=1g(3.5) = 1^2 = 1
narrower parabola
Drag aa, bb, hh and kk and watch the parent graph move in the transformations visualizer.

See it happen

Numbers outside the parent act on outputs, so they move the graph up and down and stretch it vertically, in the direction you expect. Numbers inside act on inputs before the parent sees them, so they work backwards: f(x−3)f(x - 3) needs an input 33 larger to produce the same output, which shifts the graph right, and f(2x)f(2x) reaches each output at half the input, which squeezes the graph toward the yy-axis.

Common mistakes

Shifting the wrong way

✗ (x−3)2(x - 3)^2 is x2x^2 moved left 33
✓ (x−3)2(x - 3)^2 is x2x^2 moved right 33; x−hx - h with h=3h = 3

Reading the shift before factoring

✗ (2x−6)2(2x - 6)^2 is shifted right 66, vertex (6,0)(6, 0)
✓ 2x−6=2(x−3)2x - 6 = 2(x - 3): shift right 33, vertex (3,0)(3, 0); g(6)=36g(6) = 36, not 00

Copying the vertex sign into the bracket

✗ vertex (3,−2)(3, -2): y=−2(x+3)2−2y = -2(x + 3)^2 - 2
✓ y=−2(x−3)2−2y = -2(x - 3)^2 - 2; the bracket holds x−hx - h

Stretching instead of compressing

✗ f(2x)f(2x) stretches the graph horizontally by 22
✓ f(2x)f(2x) compresses it by 22: xx-coordinates are halved