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 x -axis or the y -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 c is a positive real number and $f(x)$ is a function, then

  1. the graph of the function

    F ( x ) = f ( x ) + c

    is a shift c units upwards of the graph of the function $f(x)$.

  2. the graph of the function

    F ( x ) = f ( x ) - c

    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 f ( x ) = | x | is shown in Figure 2.16 above. The graph in Figure 2.17 is the graph of the function

F ( x ) = f ( x ) - 1 3 = | x | - 1 3 ,

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 F ( x ) 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 c is a positive real number, and $f(x)$ is a function, then

  1. the graph of the function

    F ( x ) = f ( x + c )

    is a shift c units to the left of the graph of the function $f(x)$.

  2. the graph of the function

    F ( x ) = f ( x - c )

    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 F ( x ) = ( x + 4 ) 2 , which is the shift $4$ units to the left of the graph of f ( x ) , is shown in Figure 2.19, below. As you can see, F ( x ) = f ( x + 4 ) ; hence, F ( - 4 ) = f ( - 4 + 4 ) = f ( 0 ) = 0 .

Figure 2.19. Graph of F ( x ) = ( x + 4 ) 2 ; that is, $f(x) = {x^2}$ shifted $4$ units to the left

Figure 2.20. Graph of F ( x ) = | x - 3 | ; 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
  1. Sketch the graph of the functions listed below.
    1. $F(x) = \sqrt{x} -6$
    2. $F(x) = \tan x + 2$
    3. $F(x) = \displaystyle{\frac{1}{x}} -1$
    4. $F(x) = \sqrt{x + 5}$

Answers to Exercises

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 x -axis are the same in both graphs.

Figure 2.23. Basic graph

The graph in Figure 2.24, below, is a compression 1 2 units vertically of the graph in Figure 2.23.

Figure 2.24. Basic graph compressed vertically by 1 2 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 c > 1 is a real number and $f(x)$ is a function, then

  1. the graph of the function
  2. F ( x ) = c f ( x )
  3. represents a vertical stretch of the graph of the function $f(x)$ by a factor of c .
  4. the graph of the function
  5. F ( x ) = 1 c f ( x )
  6. represents a vertical compression of the graph of the function $f(x)$ by a factor of c .

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$.

Example 2.49. The graph of

F ( x ) = x 2 3

is a vertical compression of the function $f(x) = {x^2}$ by a factor of $3$:

F ( x ) = x 2 3 = 1 3 x 2 = 1 3 f ( x )

(see Figure 2.25, below).

Figure 2.25. Graph of f ( x ) = x 2 , 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 1 .

Definition 2.12. If c > 1 is a real number and $f(x)$ is a function, then

  1. the graph of the function
  2. F(x)=f(cx)
  3. is a horizontal compression of the graph of the function $f(x)$ by a factor of $c$.
  4. the graph of the function
  5. $F(x) = f\left( {\dfrac{x}{c}} \right)$
  6. is a horizontal stretch of the graph of the function $f(x)$ by a factor of $c$.

Example 2.50. The graph of f ( x ) = sin  x is shown in Figure 2.26, below.

Figure 2.26. Graph of f ( x ) = sin  x

The graph in Figure 2.27 is the graph of the function F(x)=sin(2x) , which is the horizontal compression of the graph of $f(x)$ by a factor of $2$. As you can see, F ( x ) = f ( 2 x ) . Observe that the range values of the dependent variable F are the same, from - 1 to 1 .

Figure 2.27. Graph of F ( x ) = sin  ( 2 x )

The points of intersection with the x -axis of sin  x are

0 , π , 2 π ;

and the points of intersection with the x -axis of sin  ( 2 x ) are

0 = 1 2 0 , π 2 = 1 2 π , π = 1 2 2 π .

Example 2.51. The graph of f ( x ) = sin  x is shown in Figure 2.26. The graph in Figure 2.28, below, is the graph of the function

F ( x ) = sin  x 2 ,

which is the horizontal stretch of the graph of $f(x)$ by a factor of $2$. As you can see,

F ( x ) = f x 2 .

Figure 2.28. Graph of F ( x ) = sin  x 2

