Horizontal and Vertical Shifts
The focus of the previous section was to learn the graphs that correspond to particular functions such as identity, square, cube, square root, cube root, absolute value, and reciprocal. Therefore, at this point, you should be able to recognize and generate the graphs of

, and

. In this section, we will discuss how to sketch the graphs of functions that are very simple modifications of these functions. For instance, a common function may be shifted (horizontally or vertically), reflected, or stretched (or compressed). Collectively, these techniques are called
transformations.
Let's take the absolute value function as an example. The graph of

was given in the last section. Now look at two examples that are much like this function:

and

. Graphing these functions by point-plotting yields
Instead of point-plotting the function

, we could have started with the function

and shifted the entire graph
up 2 units. Similarly, we could have generated the graph of the function

by shifting the function

to the
right 1 unit. In both cases, the base or starting function is

. Why did we go up for

and to the right for

?
Note that we could rewrite the functions

and

in terms of

:
In the case of

, the shift

occurs “outside” the function—that is, outside the parentheses showing the argument. Therefore, the output for

is two more than the typical output for

. Because the output corresponds to the vertical axis, this results in a shift
upward of two units. In general, shifts that occur
outside the function correspond to a
vertical shift corresponding to the sign of the shift. For instance, had the function been

, this graph would have started with the graph of the function

and shifted down two units.
In the case of

, the shift occurs “inside” the function—that is, inside the parentheses showing the argument. Note that the point

that lies on the graph of

was shifted to the point

on the graph of the function

. The

remained the same, but the

shifted to the right one unit. Similarly, the points

and

were shifted to the points

and

, respectively. In general, shifts that occur
inside the function correspond to a
horizontal shift opposite the sign. In this case, the graph of the function

shifted the graph of the function

to the right one unit. If, instead, we had the function

, this graph would have started with the graph of the function

and shifted to the left one unit.
Assuming that  is a positive constant,
To Graph |
Shift the Graph of
|
|
 units upward |
|
 units downward |
|
|
Adding or subtracting a constant outside the function corresponds to a vertical shift that goes with the sign. |
|
|
 |
Shifts outside the function are vertical shifts with the sign.
|
|
|
|
|
Assuming that  is a positive constant,
To Graph |
Shift the Graph of
|
|
 units to the left |
|
 units to the right |
|
|
Adding or subtracting a constant inside the function corresponds to a horizontal shift that goes opposite the sign. |
|
|
 |
Shifts inside the function are horizontal shifts opposite the sign.
|
|
|
|
|
EXAMPLE�1�
|
Horizontal and Vertical Shifts |
|
Sketch the graphs of the given functions using horizontal and vertical shifts:
 |
�Technology Tip� |
|
|
|
|
|
Solution
In both cases, the function to start with is  .
|
|
Sketch the graphs of the given functions using horizontal and vertical shifts.
|
|
|
|
|
|
It is important to note that the domain and range of the resulting function can be thought of as also being shifted. Shifts in the domain correspond to horizontal shifts, and shifts in the range correspond to vertical shifts.
�EXAMPLE�2�
|
Horizontal and Vertical Shifts and Changes in the Domain and Range |
|
Graph the functions using translations and state the domain and range of each function.
Solution
In both cases the function to start with is  . |
|
|
|
|
The original function  has an implicit restriction on the domain:  . The function  also has the implicit restriction that  . The output or range of  is always two units less than the output of the original function  .
|
|
Sketch the graph of the functions using shifts and state the domain and range.
|
|
|
|
|
|
The previous examples have involved graphing functions by shifting a known function either in the horizontal or vertical direction. Let us now look at combinations of horizontal and vertical shifts.
�EXAMPLE�3�
|
Combining Horizontal and Vertical Shifts |
|
Sketch the graph of the function  . State the domain and range of  .
 |
�Technology Tip� |
|
|
|
|
|
Solution
The base function is  .
|
|
Sketch the graph of the function  . State the domain and range of  .
|
|
|
|
|
|
All of the previous transformation examples involve starting with a common function and shifting the function in either the horizontal or the vertical direction (or a combination of both). Now, let's investigate
reflections of functions about the

or

.
Reflection about the Axes
To sketch the graphs of

and

start by first listing points that are on each of the graphs and then connecting the points with smooth curves.
Note that if the graph of

is reflected about the

, the result is the graph of

. Also note that the function

can be written as the negative of the function

; that is,

. In general,
reflection about the 
is produced by multiplying a function by

.
Let's now investigate reflection about the

. To sketch the graphs of

and

start by listing points that are on each of the graphs and then connecting the points with smooth curves.
Note that if the graph of

is reflected about the

, the result is the graph of

