Learn · Algebra 1

Transformations of functions

Say how the graph and table of a linear, quadratic or absolute value function change when f(x) becomes f(x) + k, k f(x), f(kx) or f(x + k).

Lesson 3 of 3About 30 minutesMA.912.F.2.1

Written with AI assistance. No teacher has reviewed these lessons and questions yet.

01 · Learn the idea

Outside changes and inside changes

Start with a function f. You can build a new function from it in four basic ways: add a number to the output, f(x) + k; multiply the output by a number, k f(x); add a number to the input, f(x + k); or multiply the input by a number, f(kx). Each one is called a transformation, and each moves or reshapes the graph in its own way.

Take f(x) = x². Its table is x: −2, −1, 0, 1, 2 and f(x): 4, 1, 0, 1, 4. For g(x) = f(x) + 3, every output is 3 more: 7, 4, 3, 4, 7. Every point on the graph moves up 3 units.

A change outside the parentheses happens after f has done its work, so it changes outputs. Outputs are heights, so the graph changes vertically, and it does just what the number says.

A change inside the parentheses happens to the input before f sees it. It changes the graph horizontally, and it does the opposite of what the number seems to say. The next two sections show why.

02 · Build understanding

Slides: f(x) + k and f(x + k)

f(x) + k slides the graph up k units when k is positive. When k is negative it slides the graph down |k| units, so f(x) − 4 slides it down 4 units. For f(x) = x², the graph of f(x) − 4 is the same parabola 4 units lower, with its vertex at (0, −4) in place of (0, 0).

f(x + k) slides the graph left k units when k is positive. When k is negative it slides the graph right |k| units, so f(x − 3) slides it 3 units right. For f(x) = x², the graph of f(x + 3) = (x + 3)² has its vertex at (−3, 0), which is 3 units to the left.

Why left? The new function reaches each output early. f(x + 3) gives the output 0 when x + 3 = 0, which is at x = −3. Every output that f gave at some x, the new function already gives at 3 less than that x.

In the same way, f(x − 3) = (x − 3)² gives the output 0 at x = 3, so its graph is 3 units to the right.

(0, 0)(0, −4)(−3, 0)
  • f(x) = x²
  • f(x) − 4
  • f(x + 3)
The parabola y = x² with one copy moved down 4 to vertex (0, −4) and one copy moved left 3 to vertex (−3, 0).

03 · Build understanding

Stretches and flips: k f(x) and f(kx)

k f(x) multiplies every output by k. Points on the x-axis have output 0, and k times 0 is still 0, so the x-intercepts stay where they are. Every other point moves to k times its old height. If k is greater than 1 the graph is stretched away from the x-axis. If k is between 0 and 1 it is pressed toward the x-axis. If k is negative the graph also flips over the x-axis.

Take f(x) = x² − 4, with x-intercepts −2 and 2 and vertex (0, −4). Then 2 f(x) = 2x² − 8 keeps the x-intercepts −2 and 2, and its vertex is twice as far from the x-axis, at (0, −8).

f(kx) multiplies every input by k before f sees it. The point on the y-axis has input 0, and k times 0 is still 0, so the y-intercept stays where it is. Every other point moves to 1/k times its old distance from the y-axis. If k is greater than 1 the graph is squeezed toward the y-axis. If k is between 0 and 1 it is stretched away. If k is negative the graph also flips over the y-axis.

For the same f, f(2x) = (2x)² − 4 = 4x² − 4. The vertex stays at (0, −4), and the x-intercepts move in to −1 and 1, half as far from the y-axis.

Two special cases have names. −f(x) is the reflection of the graph over the x-axis. f(−x) is the reflection of the graph over the y-axis.

(−2, 0)(2, 0)(0, −4)(0, −8)
  • f(x) = x² − 4
  • 2f(x)
  • f(2x)
y = x² − 4 with 2f(x), which keeps the x-intercepts −2 and 2, and f(2x), which keeps the vertex (0, −4).

04 · Build understanding

Worked example: four new tables from one

The function f(x) = |x − 2| has the table x: −4, −2, 0, 2, 4 and f(x): 6, 4, 2, 0, 2. Build the tables for f(x) − 5, −2 f(x), f(x + 2) and f(2x).

Step 1: f(x) − 5 is an outside change, so keep the x-values and subtract 5 from each output: 1, −1, −3, −5, −3. The graph moves down 5.

