Giáo trình

# Precalculus

Mathematics and Statistics

## Transformation of Functions

Tác giả: OpenStaxCollege

We all know that a flat mirror enables us to see an accurate image of ourselves and whatever is behind us. When we tilt the mirror, the images we see may shift horizontally or vertically. But what happens when we bend a flexible mirror? Like a carnival funhouse mirror, it presents us with a distorted image of ourselves, stretched or compressed horizontally or vertically. In a similar way, we can distort or transform mathematical functions to better adapt them to describing objects or processes in the real world. In this section, we will take a look at several kinds of transformations.

# Graphing Functions Using Vertical and Horizontal Shifts

Often when given a problem, we try to model the scenario using mathematics in the form of words, tables, graphs, and equations. One method we can employ is to adapt the basic graphs of the toolkit functions to build new models for a given scenario. There are systematic ways to alter functions to construct appropriate models for the problems we are trying to solve.

## Identifying Vertical Shifts

One simple kind of transformation involves shifting the entire graph of a function up, down, right, or left. The simplest shift is a vertical shift, moving the graph up or down, because this transformation involves adding a positive or negative constant to the function. In other words, we add the same constant to the output value of the function regardless of the input. For a function$\text{\hspace{0.17em}}g\left(x\right)=f\left(x\right)+k,\text{\hspace{0.17em}}$the function$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$is shifted vertically$\text{\hspace{0.17em}}k\text{\hspace{0.17em}}$units. See [link] for an example.

To help you visualize the concept of a vertical shift, consider that$\text{\hspace{0.17em}}y=f\left(x\right).\text{\hspace{0.17em}}$Therefore,$\text{\hspace{0.17em}}f\left(x\right)+k\text{\hspace{0.17em}}$is equivalent to$\text{\hspace{0.17em}}y+k.\text{\hspace{0.17em}}$Every unit of$\text{\hspace{0.17em}}y\text{\hspace{0.17em}}$is replaced by$\text{\hspace{0.17em}}y+k,\text{\hspace{0.17em}}$so the $\text{\hspace{0.17em}}y\text{-}$value increases or decreases depending on the value of$\text{\hspace{0.17em}}k.\text{\hspace{0.17em}}$The result is a shift upward or downward.

Vertical Shift

Given a function $f\left(x\right),$ a new function $g\left(x\right)=f\left(x\right)+k,$ where $\text{\hspace{0.17em}}k$ is a constant, is a vertical shift of the function $f\left(x\right).$ All the output values change by $k$ units. If $k$ is positive, the graph will shift up. If $k$ is negative, the graph will shift down.

Adding a Constant to a Function

To regulate temperature in a green building, airflow vents near the roof open and close throughout the day. [link] shows the area of open vents$\text{\hspace{0.17em}}V\text{\hspace{0.17em}}$(in square feet) throughout the day in hours after midnight,$\text{\hspace{0.17em}}t.\text{\hspace{0.17em}}$During the summer, the facilities manager decides to try to better regulate temperature by increasing the amount of open vents by 20 square feet throughout the day and night. Sketch a graph of this new function.

We can sketch a graph of this new function by adding 20 to each of the output values of the original function. This will have the effect of shifting the graph vertically up, as shown in [link].

Notice that in [link], for each input value, the output value has increased by 20, so if we call the new function$\text{\hspace{0.17em}}S\left(t\right),$we could write

This notation tells us that, for any value of$\text{\hspace{0.17em}}t,S\left(t\right)\text{\hspace{0.17em}}$can be found by evaluating the function$\text{\hspace{0.17em}}V\text{\hspace{0.17em}}$at the same input and then adding 20 to the result. This defines$\text{\hspace{0.17em}}S\text{\hspace{0.17em}}$as a transformation of the function$\text{\hspace{0.17em}}V,\text{\hspace{0.17em}}$in this case a vertical shift up 20 units. Notice that, with a vertical shift, the input values stay the same and only the output values change. See [link].

 $t$ 0 8 10 17 19 24 $V\left(t\right)$ 0 0 220 220 0 0 $S\left(t\right)$ 20 20 240 240 20 20

Given a tabular function, create a new row to represent a vertical shift.

1. Identify the output row or column.
2. Determine the magnitude of the shift.
3. Add the shift to the value in each output cell. Add a positive value for up or a negative value for down.
Shifting a Tabular Function Vertically

A function$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$is given in [link]. Create a table for the function$\text{\hspace{0.17em}}g\left(x\right)=f\left(x\right)-3.$

 $x$ 2 4 6 8 $f\left(x\right)$ 1 3 7 11

The formula$\text{\hspace{0.17em}}g\left(x\right)=f\left(x\right)-3\text{\hspace{0.17em}}$tells us that we can find the output values of$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$by subtracting 3 from the output values of$\text{\hspace{0.17em}}f.\text{\hspace{0.17em}}$For example:

Subtracting 3 from each$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$value, we can complete a table of values for$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$as shown in [link].

 $x$ 2 4 6 8 $f\left(x\right)$ 1 3 7 11 $g\left(x\right)$ −2 0 4 8
Analysis

As with the earlier vertical shift, notice the input values stay the same and only the output values change.

The function$\text{\hspace{0.17em}}h\left(t\right)=-4.9{t}^{2}+30t\text{\hspace{0.17em}}$gives the height$\text{\hspace{0.17em}}h\text{\hspace{0.17em}}$of a ball (in meters) thrown upward from the ground after$\text{\hspace{0.17em}}t\text{\hspace{0.17em}}$seconds. Suppose the ball was instead thrown from the top of a 10-m building. Relate this new height function$\text{\hspace{0.17em}}b\left(t\right)\text{\hspace{0.17em}}$to$\text{\hspace{0.17em}}h\left(t\right),\text{\hspace{0.17em}}$and then find a formula for$\text{\hspace{0.17em}}b\left(t\right).$

$b(t)=h(t)+10=−4.9 t 2 +30t+10$

## Identifying Horizontal Shifts

We just saw that the vertical shift is a change to the output, or outside, of the function. We will now look at how changes to input, on the inside of the function, change its graph and meaning. A shift to the input results in a movement of the graph of the function left or right in what is known as a horizontal shift, shown in [link].

For example, if$\text{\hspace{0.17em}}f\left(x\right)={x}^{2},\text{\hspace{0.17em}}$then$\text{\hspace{0.17em}}g\left(x\right)={\left(x-2\right)}^{2}\text{\hspace{0.17em}}$is a new function. Each input is reduced by 2 prior to squaring the function. The result is that the graph is shifted 2 units to the right, because we would need to increase the prior input by 2 units to yield the same output value as given in$\text{\hspace{0.17em}}f.$

Horizontal Shift

Given a function$\text{\hspace{0.17em}}f,\text{\hspace{0.17em}}$a new function$\text{\hspace{0.17em}}g\left(x\right)=f\left(x-h\right),\text{\hspace{0.17em}}$where$\text{\hspace{0.17em}}h\text{\hspace{0.17em}}$is a constant, is a horizontal shift of the function$\text{\hspace{0.17em}}f.\text{\hspace{0.17em}}$If$\text{\hspace{0.17em}}h\text{\hspace{0.17em}}$is positive, the graph will shift right. If$\text{\hspace{0.17em}}h\text{\hspace{0.17em}}$is negative, the graph will shift left.

Adding a Constant to an Input

Returning to our building airflow example from [link], suppose that in autumn the facilities manager decides that the original venting plan starts too late, and wants to begin the entire venting program 2 hours earlier. Sketch a graph of the new function.

We can set$\text{\hspace{0.17em}}V\left(t\right)\text{\hspace{0.17em}}$to be the original program and$\text{\hspace{0.17em}}F\left(t\right)\text{\hspace{0.17em}}$to be the revised program.

