Login
📚 Modeling, Functions, and Graphs
Chapters ▾

2.3 Transformations of Graphs

Models for real situations are often variations of the basic functions introduced in Some Basic Functions. In this section, we explore how certain changes in the formula for a function affect its graph. In particular, we will compare the graph of   y = f ( x )   with the graphs of

y = f ( x ) + k ,         y = f ( x + h ) ,        and        y = a f ( x )

for different values of the constants k , h , and a . Such variations are called transformations of the graph.

Function graph showing y = abs(x) and y = a*abs(x - h) + k. Adjustable parameters: Scale factor a (a) = 2, Horizontal shift h (h) = 1, Vertical shift k (k) = -1. Viewing window: x from -8.26 to 8.26, y from -5.11 to 5.11.
Every transformation in this section applied to one basic graph, y = |x| (gray). The blue graph is y = a·|x − h| + k. Slide k to translate vertically and h to translate horizontally — note the graph moves toward positive x when h increases, the counterintuitive direction the section warns about. The slider a is the scale factor: |a| > 1 stretches the graph vertically, |a| < 1 compresses it, and a negative a reflects it about the x-axis. Whatever you do, the corner keeps its shape — translations and stretches move and rescale a graph but never bend it.

Vertical Translations

The figure below shows the graphs of   f ( x ) = x 2 + 4 ,   g ( x ) = x 2 4 , and the basic parabola,   y = x 2 . By comparing tables of values, we can see exactly how the graphs of f and g are related to the basic parabola.

vertically shifted parabolas
x 2 1   0       1       2  
y = x 2 4 1 0 1 4
f ( x ) = x 2 + 4 8 5 4 5 8
x 2 1 0 1 2
y = x 2 4 1 0 1 4
g ( x ) = x 2 4 0 3 4 3 0

Each y -value in the table for f ( x ) is four units greater than the corresponding y -value for the basic parabola. Consequently, each point on the graph of f ( x ) is four units higher than the corresponding point on the basic parabola, as shown by the arrows. Similarly, each point on the graph of g ( x ) is four units lower than the corresponding point on the basic parabola.

The graphs of   y = f ( x )   and   y = g ( x )   are said to be translations of the graph of   y = x 2 . They are shifted to a different location in the plane but retain the same size and shape as the original graph. In general, we have the following principles.

The graph of y = g ( x ) has a vertical asymptote at x = 4 . What happens to the asymptote under a vertical translation?

_____

Nothing: a vertical asymptote does not change when a graph undergoes a vertical translation.

The graph of   y = g ( x )   has a vertical asymptote at x = 4 . What happens to the asymptote under a vertical translation?

  1. Nothing.
  2. It is compressed vertically.
  3. It is translated vertically.
  4. It is eliminated.
  1. Graph the function f ( x ) = | x | + 1 .
  2. How is the graph of f different from the graph of y = | x | ?
    To get the graph of f ,
    _____
  1. A graph is below.
  2. Translate y = | x | one unit up.

A graph for part (a) is below.

shifted absolute value
  1. Graph the function   f ( x ) = | x | + 1 .
  2. How is the graph of f different from the graph of   y = | x | ?
  1. shifted absolute value
  2. The graph of   y = | x | is translated one unit up.
swamp cooler graphs

An evaporative cooler, or swamp cooler, is an energy-efficient type of air conditioner used in dry climates. A typical swamp cooler can reduce the temperature inside a house by 15 degrees.

Figure (a) shows the graph of \(T = f (t)\), the temperature inside Kate's house \(t\) hours after she turns on the swamp cooler. Write a formula in terms of \(f\) for the function \(g\) shown in figure (b), and give a possible explanation of its meaning.

g ( t ) = _____

_____

g ( t ) = f ( t ) + 10 . The outside temperature was 10 hotter.

An evaporative cooler, or swamp cooler, is an energy-efficient type of air conditioner used in dry climates. A typical swamp cooler can reduce the temperature inside a house by 15 degrees.

Figure (a) shows the graph of   T = f ( t ) , the temperature inside Kate's house t hours after she turns on the swamp cooler. Write a formula in terms of f ( t ) for the function g ( t ) shown in figure (b), and give a possible explanation of its meaning.

swamp cooler graphs

g ( t ) = f ( t ) + 10 . The outside temperature was 10 hotter.