Step 2: −2 f(x) is also outside. Keep the x-values and multiply each output by −2: −12, −8, −4, 0, −4. The graph is stretched to twice its height and flipped over the x-axis. The output 0 at x = 2 does not move.

Step 3: f(x + 2) is an inside change, so the outputs stay and the x-values change. To get the output f(2) = 0 you now need x + 2 = 2, so x = 0. Each output shows up at an x-value 2 less than before. The new table is x: −6, −4, −2, 0, 2 with the same outputs 6, 4, 2, 0, 2. The graph moves left 2.

Step 4: f(2x) is inside too. To get f(2) = 0 you need 2x = 2, so x = 1. Each output shows up at half its old x-value. The new table is x: −2, −1, 0, 1, 2 with outputs 6, 4, 2, 0, 2. The graph is squeezed toward the y-axis.

Step 5: Check one entry of each with the rule. f(0) − 5 = 2 − 5 = −3. −2 f(−4) = −2(6) = −12. At x = −6, f(−6 + 2) = f(−4) = 6. At x = −1, f(2(−1)) = f(−2) = 4.

05 · Build understanding

Worked example: transforming a line

Let f(x) = 2x + 1. Write each new function as an equation and describe its graph: f(x) + 4, f(x + 4), 3 f(x), f(3x) and f(−x).

Step 1: f(x) + 4 = 2x + 1 + 4 = 2x + 5. The slope is the same and the y-intercept rises from 1 to 5. The line moves up 4.

Step 2: f(x + 4) = 2(x + 4) + 1 = 2x + 9. Replace x with the whole expression x + 4, in parentheses. The line moves left 4. The x-intercept goes from −1/2 to −9/2, which is 4 less.

Step 3: 3 f(x) = 3(2x + 1) = 6x + 3. The slope and the y-intercept are both multiplied by 3. The x-intercept stays at −1/2, because 3 times 0 is 0.

Step 4: f(3x) = 2(3x) + 1 = 6x + 1. The slope is multiplied by 3 but the y-intercept stays at 1. The x-intercept moves from −1/2 to −1/6, one third as far from the y-axis.

Step 5: f(−x) = 2(−x) + 1 = −2x + 1. This is the reflection over the y-axis: the line now falls from left to right and still crosses the y-axis at 1.

Step 6: Check one with a point. f(1) = 3, so (1, 3) is on the graph of f. Moving it left 4 gives (−3, 3). In the new function, f(−3 + 4) = f(1) = 3, so (−3, 3) is on the graph of f(x + 4).

06 · Build understanding

Four mistakes to watch for

Sliding the wrong way for an inside change. For f(x) = x², the graph of f(x + 3) is 3 units left, not right. Test it: the vertex needs x + 3 = 0, so x = −3.

Mixing up −f(x) and f(−x). For f(x) = 2x + 1, −f(x) = −2x − 1 flips the line over the x-axis, so the y-intercept moves from 1 to −1. f(−x) = −2x + 1 flips it over the y-axis, so the y-intercept stays at 1.

Thinking f(2x) makes the graph twice as wide. Multiplying the input by 2 makes everything happen twice as soon, so the graph is half as wide. For f(x) = x² − 4, the x-intercepts of f(2x) are −1 and 1, not −4 and 4.

Reading (1/2) f(x) as a slide down. Multiplying outputs by 1/2 does not subtract anything. A point at height 6 goes to height 3, a point at height −4 goes to height −2, and a point on the x-axis stays put.

Apply and explain

Your turn

For f(x) = |x|, Maya says that g(x) = f(x − 6) and h(x) = f(x) − 6 have the same graph because both "subtract 6". Is she right? Use the vertex of each graph to explain.

Use paper or explain your thinking aloud before opening the solution.

Check your reasoning

She is not right. In g(x) = f(x − 6) = |x − 6| the 6 is subtracted from the input, inside the function. The output is 0 when x − 6 = 0, so the vertex is (6, 0): the graph of f moved 6 units right. In h(x) = f(x) − 6 = |x| − 6 the 6 is subtracted from the output, so every point drops 6 and the vertex is (0, −6). The two V shapes are the same size but sit in different places.

  • Places the vertex of g at (6, 0) and says the graph moved right 6.
  • Places the vertex of h at (0, −6) and says the graph moved down 6.
  • Explains the difference as an input change against an output change.

Ready to practice?

Try the questions, get feedback, and review your reasoning.

Transformations of functions: practice →