Dove's LibraryDove's Library

1.12 - Transformations of Functions

Overview

A transformation moves, stretches, squeezes, or flips the graph of a function. If you know the graph of a parent function like f(x)=x2f(x) = x^2 or f(x)=xf(x) = \sqrt{x}, transformations let you sketch and write equations for a whole family of related functions without starting from scratch. They're also one of the main ways to build models in Topic 1.14.

Additive and multiplicative transformations

There are two kinds. Additive transformations add a constant, which slides (translates) the graph. Multiplicative transformations multiply by a constant, which stretches or compresses (dilates) the graph and can also reflect it.
Where the constant goes matters as much as what it is:
  • Outside the function, like f(x)+kf(x) + k or af(x)a f(x), the constant changes the outputs, so the graph changes vertically. These work the way you'd expect.
  • Inside the function, like f(x+h)f(x + h) or f(bx)f(bx), the constant changes the inputs, so the graph changes horizontally. These work backwards from what you'd expect.
Function
Transformation of ff
Point (x,y)(x, y) on ff moves to
g(x)=f(x)+kg(x) = f(x) + k
Vertical translation by kk units
(x, y+k)(x,\ y + k)
g(x)=f(x+h)g(x) = f(x + h)
Horizontal translation by −h-h units
(x−h, y)(x - h,\ y)
g(x)=af(x)g(x) = a f(x), a≠0a \neq 0
Vertical dilation by a factor of ∣a∣|a|; also a reflection over the xx-axis if a<0a < 0
(x, ay)(x,\ ay)
g(x)=f(bx)g(x) = f(bx), b≠0b \neq 0
Horizontal dilation by a factor of 1∣b∣\frac{1}{|b|}; also a reflection over the yy-axis if b<0b < 0
(xb, y)\left(\frac{x}{b},\ y\right)
In the figures on this page, the black curve is ff and the red curve is the transformed function gg.

Vertical translations

The function g(x)=f(x)+kg(x) = f(x) + k is an additive transformation of ff that translates the graph of ff vertically by kk units. Every output gets kk added to it, so every point moves straight up when k>0k > 0 and straight down when k<0k < 0. The xx-values don't change.
For example, if f(x)=xf(x) = \sqrt{x}, then g(x)=x+2g(x) = \sqrt{x} + 2 moves every point up 2 units. The point (4,2)(4, 2) on ff becomes (4,4)(4, 4) on gg.

Horizontal translations

The function g(x)=f(x+h)g(x) = f(x + h) is an additive transformation of ff that translates the graph of ff horizontally by −h-h units. So f(x+3)f(x + 3) shifts the graph 3 units left, and f(x−3)f(x - 3) shifts it 3 units right.
Why backwards? Look at g(x)=f(x−3)g(x) = f(x - 3). To get the output f(0)f(0) from gg, you need x−3=0x - 3 = 0, so x=3x = 3. Whatever ff does at x=0x = 0, gg does at x=3x = 3, which is 3 units to the right.
For f(x)=xf(x) = \sqrt{x}, the graph of g(x)=x−3g(x) = \sqrt{x - 3} starts at (3,0)(3, 0) instead of (0,0)(0, 0), and the point (4,2)(4, 2) on ff becomes (7,2)(7, 2) on gg.
1.12 - Transformations of Functions

Vertical dilations and reflections over the x-axis

The function g(x)=af(x)g(x) = a f(x), where a≠0a \neq 0, is a multiplicative transformation of ff that dilates the graph vertically by a factor of ∣a∣|a|. Every output gets multiplied by aa:
  • If ∣a∣>1|a| > 1, the graph is stretched away from the xx-axis.
  • If 0<∣a∣<10 < |a| < 1, the graph is compressed toward the xx-axis.
  • If a<0a < 0, the graph is also reflected over the xx-axis.
Points on the xx-axis have y=0y = 0, and a⋅0=0a \cdot 0 = 0, so the zeros of ff don't move.

Horizontal dilations and reflections over the y-axis

The function g(x)=f(bx)g(x) = f(bx), where b≠0b \neq 0, is a multiplicative transformation of ff that dilates the graph horizontally by a factor of 1∣b∣\dfrac{1}{|b|}. Like horizontal translations, this works backwards:
  • If ∣b∣>1|b| > 1, the graph is compressed toward the yy-axis. For example, f(2x)f(2x) is a horizontal dilation by a factor of 12\frac{1}{2}.
  • If 0<∣b∣<10 < |b| < 1, the graph is stretched away from the yy-axis. For example, f(13x)f\left(\frac{1}{3}x\right) is a horizontal dilation by a factor of 3.
  • If b<0b < 0, the graph is also reflected over the yy-axis.