Horizontal Translations

Now consider the graphs of

f ( x ) = ( x + 2 ) 2         and         g ( x ) = ( x 2 ) 2

shown below. Compared with the graph of the basic function   y = x 2 , the graph of   f ( x ) = ( x + 2 ) 2   is shifted two units to the left, as shown by the arrows.

graphs

You can see why this happens by studying the function values in the table.

Locate a particular y -value for y = x 2 , say, y = 4 . You must move two units to the left in the table to find the same y -value for f ( x ) , as shown by the arrow. In fact, each y -value for f ( x ) occurs two units to the left when compared to the same y -value for   y = x 2 .

table for left translation
table for right translation

Similarly, the graph of   g ( x ) = ( x 2 ) 2   is shifted two units to the right compared to the graph of   y = x 2 . In the table for g , each y -value for g ( x ) occurs two units to the right of the same y -value for y = x 2 . In general, we have the following principle.

The y -intercept of the graph of y = f ( x ) is ( 0 , 2 ) . What point lies on the graph of y = f ( x + 3 ) ?

_____

( 3 , 2 ) lies on the graph of y = f ( x + 3 ) .

The y -intercept of the graph of   y = f ( x )   is ( 0 , 2 ) . What point lies on the graph of   y = f ( x + 3 ) ?

  1. ( 0 , 5 )
  2. ( 3 , 2 )
  3. ( 3 , 2 )
  4. ( 3 , 5 )
  1. Graph the function f ( x ) = | x + 1 | .
  2. How is the graph of f different from the graph of y = | x | ?
    _____
  1. A graph is shown below.
  2. Translate y = | x | one unit left.

A graph for part (a) is shown below.

shifted absolute value
  1. Graph the function   f ( x ) = | x + 1 | .
  2. How is the graph of f different from the graph of   y = | x | ?
  1. shifted absolute value
  2. The graph of   y = | x |   is translated one unit to the left.
shift of caffeine surge curve

The function C = f ( t ) shown above gives the caffeine level in Delbert's bloodstream at time t hours after he drinks a cup of coffee, and g ( t ) gives the caffeine level in Francine's bloodstream. Write a formula for g in terms of f , and explain what it tells you about Delbert and Francine.

g ( t ) = _____

_____

g ( t ) = f ( t 3 ) . Francine drank her coffee 3 hours after Delbert drank his.

The function   C = f ( t )   shown below gives the caffeine level in Delbert's bloodstream at time t hours after he drinks a cup of coffee, and g ( t ) gives the caffeine level in Francine's bloodstream. Write a formula for g ( t ) in terms of f ( t ) , and explain what it tells you about Delbert and Francine.

shift of caffeine surge curve

g ( t ) = f ( t 3 ) . Francine drank her coffee 3 hours after Delbert drank his.

  1. Graph the function f ( x ) = | x 2 | 1 .
  2. How is the graph of f different from the graph of y = | x | ?
    _____
  1. A graph is shown below.
  2. Translate y = | x | one unit down and two units right.

A graph for part (a):

shifted absolute value
  1. Graph the function   f ( x ) = | x 2 | 1 .
  2. How is the graph of f different from the graph of   y = | x | ?
  1. shifted absolute value
  2. It is translated one unit down and two units to the right from the graph of y = | x | .

Horizontal translations are less intuitive than vertical translations. What explanation helps you understand them?

_____

Horizontal translations are less intuitive than vertical translations. What explanation helps you understand them?

Scale Factors

We have seen that adding a constant to the expression defining a function results in a translation of its graph. What happens if we multiply the expression by a constant? Consider the graphs of the functions

f ( x ) = 2 x 2 ,         g ( x ) = 1 2 x 2 ,      and        h ( x ) = x 2

shown below, and compare each to the graph of y = x 2 .

basic parabola and vertical stretched parabola
x y = x 2 f ( x ) = 2 x 2
2 4 8
1 1 2
0 0 0
1 1 2
2 4 8

Compared to the graph of   y = x 2 , the graph of   f ( x ) = 2 x 2   is expanded, or stretched, vertically by a factor of 2 . The y -coordinate of each point on the graph has been doubled, as you can see in the table of values, so each point on the graph of f is twice as far from the x -axis as its counterpart on the basic graph y = x 2 .

