The basic functions are powerful, but they are extremely limited until you can change them to match any given situation. Transformation means that you can change the equation of a basic function by adding, subtracting, and/or multiplying by constants and thus cause a corresponding change in the graph. What are the effects of the following transformations?

- \begin{align*}f(x) \rightarrow f(x+3)\end{align*}
f(x)→f(x+3) - \begin{align*}h(x) \rightarrow h(x)-5\end{align*}
h(x)→h(x)−5 - \begin{align*}g(x) \rightarrow -g(2x)\end{align*}
g(x)→−g(2x) - \begin{align*}j(x) \rightarrow j \left ( -\frac{x}{2} \right )\end{align*}

### Transforming Functions

A **function** is a rule that takes any input \begin{align*}x\end{align*} and gives a specific output. When you use letters like \begin{align*}f\end{align*}, \begin{align*}g\end{align*}, \begin{align*}h\end{align*}, or \begin{align*}j\end{align*} to describe the rule, this is called function notation. In order to interpret what effect the algebraic change in the equation will have on the graph, it is important to be able to read those changes in general function notation and then apply them to specific cases.

When **transforming** a function, you can transform the **argument** (the part inside the parentheses with the \begin{align*}x\end{align*}), or the function itself. There are two ways to linearly transform the argument. You can multiply the \begin{align*}x\end{align*} by a constant and/or add a constant to the \begin{align*}x\end{align*} as shown below:

\begin{align*}f(x) \rightarrow f(bx+c)\end{align*}

The function itself can also be linearly transformed in the same ways:

\begin{align*}f(x) \rightarrow af(x)+d\end{align*}

Each of the letters \begin{align*}a,b,c,\end{align*} and \begin{align*}d\end{align*} corresponds to a very specific change. Some of these changes are straightforward, while others may be the opposite of what you might expect.

- \begin{align*}a\end{align*} is a vertical stretch. If \begin{align*}a\end{align*} is negative, there is also a reflection across the \begin{align*}x\end{align*} axis.
- \begin{align*}d\end{align*} is a vertical shift. If \begin{align*}d\end{align*} is positive, then the shift is up. If \begin{align*}d\end{align*} is negative, then the shift is down.

When transforming the argument of the function things are more complicated.

- \begin{align*}\frac{1}{b}\end{align*} is a horizontal stretch. If \begin{align*}b\end{align*} is negative, there is also a reflection across the \begin{align*}y\end{align*} axis.
- \begin{align*}c\end{align*} is a horizontal shift. If \begin{align*}c\end{align*} is positive, then the shift is to the left. If \begin{align*}c\end{align*} is negative, then the shift is to the right. Notice that this is the opposite of what most people think at first.

The trickiest part with transforming the argument of a function is the order in which you carry out the transformations. Often it makes sense to apply the transformation to a specific function that is known and then describe the transformation that you see.

The graph below shows the transformation \begin{align*}f(x) \rightarrow f(3x-6)\end{align*} applied to a simple parabola:

Clearly the graph is narrower and to the right, but in order to be specific you must look closer. First, notice that the transformation is entirely within the argument of the function. This affects only the horizontal values. This means while the graph seems like it was stretched vertically, you must keep your perspective focused on a horizontal compression.

Look carefully at the vertex of the parabola. It has moved to the right two units. This is because first the entire graph was shifted entirely to the right 6 units. Then the function was horizontally compressed by a factor of 3 which means the point (6, 0) became (2, 0) and the \begin{align*}x\end{align*} value of every other point was also compressed by a factor of 3 towards the line \begin{align*}x = 0\end{align*}. This method is counter-intuitive because it requires reading the transformations backwards (the opposite of the way the order of operations tells you to).

Alternatively, the argument can be factored and each component of the transformation will present itself.

\begin{align*}f(3(x-2))\end{align*}

This time the stretch occurs from the center of the transformed graph, not the origin. This method is ultimately the preferred method.

Either way, this is a horizontal compression by a factor of 3 and a horizontal shift to the right by 2 units.

Now take the transformation \begin{align*}f(x) \rightarrow - \frac{1}{4}f(x)+3\end{align*} . It describes a vertical stretch by a factor of \begin{align*}\frac{1}{4}\end{align*}, a reflection over the \begin{align*}x\end{align*} axis, and a vertical shift 3 units up. As opposed to what you saw above, the order of the transformations for anything outside of the argument is directly what the order of operations dictates.

First, the parabola is reflected over the \begin{align*}x\end{align*} axis and compressed vertically so it appears wider. Then, every point is moved up 3 units.

The transformation \begin{align*}f(x)\rightarrow- 3f \left ( -\frac{1}{2}x-1 \right )+1\end{align*} contains every possible transformation. The horizontal and the vertical components do not interact with each other and so your description of the transformation can begin with either component. Here, start by describing the vertical components of the transformation:

First*,* there is reflection across the \begin{align*}x\end{align*} axis and a vertical stretch by a factor of 3. Then, there is a vertical shift up 1 unit. Below is an image of a non-specific function going through the vertical transformations.

