title | layout |
---|---|
Transformation of Functions |
page |
-axis and the y
-axis.
- Determine whether a function is even, odd, or neither from its graph.
- Graph functions using compressions and stretches.
- Combine transformations.
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.
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.
One simple kind of transformation{: data-type="term" .no-emphasis} 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 g(x)=f(x)+k,
the function f( x )
is shifted vertically k
units. See [link] for an example.
To help you visualize the concept of a vertical shift, consider that y=f( x ).
Therefore, f( x )+k
is equivalent to y+k.
Every unit of y
is replaced by y+k,
so the y-
value increases or decreases depending on the value of k.
The result is a shift upward or downward.
a new function g(x)=f(x)+k,
where k
is a constant, is a vertical shift{: data-type="term"} of the function f( x ).
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.
(in square feet) throughout the day in hours after midnight, t.
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.
Notice that in [link], for each input value, the output value has increased by 20, so if we call the new function S( t ),
we could write
can be found by evaluating the function V
at the same input and then adding 20 to the result. This defines S
as a transformation of the function V,
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(t) | 0 | 0 | 220 | 220 | 0 | 0 |
S( t ) | 20 | 20 | 240 | 240 | 20 | 20 |
- Identify the output row or column.
- Determine the magnitude{: data-type="term" .no-emphasis} of the shift.
- Add the shift to the value in each output cell. Add a positive value for up or a negative value for down. {: type="1"}
is given in [link]. Create a table for the function g(x)=f(x)−3.
x | 2 | 4 | 6 | 8 |
f(x) | 1 | 3 | 7 | 11 |
tells us that we can find the output values of g
by subtracting 3 from the output values of f.
For example:
value, we can complete a table of values for g( x )
as shown in [link].
x | 2 | 4 | 6 | 8 |
f(x) | 1 | 3 | 7 | 11 |
g(x) | −2 | 0 | 4 | 8 |
gives the height h
of a ball (in meters) thrown upward from the ground after t
seconds. Suppose the ball was instead thrown from the top of a 10-m building. Relate this new height function b(t)
to h(t),
and then find a formula for b(t).
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 f(x)= x 2 ,
then g(x)= (x−2) 2
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 f.
a new function g( x )=f( x−h ),
where h
is a constant, is a horizontal shift{: data-type="term"} of the function f.
If h
is positive, the graph will shift right. If h
is negative, the graph will shift left.
to be the original program and F( t )
to be the revised program.
was 2 hours later. For example, in the original function V,
the airflow starts to change at 8 a.m., whereas for the function F,
the airflow starts to change at 6 a.m. The comparable function values are V(8)=F(6).
See [link]. Notice also that the vents first opened to 220 ft 2
at 10 a.m. under the original plan, while under the new plan the vents reach 220 ft 2
at 8 a.m., so V(10)=F(8).
In both cases, we see that, because F( t )
starts 2 hours sooner, h=−2.
That means that the same output values are reached when F(t)=V(t−( −2 ))=V( t+2 ).
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 F( t )
uses the same outputs as V( t ),
but matches those outputs to inputs 2 hours earlier than those of V( t ).
Said another way, we must add 2 hours to the input of V
to find the corresponding output for F:F(t)=V(t+2).
- Identify the input row or column.
- Determine the magnitude of the shift.
- Add the shift to the value in each input cell. {: type="1"}
is given in [link]. Create a table for the function g(x)=f(x−3).
<tr>
<td data-align="center"><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td data-align="center">1</td>
<td data-align="center">3</td>
<td data-align="center">7</td>
<td data-align="center">11</td>
</tr>
x | 2 | 4 | 6 | 8 |
tells us that the output values of g
are the same as the output value of f
when the input value is 3 less than the original value. For example, we know that f(2)=1.
To get the same output from the function g,
we will need an input value that is 3 larger. We input a value that is 3 larger for g(x)
because the function takes 3 away before evaluating the function f.
<tr>
<td data-align="left"><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>x</mi><mo>−</mo><mn>3</mn></mrow>
</math></strong>
</td>
<td data-align="left">2</td>
<td data-align="left">4</td>
<td data-align="left">6</td>
<td data-align="left">8</td>
</tr>
<tr>
<td data-align="left"><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo>−</mo><mn>3</mn><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td data-align="left">1</td>
<td data-align="left">3</td>
<td data-align="left">7</td>
<td data-align="left">11</td>
</tr>
<tr>
<td><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>g</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td data-align="left">1</td>
<td data-align="left">3</td>
<td data-align="left">7</td>
<td data-align="left">11</td>
</tr>
x | 5 | 7 | 9 | 11 |
has been shifted to the right by 3. Notice the output values for g(x)
remain the same as the output values for f(x),
but the corresponding input values, x,
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.
Relate this new function g(x)
to f(x),
and then find a formula for g(x).
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
to get the output value y=0;
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 f(x)
function to write a formula for g(x)
by evaluating f(x−2).
or −2
, consider a single reference point on the graph. For a quadratic, looking at the vertex point is convenient. In the original function, f(0)=0.
In our shifted function, g(2)=0.
To obtain the output value of 0 from the function f,
we need to decide whether a plus or a minus sign will work to satisfy g(2)=f(x−2)=f(0)=0.
For this to work, we will need to subtract 2 units from our input values.
gives the number of gallons of gas required to drive m
miles. Interpret G(m)+10
and G(m+10).
can be interpreted as adding 10 to the output, gallons. This is the gas required to drive m
miles, plus another 10 gallons of gas. The graph would indicate a vertical shift.
G(m+10)
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 m
miles. The graph would indicate a horizontal shift.
graph the original function f(x)
and the transformation g(x)=f(x+2)
on the same axes. Is this a horizontal or a vertical shift? Which way is the graph shifted and by how many units?
Now that we have two transformations, we can combine them together. Vertical shifts are outside changes that affect the output ( y-
) axis values and shift the function up or down. Horizontal shifts are inside changes that affect the input ( x-
) 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.
- Identify the vertical and horizontal shifts from the formula.
- 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.
- 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.
- Apply the shifts to the graph in either order. {: type="1"}
sketch a graph of h(x)=f(x+1)−3.
is our toolkit absolute value function. We know that this graph has a V shape, with the point at the origin. The graph of h
has transformed f
in two ways: f(x+1)
is a change on the inside of the function, giving a horizontal shift left by 1, and the subtraction by 3 in f(x+1)−3
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 f(x)=| x |.
-
The point (0,0)
is transformed first by shifting left 1 unit: (0,0)→(−1,0)
-
The point (−1,0)
is transformed next by shifting down 3 units: (−1,0)→(−1,−3)
[link] shows the graph of h.
sketch a graph of h(x)=f(x−2)+4.
and range [2,∞).
that shifts the function’s graph one unit to the right and one unit up.
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.
a new function g(x)=−f(x)
is a vertical reflection{: data-type="term"} of the function f(x),
sometimes called a reflection about (or over, or through) the x-axis.
Given a function f(x),
a new function g(x)=f(−x)
is a horizontal reflection{: data-type="term"} of the function f(x),
sometimes called a reflection about the y-axis.
- Multiply all outputs by –1 for a vertical reflection. The new graph is a reflection of the original graph about the x-axis.
- Multiply all inputs by –1 for a horizontal reflection. The new graph is a reflection of the original graph about the y-axis. {: type="1"}
(a) vertically and (b) horizontally.
![Graph of the vertical reflection of the square root function.](../resources/CNX_Precalc_Figure_01_05_013.jpg "Vertical reflection of the square root function"){: #Figure_01_05_014}
Because each output value is the opposite of the original output value, we can write
<div data-type="equation" class="unnumbered" data-label="">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mrow> <mi>V</mi><mo stretchy="false">(</mo><mi>t</mi><mo stretchy="false">)</mo><mo>=</mo><mo>−</mo><mi>s</mi><mo stretchy="false">(</mo><mi>t</mi><mo stretchy="false">)</mo><mtext> or </mtext><mi>V</mi><mo stretchy="false">(</mo><mi>t</mi><mo stretchy="false">)</mo><mo>=</mo><mo>−</mo><msqrt> <mi>t</mi> </msqrt> </mrow> </math>
</div>
Notice that this is an outside change, or vertical shift, that affects the output<math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <mtext> </mtext><mi>s</mi><mo stretchy="false">(</mo><mi>t</mi><mo stretchy="false">)</mo><mtext> </mtext></mrow> </math>
values, so the negative sign belongs outside of the function.
-
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
H(t)=s(−t) or H(t)= −tNotice 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 [0,∞)
and range [0,∞),
the vertical reflection gives the V(t)
function the range ( −∞, 0 ]
and the horizontal reflection gives the H(t)
function the domain ( −∞, 0 ]. {: type="a"}
(a) vertically and (b) horizontally.
is given as [link]. Create a table for the functions below.
-
g(x)=−f(x)
-
h(x)=f(−x) {: type="a"}
<tr>
<td data-align="left"><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td data-align="left">1</td>
<td data-align="left">3</td>
<td data-align="left">7</td>
<td data-align="left">11</td>
</tr>
</tbody></table>
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]](#Table_01_05_06).
<table id="Table_01_05_06" summary="Two rows and five columns. The first row is labeled, “x”, and the second is labeled, “g(x)”. The values of x are 2, 4, 6, and 8. So for g(2)=-1, g(4)=-3, g(6)=-7, and g(8)=-11."><colgroup><col /><col data-width="40" /><col data-width="40" /><col data-width="40" /><col data-width="40" /></colgroup><tbody>
<tr>
<td data-align="left"><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>x</mi>
</math></strong></td>
<td data-align="left">2</td>
<td data-align="left">4</td>
<td data-align="left">6</td>
<td data-align="left">8</td>
</tr>
<tr>
<td data-align="left"><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mtext> </mtext><mi>g</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mtext> </mtext></mrow>
</math></strong>
</td>
<td data-align="left">–1</td>
<td data-align="left">–3</td>
<td data-align="left">–7</td>
<td data-align="left">–11</td>
</tr>
</tbody></table>
-
For h(x),
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 h(x)
values stay the same as the f(x)
values. See [link].
x | 2 | 4 | 6 | 8 |
<tr>
<td data-align="center"><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>h</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td data-align="center">1</td>
<td data-align="center">3</td>
<td data-align="center">7</td>
<td data-align="center">11</td>
</tr>
</tbody></table>
{: type="a"}
is given as [link]. Create a table for the functions below.
-
g(x)=−f(x)
-
h(x)=f(−x) {: type="a"}
x | −2 | −4 | −6 | −8 |
<tr>
<td data-align="left"><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td data-align="left">5</td>
<td data-align="left">10</td>
<td data-align="left">15</td>
<td data-align="left">20</td>
</tr>
</tbody></table>
<table summary="Two rows and five columns. The first row is labeled, “x”, and the second is labeled, “f(x)”. The values of x are -2, 0, 2, and 4. So for f(-2)=-5, f(0)=-10, f(2)=-15, and f(4)=-20." class="unnumbered" data-label=""><colgroup><col /><col data-width="40" /><col data-width="40" /><col data-width="40" /><col data-width="40" /></colgroup><tbody>
<tr>
<td data-align="center"><math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>x</mi>
</math>
</td>
<td data-align="center">-2</td>
<td data-align="center">0</td>
<td data-align="center">2</td>
<td data-align="center">4</td>
</tr>
<tr>
<td data-align="center"><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>g</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math>
</td>
<td data-align="center"><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo>−</mo><mn>5</mn></mrow>
</math>
</td>
<td data-align="center"><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo>−</mo><mn>10</mn></mrow>
</math>
</td>
<td data-align="center"><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo>−</mo><mn>15</mn></mrow>
</math>
</td>
<td data-align="center"><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo>−</mo><mn>20</mn></mrow>
</math>
</td>
</tr>
</tbody></table>
-
h(x)=f(−x)
x | −2 | 0 | 2 | 4 |
<tr>
<td><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>h</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math>
</td>
<td>15</td>
<td>10</td>
<td>5</td>
<td>unknown</td>
</tr>
</tbody></table>
{: type="a"}
where k
is the percentage of mastery that can be achieved after t
practice sessions. This is a transformation of the function f(t)= 2 t
shown in [link]. Sketch a graph of k(t).
-
A horizontal reflection: f(−t)= 2 −t
-
A vertical reflection: −f(−t)=− 2 −t
-
A vertical shift: −f(−t)+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).
- First, we apply a horizontal reflection: (0, 1) (–1, 2).
- Then, we apply a vertical reflection: (0, −1) (-1, –2).
- Finally, we apply a vertical shift: (0, 0) (-1, -1). {: type="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.
with corresponding range [0,1).
graph g(x)=−f(x)
and h(x)=f(−x).
Take note of any surprising behavior for these functions.
looks the same as f(x)
.
Some functions exhibit symmetry so that reflections result in the original graph. For example, horizontally reflecting the toolkit functions f(x)= x 2
or f(x)=| 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 f(x)= x 3
or f(x)= 1 x
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, f(x)= 2 x
is neither even nor odd. Also, the only function that is both even and odd is the constant function f(x)=0.
axis.
A function is called an odd function{: data-type="term"} if for every input x
-
Determine whether the function satisfies f(x)=f(−x).
If it does, it is even.
-
Determine whether the function satisfies f(x)=−f(−x).
If it does, it is odd.
-
If the function does not satisfy either rule, it is neither even nor odd. {: type="1"}
even, odd, or neither?
this is an odd function.
in [link]. Notice that the graph is symmetric about the origin. For every point ( x,y )
on the graph, the corresponding point ( −x,−y )
is also on the graph. For example, (1, 3) is on the graph of f,
and the corresponding point (−1,−3)
is also on the graph.
even, odd, or neither?
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.
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.
a new function g(x)=af(x),
where a
is a constant, is a vertical stretch{: data-type="term"} or vertical compression{: data-type="term"} of the function f(x).
-
If a>1,
then the graph will be stretched.
-
If 0<a<1,
then the graph will be compressed.
-
If a<0,
then there will be combination of a vertical stretch or compression with a vertical reflection.
-
Identify the value of a.
-
Multiply all range values by a.
-
If a>1,
the graph is stretched by a factor of a.
If 0<a<1,
the graph is compressed by a factor of a.
If a<0,
the graph is either stretched or compressed and also reflected about the x-axis. {: type="1"}
models the population of fruit flies. The graph is shown in [link].
A scientist is comparing this population to another population, Q,
whose growth follows the same pattern, but is twice as large. Sketch a graph of this population.
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
the value of the function Q
is twice the value of the function P.
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, t,
stay the same while the output values are twice as large as before.
-
Determine the value of a.
-
Multiply all of the output values by a. {: type="1"}
is given as [link]. Create a table for the function g(x)= 1 2 f(x).
x | -2 | 0 | 2 | 4 |
<tr>
<td data-align="left"><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mtext> </mtext></mrow>
</math></strong>
</td>
<td data-align="left">1</td>
<td data-align="left">3</td>
<td data-align="left">7</td>
<td data-align="left">11</td>
</tr>
x | 2 | 4 | 6 | 8 |
tells us that the output values of g
are half of the output values of f
with the same inputs. For example, we know that f(4)=3.
Then
<tr>
<td data-align="center"><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>g</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td data-align="center"><math xmlns="http://www.w3.org/1998/Math/MathML">
x | 2 | 4 | 6 | 8 |
3 2 | 7 2 | 11 2 |
has been compressed vertically by 1 2 .
Each output value is divided in half, so the graph is half the original height.
is given as [link]. Create a table for the function g(x)= 3 4 f(x).
<tr>
<td data-align="left"><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math>
</td>
<td data-align="left">12</td>
<td data-align="left">16</td>
<td data-align="left">20</td>
<td data-align="left">0</td>
</tr>
x | 2 | 4 | 6 | 8 |
<tr>
<td data-align="left"><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>g</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math>
</td>
<td data-align="left">9</td>
<td data-align="left">12</td>
<td data-align="left">15</td>
<td data-align="left">0</td>
</tr>
</tbody></table>
Relate this new function g(x)
to f(x),
and then find a formula for g(x).
With the basic cubic function at the same input, f(2)= 2 3 =8.
Based on that, it appears that the outputs of g
are 1 4
the outputs of the function f
because g(2)= 1 4 f(2).
From this we can fairly safely conclude that g(x)= 1 4 f(x).
We can write a formula for g
by using the definition of the function f.
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 y=f(x),
the form y=f(bx)
results in a horizontal stretch or compression. Consider the function y= x 2 .
Observe [link]. The graph of y= ( 0.5x ) 2
is a horizontal stretch of the graph of the function y= x 2
by a factor of 2. The graph of y= ( 2x ) 2
is a horizontal compression of the graph of the function y= x 2
by a factor of 2.
a new function g(x)=f(bx),
where b
is a constant, is a horizontal stretch{: data-type="term"} or horizontal compression{: data-type="term"} of the function f(x).
-
If b>1,
then the graph will be compressed by 1 b .
-
If 0<b<1,
then the graph will be stretched by 1 b .
-
If b<0,
then there will be combination of a horizontal stretch or compression with a horizontal reflection.
-
Write a formula to represent the function.
-
Set g(x)=f(bx)
where b>1
for a compression or 0<b<1
for a stretch. {: type="1"}
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.
is given as [link]. Create a table for the function g(x)=f( 1 2 x ).
x | 2 | 4 | 6 | 8 |
<tr>
<td data-align="center"><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td data-align="center">1</td>
<td data-align="center">3</td>
<td data-align="center">7</td>
<td data-align="center">11</td>
</tr>
x | 2 | 4 | 6 | 8 |
tells us that the output values for g
are the same as the output values for the function f
at an input half the size. Notice that we do not have enough information to determine g(2)
because g(2)=f( 1 2 ⋅2 )=f(1),
and we do not have a value for f(1)
in our table. Our input values to g
will need to be twice as large to get inputs for f
that we can evaluate. For example, we can determine g(4).
<tr>
<td><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>g</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td>1</td>
<td>3</td>
<td>7</td>
<td>11</td>
</tr>
x | 4 | 8 | 12 | 16 |
has been stretched horizontally by a factor of 2.
looks like the graph of f(x)
horizontally compressed. Because f(x)
ends at (6,4)
and g(x)
ends at (2,4),
we can see that the x-
values have been compressed by 1 3 ,
because 6( 1 3 )=2.
We might also notice that g(2)=f( 6 )
and g(1)=f( 3 ).
Either way, we can describe this relationship as g(x)=f( 3x ).
This is a horizontal compression by 1 3 .
in our function: f( 1 4 x ).
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.
so using the square root function we get g(x)= 1 3 x
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 2f(x)+3,
which transformation should we start with? The answer here follows nicely from the order of operations. Given the output value of f(x),
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 g(x)=f(2x+3),
for example, we have to think about how the inputs to the function g
relate to the inputs to the function f.
Suppose we know f(7)=12.
What input to g
would produce that output? In other words, what value of x
will allow g(x)=f(2x+3)=12?
We would need 2x+3=7.
To solve for x,
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.
first vertically stretch by a
and then vertically shift by k.
When combining horizontal transformations written in the form f(bx-h),
first horizontally shift by h
and then horizontally stretch by 1 b .
When combining horizontal transformations written in the form f(b(x-h)),
first horizontally stretch by 1 b
and then horizontally shift by h.
Horizontal and vertical transformations are independent. It does not matter whether horizontal or vertical transformations are performed first.
create a table of values for the function g(x)=2f(3x)+1.
<tr>
<td><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td>10</td>
<td>14</td>
<td>15</td>
<td>17</td>
</tr>
</tbody></table>
is a horizontal compression by 1 3 ,
which means we multiply each x-
value by 1 3 .
See [link].
x | 6 | 12 | 18 | 24 |
<tr>
<td><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>f</mi><mo stretchy="false">(</mo><mn>3</mn><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td>10</td>
<td>14</td>
<td>15</td>
<td>17</td>
</tr>
</tbody></table>
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 |
<tr>
<td><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mn>2</mn><mi>f</mi><mo stretchy="false">(</mo><mn>3</mn><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td>20</td>
<td>28</td>
<td>30</td>
<td>34</td>
</tr>
</tbody></table>
Finally, we can apply the vertical shift, which will add 1 to all the output values. See [link].
x | 2 | 4 | 6 | 8 |
<tr>
<td><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>g</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mn>2</mn><mi>f</mi><mo stretchy="false">(</mo><mn>3</mn><mi>x</mi><mo stretchy="false">)</mo><mo>+</mo><mn>1</mn></mrow>
</math></strong>
</td>
<td>21</td>
<td>29</td>
<td>31</td>
<td>35</td>
</tr>
</tbody></table>
in [link] to sketch a graph of k(x)=f( 1 2 x+1 )−3.
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 x+2.
See [link].
Last, we vertically shift down by 3 to complete our sketch, as indicated by the −3
on the outside of the function. See [link].
x | 2 | 4 | 6 | 8 |
Vertical shift | g(x)=f(x)+k (up for k>0 ) |
Horizontal shift | g(x)=f(x−h) (right for h>0 ) |
Vertical reflection | g(x)=−f(x) |
Horizontal reflection | g(x)=f(−x) |
Vertical stretch | g(x)=af(x) ( a>0 ) |
Vertical compression | g(x)=af(x) (0<a<1) |
Horizontal stretch | g(x)=f(bx) (0<b<1) |
Horizontal compression | g(x)=f(bx) ( b>1 ) |
-
A function can be shifted vertically by adding a constant to the output. See [link] and [link].
-
A function can be shifted horizontally by adding a constant to the input. See [link], [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 x-
axis. A graph can be reflected vertically by multiplying the output by –1.
-
A horizontal reflection reflects a graph about the y-
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-
axis, whereas odd functions are symmetric about the origin.
-
Even functions satisfy the condition f(x)=f(−x).
-
Odd functions satisfy the condition f(x)=−f(−x).
-
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].
substitute (−x)
for (x)
in f(x).
Simplify. If the resulting function is the same as the original function, f(−x)=f(x),
then the function is even. If the resulting function is the opposite of the original function, f(−x)=−f(x),
then the original function is odd. If the function is not the same or the opposite, then the function is neither odd nor even.
is shifted up 1 unit and to the left 2 units.
is shifted down 3 units and to the right 1 unit.
is shifted down 4 units and to the right 3 units.
is shifted up 2 units and to the left 4 units.
For the following exercises, describe how the graph of the function is a transformation of the graph of the original function f.
is a horizontal shift to the left 43 units of the graph of f.
is a horizontal shift to the right 4 units of the graph of f.
is a vertical shift up 8 units of the graph of f.
is a vertical shift down 7 units of the graph of f.
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.
and increasing on (−3,∞)
For the following exercises, use the graph of f(x)= 2 x
shown in [link] to sketch a graph of each transformation of f(x).
For the following exercises, sketch a graph of the function as a transformation of the graph of one of the toolkit functions.
and h
are given below. Write g(x)
and h(x)
as transformations of f(x).
<tr>
<td><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td>−2</td>
<td>−1</td>
<td>−3</td>
<td>1</td>
<td>2</td>
</tr>
</tbody></table>
x | −2 | −1 | 0 | 1 | 2 |
<tr>
<td><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>g</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td>−2</td>
<td>−1</td>
<td>−3</td>
<td>1</td>
<td>2</td>
</tr>
</tbody></table>
x | −1 | 0 | 1 | 2 | 3 |
<tr>
<td><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>h</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td>−1</td>
<td>0</td>
<td>−2</td>
<td>2</td>
<td>3</td>
</tr>
</tbody></table>
and h
are given below. Write g(x)
and h(x)
as transformations of f(x).
x | −2 | −1 | 0 | 1 | 2 |
<tr>
<td><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td>−1</td>
<td>−3</td>
<td>4</td>
<td>2</td>
<td>1</td>
</tr>
</tbody></table>
x | −2 | −1 | 0 | 1 | 2 |
<tr>
<td><strong><math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>g</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
</math></strong>
</td>
<td>−1</td>
<td>−3</td>
<td>4</td>
<td>2</td>
<td>1</td>
</tr>
</tbody></table>
x | −3 | −2 | −1 | 0 | 1 |
x | −2 | −1 | 0 | 1 | 2 |
h(x) | −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.
For the following exercises, use the graphs of transformations of the square root function to find a formula for each of the functions.
For the following exercises, use the graphs of the transformed toolkit functions to write a formula for each of the resulting functions.
For the following exercises, determine whether the function is odd, even, or neither.
For the following exercises, describe how the graph of each function is a transformation of the graph of the original function f.
is a vertical reflection (across the x
-axis) of the graph of f.
is a vertical stretch by a factor of 4 of the graph of f.
is a horizontal compression by a factor of 1 5
of the graph of f.
is a horizontal stretch by a factor of 3 of the graph of f.
is a horizontal reflection across the y
-axis and a vertical stretch by a factor of 3 of the graph of f.
For the following exercises, write a formula for the function g
that results when the graph of a given toolkit function is transformed as described.
is reflected over the y
*-*axis and horizontally compressed by a factor of 1 4
.
is reflected over the x
-axis and horizontally stretched by a factor of 2.
is vertically compressed by a factor of 1 3 ,
then shifted to the left 2 units and down 3 units.
is vertically stretched by a factor of 8, then shifted to the right 4 units and up 2 units.
is vertically compressed by a factor of 1 2 ,
then shifted to the right 5 units and up 1 unit.
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.
For the following exercises, use the graph in [link] to sketch the given transformations.
even function : a function whose graph is unchanged by horizontal reflection, f(x)=f(−x),
and is symmetric about the y-
axis ^
horizontal compression : a transformation that compresses a function’s graph horizontally, by multiplying the input by a constant b>1 ^
horizontal reflection : a transformation that reflects a function’s graph across the y-axis by multiplying the input by −1 ^
horizontal shift : a transformation that shifts a function’s graph left or right by adding a positive or negative constant to the input ^
horizontal stretch : a transformation that stretches a function’s graph horizontally by multiplying the input by a constant 0<b<1 ^
odd function : a function whose graph is unchanged by combined horizontal and vertical reflection, f(x)=−f(−x),
and is symmetric about the origin ^
vertical compression : a function transformation that compresses the function’s graph vertically by multiplying the output by a constant 0<a<1 ^
vertical reflection : a transformation that reflects a function’s graph across the x-axis by multiplying the output by −1 ^
vertical shift : a transformation that shifts a function’s graph up or down by adding a positive or negative constant to the output ^
vertical stretch : a transformation that stretches a function’s graph vertically by multiplying the output by a constant a>1