vertical compressed parabola and basic parabola
x y = x 2 g ( x ) = 1 2 x 2
2 4 2
1 1 1 2
0 0 0
1 1 1 2
2 4 2

The graph of   g ( x ) = 1 2 x 2   is compressed vertically by a factor of 1 2 ; each point is half as far from the x -axis as its counterpart on the graph of y = x 2 .

reflected parabola and basic parabola
x y = x 2 h ( x ) = x 2
2 4 4
1 1 1
0 0 0
1 1 1
2 4 4

The graph of   h ( x ) = x 2   is flipped, or reflected, about the x -axis; the y -coordinate of each point on the graph of   y = x 2   is replaced by its opposite.

In general, we have the following principles.

The constant a is called the scale factor for the graph.

The graph of y = F ( x ) is symmetric about the y -axis. Which of the following graphs is also symmetric about the y -axis?

_____

Both (a) y = 3 F ( x ) and (b) y = F ( x ) 3

The graph of y = F ( x ) is symmetric about the y -axis. Which of the following graphs is also symmetric about the y -axis?

  1. y = 3 F ( x )
  2. y = F ( x ) 3
  3. y = F ( x 3 )
  4. Both (a) and (b)
  1. Graph the function f ( x ) = 2 | x | .
  2. How is the graph of f different from the graph of y = | x | ?
    _____
  1. A graph is shown below.
  2. Stretch y = | x | vertically by a factor of 2 to obtain the graph of f .

A graph for part (a):

scaled absolute value
  1. Graph the function   f ( x ) = 2 | x | .
  2. How is the graph of f different from the graph of   y = | x | ?
  1. scaled absolute value
  2. Stretch the graph of   y = | x |   vertically by a factor of 2 to obtain the graph of f .

Under which transformations does the graph of a function keep the same shape?

_____

The graph of a function keep the same shape under all of these transformations.

Under which transformations does the graph of a function keep the same shape?

  1. Vertical translation
  2. Horizontal translation
  3. Reflection
  4. All of these
daylight hours at two latitudes

If the Earth were not tilted on its axis, there would be 12 daylight hours every day all over the planet. But in fact, the length of a day in a particular location depends on the latitude and the time of year.

The graph above shows H = f ( t ) , the length of a day in Helsinki, Finland, t days after January 1, and R = g ( t ) , the length of a day in Rome. Each is expressed as the number of hours greater or less than 12. Write a formula for f in terms of g .

f ( t ) = _____

What does this formula tell you?

On any given day, the number of daylight hours varies from 12 hours by about...

_____

f ( t ) 2 g ( t ) . On any given day, the number of daylight hours varies from 12 hours about twice as much in Helsinki as it does in Rome.

If the Earth were not tilted on its axis, there would be 12 daylight hours every day all over the planet. But in fact, the length of a day in a particular location depends on the latitude and the time of year.

daylight hours at two latitudes

The graph above shows   H = f ( t ) , the length of a day in Helsinki, Finland, t days after January 1, and   R = g ( t ) , the length of a day in Rome. Each is expressed as the number of hours greater or less than 12. Write a formula for f in terms of g . What does this formula tell you?

f ( t ) 2 g ( t ) . On any given day, the number of daylight hours varies from 12 hours about twice as much in Helsinki as it does in Rome.

In this section we did not consider reflections about the y -axis. Can you think of a way to alter the formula for y = f ( x ) to reflect the graph about the y -axis? Which of the eight basic graphs would not be affected by such a reflection?

_____

In this section we did not consider reflections about the y -axis. Can you think of a way to alter the formula for y = f ( x ) to reflect the graph about the y -axis? Which of the eight basic graphs would not be affected by such a reflection?

Section Summary

Vocabulary

Look up the definitions of new terms in the Glossary.

  • Transformation
  • Scale factor
  • Vertical stretch
  • Vertical compression
  • Horizontal translation

CONCEPTS

STUDY QUESTIONS

  1. How does a vertical translation affect the formula for a function? Give an example.
  2. How does a horizontal translation affect the formula for a function? Give an example.
  3. How does a scale factor affect the formula for a function? Give an example.
  4. How is the graph of y = f ( x ) different from the graph of y = f ( x ) ?

SKILLS

