Educerie

Educerie · AP · Precalculus

AP Precalculus 1.12

Transformations of Functions

How do the outputs of a function behave as its inputs change, and what does that tell you about polynomial and rational functions?

What you will learn

  • Understand the four basic moves and why input moves act opposite to the sign
  • Know how to build a formula for a described sequence of moves
  • Know how the domain and range change under a transformation

You must be able to

  1. Find the image of a point under a combined transformation
  2. Write g from a verbal sequence of transformations in the stated order
  3. Evaluate g from a table of f
  4. State the domain and range of a transformed function
  5. Describe a transformation in words, naming the axis for a reflection
  6. Use image and preimage correctly

In the exam. Section I, Part A: a table of values for ff and a new function such as g(x)=2f(x−1)+3g(x) = 2f(x - 1) + 3, where you find a value of gg, or a description in words ("reflect over the xx-axis, then shift left 3") where you pick the formula. Domain and range of a transformed function also appear. A Medium item applies a sequence of transformations in the stated order to a table value (dilate, dilate, translate).

1The four basic moves

Let ff be a function and gg the new function.

New functionMoveEffect on a point (x,y)(x, y)
g(x)=f(x)+kg(x) = f(x) + kvertical translation by kk units (up if k>0k > 0)(x,y+k)(x, y + k)
g(x)=f(x+h)g(x) = f(x + h)horizontal translation by −h-h units (left if h>0h > 0)(x−h,y)(x - h, y)
g(x)=af(x)g(x) = a f(x), a≠0a \ne 0vertical dilation by a factor of \(a\); reflection over the xx-axis if a<0a < 0(x,ay)(x, ay)
g(x)=f(bx)g(x) = f(bx), b≠0b \ne 0horizontal dilation by a factor of \(\frac{1}{b}\); reflection over the yy-axis if b<0b < 0(xb,y)\left(\frac{x}{b}, y\right)

Why the input moves backwards. g(x)=f(x+3)g(x) = f(x + 3) gives at x=0x = 0 the value f(3)f(3). The point of ff at x=3x = 3 has moved to x=0x = 0, three units to the left. To get the old value you now need a smaller input.

Dilation by a factor means every distance from the axis is multiplied by that factor. A vertical factor of 2 doubles the heights. A horizontal factor of 13\frac{1}{3}, from f(3x)f(3x), squeezes the graph to a third of its width, because you reach each output at an input a third as large.

Example: f(x)=x2f(x) = x^2.

  • f(x)+3=x2+3f(x) + 3 = x^2 + 3: up 3.
  • f(x+2)=(x+2)2f(x + 2) = (x + 2)^2: left 2. The vertex moves from (0,0)(0, 0) to (−2,0)(-2, 0).
  • −f(x)=−x2-f(x) = -x^2: reflected over the xx-axis. It opens down.
  • g(x)=−(x+2)2+3g(x) = -(x + 2)^2 + 3 combines three moves. The vertex is (−2,3)(-2, 3) and it opens down.

2Image and preimage

The preimage is the set of points of the original graph. The image is the set of points after the transformation.

Example: the graph of ff has the points (−2,4)(-2, 4), (0,1)(0, 1), (2,−3)(2, -3) and (4,0)(4, 0). Let g(x)=2f(x−1)+3g(x) = 2f(x - 1) + 3.

  • f(x−1)f(x - 1) moves each point 1 unit right. x→x+1x \to x + 1.
  • 2f(…)2f(\ldots) doubles each yy-value.
  • +3+ 3 moves each point up 3.

Each point (x,y)(x, y) goes to (x+1,2y+3)(x + 1, 2y + 3).

Preimage on ffImage on gg
(−2,4)(-2, 4)(−1,11)(-1, 11)
(0,1)(0, 1)(1,5)(1, 5)
(2,−3)(2, -3)(3,−3)(3, -3)
(4,0)(4, 0)(5,3)(5, 3)

So g(3)=−3g(3) = -3. Check from the formula: g(3)=2f(2)+3=2(−3)+3=−3g(3) = 2f(2) + 3 = 2(-3) + 3 = -3.