In the new graph, at each time, the airflow is the same as the original function$\text{\hspace{0.17em}}V\text{\hspace{0.17em}}$was 2 hours later. For example, in the original function$\text{\hspace{0.17em}}V,\text{\hspace{0.17em}}$the airflow starts to change at 8 a.m., whereas for the function$\text{\hspace{0.17em}}F,\text{\hspace{0.17em}}$the airflow starts to change at 6 a.m. The comparable function values are$\text{\hspace{0.17em}}V\left(8\right)=F\left(6\right).\text{\hspace{0.17em}}$See [link]. Notice also that the vents first opened toat 10 a.m. under the original plan, while under the new plan the vents reachat 8 a.m., so$\text{\hspace{0.17em}}V\left(10\right)=F\left(8\right).$

In both cases, we see that, because$\text{\hspace{0.17em}}F\left(t\right)\text{\hspace{0.17em}}$starts 2 hours sooner,$\text{\hspace{0.17em}}h=-2.\text{\hspace{0.17em}}$That means that the same output values are reached when$\text{\hspace{0.17em}}F\left(t\right)=V\left(t-\left(-2\right)\right)=V\left(t+2\right).$

Analysis

Note that$\text{\hspace{0.17em}}V\left(t+2\right)\text{\hspace{0.17em}}$has the effect of shifting the graph to the left.

Horizontal changes or “inside changes” affect the domain of a function (the input) instead of the range and often seem counterintuitive. The new function$\text{\hspace{0.17em}}F\left(t\right)\text{\hspace{0.17em}}$uses the same outputs as$\text{\hspace{0.17em}}V\left(t\right),\text{\hspace{0.17em}}$but matches those outputs to inputs 2 hours earlier than those of$\text{\hspace{0.17em}}V\left(t\right).\text{\hspace{0.17em}}$Said another way, we must add 2 hours to the input of$\text{\hspace{0.17em}}V\text{\hspace{0.17em}}$to find the corresponding output for$F:F\left(t\right)=V\left(t+2\right).$

Given a tabular function, create a new row to represent a horizontal shift.

1. Identify the input row or column.
2. Determine the magnitude of the shift.
3. Add the shift to the value in each input cell.
Shifting a Tabular Function Horizontally

A function$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$is given in [link]. Create a table for the function$\text{\hspace{0.17em}}g\left(x\right)=f\left(x-3\right).$

 $x$ 2 4 6 8 $f\left(x\right)$ 1 3 7 11

The formula$\text{\hspace{0.17em}}g\left(x\right)=f\left(x-3\right)\text{\hspace{0.17em}}$tells us that the output values of$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$are the same as the output value of$\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$ when the input value is 3 less than the original value. For example, we know that$\text{\hspace{0.17em}}f\left(2\right)=1.\text{\hspace{0.17em}}$To get the same output from the function$\text{\hspace{0.17em}}g,\text{\hspace{0.17em}}$we will need an input value that is 3 larger. We input a value that is 3 larger for$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$because the function takes 3 away before evaluating the function$\text{\hspace{0.17em}}f.$

We continue with the other values to create [link].

 $x$ 5 7 9 11 $x-3$ 2 4 6 8 $f\left(x\right)$ 1 3 7 11 $g\left(x\right)$ 1 3 7 11

The result is that the function$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$has been shifted to the right by 3. Notice the output values for$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$remain the same as the output values for$\text{\hspace{0.17em}}f\left(x\right),\text{\hspace{0.17em}}$but the corresponding input values,$\text{\hspace{0.17em}}x,\text{\hspace{0.17em}}$have shifted to the right by 3. Specifically, 2 shifted to 5, 4 shifted to 7, 6 shifted to 9, and 8 shifted to 11.

Analysis

[link] represents both of the functions. We can see the horizontal shift in each point.

Identifying a Horizontal Shift of a Toolkit Function

[link] represents a transformation of the toolkit function$\text{\hspace{0.17em}}f\left(x\right)={x}^{2}.\text{\hspace{0.17em}}$Relate this new function$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$to$\text{\hspace{0.17em}}f\left(x\right),\text{\hspace{0.17em}}$and then find a formula for$\text{\hspace{0.17em}}g\left(x\right).$

Notice that the graph is identical in shape to the$\text{\hspace{0.17em}}f\left(x\right)={x}^{2}\text{\hspace{0.17em}}$function, but the x-values are shifted to the right 2 units. The vertex used to be at (0,0), but now the vertex is at (2,0). The graph is the basic quadratic function shifted 2 units to the right, so

Notice how we must input the value$\text{\hspace{0.17em}}x=2\text{\hspace{0.17em}}$to get the output value$\text{\hspace{0.17em}}y=0;\text{\hspace{0.17em}}$the x-values must be 2 units larger because of the shift to the right by 2 units. We can then use the definition of the$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$function to write a formula for$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$by evaluating$\text{\hspace{0.17em}}f\left(x-2\right).$

Analysis

To determine whether the shift is$\text{\hspace{0.17em}}+2\text{\hspace{0.17em}}$or$\text{\hspace{0.17em}}-2$, consider a single reference point on the graph. For a quadratic, looking at the vertex point is convenient. In the original function,$\text{\hspace{0.17em}}f\left(0\right)=0.\text{\hspace{0.17em}}$In our shifted function,$\text{\hspace{0.17em}}g\left(2\right)=0.\text{\hspace{0.17em}}$To obtain the output value of 0 from the function$\text{\hspace{0.17em}}f,\text{\hspace{0.17em}}$we need to decide whether a plus or a minus sign will work to satisfy$\text{\hspace{0.17em}}g\left(2\right)=f\left(x-2\right)=f\left(0\right)=0.\text{\hspace{0.17em}}$For this to work, we will need to subtract 2 units from our input values.

Interpreting Horizontal versus Vertical Shifts

The function$\text{\hspace{0.17em}}G\left(m\right)\text{\hspace{0.17em}}$gives the number of gallons of gas required to drive$\text{\hspace{0.17em}}m\text{\hspace{0.17em}}$miles. Interpret$\text{\hspace{0.17em}}G\left(m\right)+10\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}G\left(m+10\right).$

$G\left(m\right)+10\text{\hspace{0.17em}}$can be interpreted as adding 10 to the output, gallons. This is the gas required to drive$\text{\hspace{0.17em}}m\text{\hspace{0.17em}}$miles, plus another 10 gallons of gas. The graph would indicate a vertical shift.

$G\left(m+10\right)\text{\hspace{0.17em}}$can be interpreted as adding 10 to the input, miles. So this is the number of gallons of gas required to drive 10 miles more than$\text{\hspace{0.17em}}m\text{\hspace{0.17em}}$miles. The graph would indicate a horizontal shift.

Given the function$\text{\hspace{0.17em}}f\left(x\right)=\sqrt{x},\text{\hspace{0.17em}}$graph the original function$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$and the transformation$\text{\hspace{0.17em}}g\left(x\right)=f\left(x+2\right)\text{\hspace{0.17em}}$on the same axes. Is this a horizontal or a vertical shift? Which way is the graph shifted and by how many units?

The graphs of$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$are shown below. The transformation is a horizontal shift. The function is shifted to the left by 2 units.

## Combining Vertical and Horizontal Shifts

Now that we have two transformations, we can combine them together. Vertical shifts are outside changes that affect the output ($y\text{-}$) axis values and shift the function up or down. Horizontal shifts are inside changes that affect the input ($x\text{-}$) axis values and shift the function left or right. Combining the two types of shifts will cause the graph of a function to shift up or down and right or left.

Given a function and both a vertical and a horizontal shift, sketch the graph.

1. Identify the vertical and horizontal shifts from the formula.
2. The vertical shift results from a constant added to the output. Move the graph up for a positive constant and down for a negative constant.
3. The horizontal shift results from a constant added to the input. Move the graph left for a positive constant and right for a negative constant.
4. Apply the shifts to the graph in either order.
Graphing Combined Vertical and Horizontal Shifts