The points of intersection with the x -axis of sin  x are

0 , π , 2 π ;

and those of sin  x 2 are

0 = 2 ( 0 ) , 2 π = 2 ( π ) , 4 π = 2 ( 2 π ) .

Reflections

To reflect a graph with respect to the x -axis—that is, to have the x -axis act as a mirror—we multiply the function by - 1 ; to reflect the function with respect to the y -axis, we multiply the independent variable by - 1 .

Definition 2.13.

  1. The graph of the function

    F ( x ) = - f ( x )

    is the reflection with respect to the x-axis of the function $f(x)$.

  2. The graph of the function

    F ( x ) = f ( - x )

    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 x -axis corresponds to the function - sin x , as is shown in Figure 2.29, below.

Figure 2.29. Graph of f ( x ) = - sin  x

Example 2.53. The graph the function f ( x ) = x is shown in Figure 2.30, below.

Figure 2.30. Graph of f ( x ) = x

The reflection of f ( x ) = x with respect to the y -axis corresponds to the function F ( x ) = - x , as is shown in Figure 2.31, below. Observe that the domain of the function f is ( 0 , ) and the domain of F is ( - , 0 ) .

Figure 2.31. Graph of F ( x ) = - x

Exercises
  1. For each of the functions below, identify the basic function f and its transformation, and sketch the graph of the function F .
    1. F ( x ) = x - 8
    2. F ( x ) = ( x + 4 ) 2
    3. F ( x ) = 1 3 cos  x
    4. F ( x ) = 5 C ( x ) , where C ( x ) = 4 is the constant function $4$.

Answers to Exercises

Multiple Transformations

We can apply several transformations to one basic graph.

Example 2.54. If the basic function is f , then a vertical stretch by a factor of $3$ is the function 3 f ( x ) . Continuing with a shift up by a factor of $2$ gives the function 3 f ( x ) + 2 .

Let the basic function be f ( x ) = x 2 , then the graph of F ( x ) = 3 x 2 + 2 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 F ( x ) = 3 x 2 + 2 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 f ( x ) + 2 first, then to 3 ( f ( x ) + 2 ) = 3 f ( x ) + 6 . If the basic function is f ( x ) = x 2 , under these transformations in this order, F ( x ) = 3 f ( x ) + 6, 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 F ( x ) = 3 f ( x ) + 6

Example 2.55. Consider the function F ( x ) = 3 ( x + 5 ) 2 - 2 . If we were to evaluate this function at a number x , we would proceed as follows.

$x + 5$   add $5$ to the independent variable   shift $5$ units to the left
${(x + 5)^2}$   evaluate $f(x) = {x^2}$ at $x + 5$   basic function $f(x) = {x^2}$
$3{(x + 5)^2}$   multiply the function by $3$   vertical stretch by $3$
$3{(x + 5)^2} - 2$   add $-2$ to the function   shift $2$ units down

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 F ( x ) = 3 ( x + 5 ) 2 2

Figure 2.35. Stage $2$ of the transformation of $f(x) = {x^2}$ to F ( x ) = 3 ( x + 5 ) 2 - 2

The final graph of the function is shown in Figure 2.36:

Figure 2.36. Graph of F ( x ) = 3 ( x + 5 ) 2 - 2

Example 2.56. To sketch the graph of

F ( x ) = 2 cos x 2 ,

we make the following analysis:

$\dfrac{x}{2}$   horizontal stretch by a factor of 2   [Why?]
$\cos \left( {\dfrac{x}{2}} \right)$   evaluate $\cos x$ at ${\dfrac{x}{2}}$   [Why?]
$2\cos \left( {\dfrac{x}{2}} \right)$   vertical stretch by a factor of $2$   [Why?]

The graph is shown in Figure 2.37, below.

Figure 2.37. Graph of F ( x ) = 2 cos  x 2

Exercises
  1. Read the section titled “Transformations of Functions,” on pages 30-33 of the textbook.
  2. Do Exercises 11, 14, 17, 18 and 20 on page 38.
  3. Do Exercises 77, 79, 80 and 82 on page 367 of the textbook.

Answers to Exercises