Skip to content
Family Table Math
Auto

Combining Transformations

Real graphs often use several transformations at once, like y=−2x+3+4y = -2\sqrt{x + 3} + 4. This page puts translations and stretches and reflections together, so you can read any equation of the form y=af(k(x−d))+cy = af\big(k(x - d)\big) + c and sketch it from the parent graph.

y=a f(k(x−d))+cy = a\,f\big(k(x - d)\big) + c
ParameterWhat it does
aavertical stretch or compression by a factor of ∣a∣\lvert a \rvert; reflection in the xx-axis if a<0a \lt 0
kkhorizontal stretch or compression by a factor of 1∣k∣\dfrac{1}{\lvert k \rvert}; reflection in the yy-axis if k<0k \lt 0
ddhorizontal translation: right if d>0d \gt 0, left if d<0d \lt 0
ccvertical translation: up if c>0c \gt 0, down if c<0c \lt 0

Every point on the parent graph moves like this:

(x,y)→(xk+d, ay+c)(x, y) \to \left(\frac{x}{k} + d,\ ay + c\right)

Notice the order inside each coordinate: stretch or reflect first, then translate. Divide xx by kk, then add dd. Multiply yy by aa, then add cc.

The rule only works when the equation is written as k(x−d)k(x - d). If it isn’t, factor:

y=2x−6=2(x−3)y = \sqrt{2x - 6} = \sqrt{2(x - 3)}

Now you can see k=2k = 2 and d=3d = 3. Reading "d=6d = 6" from 2x−62x - 6 is a very common mistake.

  1. Write the equation in the form y=af(k(x−d))+cy = af\big(k(x - d)\big) + c, and read off aa, kk, dd, cc.
  2. Write the mapping rule.
  3. Apply it to the parent function’s key points (and asymptotes, if any).
  4. Plot the new points and join them with the parent’s shape.
  5. State the domain and range from the transformed graph.

Sliders make transformations easy to see. Define the parent, like f(x) = x^2, then type y = a f(k(x - d)) + c, and Desmos offers sliders for aa, kk, dd and cc; drag each one to watch what it does. On the SAT, a typical question shows a transformed graph and asks which equation matches it. Often the fastest check is one key point (like the vertex) pushed through the mapping rule, and you can confirm a choice by graphing it on top of the given graph. Watch the sign of dd: y=f(x−2)y = f(x - 2) shifts right 22, not left. See using Desmos on the SAT.

Describe the transformations of y=x2y = x^2 in y=−3(x+2)2+5y = -3(x + 2)^2 + 5. Give the vertex, the direction of opening, and the range.

Solution. a=−3a = -3, k=1k = 1, d=−2d = -2, c=5c = 5.

  • Vertical stretch by a factor of 33 and reflection in the xx-axis.
  • Translation 22 units left and 55 units up.

The vertex moves from (0,0)(0, 0) to (−2,5)(-2, 5). Since a<0a \lt 0, the parabola opens down, so 55 is its highest value.

Domain {x∈R}\{x \in \mathbb{R}\}, range {y∈R∣y≤5}\{y \in \mathbb{R} \mid y \le 5\}.

Example 2: Sketching a square root function

Section titled “Example 2: Sketching a square root function”

Sketch y=−2x+3+4y = -2\sqrt{x + 3} + 4, and state its domain and range.

Solution. a=−2a = -2, k=1k = 1, d=−3d = -3, c=4c = 4. The mapping rule is (x,y)→(x−3, −2y+4)(x, y) \to (x - 3,\ -2y + 4).

y=xy = \sqrt{x}(0,0)(0, 0)(1,1)(1, 1)(4,2)(4, 2)(9,3)(9, 3)
y=−2x+3+4y = -2\sqrt{x + 3} + 4(−3,4)(-3, 4)(−2,2)(-2, 2)(1,0)(1, 0)(6,−2)(6, -2)

For example, (4,2)→(4−3, −2(2)+4)=(1,0)(4, 2) \to (4 - 3,\ -2(2) + 4) = (1, 0).

The graph of y = square root of x and its image y = -2 times the square root of (x + 3), plus 4 −4 −2 2 4 6 8 −2 2 4 (−3, 4) (−2, 2) (1, 0) (6, −2) y = √x y = −2√(x + 3) + 4
Starting point (−3,4)(-3, 4); the reflection makes the graph go down to the right.

Domain {x∈R∣x≥−3}\{x \in \mathbb{R} \mid x \ge -3\}, range {y∈R∣y≤4}\{y \in \mathbb{R} \mid y \le 4\}.

Describe the transformations in y=2x−6+1y = \sqrt{2x - 6} + 1, map the key points of y=xy = \sqrt{x}, and state the domain and range.