Given$\text{\hspace{0.17em}}f\left(x\right)=|x|,\text{\hspace{0.17em}}$sketch a graph of$\text{\hspace{0.17em}}h\left(x\right)=f\left(x+1\right)-3.$

The function$\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$is our toolkit absolute value function. We know that this graph has a V shape, with the point at the origin. The graph of$\text{\hspace{0.17em}}h\text{\hspace{0.17em}}$has transformed$\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$in two ways:$\text{\hspace{0.17em}}f\left(x+1\right)\text{\hspace{0.17em}}$is a change on the inside of the function, giving a horizontal shift left by 1, and the subtraction by 3 in$\text{\hspace{0.17em}}f\left(x+1\right)-3\text{\hspace{0.17em}}$is a change to the outside of the function, giving a vertical shift down by 3. The transformation of the graph is illustrated in [link].

Let us follow one point of the graph of$\text{\hspace{0.17em}}f\left(x\right)=|x|.$

• The point$\left(0,0\right)$is transformed first by shifting left 1 unit:$\left(0,0\right)\to \left(-1,0\right)$
• The point$\left(-1,0\right)$is transformed next by shifting down 3 units:$\left(-1,0\right)\to \left(-1,-3\right)$

[link] shows the graph of$\text{\hspace{0.17em}}h.$

Given$\text{\hspace{0.17em}}f\left(x\right)=|x|,\text{\hspace{0.17em}}$sketch a graph of$\text{\hspace{0.17em}}h\left(x\right)=f\left(x-2\right)+4.$

Identifying Combined Vertical and Horizontal Shifts

Write a formula for the graph shown in [link], which is a transformation of the toolkit square root function.

The graph of the toolkit function starts at the origin, so this graph has been shifted 1 to the right and up 2. In function notation, we could write that as

Using the formula for the square root function, we can write

Analysis

Note that this transformation has changed the domain and range of the function. This new graph has domain$\text{\hspace{0.17em}}\left[1,\infty \right)\text{\hspace{0.17em}}$and range$\text{\hspace{0.17em}}\left[2,\infty \right).$

Write a formula for a transformation of the toolkit reciprocal function$\text{\hspace{0.17em}}f\left(x\right)=\frac{1}{x}\text{\hspace{0.17em}}$that shifts the function’s graph one unit to the right and one unit up.

$g\left(x\right)=\frac{1}{x-1}+1$

# Graphing Functions Using Reflections about the Axes

Another transformation that can be applied to a function is a reflection over the x- or y-axis. A vertical reflection reflects a graph vertically across the x-axis, while a horizontal reflection reflects a graph horizontally across the y-axis. The reflections are shown in [link].

Notice that the vertical reflection produces a new graph that is a mirror image of the base or original graph about the x-axis. The horizontal reflection produces a new graph that is a mirror image of the base or original graph about the y-axis.

Reflections

Given a function$\text{\hspace{0.17em}}f\left(x\right),$ a new function$\text{\hspace{0.17em}}g\left(x\right)=-f\left(x\right)\text{\hspace{0.17em}}$is a vertical reflection of the function$\text{\hspace{0.17em}}f\left(x\right),\text{\hspace{0.17em}}$sometimes called a reflection about (or over, or through) the x-axis.

Given a function$\text{\hspace{0.17em}}f\left(x\right),\text{\hspace{0.17em}}$a new function$\text{\hspace{0.17em}}g\left(x\right)=f\left(-x\right)\text{\hspace{0.17em}}$is a horizontal reflection of the function$\text{\hspace{0.17em}}f\left(x\right),\text{\hspace{0.17em}}$sometimes called a reflection about the y-axis.

Given a function, reflect the graph both vertically and horizontally.

1. Multiply all outputs by –1 for a vertical reflection. The new graph is a reflection of the original graph about the x-axis.
2. Multiply all inputs by –1 for a horizontal reflection. The new graph is a reflection of the original graph about the y-axis.
Reflecting a Graph Horizontally and Vertically

Reflect the graph of$\text{\hspace{0.17em}}s\left(t\right)=\sqrt{t}$ (a) vertically and (b) horizontally.

1. Reflecting the graph vertically means that each output value will be reflected over the horizontal t-axis as shown in [link].

Because each output value is the opposite of the original output value, we can write

Notice that this is an outside change, or vertical shift, that affects the output$\text{\hspace{0.17em}}s\left(t\right)\text{\hspace{0.17em}}$values, so the negative sign belongs outside of the function.

2. Reflecting horizontally means that each input value will be reflected over the vertical axis as shown in [link].

Because each input value is the opposite of the original input value, we can write

Notice that this is an inside change or horizontal change that affects the input values, so the negative sign is on the inside of the function.

Note that these transformations can affect the domain and range of the functions. While the original square root function has domain$\text{\hspace{0.17em}}\left[0,\infty \right)\text{\hspace{0.17em}}$and range$\text{\hspace{0.17em}}\left[0,\infty \right),\text{\hspace{0.17em}}$the vertical reflection gives the$\text{\hspace{0.17em}}V\left(t\right)\text{\hspace{0.17em}}$function the range$\left(-\infty ,\text{\hspace{0.17em}}0\right]$ and the horizontal reflection gives the$\text{\hspace{0.17em}}H\left(t\right)\text{\hspace{0.17em}}$function the domain$\left(-\infty ,\text{\hspace{0.17em}}0\right].$

Reflect the graph of$\text{\hspace{0.17em}}f\left(x\right)=|x-1|$ (a) vertically and (b) horizontally.

Reflecting a Tabular Function Horizontally and Vertically

A function$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$is given as [link]. Create a table for the functions below.

1. $\text{\hspace{0.17em}}g\left(x\right)=-f\left(x\right)$
2. $\text{\hspace{0.17em}}h\left(x\right)=f\left(-x\right)$
 $x$ 2 4 6 8 $f\left(x\right)$ 1 3 7 11
1. For$\text{\hspace{0.17em}}g\left(x\right),\text{\hspace{0.17em}}$the negative sign outside the function indicates a vertical reflection, so the x-values stay the same and each output value will be the opposite of the original output value. See [link].

 $x$ 2 4 6 8 $\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$ –1 –3 –7 –11
2. For$\text{\hspace{0.17em}}h\left(x\right),\text{\hspace{0.17em}}$the negative sign inside the function indicates a horizontal reflection, so each input value will be the opposite of the original input value and the$\text{\hspace{0.17em}}h\left(x\right)\text{\hspace{0.17em}}$values stay the same as the$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$values. See [link].

 $x$ −2 −4 −6 −8 $h\left(x\right)$ 1 3 7 11

A function$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$is given as [link]. Create a table for the functions below.

1. $g\left(x\right)=-f\left(x\right)$
2. $h\left(x\right)=f\left(-x\right)$
 $x$ −2 0 2 4 $f\left(x\right)$ 5 10 15 20
1. $g\left(x\right)=-f\left(x\right)$

 $x$ -2 0 2 4 $g\left(x\right)$ $-5$ $-10$ $-15$ $-20$
2. $h\left(x\right)=f\left(-x\right)$

 $x$ -2 0 2 4 $h\left(x\right)$ 15 10 5 unknown
Applying a Learning Model Equation

A common model for learning has an equation similar to $k\left(t\right)=-{2}^{-t}+1,\text{\hspace{0.17em}}$ where $k$ is the percentage of mastery that can be achieved after $t$ practice sessions. This is a transformation of the function $f\left(t\right)={2}^{t}$ shown in [link]. Sketch a graph of $k\left(t\right).$

This equation combines three transformations into one equation.

• A horizontal reflection:$f\left(-t\right)={2}^{-t}$
• A vertical reflection:$\text{\hspace{0.17em}}-f\left(-t\right)=-{2}^{-t}$
• A vertical shift:$\text{\hspace{0.17em}}-f\left(-t\right)+1=-{2}^{-t}+1$