Every xx-coordinate gets divided by bb, and the yy-values stay the same. A point on the yy-axis stays put, because 0÷b=00 \div b = 0.
The figure compares the two dilations using f(x)=(x−3)2+1f(x) = (x - 3)^2 + 1, drawn for 1≤x≤51 \leq x \leq 5. The vertical dilation 2f(x)2f(x) doubles every height: the vertex moves from (3,1)(3, 1) to (3,2)(3, 2), and the endpoints rise from height 5 to height 10. The horizontal dilation f(2x)f(2x) halves every xx-coordinate: the vertex moves to (1.5,1)(1.5, 1), and the endpoints move to x=0.5x = 0.5 and x=2.5x = 2.5.
1.12 - Transformations of Functions
Reflections are the cases a=−1a = -1 and b=−1b = -1. With f(x)=xf(x) = \sqrt{x}, the graph of −f(x)=−x-f(x) = -\sqrt{x} flips over the xx-axis, and the graph of f(−x)=−xf(-x) = \sqrt{-x} flips over the yy-axis.
1.12 - Transformations of Functions

Combining transformations

Additive and multiplicative transformations can be combined into translations and dilations in both directions at once. The set of points before the transformations is called the preimage, and the set of points after is called the image.
To keep it organized, write the function in the form
g(x)=a f(b(x+h))+kg(x) = a\,f\big(b(x + h)\big) + k
Then each point (x,y)(x, y) of the preimage moves to
(xb−h,  ay+k)\left(\frac{x}{b} - h,\ \ ay + k\right)
In words: for xx, divide by bb, then subtract hh. For yy, multiply by aa, then add kk. In both directions, do the dilation before the translation.

Example 1: Mapping points and finding the domain and range

Let f(x)=xf(x) = \sqrt{x} and g(x)=−2x+1−1g(x) = -2\sqrt{x + 1} - 1. Describe the transformations, map the points (0,0)(0, 0), (1,1)(1, 1), (4,2)(4, 2), and (9,3)(9, 3), and find the domain and range of gg.
Step 1: Match the form. g(x)=−2f(x+1)−1g(x) = -2f(x + 1) - 1, so a=−2a = -2, b=1b = 1, h=1h = 1, and k=−1k = -1.
Step 2: Describe the transformations.
  • Horizontal translation by −1-1 unit (1 unit left)
  • Vertical dilation by a factor of 2, with a reflection over the xx-axis (from a=−2a = -2)
  • Vertical translation by −1-1 unit (1 unit down)
Step 3: Map the points using (x,y)→(x−1, −2y−1)(x, y) \to (x - 1,\ -2y - 1).
Preimage point on ff
Image point on gg
(0,0)(0, 0)
(−1,−1)(-1, -1)
(1,1)(1, 1)
(0,−3)(0, -3)
(4,2)(4, 2)
(3,−5)(3, -5)
(9,3)(9, 3)
(8,−7)(8, -7)
Check: g(3)=−24−1=−5g(3) = -2\sqrt{4} - 1 = -5. It matches.
1.12 - Transformations of Functions
Step 4: Domain and range. The preimage has domain x≥0x \geq 0 and range y≥0y \geq 0. Shifting left 1 moves the domain to x≥−1x \geq -1. Multiplying the outputs by −2-2 turns y≥0y \geq 0 into y≤0y \leq 0, and subtracting 1 gives y≤−1y \leq -1.
Answer: The domain of gg is [−1,∞)[-1, \infty) and the range is (−∞,−1](-\infty, -1].

Example 2: Factor out the coefficient first