Practice each skill in the Homework problems listed.

  1. Write formulas for transformations of functions: #1–6, 19–22, 35–38
  2. Recognize and sketch translations of the basic graphs: #7–18
  3. Recognize and sketch expansions, compression, and reflections of the basic graphs: #23–34, 43–50
  4. Identify transformations from tables of values: #39–42
  5. Sketch graphs obtained by two or more transformations of a basic graph: #51–62
  6. Write a formula for a transformation of a graph: #63–76
  7. Interpret transformations of graphs in context: #71–76

Homework 2.3

In Problems 1–6, identify the graph as a translation of a basic function, and write a formula for the graph.

transformation of basic graph

y = x + 2

transformation of basic graph
transformation of basic graph

y = x 3 1

transformation of basic graph
transformation of basic graph

y = 1 x 4

transformation of basic graph

For Problems 7–18,

  1. Describe how to transform one of the basic graphs to obtain the graph of the given function.
  2. Using guidepoints, sketch the basic graph and the graph of the given function on the same axes. Label the coordinates of three points on the graph of the given function.

f ( x ) = | x | 2

  1. Translate y = | x | by 2 units down.
  2. translated absolute value

g ( x ) = ( x + 1 ) 3

g ( s ) = s 4 3

  1. Translate y = s 3 by 4 units right.
  2. translated cube root

f ( s ) = s 2 + 3

F ( t ) = 1 t 2 + 1

  1. Translate y = 1 t 2 by 1 unit up.
  2. translated inverse-square

G ( t ) = t 2

G ( r ) = ( r + 2 ) 3

  1. Translate y = r 3 by 2 units left.
  2. translated cubic

F ( r ) = 1 r 4

H ( d ) = d 3

  1. Translate y = d by 3 units down.
  2. translated root

h ( d ) = d 3 + 5

h ( v ) = 1 v + 6

  1. Translate y = 1 v by 6 units left.
  2. translated reciprocal

H ( v ) = 1 v 2 2

For Problems 19–22, identify the graph as a stretch, compression, or reflection of a basic function, and write a formula for the graph.

transformed reciprocal

A vertical stretch by a factor of 3 : y = 3 x

transformed cube root
transformed cubic

A vertical compression, the scale factor is 1 2 : y = 1 2 x 3

transformed root

For Problems 23–32,

  1. Identify the scale factor for each function and describe how it affects the graph of the corresponding basic function.
  2. Using guidepoints, sketch the basic graph and the graph of the given function on the same axes. Label the coordinates of three points on the graph of the given function.

f ( x ) = 1 3 | x |

  1. Scale factor 1 3 ; y = | x | is compressed vertically by the scale factor.
  2. transformed absolute value

H ( x ) = 3 | x |

h ( z ) = 2 z 2

  1. Scale factor 2 ; y = 1 z 2 is reflected over the z -axis and stretched vertically by a factor of 2 .
  2. transformed inverse-square

g ( z ) = 2 z

G ( v ) = 3 v

  1. Scale factor 3 ; y = v is reflected over the v -axis and stretched vertically by a factor of 3 .
  2. transformed root

F ( v ) = 4 v 3

g ( s ) = 1 2 s 3

  1. Scale factor 1 2 ; y = s 3 is reflected over the s -axis and compressed vertically by a factor of 1 2 .
  2. transformed cubic

f ( s ) = 1 8 s 3

H ( x ) = 1 3 x

  1. Scale factor 1 3 ; y = 1 x is compressed vertically by the scale factor.
  2. transformed reciprocal

h ( x ) = 1 4 x 2

In Problems 33 and 34, match each graph with its equation.

six graphs
  1. f ( x ) = 3 x
  2. f ( x ) = 2 x 3
  3. f ( x ) = x 3
  4. f ( x ) = 3 x
  5. f ( x ) = 2 x 3
  6. f ( x ) = 3 x 2
  1. vi
  2. ii
  3. iv
  4. i
  5. v
  6. iii
six graphs
  1. f ( x ) = x 3 2
  2. f ( x ) = x 3 + 2
  3. f ( x ) = 1 ( x 3 ) 2
  4. f ( x ) = | x | 3
  5. f ( x ) = x 2 + 3
  6. f ( x ) = x 3

In Problems 35–38, the graph of a function is shown. Describe each transformation of the graph; then give a formula for each in terms of the original function.