Solution. Factor first: y=2(x−3)+1y = \sqrt{2(x - 3)} + 1. So a=1a = 1, k=2k = 2, d=3d = 3, c=1c = 1.

  • Horizontal compression by a factor of 12\dfrac{1}{2}.
  • Translation 33 units right and 11 unit up.

The mapping rule is (x,y)→(x2+3, y+1)(x, y) \to \left(\tfrac{x}{2} + 3,\ y + 1\right):

(0,0)→(3,1),(1,1)→(72,2),(4,2)→(5,3),(9,3)→(152,4)(0, 0) \to (3, 1), \quad (1, 1) \to \left(\tfrac{7}{2}, 2\right), \quad (4, 2) \to (5, 3), \quad (9, 3) \to \left(\tfrac{15}{2}, 4\right)

Check one: at x=5x = 5, 2(5)−6+1=4+1=3\sqrt{2(5) - 6} + 1 = \sqrt{4} + 1 = 3. ✓

Domain {x∈R∣x≥3}\{x \in \mathbb{R} \mid x \ge 3\}, range {y∈R∣y≥1}\{y \in \mathbb{R} \mid y \ge 1\}.

For y=2x−3+1y = \dfrac{2}{x - 3} + 1, find the asymptotes, the domain and range, and the images of (1,1)(1, 1), (−1,−1)(-1, -1), (2,12)\left(2, \tfrac{1}{2}\right), and (12,2)\left(\tfrac{1}{2}, 2\right).

Solution. Write it as y=2⋅1x−3+1y = 2 \cdot \dfrac{1}{x - 3} + 1: a=2a = 2, k=1k = 1, d=3d = 3, c=1c = 1. The mapping rule is (x,y)→(x+3, 2y+1)(x, y) \to (x + 3,\ 2y + 1).

  • Asymptotes: x=0x = 0 moves to x=3x = 3, and y=0y = 0 moves to y=2(0)+1=1y = 2(0) + 1 = 1.
  • Domain {x∈R∣x≠3}\{x \in \mathbb{R} \mid x \ne 3\}, range {y∈R∣y≠1}\{y \in \mathbb{R} \mid y \ne 1\}.
  • Points: (1,1)→(4,3)(1, 1) \to (4, 3), (−1,−1)→(2,−1)(-1, -1) \to (2, -1), (2,12)→(5,2)\left(2, \tfrac{1}{2}\right) \to (5, 2), and (12,2)→(72,5)\left(\tfrac{1}{2}, 2\right) \to \left(\tfrac{7}{2}, 5\right).

Check: at x=4x = 4, 24−3+1=3\dfrac{2}{4 - 3} + 1 = 3. ✓

Translating before stretching. For yy-values, multiply by aa first, then add cc. Adding first gives the wrong point: for y=2f(x)+3y = 2f(x) + 3, the point (1,1)(1, 1) goes to (1,5)(1, 5), not (1,8)(1, 8).

Not factoring out kk. In y=2x−6y = \sqrt{2x - 6}, the shift is 33 right, not 66. Always rewrite as k(x−d)k(x - d) first.

Getting the sign of dd wrong. y=f(k(x+4))y = f\big(k(x + 4)\big) means d=−4d = -4, a shift left.

Multiplying xx by kk instead of dividing. In the mapping rule, the xx-coordinate becomes xk+d\dfrac{x}{k} + d.

Forgetting what a reflection does to the range. In Example 2, the graph goes down from its starting point, so the range is y≤4y \le 4, not y≥4y \ge 4.

1. (Warm-up) State aa, kk, dd, and cc for y=4f(3(x−2))−7y = 4f\big(3(x - 2)\big) - 7.

Solution

a=4a = 4, k=3k = 3, d=2d = 2, c=−7c = -7.

2. (Warm-up) Describe the transformations of y=x2y = x^2 in y=0.5(x−4)2−1y = 0.5(x - 4)^2 - 1, and give the vertex.

Solution

Vertical compression by a factor of 0.50.5, then 44 units right and 11 unit down. Vertex (4,−1)(4, -1).

3. (Warm-up) The point (2,5)(2, 5) is on y=f(x)y = f(x). Find its image on y=3f(x−1)+2y = 3f(x - 1) + 2.

Solution

The rule is (x,y)→(x+1, 3y+2)(x, y) \to (x + 1,\ 3y + 2), so (2,5)→(3,17)(2, 5) \to (3, 17).

4. (Core) For g(x)=2x−1−3g(x) = 2\sqrt{x - 1} - 3, map the key points of y=xy = \sqrt{x} and state the domain and range.

Solution

The rule is (x,y)→(x+1, 2y−3)(x, y) \to (x + 1,\ 2y - 3):