In order to figure out the horizontal components of the transformation, start by factoring the inside of the parentheses (the argument):

\begin{align*}f \left ( -\frac{1}{2} x- 1 \right ) = f \left ( -\frac{1}{2}(x+2) \right )\end{align*}

Factoring reveals a reflection across the \begin{align*}y\end{align*} axis, a horizontal shift left 2 units and a horizontal stretch by a factor of 2. Below is an image of the same function going through the horizontal transformations.

**Examples**

**Example 1**

Earlier, you were given a problem about the effects of the following transformations:

\begin{align*}f(x) \rightarrow f(x+3)\end{align*}

This transformation shifts the entire graph left 3 units. A common misconception is to shift right because the three is positive.

\begin{align*}h(x) \rightarrow h(x) -5\end{align*}

This transformation shifts the entire graph down 5 units.

\begin{align*}g(x) \rightarrow -g(2x)\end{align*}

This transformation is a vertical reflection across the \begin{align*}x\end{align*} axis and a horizontal compression by a factor of 2.

\begin{align*}j(x) = j \left ( - \frac{x}{2} \right )\end{align*}

This transformation is a horizontal reflection across the \begin{align*}y\end{align*} axis and a horizontal stretch by a factor of 2. A common misconception is to see the \begin{align*}\frac{1}{2}\end{align*} and believe that the \begin{align*}x\end{align*} values will be half as big which is a horizontal compression. However, the \begin{align*}x\end{align*} values need to be twice as big to counteract this factor of \begin{align*}\frac{1}{2}\end{align*}.

#### Example 2

Describe the following transformation in words: \begin{align*}g(x) \rightarrow 2 g (-x)\end{align*}

Vertical stretch by a factor of 2 and a reflection across the \begin{align*}y\end{align*} axis.

**Example 3**

Describe the transformation that would change \begin{align*}h(x)\end{align*} in the following ways:

- Vertical compression by a factor of 3.
- Vertical shift down 4 units.
- Horizontal shift right 5 units.

\begin{align*}\frac{1}{3}h(x-5)-4\end{align*}

#### Example 4

Describe the transformation that would change \begin{align*}f(x)\end{align*} in the following ways:

- Horizontal stretch by a factor of 4 and a horizontal shift 3 units to the right.
- Vertical reflection across the \begin{align*}x\end{align*} axis and a shift down 2 units.

\begin{align*}-f \left ( \frac{1}{4}(x -3)\right ) -2\end{align*} or \begin{align*}-f \left ( \frac{1}{4}x -\frac{3}{4}\right ) -2\end{align*}

### Review

Describe the following transformations in words.

1. \begin{align*}g(x) \rightarrow -g(-x)\end{align*}

2. \begin{align*}f(x) \rightarrow -f(x+3)\end{align*}

3. \begin{align*}h(x) \rightarrow h(x+1)-2\end{align*}

4. \begin{align*}j(x) \rightarrow j(-x+3)\end{align*}

5. \begin{align*}k(x) \rightarrow - k(2x)\end{align*}

6. \begin{align*}f(x) \rightarrow 4 f \left ( \frac{1}{2}x + 1 \right )\end{align*}

7. \begin{align*}g(x) \rightarrow -3g(x-2)-2\end{align*}

8. \begin{align*}h(x) \rightarrow 5h (x+1)\end{align*}

9. Describe the transformation that would change \begin{align*}h(x)\end{align*} in the following ways:

- Vertical stretch by a factor of 2
- Vertical shift up 3 units.
- Horizontal shift right 2 units.

10. Describe the transformation that would change \begin{align*}f(x)\end{align*} in the following ways:

- Vertical reflection across the \begin{align*}x\end{align*} axis.
- Vertical shift down 1 unit.
- Horizontal shift left 2 units.

11. Describe the transformation that would change \begin{align*}g(x)\end{align*} in the following ways:

- Vertical compression by a factor of 4.
- Reflection across the \begin{align*}y\end{align*} axis.

12. Describe the transformation that would change \begin{align*}j(x)\end{align*} in the following ways:

- Horizontal compression by a factor of 3.
- Vertical shift up 3 units.
- Horizontal shift right 2 units.

13. Describe the transformation that would change \begin{align*}k(x)\end{align*} in the following ways:

- Horizontal stretch by a factor of 4.
- Vertical shift up 3 units.
- Horizontal shift left 1 unit.

14. Describe the transformation that would change \begin{align*}h(x)\end{align*} in the following ways:

- Vertical compression by a factor of 2.
- Horizontal shift right 3 units.
- Reflection across the \begin{align*}y\end{align*} axis.

15. Describe the transformation that would change \begin{align*}f(x)\end{align*} in the following ways:

- Vertical stretch by a factor of 5.
- Reflection across the \begin{align*}x\end{align*} axis.

### Review (Answers)

To see the Review answers, open this PDF file and look for section 1.2.