Mathematics 265 Introduction to Calculus I
Study Guide :: Unit 2
Functions
Transformations
In this course, we study four basic transformations:
- shifts (upward, downward, to the left or to the right).
- stretches (vertical or horizontal).
- compressions (vertical or horizontal).
- reflections (with respect to the -axis or the -axis).
Shifts
Shifts may be vertical or horizontal. Let us consider vertical shifts first.
A vertical shift moves the graph of a function up or down without modifying the graph, as in Figures 2.14 and 2.15, and 2.16 and 2.17, below.
Figure 2.14. Basic graph 1
Figure 2.15. Basic graph 1 shifted 4 units upward
The graph in Figure 2.15 is the shift 4 units upward of the graph in Figure 2.14.
Figure 2.16. Basic graph 2
Figure 2.17. Basic graph 2 shifted 1/3 units downward
The graph in Figure 2.17 is the shift $1/3$ units downward of the graph in Figure 2.16.
We can recognize a shift from the formula of a function $f(x)$ by the constant that is added to it (see the definition below).
Definition 2.9. If is a positive real number and $f(x)$ is a function, then
the graph of the function
is a shift c units upwards of the graph of the function $f(x)$.
the graph of the function
is a shift c units downwards of the graph of the function $f(x)$.
Example 2.42. The graph of $f(x) = {x^2}$ is shown in Figure 2.14; the graph in Figure 2.15 is the graph of the function $F(x) = {x^2} + 4$, which is the shift $4$ units up of the graph of $f(x)$. You can see that $F(x) = f(x) + 4$.
Example 2.43. The graph of is shown in Figure 2.16 above. The graph in Figure 2.17 is the graph of the function
which is the shift $1/3$ units downward of the graph of $f(x)$.
Example 2.44. If we analyse the function $F(x) = \cos x + 2$, we see that it is the sum of the cosine function and the constant $2$. Hence, the graph of is the shift $2$ units up of the graph of the cosine function (see Figure 2.18).
Figure 2.18. Graph of the cosine function shifted $2$ units upward
Shifts to the left or right are obtained by adding a constant to the independent variable.
Definition 2.10. If is a positive real number, and $f(x)$ is a function, then
the graph of the function
is a shift c units to the left of the graph of the function $f(x)$.
the graph of the function
is a shift c units to the right of the graph of the function $f(x)$.
Example 2.45. The graph of $f(x) = {x^2}$ is shown in Figure 2.14, and the graph of the function which is the shift $4$ units to the left of the graph of is shown in Figure 2.19, below. As you can see, hence,
Figure 2.19. Graph of that is, $f(x) = {x^2}$ shifted $4$ units to the left
Figure 2.20. Graph of ; that is, $f(x) = |x|$ shifted $3$ units to the right
Example 2.46. The graph of $f(x) = |x|$ is shown in Figure 2.16. The graph in Figure 2.20, above, is the graph of the function $F(x) = |x - 3|$, which is the shift to the right of the graph of $f(x)$. We also have $F(x) = f(x - 3)$. As you can see, $F(3) = f(3 - 3) = f(0) = 0$.
Exercises
- Sketch the graph of the functions listed below.
- $F(x) = \sqrt{x} -6$
- $F(x) = \tan x + 2$
- $F(x) = \displaystyle{\frac{1}{x}} -1$
- $F(x) = \sqrt{x + 5}$
Stretches and Compressions
As can shifts, stretches and compressions can be vertical or horizontal. Figures 2.21 to 2.24, below, show vertical stretches and compressions.
Figure 2.21. Basic graph
Figure 2.22. Basic graph stretched vertically by $2$ units
The graph in Figure 2.22 is a stretch $2$ units vertically of the graph in Figure 2.21. Observe that the points of intersection in the -axis are the same in both graphs.
Figure 2.23. Basic graph
The graph in Figure 2.24, below, is a compression units vertically of the graph in Figure 2.23.
Figure 2.24. Basic graph compressed vertically by units
To stretch the graph of a function vertically, we multiply the function by a constant greater than 1; for a vertical compression, we multiply the function by a number smaller than 1.
Definition 2.11. If is a real number and $f(x)$ is a function, then
- the graph of the function
- represents a vertical stretch of the graph of the function $f(x)$ by a factor of .
- the graph of the function
- represents a vertical compression of the graph of the function $f(x)$ by a factor of .
Example 2.47. The graph of $f(x) = \sin x$ is shown in Figure 2.21. The graph in Figure 2.22 is the graph of the function $F(x) = 2\sin x$, which is the vertical stretch of the graph of $f(x)$ by a factor of $2$. As you can see, $F(x) = 2f(x)$.
Example 2.48. The graph of $f(x) = |x|$ is shown in Figure 2.23. The graph in Figure 2.24 is the graph of the function
$F(x) = \dfrac{1}{2}|x| = \dfrac{1}{2}f(x)$,
which is the vertical compression of the graph of $f(x)$ by a factor of $2$.
is a vertical compression of the function $f(x) = {x^2}$ by a factor of $3$:
(see Figure 2.25, below).
Figure 2.25. Graph of and graph of $f(x) = {x^2}$ compressed vertically by a factor of $3$
To compress the graph of a function horizontally, we multiply the independent variable of the function by a constant greater than $1$; to stretch it horizontally, we multiply it by a number smaller than
Definition 2.12. If is a real number and $f(x)$ is a function, then
- the graph of the function
- is a horizontal compression of the graph of the function $f(x)$ by a factor of $c$.
- the graph of the function
- $F(x) = f\left( {\dfrac{x}{c}} \right)$
- is a horizontal stretch of the graph of the function $f(x)$ by a factor of $c$.
Example 2.50. The graph of is shown in Figure 2.26, below.
Figure 2.26. Graph of
The graph in Figure 2.27 is the graph of the function , which is the horizontal compression of the graph of $f(x)$ by a factor of $2$. As you can see, Observe that the range values of the dependent variable are the same, from to
Figure 2.27. Graph of
The points of intersection with the -axis of are
and the points of intersection with the -axis of are
Example 2.51. The graph of is shown in Figure 2.26. The graph in Figure 2.28, below, is the graph of the function
which is the horizontal stretch of the graph of $f(x)$ by a factor of $2$. As you can see,
Figure 2.28. Graph of
The points of intersection with the -axis of are
and those of are
Reflections
To reflect a graph with respect to the -axis—that is, to have the -axis act as a mirror—we multiply the function by ; to reflect the function with respect to the -axis, we multiply the independent variable by .
- The graph of the function
is the reflection with respect to the x-axis of the function $f(x)$.
- The graph of the function
is the reflection with respect to the y-axis of the function $f(x)$.
Example 2.52. The reflection of the graph of the sine function with respect to the -axis corresponds to the function as is shown in Figure 2.29, below.
Figure 2.29. Graph of
Example 2.53. The graph the function is shown in Figure 2.30, below.
Figure 2.30. Graph of
The reflection of with respect to the -axis corresponds to the function , as is shown in Figure 2.31, below. Observe that the domain of the function is and the domain of is
Figure 2.31. Graph of
Exercises
- For each of the functions below, identify the basic function and its transformation, and sketch the graph of the function .
- where is the constant function $4$.
Multiple Transformations
We can apply several transformations to one basic graph.
Example 2.54. If the basic function is , then a vertical stretch by a factor of $3$ is the function Continuing with a shift up by a factor of $2$ gives the function
Let the basic function be then the graph of is obtained after two transformations: a vertical stretch first, and a shift second, in that order (see Figure 2.32, below).
Figure 2.32. Deriving the graph of from that of $f(x) = {x^2}$
The challenge in sketching a new graph from a basic one is to identify the transformations in the order in which they are applied. Observe that the order matters: if we shift by $2$ units up and then stretch vertically by $3$ units, we go to first, then to If the basic function is under these transformations in this order, and the graph of this function, is as shown in Figure 2.33, below. [What would the function be if we applied the vertical stretch first? What would the graph look like?]
Figure 2.33. Graph of
Example 2.55. Consider the function If we were to evaluate this function at a number , we would proceed as follows.
Conclusion: The function $F(x) = 3{(x + 5)^2} - 2$ is obtained from the basic function $f(x) = {x^2}$ with the three transformations listed in the third column, in the order given. Figures 2.34 and 2.35, below, show the first two stages of these transformations.
Figure 2.34. Stage 1 of the transformation of $f(x) = {x^2}$ to
Figure 2.35. Stage $2$ of the transformation of $f(x) = {x^2}$ to
The final graph of the function is shown in Figure 2.36:
Figure 2.36. Graph of
Example 2.56. To sketch the graph of
we make the following analysis:
The graph is shown in Figure 2.37, below.
Figure 2.37. Graph of
Exercises
- Read the section titled “Transformations of Functions,” on pages 30-33 of the textbook.
- Do Exercises 11, 14, 17, 18 and 20 on page 38.
- Do Exercises 77, 79, 80 and 82 on page 367 of the textbook.