. Also note that the function

can be written as

. In general,
reflection about the 
is produced by replacing

with

in the function. Notice that the domain of

is

, whereas the domain of

is

.
REFLECTION ABOUT THE AXES |
|
|
The graph of  is obtained by reflecting the graph of  about the  .
The graph of  is obtained by reflecting the graph of  about the  .
|
|
|
EXAMPLE�4�
|
Sketching the Graph of a Function Using Both Shifts and Reflections |
|
Sketch the graph of the function  .
Solution
Start with the square root function. |
|
Shift the graph of  to the left one unit to arrive at the graph of  . |
|
Reflect the graph of  about the  to arrive at the graph of  . |
|
� |
|
|
|
|
|
|
|
�EXAMPLE�5�
|
Sketching the Graph of a Function Using Both Shifts and Reflections |
|
Sketch the graph of the function  .
 |
�Technology Tip� |
|
|
|
|
|
Solution
Start with the square root function. |
|
Shift the graph of  to the left two units to arrive at the graph of  . |
|
Reflect the graph of  about the  to arrive at the graph of  . |
|
Shift the graph  up one unit to arrive at the graph of  . |
|
� |
|
|
|
|
|
Use shifts and reflections to sketch the graph of the function  . State the domain and range of  .
|
|
|
|
|
|
Look back at the order in which transformations were performed in Example
5: horizontal shift, reflection, and then vertical shift. Let us consider an alternate order of transformations.
Words |
Math |
Start with the square root function. |
|
Shift the graph of  up one unit to arrive at the graph of  . |
|
Reflect the graph of  about the  to arrive at the graph of  . |
|
Replace  with  , which corresponds to a shift of the graph of  to the right two units to arrive at the graph of  . |
|
In the last step we replaced  with  , which required us to think ahead knowing the desired result was  inside the radical. To avoid any possible confusion, follow this order of transformations:
|
|
|
|
Stretching and Compressing
Horizontal shifts, vertical shifts, and reflections change only the position of the graph in the Cartesian plane, leaving the basic shape of the graph unchanged. These transformations (shifts and reflections) are called rigid transformations because they alter only the position. Nonrigid transformations, on the other hand, distort the shape of the original graph. We now consider stretching and compressing of graphs in both the vertical and the horizontal direction.
A vertical stretch or compression of a graph occurs when the function is multiplied by a positive constant. For example, the graphs of the functions

,

, and

are illustrated below. Depending on if the constant is larger than 1 or smaller than 1 will determine whether it corresponds to a stretch (expansion) or compression (contraction) in the vertical direction.
Note that when the function

is multiplied by 2, so that

, the result is a graph stretched in the vertical direction. When the function

is multiplied by

, so that

, the result is a graph that is compressed in the vertical direction.
VERTICAL STRETCHING AND VERTICAL COMPRESSING OF GRAPHS |
|
|
The graph of  is found by:
 |
|
■�� |
Vertically stretching the graph of
|
|
|
if
|
 |
|
■�� |
Vertically compressing the graph of
|
|
|
if
|
|
|
Note:  is any positive real number. |
|
|
EXAMPLE�6�
|
Vertically Stretching and Compressing Graphs |
|
Graph the function  .
Solution
1. Start with the cube function. |
|
2. Vertical compression is expected because  is less than 1. |
|
3. Determine a few points that lie on the graph of  .
|
|
|
|
|
|
|
|
Conversely, if the argument

of a function

is multiplied by a positive real number

, then the result is a
horizontal stretch of the graph of

if

. If

, then the result is a
horizontal compression of the graph of

.
HORIZONTAL STRETCHING AND HORIZONTAL COMPRESSING OF GRAPHS |
|
|
The graph of  is found by:
Note:  is any positive real number. |
|
|
�EXAMPLE�7�
|
Vertically Stretching and Horizontally Compressing Graphs |
|
Given the graph of  , graph:
|
|
Graph the function  .
Stretching of the graph  .
|
|
|
|
|
|
�EXAMPLE�8�
|
Sketching the Graph of a Function Using Multiple Transformations |
|
Sketch the graph of the function  .
 |
�Technology Tip� |
|
|
Graphs of  ,  , and  are shown.
|
|
|
|
|
Solution
Start with the square function. |
|
Shift the graph of  to the right three units to arrive at the graph of  . |
|
Vertically stretch the graph of  by a factor of 2 to arrive at the graph of  . |
|
Reflect the graph  about the  to arrive at the graph of  . |
|
|
|
|
|
|
|
|
In Example
8 we followed the same “inside out” approach with the functions to determine the order for the transformations: horizontal shift, vertical stretch, and reflection.