graph and 4 transformations
  1. Vertical stretch by a factor of 3 : y = 3 f ( x )
  2. Reflection about the x -axis: y = f ( x )
  3. Translation 1 unit right: y = f ( x 1 )
  4. Translation 4 units up: y = f ( x ) + 4
graph and 4 transformations
graph and 4 transformations
  1. Reflection about the v -axis and vertical stretch by a factor of 2 : T = 2 h ( v )
  2. Vertical stretch by a factor of 3 : T = 3 h ( v )
  3. Translation 3 units up: T = h ( v ) + 3
  4. Translation 3 units left: T = h ( v + 3 )
graph and 4 transformations

In Problems 39–42, each table in parts (a)–(d) describes a transformation of f ( x ) . Identify the transformation and write a formula for the new function in terms of f .

x     1         2         3         4         5         6    
f ( x ) 8 6 4 2 0 2
  1.     x         1         2         3         4         5         6    
    y 10 8 6 4 2 4
  2.     x         1         2         3         4         5         6    
    y 4 2 0 2 4 2
  3.     x         1         2         3         4         5         6    
    y 4 3 2 1 0 1
  4.     x         1         2         3         4         5         6    
    y 10 8 6 4 2 0
  1. Translation 2 units up: y = f ( x ) + 2
  2. Translation 4 units down: y = f ( x ) 4
  3. Vertical compression by a factor of 1 2 : y = 1 2 f ( x )
  4. Translation 1 unit right: y = f ( x 1 )
x   3     2     1       0         1         2    
f ( x ) 13 3 3 5 3 3
  1. x   3     2     1       0         1         2    
    y 26 6 6 10 6 6
  2. x   3     2     1       0         1         2    
    y 18 8 2 0 2 8
  3. x   3     2     1       0         1         2    
    y 3 5 3 3 13 27
  4. x   3     2     1       0         1         2    
    y 2.6 0.6 0.6 1 0.6 0.6
x   2     1       0         1         2         3    
f ( x ) 9 8 7 6 1 20
  1.     x       2     1       0         1         2         3    
    y 34 9 8 7 6 1
  2.     x       2     1       0         1         2         3    
    y 4 21 22 23 24 31
  3.     x       2     1       0         1         2         3    
    y 18 16 14 12 2 40
  4.     x       2     1       0         1         2         3    
    y 8 6 4 2 12 50
  1. Translation 1 unit right: y = f ( x 1 )
  2. Part (a) is translated 30 units up: y = f ( x 1 ) + 30
  3. f is reflected about the x -axis and stretched vertically by a factor of 2 : y = 2 f ( x )
  4. Part (c) is translated 10 units down: y = 2 f ( x ) 10
x     1         2         3         4         5         6    
f ( x ) 60 30 20 15 12 10
  1. x     1         2         3         4         5         6    
    y 30 15 10 7.5 6 5
  2. x     1         2         3         4         5         6    
    y 35 20 15 12.5 11 10
  3. x     1         2         3         4         5         6    
    y 12 6 4 3 2.4 2
  4. x     1         2         3         4         5         6    
    y 10 4 2 1 0.4 0

For Problems 43–50, write the function in the form y = k f ( x ) , where f ( x ) is one of the basic functions. Describe how the graph differs from that of the basic function.

y = 1 2 x 2

y = 1 2 1 x 2 is a vertical compression with factor d f r a c 1 2 of y = 1 x 2 .

y = 9 x

y = 8 x 3

y = 2 x 3 is a vertical stretch with factor 2 of y = x 3 .

y = 1 4 x

y = | 3 x |

y = 3 | x | is a vertical stretch with factor 3 of y = | x | .

y = ( x 2 ) 2

y = ( x 2 ) 3

y = 1 8 x 3 is a vertical compression with factor 1 8 of y = x 3 .

y = | x 5 |

For Problems 51–62,

  1. The graph of each function can be obtained from one of the basic graphs by two or more transformations. Describe the transformations.
  2. Sketch the basic graph and the graph of the given function by hand on the same axes. Label the coordinates of three points on the graph of the given function.

f ( x ) = 2 + ( x 3 ) 2

  1. Translation by 2 units up and 3 units right
  2. transformed parabola

f ( x ) = ( x + 4 ) 2 + 1

