Access this content offline
Omniguides
Skip to the reading

Function Transforms

This original textbook reading covers part of the AP topic. Follow the AP course outline for complete topic instruction and practice.

This reading includes verified answer corrections and explicitly stated clarifications.

What are Transforms?

Unfortunately, they do not have anything to do with giant fighting robots. Transforms are a way to change the behavior of functions in predictable ways by changing specific values and parameters. A few basic transforms are: reflection, translation, stretching and compression. Each transform can also occur horizontally (in the x-direction) or vertically (in the y-direction).

Reflection

Reflection is perhaps the easiest transform to understand. Think of reflection as creating an imaginary mirror for the function to look at. You can place the mirror on the x-axis or on the y-axis, resulting in a reflection across the x-axis or a reflection across the y-axis, respectively. Here is a brief tutorial on how to do both.

Reflection across x-axis:

For any function f(x), its reflection across the x-axis is represented by the function -f(x).

Reflection across y-axis:

For any function f(x), its reflection across the y-axis is represented by the function f(-x).

Reflection across y=x (also known as the inverse function): For any function represented by y=f(x), its reflection across the y=x line is represented by x=f(y).

The following picture summarizes the three types of reflection and how to perform them.

Source figureWhat does this mean? Let’s look at some examples:

Example problem 1.2.1

Perform all three reflections mentioned for the function f(x)=x2-2x+5 .

x-axis reflection: Simply multiply the value of the function by -1. Thus, x2-2x+5 becomes –(x2-2x+5). Let’s call this function g(x), so that g(x) = -x2+2x-5.

y-axis reflection: Replace all x-values in the function with a –x. Thus, x2-2x+5 becomes (-x)2-2(-x)+5 . Let’s call this function h(x), so that h(x)=x2+2x+5 after simplification.

Reflection across y=x: Just switch the x’s and y’s in the function. In this case, y=x2-2x+5 becomes x=y2-2y+5. A good math student would rearrange that function so the y appears on one side. However, the transformation does not pass the vertical line test, and is therefore not a function.

Here is a slideshow of reflections to help you visualize the changes. When you combine reflections, keep track of their order: some pairs commute, and some do not.

Reflecting across the x-axis and then the y-axis gives the same result as reversing those two reflections. But an axis reflection and reflection across y = x generally do not commute. Try the point (1, 2): x-axis then y = x gives (−2, 1), while y = x then x-axis gives (2, −1). For a graph, apply each transformation to the result of the previous step.

Hint #2: Write out all possible combinations of different reflections without repeating any. There should be 7, plus the parent function makes a total of eight functions. After that it’s just matching the reflections to their graphs.

Additional Exercise: Write down the equations for each of the colored graphs shown in the last slide

of Gallery 1.2.1.

Translation

Translation simply means moving the graph in the x and y direction. A translation of the function f(x) by (h,k) units is represented by the function t(x)=f(x-h)+k . The h represents horizontal translation. The k represents vertical translation. Notice that positive horizontal translation is accomplished by a negative h term. f(x+h) yields translation in the negative-x direction by h units.

Example Problem 1.2.2

Translate the equation y= x2+4x+6 so that the new vertex is four values to the right and one value down. Write the new function.

Recall that the vertex of a parabolic function occurs at (h, k), assuming the parabola is represented by y=(x-h)2+k. We have to rearrange our equation into the form y=(x+2)2+2. Recall that this is called completing the square. When written this way, it is evident that the function’s current vertex is at (-2, 2) .

The new vertex is at (-2+4, 2-1). This is represented by the equation y=(x-2)2+1 . This can also be written as y= x2-4x+5.

Example Problem 1.2.3

Translate the equation y=ex horizontally 3 units in the positive direction and –2 units in the vertical direction. Write the final equation.

In order to shift it in the positive x-direction we replace x with x-3, and in order to shift it 2 units in the negative-y direction, we subtract 2 from the final function value, giving y=ex-3-2.

Stretching and Compression of functions is most often seen in sinusoidal functions (sin(x) and cos(x)).

Stretching and compression in the x-direction:

Stretching and compressing a function in the x-direction is accomplished by transforming the function f(x) into f(c•x), where c is the factor of stretching or compression. For c<1, the function stretches. For c>1, the function compresses. This is known as horizontal stretching and compression.

Stretching and compression in the y-direction:

Stretching and compressing a function in the y-direction is accomplished by multiplying the entire function by a constant. For any function f(x), its vertically stretched version is represented by s(x) = c • f(x). However, this time, for c<1, the function compresses down in the y-direction and for c>1, the function stretches out in the y-direction. This is known as vertical stretching and compression. What does this look like?

Bringing everything Together

We have learned about many function transforms, but the trickiest part is knowing which combination of transformations is used, and how it affects the graph of the parent function. If you can identify which transformations are involved, you can predict the general behavior of a similar function given to you. This is especially important in dealing with sinusoidal functions, sin(x) and cos(x). Their general forms are given by the equations:

f(x)=A⋅sin(k(x-B))+C f(x)=A⋅cos(k(x-B))+C.

A = Amplitude, or the vertical stretching/compression term.

B = Phase shift, or horizontal translation.

C = Vertical shift, or vertical translation.

k is a special term. It represents horizontal stretching or compression, it is proportional to the frequency, and can be used to calculate the period. The period, T, if you recall, is how often the function repeats itself.

Pop Quiz 1.2.1 Transforms Review

Question 1 of 5 · 0 correct

What is the period and the phase shift of the equation y=sin(2x-2) compared to the base function sin(x)?

Select one answer.

T= 2πk .

Next, you will find a section quiz on all the material covered so far, not just in this section. So get a pen or pencil and a some paper and get ready to solve mathematical puzzles!

Glossary and deeper reading · 2 refreshers

These editorial refreshers supplement the reading. Definitions and examples are added guidance; original source wording and recorded answers remain in their original context.

  • Graph reflection

    A graph reflection flips points across a specified line. Replacing f(x) by −f(x) reflects across the horizontal axis, while f(−x) reflects across the vertical axis. For example, −x² is the reflection of y=x² across the horizontal axis. Reflecting across y=x interchanges input and output coordinates and can produce an inverse relation.

  • Graph translation

    A graph translation shifts every point by the same horizontal and vertical amounts. The graph y=f(x−h)+k moves the original graph h units right and k units up. For example, y=(x−2)²+3 shifts y=x² right 2 and up 3. Negative shifts move in the opposite directions.

Search lessons, terms and problems