We can sketch a graph by applying these transformations one at a time to the original function. Let us follow two points through each of the three transformations. We will choose the points (0, 1) and (1, 2).

1. First, we apply a horizontal reflection: (0, 1) (–1, 2).
2. Then, we apply a vertical reflection: (0, −1) (1, –2).
3. Finally, we apply a vertical shift: (0, 0) (1, 1).

This means that the original points, (0,1) and (1,2) become (0,0) and (1,1) after we apply the transformations.

In [link], the first graph results from a horizontal reflection. The second results from a vertical reflection. The third results from a vertical shift up 1 unit.

Analysis

As a model for learning, this function would be limited to a domain of$\text{\hspace{0.17em}}t\ge 0,\text{\hspace{0.17em}}$with corresponding range$\text{\hspace{0.17em}}\left[0,1\right).$

Given the toolkit function$\text{\hspace{0.17em}}f\left(x\right)={x}^{2},\text{\hspace{0.17em}}$graph$\text{\hspace{0.17em}}g\left(x\right)=-f\left(x\right)\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}h\left(x\right)=f\left(-x\right).\text{\hspace{0.17em}}$Take note of any surprising behavior for these functions.

Notice:$\text{\hspace{0.17em}}g\left(x\right)=f\left(-x\right)\text{\hspace{0.17em}}$looks the same as$\text{\hspace{0.17em}}f\left(x\right)$.

# Determining Even and Odd Functions

Some functions exhibit symmetry so that reflections result in the original graph. For example, horizontally reflecting the toolkit functions $f\left(x\right)={x}^{2}$ or $f\left(x\right)=|x|$ will result in the original graph. We say that these types of graphs are symmetric about the y-axis. Functions whose graphs are symmetric about the y-axis are called even functions.

If the graphs of$\text{\hspace{0.17em}}f\left(x\right)={x}^{3}\text{\hspace{0.17em}}$or$\text{\hspace{0.17em}}f\left(x\right)=\frac{1}{x}\text{\hspace{0.17em}}$were reflected over both axes, the result would be the original graph, as shown in [link].

We say that these graphs are symmetric about the origin. A function with a graph that is symmetric about the origin is called an odd function.

Note: A function can be neither even nor odd if it does not exhibit either symmetry. For example,$\text{\hspace{0.17em}}f\left(x\right)={2}^{x}\text{\hspace{0.17em}}$is neither even nor odd. Also, the only function that is both even and odd is the constant function$\text{\hspace{0.17em}}f\left(x\right)=0.$

Even and Odd Functions

A function is called an even function if for every input$\text{\hspace{0.17em}}x$

The graph of an even function is symmetric about the $y\text{-}$axis.

A function is called an odd function if for every input$\text{\hspace{0.17em}}x$

The graph of an odd function is symmetric about the origin.

Given the formula for a function, determine if the function is even, odd, or neither.

1. Determine whether the function satisfies$\text{\hspace{0.17em}}f\left(x\right)=f\left(-x\right).\text{\hspace{0.17em}}$If it does, it is even.
2. Determine whether the function satisfies$\text{\hspace{0.17em}}f\left(x\right)=-f\left(-x\right).\text{\hspace{0.17em}}$If it does, it is odd.
3. If the function does not satisfy either rule, it is neither even nor odd.
Determining whether a Function Is Even, Odd, or Neither

Is the function$\text{\hspace{0.17em}}f\left(x\right)={x}^{3}+2x\text{\hspace{0.17em}}$even, odd, or neither?

Without looking at a graph, we can determine whether the function is even or odd by finding formulas for the reflections and determining if they return us to the original function. Let’s begin with the rule for even functions.

This does not return us to the original function, so this function is not even. We can now test the rule for odd functions.

Because$\text{\hspace{0.17em}}-f\left(-x\right)=f\left(x\right),\text{\hspace{0.17em}}$this is an odd function.

Analysis

Consider the graph of$\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$in [link]. Notice that the graph is symmetric about the origin. For every point$\text{\hspace{0.17em}}\left(x,y\right)\text{\hspace{0.17em}}$on the graph, the corresponding point$\text{\hspace{0.17em}}\left(-x,-y\right)\text{\hspace{0.17em}}$is also on the graph. For example, (1, 3) is on the graph of$\text{\hspace{0.17em}}f,\text{\hspace{0.17em}}$and the corresponding point$\left(-1,-3\right)$is also on the graph.

Is the function$\text{\hspace{0.17em}}f\left(s\right)={s}^{4}+3{s}^{2}+7\text{\hspace{0.17em}}$even, odd, or neither?

even

# Graphing Functions Using Stretches and Compressions

Adding a constant to the inputs or outputs of a function changed the position of a graph with respect to the axes, but it did not affect the shape of a graph. We now explore the effects of multiplying the inputs or outputs by some quantity.

We can transform the inside (input values) of a function or we can transform the outside (output values) of a function. Each change has a specific effect that can be seen graphically.

## Vertical Stretches and Compressions

When we multiply a function by a positive constant, we get a function whose graph is stretched or compressed vertically in relation to the graph of the original function. If the constant is greater than 1, we get a vertical stretch; if the constant is between 0 and 1, we get a vertical compression. [link] shows a function multiplied by constant factors 2 and 0.5 and the resulting vertical stretch and compression.

Vertical Stretches and Compressions

Given a function$\text{\hspace{0.17em}}f\left(x\right),\text{\hspace{0.17em}}$a new function$\text{\hspace{0.17em}}g\left(x\right)=af\left(x\right),\text{\hspace{0.17em}}$where$\text{\hspace{0.17em}}a\text{\hspace{0.17em}}$is a constant, is a vertical stretch or vertical compression of the function$\text{\hspace{0.17em}}f\left(x\right).$

• If$\text{\hspace{0.17em}}a>1,\text{\hspace{0.17em}}$then the graph will be stretched.
• If$\text{\hspace{0.17em}}0then the graph will be compressed.
• If$\text{\hspace{0.17em}}a<0,\text{\hspace{0.17em}}$then there will be combination of a vertical stretch or compression with a vertical reflection.

Given a function, graph its vertical stretch.

1. Identify the value of$\text{\hspace{0.17em}}a.$
2. Multiply all range values by$\text{\hspace{0.17em}}a.$
3. If$\text{\hspace{0.17em}}\text{\hspace{0.17em}}a>1,\text{\hspace{0.17em}}\text{\hspace{0.17em}}$the graph is stretched by a factor of$\text{\hspace{0.17em}}a.$

If$\text{\hspace{0.17em}}0the graph is compressed by a factor of$\text{\hspace{0.17em}}a.$

If$\text{\hspace{0.17em}}a<0,\text{\hspace{0.17em}}$the graph is either stretched or compressed and also reflected about the x-axis.

Graphing a Vertical Stretch

A function$\text{\hspace{0.17em}}P\left(t\right)\text{\hspace{0.17em}}$models the population of fruit flies. The graph is shown in [link].

A scientist is comparing this population to another population,$\text{\hspace{0.17em}}Q,\text{\hspace{0.17em}}$whose growth follows the same pattern, but is twice as large. Sketch a graph of this population.

Because the population is always twice as large, the new population’s output values are always twice the original function’s output values. Graphically, this is shown in [link].

If we choose four reference points, (0, 1), (3, 3), (6, 2) and (7, 0) we will multiply all of the outputs by 2.

The following shows where the new points for the new graph will be located.

Symbolically, the relationship is written as

This means that for any input$\text{\hspace{0.17em}}t,\text{\hspace{0.17em}}$the value of the function$\text{\hspace{0.17em}}Q\text{\hspace{0.17em}}$is twice the value of the function$\text{\hspace{0.17em}}P.\text{\hspace{0.17em}}$Notice that the effect on the graph is a vertical stretching of the graph, where every point doubles its distance from the horizontal axis. The input values,$\text{\hspace{0.17em}}t,\text{\hspace{0.17em}}$stay the same while the output values are twice as large as before.