Figure 1. The graph of f(x) = x cubed minus 3x in grey and the graph of g(x) = f(x - 2) + 1 in teal; g is f moved 2 right and 1 up, so the local maximum (-1, 2) of f lands at (1, 3) and the local minimum (1, -2) lands at (3, -1) −2 −1 1 2 3 4 −4 −2 2 4 y x f g
Figure 1 · The graph of f(x) = x³ − 3x and the image g(x) = f(x − 2) + 1

Figure 1 shows a combined translation. The grey curve is f(x)=x3−3xf(x) = x^3 - 3x. The teal curve is g(x)=f(x−2)+1g(x) = f(x - 2) + 1: the same graph moved 2 right and 1 up. The local maximum (−1,2)(-1, 2) of ff is now at (1,3)(1, 3), and the local minimum (1,−2)(1, -2) is now at (3,−1)(3, -1).

3Order of moves

When several moves are combined, the order matters whenever a multiplication and an addition act on the same quantity.

For the output: af(x)+ka f(x) + k means multiply first, then add. a(f(x)+k)a(f(x) + k) means add first, then multiply. They are different functions.

  • 2f(x)+32f(x) + 3: double, then up 3. A point (x,y)(x, y) goes to (x,2y+3)(x, 2y + 3).
  • 2(f(x)+3)2(f(x) + 3): up 3, then double. A point goes to (x,2y+6)(x, 2y + 6).

Follow the order in the formula, working from the function outwards, as a calculator would: first what is inside ff, then what is applied to f(…)f(\ldots).

When the question describes the moves in words, apply them in the order stated. "Reflect over the xx-axis, then shift left 3, then up 1" is g(x)=−f(x+3)+1g(x) = -f(x + 3) + 1. If you shifted the other way, −f(x−3)+1-f(x - 3) + 1, you would have moved the graph right.

A method that avoids sign traps for the input. To find the image of a point whose input on ff is pp, set the expression inside ff equal to pp and solve for xx.

Example: g(x)=f(2x−4)+1g(x) = f(2x - 4) + 1. The point (p,q)(p, q) of ff gives 2x−4=p2x - 4 = p, so x=p+42x = \frac{p + 4}{2}. The image is (p+42,q+1)\left(\frac{p + 4}{2}, q + 1\right). For (6,5)(6, 5), x=5x = 5, so the image is (5,6)(5, 6).

4Domain and range of the new function

A transformation changes the domain and range as it moves the points.

Example: ff has domain [−2,4][-2, 4] and range [−3,4][-3, 4].

FunctionDomainRange
f(x)+2f(x) + 2[−2,4][-2, 4][−1,6][-1, 6]
f(x−1)f(x - 1)[−1,5][-1, 5][−3,4][-3, 4]
2f(x−1)+32f(x - 1) + 3[−1,5][-1, 5][−3,11][-3, 11]
f(2x)f(2x)[−1,2][-1, 2][−3,4][-3, 4]
−f(x)-f(x)[−2,4][-2, 4][−4,3][-4, 3]

For f(2x)f(2x): the input to ff is 2x2x, and it must be in [−2,4][-2, 4]. So −2≤2x≤4-2 \le 2x \le 4, giving −1≤x≤2-1 \le x \le 2. The domain is half as wide.

For 2f(x−1)+32f(x - 1) + 3: the range is 2(−3)+3=−32(-3) + 3 = -3 up to 2(4)+3=112(4) + 3 = 11.

When a<0a < 0, the order of the end values flips. Check which is bigger.

5Describing a transformation in words

Questions give two functions and ask what happened. Say the move, its direction and its size.

Example: g(x)=f(3x)−2g(x) = f(3x) - 2. The graph of gg is the graph of ff horizontally dilated by a factor of 13\frac{1}{3} and then translated down 2 units.

For a reflection, name the axis. A negative sign outside, −f(x)-f(x), reflects over the xx-axis. A negative sign inside, f(−x)f(-x), reflects over the yy-axis.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.