g ( z ) = 1 z + 2 3

  1. Translation by 2 units left and 3 units down.
  2. transformed reciprocal

g ( z ) = 1 z 1 + 1

F ( u ) = 3 u + 4 + 4

  1. Reflection across the u -axis, vertical stretch by a factor of 3 , translation by 4 units left and 4 units up
  2. transformed reciprocal

F ( u ) = 4 u 3 5

G ( t ) = 2 | t 5 | 1

  1. Vertical stretch by a factor of 2 , translation by 5 units right and 1 down
  2. transformed reciprocal

G ( t ) = 2 | t + 4 |

H ( w ) = 6 2 ( w 1 ) 2

  1. Reflection across the w -axis, vertical stretch by a factor of 2 , translation by 6 units up and 1 unit right
  2. transformed inverse-square

H ( w ) = 3 ( w + 2 ) 2 1

f ( t ) = t 8 3 1

  1. Translation by 8 units right and 1 unit down
  2. transformed cube root

f ( t ) = t + 1 3 + 8

In Problems 63 and 64, each graph can be obtained by two transformations of the given graph. Describe the transformations and write a formula for the new graph in terms of f.

graph and two transformations
  1. Translation by 4 units up and 1 unit right: y = f ( x 1 ) + 4
  2. Vertical stretch by a factor of 2 and a translation by 4 units up: y = 2 f ( x ) + 4
graph and two transformations

For Problems 65–70,

  1. Describe the graph as a transformation of a basic function.
  2. Give an equation for the function shown.
transformed basic
  1. y = | x | translated by 1 unit left and 2 units down
  2. y = | x + 1 | 2
transformed basic
transformed basic
  1. y = x reflected about the x -axis and shifted 3 units up
  2. y = x + 3
transformed basic
transformed basic
  1. y = x 3 translated by 3 units right and 1 unit up
  2. y = ( x 3 ) 3 + 1
transformed basic

The graph of f ( x ) shows the number of students in Professor Hilbert's class who scored x points on a quiz. Write a formula for each transformation of f ((a) and (b) of the figure below); then explain how the quiz results in that class compare to the results in Professor Hilbert's class.

bell-shaped curve
bell-shaped curve
bell-shaped curve
  1. y = f ( x 20 ) : Students scored 20 points higher than Professor Hilbert's class.
  2. y = 1.5 f ( x ) : The class is about 50 % larger than Hilbert's, but the classes scored the same.

The graph of f ( x ) shows the number of men at Tyler College who are x inches tall. Write a formula for each transformation of f ; then explain how the heights in that population compare to the Tyler College men.

bell-shaped curve centered above x=70
bell-shaped curve centered above x=70
bell-shaped curve centered above x=60

The graph of f ( x ) shows the California state income tax rate, in percent, for a single taxpayer whose annual taxable income is x dollars. Write a formula for each transformation of f ; then explain what it tells you about the income tax scheme in that state.

step function
step function
step function
  1. y = f ( x 5000 ) : Taxpayers earn $ 5000 more than Californians in each tax rate
  2. y = f ( x ) 0.2 : Taxpayers pay 0.2 % less tax than Californians on the same income.

The graph of f ( w ) shows the shipping rate at SendIt for a package that weighs w pounds. Write a formula for each transformation of f and explain how the shipping rates compare to the rates at SendIt.

step function
step function
step function

The graph of g ( t ) shows the population of marmots in a national park t months after January 1. Write a formula for each transformation of g and explain how the population of that species compares to the population of marmots.

periodic
periodic
periodic
  1. y = g ( t + 2 ) : This population has its maximum and minimum two months before the marmots.
  2. y = g ( t ) 20 : This population remains 20 fewer than that of the marmots.

The graph of f ( x ) is a dose-response curve. It shows the intensity of the response to a drug as a function of the dosage x milligrams administered. The intensity is given as a percentage of the maximum response. Write a formula for each transformation of f and explain what it tells you about the response to that drug

sigmoid
sigmoid
sigmoid

Modeling, Functions, and Graphs by Katherine Yoshiwara (yoshiwarabooks.org), GNU Free Documentation License 1.2 or later. Adapted for the XYZ HTML edition with the authors' permission (recorded 2026-07-04). License: GFDL-1.2-or-later.