Given a tabular function and assuming that the transformation is a vertical stretch or compression, create a table for a vertical compression.

1. Determine the value of $\text{\hspace{0.17em}}a.$
2. Multiply all of the output values by$\text{\hspace{0.17em}}a.$
Finding a Vertical Compression of a Tabular Function

A function$\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$is given as [link]. Create a table for the function$\text{\hspace{0.17em}}g\left(x\right)=\frac{1}{2}f\left(x\right).$

 $x$ 2 4 6 8 $f\left(x\right)\text{\hspace{0.17em}}$ 1 3 7 11

The formula$\text{\hspace{0.17em}}g\left(x\right)=\frac{1}{2}f\left(x\right)\text{\hspace{0.17em}}$tells us that the output values of$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$are half of the output values of$\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$with the same inputs. For example, we know that$\text{\hspace{0.17em}}f\left(4\right)=3.\text{\hspace{0.17em}}$Then

We do the same for the other values to produce [link].

 $x$ $2$ $4$ $6$ $8$ $g\left(x\right)$ $\frac{1}{2}$ $\frac{3}{2}$ $\frac{7}{2}$ $\frac{11}{2}$
Analysis

The result is that the function$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$has been compressed vertically by$\text{\hspace{0.17em}}\frac{1}{2}.\text{\hspace{0.17em}}$Each output value is divided in half, so the graph is half the original height.

A function$\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$is given as [link]. Create a table for the function$\text{\hspace{0.17em}}g\left(x\right)=\frac{3}{4}f\left(x\right).$

 $x$ 2 4 6 8 $f\left(x\right)$ 12 16 20 0
 $x$ 2 4 6 8 $g\left(x\right)$ 9 12 15 0
Recognizing a Vertical Stretch

The graph in [link] is a transformation of the toolkit function$\text{\hspace{0.17em}}f\left(x\right)={x}^{3}.\text{\hspace{0.17em}}$Relate this new function$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$to$\text{\hspace{0.17em}}f\left(x\right),\text{\hspace{0.17em}}$and then find a formula for$\text{\hspace{0.17em}}g\left(x\right).$

When trying to determine a vertical stretch or shift, it is helpful to look for a point on the graph that is relatively clear. In this graph, it appears that$\text{\hspace{0.17em}}g\left(2\right)=2.\text{\hspace{0.17em}}$With the basic cubic function at the same input,$\text{\hspace{0.17em}}f\left(2\right)={2}^{3}=8.\text{\hspace{0.17em}}$ Based on that, it appears that the outputs of$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$are$\text{\hspace{0.17em}}\frac{1}{4}\text{\hspace{0.17em}}$the outputs of the function$\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$because$\text{\hspace{0.17em}}g\left(2\right)=\frac{1}{4}f\left(2\right).\text{\hspace{0.17em}}$From this we can fairly safely conclude that $\text{\hspace{0.17em}}g\left(x\right)=\frac{1}{4}f\left(x\right).$

We can write a formula for$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$by using the definition of the function$\text{\hspace{0.17em}}f.$

Write the formula for the function that we get when we stretch the identity toolkit function by a factor of 3, and then shift it down by 2 units.

$g\left(x\right)=3x-2$

## Horizontal Stretches and Compressions

Now we consider changes to the inside of a function. When we multiply a function’s input by a positive constant, we get a function whose graph is stretched or compressed horizontally in relation to the graph of the original function. If the constant is between 0 and 1, we get a horizontal stretch; if the constant is greater than 1, we get a horizontal compression of the function.

Given a function$\text{\hspace{0.17em}}y=f\left(x\right),\text{\hspace{0.17em}}$the form$\text{\hspace{0.17em}}y=f\left(bx\right)\text{\hspace{0.17em}}$results in a horizontal stretch or compression. Consider the function$\text{\hspace{0.17em}}y={x}^{2}.\text{\hspace{0.17em}}$Observe [link]. The graph of$\text{\hspace{0.17em}}y={\left(0.5x\right)}^{2}\text{\hspace{0.17em}}$is a horizontal stretch of the graph of the function$\text{\hspace{0.17em}}y={x}^{2}\text{\hspace{0.17em}}$by a factor of 2. The graph of$\text{\hspace{0.17em}}y={\left(2x\right)}^{2}\text{\hspace{0.17em}}$is a horizontal compression of the graph of the function$\text{\hspace{0.17em}}y={x}^{2}\text{\hspace{0.17em}}$by a factor of 2.

Horizontal Stretches and Compressions

Given a function$\text{\hspace{0.17em}}f\left(x\right),\text{\hspace{0.17em}}$a new function$\text{\hspace{0.17em}}g\left(x\right)=f\left(bx\right),\text{\hspace{0.17em}}$where$\text{\hspace{0.17em}}b\text{\hspace{0.17em}}$is a constant, is a horizontal stretch or horizontal compression of the function$\text{\hspace{0.17em}}f\left(x\right).$

• If$\text{\hspace{0.17em}}b>1,\text{\hspace{0.17em}}$then the graph will be compressed by$\text{\hspace{0.17em}}\frac{1}{b}.$
• If$\text{\hspace{0.17em}}0then the graph will be stretched by$\text{\hspace{0.17em}}\frac{1}{b}.$
• If$\text{\hspace{0.17em}}b<0,\text{\hspace{0.17em}}$then there will be combination of a horizontal stretch or compression with a horizontal reflection.

Given a description of a function, sketch a horizontal compression or stretch.

1. Write a formula to represent the function.
2. Set$\text{\hspace{0.17em}}g\left(x\right)=f\left(bx\right)\text{\hspace{0.17em}}$where$\text{\hspace{0.17em}}b>1\text{\hspace{0.17em}}$for a compression or$\text{\hspace{0.17em}}0 for a stretch.
Graphing a Horizontal Compression

Suppose a scientist is comparing a population of fruit flies to a population that progresses through its lifespan twice as fast as the original population. In other words, this new population,$\text{\hspace{0.17em}}R,\text{\hspace{0.17em}}$will progress in 1 hour the same amount as the original population does in 2 hours, and in 2 hours, it will progress as much as the original population does in 4 hours. Sketch a graph of this population.

Symbolically, we could write

See [link] for a graphical comparison of the original population and the compressed population.

Analysis

Note that the effect on the graph is a horizontal compression where all input values are half of their original distance from the vertical axis.

Finding a Horizontal Stretch for a Tabular Function

A function$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$is given as [link]. Create a table for the function$\text{\hspace{0.17em}}g\left(x\right)=f\left(\frac{1}{2}x\right).$

 $x$ 2 4 6 8 $f\left(x\right)$ 1 3 7 11

The formula$\text{\hspace{0.17em}}g\left(x\right)=f\left(\frac{1}{2}x\right)\text{\hspace{0.17em}}$tells us that the output values for$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$are the same as the output values for the function$\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$at an input half the size. Notice that we do not have enough information to determine$\text{\hspace{0.17em}}g\left(2\right)\text{\hspace{0.17em}}$because$\text{\hspace{0.17em}}g\left(2\right)=f\left(\frac{1}{2}\cdot 2\right)=f\left(1\right),\text{\hspace{0.17em}}$and we do not have a value for$\text{\hspace{0.17em}}f\left(1\right)\text{\hspace{0.17em}}$in our table. Our input values to$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$will need to be twice as large to get inputs for$\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$that we can evaluate. For example, we can determine$\text{\hspace{0.17em}}g\left(4\right)\text{.}$

We do the same for the other values to produce [link].

 $x$ 4 8 12 16 $g\left(x\right)$ 1 3 7 11

[link] shows the graphs of both of these sets of points.

Analysis