The point (4,5)(4, 5) is on the graph of ff. Find the matching point on the graph of g(x)=f(2x−6)g(x) = f(2x - 6).
Step 1: Factor the inside so it matches b(x+h)b(x + h):
g(x)=f(2x−6)=f(2(x−3))g(x) = f(2x - 6) = f\big(2(x - 3)\big)
So b=2b = 2 and h=−3h = -3. That's a horizontal dilation by a factor of 12\frac{1}{2}, then a translation 3 units right (not 6).
Step 2: Map the point: (4,5)→(42+3, 5)=(5,5)(4, 5) \to \left(\frac{4}{2} + 3,\ 5\right) = (5, 5).
Check: g(5)=f(2⋅5−6)=f(4)=5g(5) = f(2 \cdot 5 - 6) = f(4) = 5. It matches.
If you compressed and then shifted right 6, you'd get (8,5)(8, 5). But g(8)=f(10)g(8) = f(10), which is a different point. Always factor out bb before reading the shift.

Domain and range after a transformation

A transformed function can have a different domain and range than its parent function. Horizontal transformations change the domain because they move the xx-values. Vertical transformations change the range because they move the yy-values. Asymptotes move right along with the graph.

Example 3: A transformed rational function

The parent function f(x)=1xf(x) = \dfrac{1}{x} has domain x≠0x \neq 0, range y≠0y \neq 0, a vertical asymptote at x=0x = 0, and a horizontal asymptote at y=0y = 0. Find these for g(x)=1x−2+1g(x) = \dfrac{1}{x - 2} + 1.
Since g(x)=f(x−2)+1g(x) = f(x - 2) + 1, the graph shifts 2 units right and 1 unit up, and so do the asymptotes.
  • Vertical asymptote x=2x = 2, so the domain is all real numbers except 2.
  • Horizontal asymptote y=1y = 1, so the range is all real numbers except 1.

Writing and using a transformed function

AP questions go both ways: write gg from a description, or use the formula for gg to get values from a table or graph of ff.

Example 4: From a description to a formula

The graph of hh is the graph of y=x3y = x^3 reflected over the xx-axis, vertically dilated by a factor of 12\frac{1}{2}, translated 4 units left, and translated 5 units up. Write h(x)h(x).
  • Reflect and dilate vertically: multiply by a=−12a = -\frac{1}{2}.
  • Translate 4 units left: replace xx with x+4x + 4.
  • Translate 5 units up: add 5.
h(x)=−12(x+4)3+5h(x) = -\frac{1}{2}(x + 4)^3 + 5
Check: The point (0,0)(0, 0) on y=x3y = x^3 should move to (0−4, −12⋅0+5)=(−4,5)(0 - 4,\ -\frac{1}{2} \cdot 0 + 5) = (-4, 5), and h(−4)=−12(0)3+5=5h(-4) = -\frac{1}{2}(0)^3 + 5 = 5.

Example 5: Using a table (AP-style)

Selected values of ff are shown in the table. Let g(x)=3f(x−2)−4g(x) = 3f(x - 2) - 4.
xx
−2-2
00
22
44
f(x)f(x)
66
11
−3-3
00
(a) Find g(2)g(2) and g(6)g(6).
g(2)=3f(0)−4=3(1)−4=−1g(2) = 3f(0) - 4 = 3(1) - 4 = -1g(6)=3f(4)−4=3(0)−4=−4g(6) = 3f(4) - 4 = 3(0) - 4 = -4
(b) Find a value of xx for which g(x)=−13g(x) = -13.
Set 3f(x−2)−4=−133f(x - 2) - 4 = -13, so f(x−2)=−3f(x - 2) = -3. The table shows f(2)=−3f(2) = -3, so x−2=2x - 2 = 2 and x=4x = 4.
(c) Describe how the graph of gg is related to the graph of ff.
The graph of gg is the graph of ff translated 2 units right, vertically dilated by a factor of 3, and then translated 4 units down.

Common mistakes

  • Shifting the wrong way. f(x+3)f(x + 3) moves the graph 3 units left, not right.
  • Using the wrong horizontal factor. f(2x)f(2x) is a horizontal dilation by a factor of 12\frac{1}{2}, not 2.
  • Forgetting to factor. In f(3x+6)=f(3(x+2))f(3x + 6) = f\big(3(x + 2)\big), the shift is 2 units left, not 6.
  • Adding before multiplying. For 2f(x)+12f(x) + 1, double the yy-value first, then add 1. The point (1,4)(1, 4) goes to (1,9)(1, 9), not (1,10)(1, 10).
  • Mixing up the reflections. −f(x)-f(x) flips over the xx-axis (outputs change sign). f(−x)f(-x) flips over the yy-axis (inputs change sign).
  • Copying the parent's domain and range. Recheck both after transforming, especially for square root and rational functions.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.