(0,0)→(1,−3),(1,1)→(2,−1),(4,2)→(5,1),(9,3)→(10,3)(0, 0) \to (1, -3), \quad (1, 1) \to (2, -1), \quad (4, 2) \to (5, 1), \quad (9, 3) \to (10, 3)

Domain {x∈R∣x≥1}\{x \in \mathbb{R} \mid x \ge 1\}, range {y∈R∣y≥−3}\{y \in \mathbb{R} \mid y \ge -3\}.

5. (Core) For h(x)=−12(x+4)2+6h(x) = -\tfrac{1}{2}(x + 4)^2 + 6, give the vertex, map the points (1,1)(1, 1), (−1,1)(-1, 1), (2,4)(2, 4), and (−2,4)(-2, 4) of y=x2y = x^2, and state the range.

Solution

The rule is (x,y)→(x−4, −12y+6)(x, y) \to \left(x - 4,\ -\tfrac{1}{2}y + 6\right). The vertex is (−4,6)(-4, 6).

(1,1)→(−3,112),(−1,1)→(−5,112),(2,4)→(−2,4),(−2,4)→(−6,4)(1, 1) \to \left(-3, \tfrac{11}{2}\right), \quad (-1, 1) \to \left(-5, \tfrac{11}{2}\right), \quad (2, 4) \to (-2, 4), \quad (-2, 4) \to (-6, 4)

The parabola opens down, so the range is {y∈R∣y≤6}\{y \in \mathbb{R} \mid y \le 6\}.

6. (Core) Describe the transformations in y=3x+12y = \sqrt{3x + 12}, and state the domain.

Solution

Factor: y=3(x+4)y = \sqrt{3(x + 4)}, so k=3k = 3 and d=−4d = -4.

Horizontal compression by a factor of 13\tfrac{1}{3}, then 44 units left. The starting point (0,0)(0, 0) moves to (−4,0)(-4, 0).

Domain {x∈R∣x≥−4}\{x \in \mathbb{R} \mid x \ge -4\}.

Check: (9,3)→(93−4, 3)=(−1,3)(9, 3) \to \left(\tfrac{9}{3} - 4,\ 3\right) = (-1, 3), and 3(−1)+12=9=3\sqrt{3(-1) + 12} = \sqrt{9} = 3. ✓

7. (Core) The graph of y=1xy = \dfrac{1}{x} is stretched vertically by a factor of 33, reflected in the xx-axis, and translated 22 units right and 44 units up. Write its equation and state its asymptotes.

Solution

a=−3a = -3, d=2d = 2, c=4c = 4:

y=−3x−2+4y = -\frac{3}{x - 2} + 4

Asymptotes x=2x = 2 and y=4y = 4.

8. (Challenge) The function y=f(x)y = f(x) has domain {x∈R∣−3≤x≤3}\{x \in \mathbb{R} \mid -3 \le x \le 3\} and range {y∈R∣0≤y≤4}\{y \in \mathbb{R} \mid 0 \le y \le 4\}. State the domain and range of y=2f(0.5(x+1))−3y = 2f\big(0.5(x + 1)\big) - 3.

Solution

a=2a = 2, k=0.5k = 0.5, d=−1d = -1, c=−3c = -3. The rule is (x,y)→(2x−1, 2y−3)(x, y) \to (2x - 1,\ 2y - 3).

Domain: 2(−3)−1=−72(-3) - 1 = -7 and 2(3)−1=52(3) - 1 = 5, so {x∈R∣−7≤x≤5}\{x \in \mathbb{R} \mid -7 \le x \le 5\}.

Range: 2(0)−3=−32(0) - 3 = -3 and 2(4)−3=52(4) - 3 = 5, so {y∈R∣−3≤y≤5}\{y \in \mathbb{R} \mid -3 \le y \le 5\}.

9. (Challenge) The point (6,−1)(6, -1) is on the graph of y=−2f(3(x−1))+5y = -2f\big(3(x - 1)\big) + 5. Which point on y=f(x)y = f(x) did it come from?

Solution

The rule is (x,y)→(x3+1, −2y+5)(x, y) \to \left(\tfrac{x}{3} + 1,\ -2y + 5\right). Work backwards from (6,−1)(6, -1):

x3+1=6⇒x=15\frac{x}{3} + 1 = 6 \quad\Rightarrow\quad x = 15−2y+5=−1⇒y=3-2y + 5 = -1 \quad\Rightarrow\quad y = 3

So it came from (15,3)(15, 3). Check: (15,3)→(5+1, −6+5)=(6,−1)(15, 3) \to (5 + 1,\ -6 + 5) = (6, -1). ✓