Because each input value has been doubled, the result is that the function$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$has been stretched horizontally by a factor of 2.

Recognizing a Horizontal Compression on a Graph

Relate the function$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$to$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$in [link].

The graph of$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$looks like the graph of$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$horizontally compressed. Because$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$ends at$\text{\hspace{0.17em}}\left(6,4\right)\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$ends at$\text{\hspace{0.17em}}\left(2,4\right),\text{\hspace{0.17em}}$we can see that the $\text{\hspace{0.17em}}x\text{-}$values have been compressed by$\text{\hspace{0.17em}}\frac{1}{3},\text{\hspace{0.17em}}$because$\text{\hspace{0.17em}}6\left(\frac{1}{3}\right)=2.\text{\hspace{0.17em}}$We might also notice that$\text{\hspace{0.17em}}g\left(2\right)=f\left(6\right)\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}g\left(1\right)=f\left(3\right).\text{\hspace{0.17em}}$Either way, we can describe this relationship as$\text{\hspace{0.17em}}g\left(x\right)=f\left(3x\right).\text{\hspace{0.17em}}$This is a horizontal compression by$\text{\hspace{0.17em}}\frac{1}{3}.$

Analysis

Notice that the coefficient needed for a horizontal stretch or compression is the reciprocal of the stretch or compression. So to stretch the graph horizontally by a scale factor of 4, we need a coefficient of$\text{\hspace{0.17em}}\frac{1}{4}\text{\hspace{0.17em}}$in our function:$\text{\hspace{0.17em}}f\left(\frac{1}{4}x\right).\text{\hspace{0.17em}}$This means that the input values must be four times larger to produce the same result, requiring the input to be larger, causing the horizontal stretching.

Write a formula for the toolkit square root function horizontally stretched by a factor of 3.

$g\left(x\right)=f\left(\frac{1}{3}x\right)\text{\hspace{0.17em}}$so using the square root function we get$\text{\hspace{0.17em}}g\left(x\right)=\sqrt{\frac{1}{3}x}$

# Performing a Sequence of Transformations

When combining transformations, it is very important to consider the order of the transformations. For example, vertically shifting by 3 and then vertically stretching by 2 does not create the same graph as vertically stretching by 2 and then vertically shifting by 3, because when we shift first, both the original function and the shift get stretched, while only the original function gets stretched when we stretch first.

When we see an expression such as$\text{\hspace{0.17em}}\text{\hspace{0.17em}}2f\left(x\right)+3,\text{\hspace{0.17em}}$which transformation should we start with? The answer here follows nicely from the order of operations. Given the output value of$\text{\hspace{0.17em}}f\left(x\right),\text{\hspace{0.17em}}$we first multiply by 2, causing the vertical stretch, and then add 3, causing the vertical shift. In other words, multiplication before addition.

Horizontal transformations are a little trickier to think about. When we write$\text{\hspace{0.17em}}g\left(x\right)=f\left(2x+3\right),\text{\hspace{0.17em}}$for example, we have to think about how the inputs to the function$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$relate to the inputs to the function$\text{\hspace{0.17em}}\text{\hspace{0.17em}}f.\text{\hspace{0.17em}}$Suppose we know$\text{\hspace{0.17em}}f\left(7\right)=12.\text{\hspace{0.17em}}$What input to$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$would produce that output? In other words, what value of$\text{\hspace{0.17em}}x\text{\hspace{0.17em}}$will allow$\text{\hspace{0.17em}}g\left(x\right)=f\left(2x+3\right)=12?\text{\hspace{0.17em}}$We would need$\text{\hspace{0.17em}}2x+3=7.\text{\hspace{0.17em}}$To solve for$\text{\hspace{0.17em}}x,\text{\hspace{0.17em}}$we would first subtract 3, resulting in a horizontal shift, and then divide by 2, causing a horizontal compression.

This format ends up being very difficult to work with, because it is usually much easier to horizontally stretch a graph before shifting. We can work around this by factoring inside the function.

Let’s work through an example.

We can factor out a 2.

Now we can more clearly observe a horizontal shift to the left 2 units and a horizontal compression. Factoring in this way allows us to horizontally stretch first and then shift horizontally.

Combining Transformations

When combining vertical transformations written in the form$\text{\hspace{0.17em}}af\left(x\right)+k,\text{\hspace{0.17em}}$first vertically stretch by$\text{\hspace{0.17em}}a\text{\hspace{0.17em}}$and then vertically shift by$\text{\hspace{0.17em}}k.$

When combining horizontal transformations written in the form$\text{\hspace{0.17em}}f\left(bx+h\right),\text{\hspace{0.17em}}$first horizontally shift by$\text{\hspace{0.17em}}h\text{\hspace{0.17em}}$and then horizontally stretch by$\text{\hspace{0.17em}}\frac{1}{b}.$

When combining horizontal transformations written in the form$\text{\hspace{0.17em}}f\left(b\left(x+h\right)\right),\text{\hspace{0.17em}}$first horizontally stretch by$\text{\hspace{0.17em}}\frac{1}{b}\text{\hspace{0.17em}}$and then horizontally shift by$\text{\hspace{0.17em}}h.$

Horizontal and vertical transformations are independent. It does not matter whether horizontal or vertical transformations are performed first.

Finding a Triple Transformation of a Tabular Function

Given [link] for the function$\text{\hspace{0.17em}}f\left(x\right),\text{\hspace{0.17em}}$create a table of values for the function$\text{\hspace{0.17em}}g\left(x\right)=2f\left(3x\right)+1.$

 $x$ 6 12 18 24 $f\left(x\right)$ 10 14 15 17

There are three steps to this transformation, and we will work from the inside out. Starting with the horizontal transformations,$\text{\hspace{0.17em}}f\left(3x\right)\text{\hspace{0.17em}}$is a horizontal compression by$\text{\hspace{0.17em}}\frac{1}{3},\text{\hspace{0.17em}}$which means we multiply each $\text{\hspace{0.17em}}x\text{-}$value by$\text{\hspace{0.17em}}\frac{1}{3}.$See [link].

 $x$ 2 4 6 8 $f\left(3x\right)$ 10 14 15 17

Looking now to the vertical transformations, we start with the vertical stretch, which will multiply the output values by 2. We apply this to the previous transformation. See [link].

 $x$ 2 4 6 8 $2f\left(3x\right)$ 20 28 30 34

Finally, we can apply the vertical shift, which will add 1 to all the output values. See [link].

 $x$ 2 4 6 8 $g\left(x\right)=2f\left(3x\right)+1$ 21 29 31 35
Finding a Triple Transformation of a Graph

Use the graph of$\text{\hspace{0.17em}}f\left(x\right)\text{\hspace{0.17em}}$in [link] to sketch a graph of$\text{\hspace{0.17em}}k\left(x\right)=f\left(\frac{1}{2}x+1\right)-3.$

To simplify, let’s start by factoring out the inside of the function.

By factoring the inside, we can first horizontally stretch by 2, as indicated by the$\text{\hspace{0.17em}}\frac{1}{2}\text{\hspace{0.17em}}$on the inside of the function. Remember that twice the size of 0 is still 0, so the point (0,2) remains at (0,2) while the point (2,0) will stretch to (4,0). See [link].

Next, we horizontally shift left by 2 units, as indicated by$\text{\hspace{0.17em}}x+2.\text{\hspace{0.17em}}$See [link].

Last, we vertically shift down by 3 to complete our sketch, as indicated by the$\text{\hspace{0.17em}}-3\text{\hspace{0.17em}}$on the outside of the function. See [link].

Access this online resource for additional instruction and practice with transformation of functions.

