NC.M3.F-BF.3Print or save as PDF
Transformations of Functions
What happens to a graph, and to a table of values, when you replace f(x) with k·f(x), f(x) + k, f(x + k), or f(k·x). The last one is new in Math 3. The big idea: changes made outside the parentheses move the outputs the way you expect, but changes made inside act backward.
Source: Authored for NCMath (not from the PDF prototype) — needs teacher review
Outside vs. inside
In every card below, the blue graph is the original f and the orange graph is the new one.
A change outside the function, like f(x) + 3 or 2·f(x), happens to the output (the y-value) after f is done. It does what it looks like it does.
A change inside the parentheses, like f(x + 3) or f(2x), happens to the input (the x-value) before f is used. So it works backward from what you'd guess.
Why backward? For g(x) = f(x + 3), g needs x + 3 to equal the old input. The old input 2 now comes from x = −1, which is 3 less. Every point slides 3 to the left.
Memory hook: Outside the parentheses: y changes, and it does what it says. Inside the parentheses: x changes, and it does the opposite.
Outside changes: f(x) + k and k·f(x)
f(x) + k: slide up or down
Vertical shift — (x, y) → (x, y + k)
Add k to every output. If k is positive the graph moves up k. If k is negative it moves down.
Here f(x) = x² and the new graph is f(x) + 3. The point (2, 4) becomes (2, 7).
| x | f(x) = x² | f(x) + 3 |
|---|---|---|
| −2 | 4 | 7 |
| −1 | 1 | 4 |
| 0 | 0 | 3 |
| 1 | 1 | 4 |
| 2 | 4 | 7 |
The x column does not change. Only the outputs get 3 added.
Example
f(x) = x². Where does the vertex (0, 0) go on f(x) − 2?
Subtract 2 from the output: (0, 0) → (0, −2).
Subtract 2 from the output: (0, 0) → (0, −2).
k·f(x): stretch or shrink vertically
Vertical stretch (k > 0) — (x, y) → (x, k·y)
Multiply every output by k. If k > 1 the graph stretches away from the x-axis. If 0 < k < 1 it shrinks toward the x-axis.
Here f(x) = √x and the new graph is 2·f(x). The point (4, 2) becomes (4, 4). Points on the x-axis stay put, because 2 · 0 = 0.
| x | f(x) = √x | 2·f(x) |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | 2 |
| 4 | 2 | 4 |
| 9 | 3 | 6 |
Example
Using the table above, what is ½·f(x) at x = 4?
½ · 2 = 1, so the point (4, 2) becomes (4, 1). Every height is cut in half.
½ · 2 = 1, so the point (4, 2) becomes (4, 1). Every height is cut in half.
−f(x): flip over the x-axis
Negative k on the outside — (x, y) → (x, −y)
A negative k·f(x) flips the graph over the x-axis. The point (4, 2) becomes (4, −2).
For k = −2 you do both: flip, and stretch by 2.
| x | f(x) = √x | −f(x) |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | −1 |
| 4 | 2 | −2 |
| 9 | 3 | −3 |
Example
f(x) = √x. What is −2·f(x) at x = 9?
f(9) = 3, and −2 · 3 = −6, so (9, 3) → (9, −6).
f(9) = 3, and −2 · 3 = −6, so (9, 3) → (9, −6).
Trap: Do not confuse −f(x) with f(−x). The first flips up and down (over the x-axis). The second flips left and right (over the y-axis).
Inside changes: f(x + k) and f(k·x)
f(x + k): slide left or right
Horizontal shift — (x, y) → (x − k, y)
f(x + 3) moves the graph 3 units LEFT, not right. The graph reaches each y-value 3 sooner.
f(x − 3) moves the graph 3 units right.
Here f(x) = x². The point (2, 4) on f lands at (−1, 4) on f(x + 3), and the vertex (0, 0) lands at (−3, 0).
| x | x + 3 | f(x + 3) = (x + 3)² |
|---|---|---|
| −5 | −2 | 4 |
| −4 | −1 | 1 |
| −3 | 0 | 0 |
| −2 | 1 | 1 |
| −1 | 2 | 4 |
Read it as: feed f the number x + 3. The output 4 now shows up at x = −5 and x = −1.
Example
f(x) = x². Where is the vertex of f(x − 5)?
Here k = −5, so the rule x − k gives 0 − (−5) = 5. The vertex moves to (5, 0), which is 5 units to the right.
Here k = −5, so the rule x − k gives 0 − (−5) = 5. The vertex moves to (5, 0), which is 5 units to the right.
Trap: f(x + 3) looks like it should move right because of the plus sign. It moves LEFT. To find where an old point (a, b) goes, solve x + 3 = a, so x = a − 3.
f(k·x): squeeze or stretch horizontally
Horizontal scale (k > 0) — (x, y) → (x/k, y)
f(2x) divides every x-value by 2. The graph is squeezed toward the y-axis. It is compressed horizontally by a factor of ½.
f(½x) goes the other way: every x-value is multiplied by 2, so the graph is stretched horizontally.
Points on the y-axis stay put, because 0 ÷ k = 0. The y-values never change.
Here f is the piecewise graph from (−2, 0) to (4, 0). The point (3, 1) lands at (1.5, 1) on f(2x), and (−2, 0) lands at (−1, 0).
| x | 2x | f(2x) |
|---|---|---|
| −1 | −2 | 0 |
| −1/2 | −1 | 1 |
| 0 | 0 | 2 |
| 1.5 | 3 | 1 |
| 2 | 4 | 0 |
f(2x) reaches each output at half the old x.
Example
(6, 5) is on f. Where does it land on f(2x)?
Solve 2x = 6, so x = 3. The point is (3, 5).
Solve 2x = 6, so x = 3. The point is (3, 5).
Trap: The 2 in f(2x) makes the graph narrower, and the x-values get divided by 2. Students often multiply them by 2 instead.
f(−x): flip over the y-axis
Negative k on the inside — (x, y) → (−x, y)
f(−x) flips the graph left and right over the y-axis. Every x-value changes sign and every y-value stays.
The point (3, 1) on f lands at (−3, 1), and the endpoint (4, 0) lands at (−4, 0).
For f(−2x) you do both: flip over the y-axis, and compress by ½.
| x | −x | f(−x) |
|---|---|---|
| −4 | 4 | 0 |
| −3 | 3 | 1 |
| −2 | 2 | 2 |
| 0 | 0 | 2 |
| 2 | −2 | 0 |
Example
(−1, 1) is on f. Where is it on f(−x)?
Solve −x = −1, so x = 1. The point is (1, 1).
Solve −x = −1, so x = 1. The point is (1, 1).
All of them at a glance
| New function | What happens to (x, y) | In words |
|---|---|---|
| f(x) + k | (x, y + k) | up k (down if k is negative) |
| k·f(x), k > 0 | (x, k·y) | stretch vertically by k (shrink if k < 1) |
| −f(x) | (x, −y) | flip over the x-axis |
| f(x + k) | (x − k, y) | left k (right if k is negative) |
| f(k·x), k > 0 | (x/k, y) | compress horizontally by 1/k (stretch if k < 1) |
| f(−x) | (−x, y) | flip over the y-axis |
Changes to y do what the formula says. Changes to x are reversed: add becomes left, multiply becomes divide.
Combining transformations
Track a point Solve the inside for x, then do the outside to y. — g(x) = m·f(x + h) + c: (a, b) → (a − h, m·b + c)
Here f(x) = x² (blue) and g(x) = −f(x − 2) + 5 (orange). The vertex (0, 0) lands at (2, 5), and (2, 4) lands at (4, 1).
The easiest method is to track points. For g(x) = −f(x − 2) + 5, an old point (a, b) goes to (a + 2, −b + 5). The inside change x − 2 moves x to the right by 2. Then the outside changes flip y and add 5.
| Point on f | Right 2 | Flip and up 5 → point on g |
|---|---|---|
| (−2, 4) | (0, 4) | (0, 1) |
| (0, 0) | (2, 0) | (2, 5) |
| (2, 4) | (4, 4) | (4, 1) |
Example
Where does (0, 0) go on g(x) = f(2x − 6)?
Solve 2x − 6 = 0, so x = 3. The point is (3, 0). Factor first: f(2x − 6) = f(2(x − 3)), so the shift is 3 right, not 6.
Solve 2x − 6 = 0, so x = 3. The point is (3, 0). Factor first: f(2x − 6) = f(2(x − 3)), so the shift is 3 right, not 6.
Memory hook: Factor out the number multiplying x before you read the shift. In f(2x − 6) the shift is 3, because 2x − 6 = 2(x − 3).
Going backwards: find k from a graph or table
- Pick one point on f that is easy to track, such as a vertex, an endpoint, or an intercept. Find where it went on the new graph.
- If only the y-value changed, the change is on the outside. If y went up or down by the same amount for every point, it is f(x) + k, and k is the difference. If y was multiplied, it is k·f(x), and k is the ratio new y ÷ old y. A negative ratio means a flip as well.
- If only the x-value changed, the change is on the inside. For a slide, it is f(x + k), and k = old x − new x. For a squeeze or stretch, it is f(kx), and k = old x ÷ new x.
- Check a second point so you know it is the right kind of change.
| Question | Compare | k |
|---|---|---|
| g(x) = f(x) + k | new y − old y | difference |
| g(x) = k·f(x) | new y ÷ old y | ratio |
| g(x) = f(x + k) | old x − new x | difference, reversed |
| g(x) = f(k·x) | old x ÷ new x | ratio, reversed |
Example
f(2) = 4 and the new graph passes through (−1, 4). Find k if g(x) = f(x + k).
Same y, so only x changed. k = old x − new x = 2 − (−1) = 3. Then g(x) = f(x + 3), a shift 3 left. Check: g(−1) = f(−1 + 3) = f(2) = 4.
Same y, so only x changed. k = old x − new x = 2 − (−1) = 3. Then g(x) = f(x + 3), a shift 3 left. Check: g(−1) = f(−1 + 3) = f(2) = 4.
Practice
1. The table gives f(x) = x². Complete a table for g(x) = f(x) + 3. Give the g(x) values for x = −2, −1, 0, 1, 2.
| x | −2 | −1 | 0 | 1 | 2 |
|---|---|---|---|---|---|
| f(x) | 4 | 1 | 0 | 1 | 4 |
2. The graph of f(x) = x² is shown. Where is the vertex of g(x) = f(x + 2), and which way did the graph move?
3. A function f is given by this table. Let g(x) = f(2x). Find g(0), g(1), g(2), g(3), g(4).
| x | 0 | 2 | 4 | 6 | 8 |
|---|---|---|---|---|---|
| f(x) | 1 | 3 | 2 | 5 | 4 |
4. The graph of f(x) = √x is shown. Sketch g(x) = −f(x). What happens to the point (9, 3)?
5. The graph of f is shown, with endpoints (−2, 0) and (4, 0). Sketch y = f(−x). Where do the two endpoints go?
6. The blue graph is f(x) = x². The orange graph is g(x) = f(x + k). Find k.
7. The table shows f(x) = x² and the values of g(x) = k·f(x). Find k.
| x | −2 | −1 | 0 | 1 | 2 |
|---|---|---|---|---|---|
| f(x) | 4 | 1 | 0 | 1 | 4 |
| g(x) | 12 | 3 | 0 | 3 | 12 |
8. The table gives f(x) = √x. The function g(x) = f(k·x) has g(0) = 0, g(¼) = 1, g(1) = 2, and g(9/4) = 3. Find k.
| x | 0 | 1 | 4 | 9 |
|---|---|---|---|---|
| f(x) | 0 | 1 | 2 | 3 |
9. The graph of f(x) = x² is shown. Describe g(x) = −f(x − 2) + 5 as a list of transformations, and find the new vertex.