# Key Equations

 Vertical shift $g\left(x\right)=f\left(x\right)+k\text{\hspace{0.17em}}$(up for$\text{\hspace{0.17em}}k>0$) Horizontal shift $g\left(x\right)=f\left(x-h\right)$(right for$\text{\hspace{0.17em}}h>0$) Vertical reflection $g\left(x\right)=-f\left(x\right)$ Horizontal reflection $g\left(x\right)=f\left(-x\right)$ Vertical stretch $g\left(x\right)=af\left(x\right)\text{\hspace{0.17em}}$($a>0$ ) Vertical compression $g\left(x\right)=af\left(x\right)\text{\hspace{0.17em}}$$\left(0 Horizontal stretch $g\left(x\right)=f\left(bx\right)$$\left(0 Horizontal compression $g\left(x\right)=f\left(bx\right)\text{\hspace{0.17em}}$($b>1$)

# Key Concepts

• A function can be shifted vertically by adding a constant to the output. See [link] and [link].
• Relating the shift to the context of a problem makes it possible to compare and interpret vertical and horizontal shifts. See [link].
• Vertical and horizontal shifts are often combined. See [link] and [link].
• A vertical reflection reflects a graph about the $\text{\hspace{0.17em}}x\text{-}$axis. A graph can be reflected vertically by multiplying the output by –1.
• A horizontal reflection reflects a graph about the $y\text{-}$axis. A graph can be reflected horizontally by multiplying the input by –1.
• A graph can be reflected both vertically and horizontally. The order in which the reflections are applied does not affect the final graph. See [link].
• A function presented in tabular form can also be reflected by multiplying the values in the input and output rows or columns accordingly. See [link].
• A function presented as an equation can be reflected by applying transformations one at a time. See [link].
• Even functions are symmetric about the $y\text{-}$axis, whereas odd functions are symmetric about the origin.
• Even functions satisfy the condition$\text{\hspace{0.17em}}f\left(x\right)=f\left(-x\right).$
• Odd functions satisfy the condition$\text{\hspace{0.17em}}f\left(x\right)=-f\left(-x\right).$
• A function can be odd, even, or neither. See [link].
• A function can be compressed or stretched vertically by multiplying the output by a constant. See [link], [link], and [link].
• A function can be compressed or stretched horizontally by multiplying the input by a constant. See [link], [link], and [link].
• The order in which different transformations are applied does affect the final function. Both vertical and horizontal transformations must be applied in the order given. However, a vertical transformation may be combined with a horizontal transformation in any order. See [link] and [link].

# Section Exercises

## Verbal

When examining the formula of a function that is the result of multiple transformations, how can you tell a horizontal shift from a vertical shift?

A horizontal shift results when a constant is added to or subtracted from the input. A vertical shifts results when a constant is added to or subtracted from the output.

When examining the formula of a function that is the result of multiple transformations, how can you tell a horizontal stretch from a vertical stretch?

When examining the formula of a function that is the result of multiple transformations, how can you tell a horizontal compression from a vertical compression?

A horizontal compression results when a constant greater than 1 is multiplied by the input. A vertical compression results when a constant between 0 and 1 is multiplied by the output.

When examining the formula of a function that is the result of multiple transformations, how can you tell a reflection with respect to the x-axis from a reflection with respect to the y-axis?

How can you determine whether a function is odd or even from the formula of the function?

For a function$\text{\hspace{0.17em}}f,\text{\hspace{0.17em}}$substitute$\text{\hspace{0.17em}}\left(-x\right)\text{\hspace{0.17em}}$for$\text{\hspace{0.17em}}\left(x\right)\text{\hspace{0.17em}}$in$\text{\hspace{0.17em}}f\left(x\right).\text{\hspace{0.17em}}$Simplify. If the resulting function is the same as the original function,$\text{\hspace{0.17em}}f\left(-x\right)=f\left(x\right),\text{\hspace{0.17em}}$then the function is even. If the resulting function is the opposite of the original function,$\text{\hspace{0.17em}}f\left(-x\right)=-f\left(x\right),\text{\hspace{0.17em}}$then the original function is odd. If the function is not the same or the opposite, then the function is neither odd nor even.

## Algebraic

Write a formula for the function obtained when the graph of$\text{\hspace{0.17em}}f\left(x\right)=\sqrt{x}\text{\hspace{0.17em}}$is shifted up 1 unit and to the left 2 units.

Write a formula for the function obtained when the graph of$\text{\hspace{0.17em}}f\left(x\right)=|x|\text{\hspace{0.17em}}$ is shifted down 3 units and to the right 1 unit.

$g\left(x\right)=|x-1|-3$

Write a formula for the function obtained when the graph of$\text{\hspace{0.17em}}f\left(x\right)=\frac{1}{x}\text{\hspace{0.17em}}$is shifted down 4 units and to the right 3 units.

Write a formula for the function obtained when the graph of$\text{\hspace{0.17em}}f\left(x\right)=\frac{1}{{x}^{2}}\text{\hspace{0.17em}}$is shifted up 2 units and to the left 4 units.

$g\left(x\right)=\frac{1}{{\left(x+4\right)}^{2}}+2$

For the following exercises, describe how the graph of the function is a transformation of the graph of the original function$\text{\hspace{0.17em}}f.$

$y=f\left(x-49\right)$

$y=f\left(x+43\right)$

The graph of$\text{\hspace{0.17em}}f\left(x+43\right)\text{\hspace{0.17em}}$is a horizontal shift to the left 43 units of the graph of$\text{\hspace{0.17em}}f.$

$y=f\left(x+3\right)$

$y=f\left(x-4\right)$

The graph of$\text{\hspace{0.17em}}f\left(x-4\right)\text{\hspace{0.17em}}$is a horizontal shift to the right 4 units of the graph of$\text{\hspace{0.17em}}f.$

$y=f\left(x\right)+5$

$y=f\left(x\right)+8$

The graph of$\text{\hspace{0.17em}}f\left(x\right)+8\text{\hspace{0.17em}}$is a vertical shift up 8 units of the graph of$\text{\hspace{0.17em}}f.$

$y=f\left(x\right)-2$

$y=f\left(x\right)-7$

The graph of$\text{\hspace{0.17em}}f\left(x\right)-7\text{\hspace{0.17em}}$is a vertical shift down 7 units of the graph of$\text{\hspace{0.17em}}f.$

$y=f\left(x-2\right)+3$

$y=f\left(x+4\right)-1$

The graph of $f\left(x+4\right)-1$ is a horizontal shift to the left 4 units and a vertical shift down 1 unit of the graph of $f.$

For the following exercises, determine the interval(s) on which the function is increasing and decreasing.

$f\left(x\right)=4{\left(x+1\right)}^{2}-5$

$g\left(x\right)=5{\left(x+3\right)}^{2}-2$

decreasing on$\text{\hspace{0.17em}}\left(-\infty ,-3\right)\text{\hspace{0.17em}}$and increasing on$\text{\hspace{0.17em}}\left(-3,\infty \right)$

$a\left(x\right)=\sqrt{-x+4}$

$k\left(x\right)=-3\sqrt{x}-1$

decreasing on $\left(0,\text{\hspace{0.17em}}\infty \right)$

## Graphical

For the following exercises, use the graph of$\text{\hspace{0.17em}}f\left(x\right)={2}^{x}\text{\hspace{0.17em}}$shown in [link] to sketch a graph of each transformation of$\text{\hspace{0.17em}}f\left(x\right).$

$g\left(x\right)={2}^{x}+1$

$h\left(x\right)={2}^{x}-3$

$w\left(x\right)={2}^{x-1}$

For the following exercises, sketch a graph of the function as a transformation of the graph of one of the toolkit functions.

$f\left(t\right)={\left(t+1\right)}^{2}-3$

$h\left(x\right)=|x-1|+4$

$k\left(x\right)={\left(x-2\right)}^{3}-1$

$m\left(t\right)=3+\sqrt{t+2}$

## Numeric

Tabular representations for the functions$\text{\hspace{0.17em}}f,\text{\hspace{0.17em}}g,\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}h\text{\hspace{0.17em}}$are given below. Write$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}h\left(x\right)\text{\hspace{0.17em}}$as transformations of$\text{\hspace{0.17em}}f\left(x\right).$

 $x$ −2 −1 0 1 2 $f\left(x\right)$ −2 −1 −3 1 2
 $x$ −1 0 1 2 3 $g\left(x\right)$ −2 −1 −3 1 2
 $x$ −2 −1 0 1 2 $h\left(x\right)$ −1 0 −2 2 3

$g\left(x\right)=f\left(x-1\right),\text{\hspace{0.17em}}h\left(x\right)=f\left(x\right)+1$

Tabular representations for the functions$\text{\hspace{0.17em}}f,\text{\hspace{0.17em}}g,\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}h\text{\hspace{0.17em}}$are given below. Write$\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}h\left(x\right)\text{\hspace{0.17em}}$as transformations of$\text{\hspace{0.17em}}f\left(x\right).$

 $x$ −2 −1 0 1 2 $f\left(x\right)$ −1 −3 4 2 1
 $x$ −3 −2 −1 0 1 $g\left(x\right)$ −1 −3 4 2 1
 $x$ −2 −1 0 1 2 $h\left(x\right)$ −2 −4 3 1 0

For the following exercises, write an equation for each graphed function by using transformations of the graphs of one of the toolkit functions.

$f\left(x\right)=|x-3|-2$

$f\left(x\right)=\sqrt{x+3}-1$

$f\left(x\right)={\left(x-2\right)}^{2}$

$f\left(x\right)=|x+3|-2$

For the following exercises, use the graphs of transformations of the square root function to find a formula for each of the functions.

$f\left(x\right)=-\sqrt{x}$

For the following exercises, use the graphs of the transformed toolkit functions to write a formula for each of the resulting functions.

$f\left(x\right)=-{\left(x+1\right)}^{2}+2$

$f\left(x\right)=\sqrt{-x}+1$

For the following exercises, determine whether the function is odd, even, or neither.

$f\left(x\right)=3{x}^{4}$

even

$g\left(x\right)=\sqrt{x}$

$h\left(x\right)=\frac{1}{x}+3x$

odd

$f\left(x\right)={\left(x-2\right)}^{2}$

$g\left(x\right)=2{x}^{4}$

even

$h\left(x\right)=2x-{x}^{3}$

For the following exercises, describe how the graph of each function is a transformation of the graph of the original function$\text{\hspace{0.17em}}f.$

$g\left(x\right)=-f\left(x\right)$

The graph of$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$is a vertical reflection (across the $\text{\hspace{0.17em}}x$-axis) of the graph of$\text{\hspace{0.17em}}f.$

$g\left(x\right)=f\left(-x\right)$

$g\left(x\right)=4f\left(x\right)$

The graph of$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$is a vertical stretch by a factor of 4 of the graph of$\text{\hspace{0.17em}}f.$

$g\left(x\right)=6f\left(x\right)$

$g\left(x\right)=f\left(5x\right)$

The graph of$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$is a horizontal compression by a factor of$\text{\hspace{0.17em}}\frac{1}{5}\text{\hspace{0.17em}}$of the graph of$\text{\hspace{0.17em}}f.$

$g\left(x\right)=f\left(2x\right)$

$g\left(x\right)=f\left(\frac{1}{3}x\right)$

The graph of$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$is a horizontal stretch by a factor of 3 of the graph of$\text{\hspace{0.17em}}f.$

$g\left(x\right)=f\left(\frac{1}{5}x\right)$

$g\left(x\right)=3f\left(-x\right)$

The graph of$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$is a horizontal reflection across the$\text{\hspace{0.17em}}y$-axis and a vertical stretch by a factor of 3 of the graph of$\text{\hspace{0.17em}}f.$

$g\left(x\right)=-f\left(3x\right)$

For the following exercises, write a formula for the function$\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$that results when the graph of a given toolkit function is transformed as described.

The graph of$\text{\hspace{0.17em}}f\left(x\right)=|x|\text{\hspace{0.17em}}$is reflected over the$\text{\hspace{0.17em}}y$-axis and horizontally compressed by a factor of$\text{\hspace{0.17em}}\frac{1}{4}$ .

$g\left(x\right)=|-4x|$

The graph of$\text{\hspace{0.17em}}f\left(x\right)=\sqrt{x}\text{\hspace{0.17em}}$is reflected over the$\text{\hspace{0.17em}}x$-axis and horizontally stretched by a factor of 2.

The graph of$\text{\hspace{0.17em}}f\left(x\right)=\frac{1}{{x}^{2}}\text{\hspace{0.17em}}$is vertically compressed by a factor of$\text{\hspace{0.17em}}\frac{1}{3},\text{\hspace{0.17em}}$then shifted to the left 2 units and down 3 units.

$g\left(x\right)=\frac{1}{3{\left(x+2\right)}^{2}}-3$

The graph of$\text{\hspace{0.17em}}f\left(x\right)=\frac{1}{x}\text{\hspace{0.17em}}$is vertically stretched by a factor of 8, then shifted to the right 4 units and up 2 units.

The graph of$\text{\hspace{0.17em}}f\left(x\right)={x}^{2}\text{\hspace{0.17em}}$is vertically compressed by a factor of$\text{\hspace{0.17em}}\frac{1}{2},\text{\hspace{0.17em}}$then shifted to the right 5 units and up 1 unit.

$g\left(x\right)=\frac{1}{2}{\left(x-5\right)}^{2}+1$

The graph of$\text{\hspace{0.17em}}f\left(x\right)={x}^{2}\text{\hspace{0.17em}}$is horizontally stretched by a factor of 3, then shifted to the left 4 units and down 3 units.

For the following exercises, describe how the formula is a transformation of a toolkit function. Then sketch a graph of the transformation.

$g\left(x\right)=4{\left(x+1\right)}^{2}-5$

The graph of the function$\text{\hspace{0.17em}}f\left(x\right)={x}^{2}\text{\hspace{0.17em}}$is shifted to the left 1 unit, stretched vertically by a factor of 4, and shifted down 5 units.

$g\left(x\right)=5{\left(x+3\right)}^{2}-2$

$h\left(x\right)=-2|x-4|+3$

The graph of$\text{\hspace{0.17em}}f\left(x\right)=|x|\text{\hspace{0.17em}}$is stretched vertically by a factor of 2, shifted horizontally 4 units to the right, reflected across the horizontal axis, and then shifted vertically 3 units up.

$k\left(x\right)=-3\sqrt{x}-1$

$m\left(x\right)=\frac{1}{2}{x}^{3}$

The graph of the function$\text{\hspace{0.17em}}f\left(x\right)={x}^{3}\text{\hspace{0.17em}}$is compressed vertically by a factor of$\text{\hspace{0.17em}}\frac{1}{2}.$

$n\left(x\right)=\frac{1}{3}|x-2|$

$p\left(x\right)={\left(\frac{1}{3}x\right)}^{3}-3$

The graph of the function is stretched horizontally by a factor of 3 and then shifted vertically downward by 3 units.

$q\left(x\right)={\left(\frac{1}{4}x\right)}^{3}+1$

$a\left(x\right)=\sqrt{-x+4}$

The graph of$\text{\hspace{0.17em}}f\left(x\right)=\sqrt{x}\text{\hspace{0.17em}}$is shifted right 4 units and then reflected across the vertical line$\text{\hspace{0.17em}}x=4.$

For the following exercises, use the graph in [link] to sketch the given transformations.

$g\left(x\right)=f\left(x\right)-2$

$g\left(x\right)=-f\left(x\right)$

$g\left(x\right)=f\left(x+1\right)$

$g\left(x\right)=f\left(x-2\right)$

Tải về
Đánh giá:
0 dựa trên 0 đánh giá
Nội dung cùng tác giả

Nội dung tương tự