We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Study Guides > Intermediate Algebra

Read: Transform Linear Functions

Learning Objectives

  • Define and use a vertical stretch or compression to graph a linear function
  • Define and use a vertical shift to graph a linear function
  • Combine transformations to graph a linear function

Graphing a Linear Function Using Transformations

Another option for graphing is to use transformations of the identity function f(x)=xf\left(x\right)=x . A function may be transformed by a shift up, down, left, or right. A function may also be transformed using a reflection, stretch, or compression.

Vertical Stretch or Compression

In the equation f(x)=mxf\left(x\right)=mx, the m is acting as the vertical stretch or compression of the identity function. When m is negative, there is also a vertical reflection of the graph. Notice in the figure below that multiplying the equation of f(x)=xf\left(x\right)=x by m stretches the graph of f by a factor of m units if m>1m>1 and compresses the graph of f by a factor of m units if 0<m<10<m<1. This means the larger the absolute value of m, the steeper the slope. Graph with several linear functions including y = 3x, y = 2x, y = x, y = (1/2)x, y = (1/3)x, y = (-1/2)x, y = -x, and y = -2x Vertical stretches and compressions and reflections on the function f(x)=xf\left(x\right)=x.

Vertical Shift

In f(x)=mx+bf\left(x\right)=mx+b, the b acts as the vertical shift, moving the graph up and down without affecting the slope of the line. Notice in the figure below that adding a value of b to the equation of f(x)=xf\left(x\right)=x shifts the graph of f a total of b units up if b is positive and b|b| units down if b is negative. graph showing y = x , y = x+2, y = x+4, y = x-2, y = x-4 This graph illustrates vertical shifts of the function f(x)=xf\left(x\right)=x. Using vertical stretches or compressions along with vertical shifts is another way to look at identifying different types of linear functions. Although this may not be the easiest way to graph this type of function, it is still important to practice each method.

How To: Given the equation of a linear function, use transformations to graph the linear function in the form f(x)=mx+bf\left(x\right)=mx+b.

  1. Graph f(x)=xf\left(x\right)=x.
  2. Vertically stretch or compress the graph by a factor |m|.
  3. Shift the graph up or down b units.
In the first example we will see how a vertical compression changes the graph of the identity function.

Example

Describe the transformations to the identity for the function f(x)=23xf(x)=\dfrac{2}{3}x, and draw a graph.

Answer: In this case, m=23m=\dfrac{2}{3}, so this is a vertical compression since 0<m<10<m<1. The graph of f(x)=23xf(x)=\dfrac{2}{3}x is plotted below with the identity: Screen Shot 2016-07-07 at 10.12.10 AM Note how the identity is compressed because the rate of change is "slowed" by the vertical compression of 23\dfrac{2}{3}

In the next example we will vertically stretch the identity by a factor of 22.

Example

Describe the transformations to the identity for the function f(x)=2xf(x)=2x, and draw a graph.

Answer: In this case, m=2m=2, so this is a vertical stretch since m>1m>1. The graph of f(x)=2xf(x)=2x is plotted below with the identity:

y=2x and y=x y=2x and y=x
Note how the identity is more steep because the rate of change is "faster" from the vertical stretch of 22

Our next example shows how making the slope negative reflects the identity across the y axis.

Example

Describe the transformations to the identity for the function f(x)=2xf(x)=-2x, and draw a graph.

Answer: In this case, m=2m=-2, so this is a vertical stretch since m>1|m|>1, the negative sign reflects the graph across the y axis. The graph of f(x)=2xf(x)=-2x is plotted below with the identity:

y = x and y = -2x y = x and y = -2x
Note how the steepness of the graph of  f(x)=2xf(x)=-2x is similar tof(x)=2xf(x)=2x but it points in the opposite direction because of the negative.

In our last example, we will combine a vertical compression and a vertical shift to transform f(x)=xf(x)=x into f(x)=12x3f\left(x\right)=\dfrac{1}{2}x - 3, and draw the graph.

Example

Graph f(x)=12x3f\left(x\right)=\dfrac{1}{2}x - 3 using transformations.

Answer: The equation for the function shows that m=12m=\dfrac{1}{2} so the identity function is vertically compressed by 12\dfrac{1}{2}. The equation for the function also shows that b=3b=–3 so the identity function is vertically shifted down 33 units. First, graph the identity function, and show the vertical compression. graph showing the lines y = x and y = (1/2)x The function y=xy=x, compressed by a factor of 12\dfrac{1}{2}. Then show the vertical shift. Graph showing the lines y = (1/2)x, and y = (1/2) + 3 The function y=12xy=\dfrac{1}{2}x, shifted down 33 units.

The following video example describes another linear transformation of the identity, and it's corresponding graph. https://youtu.be/h9zn_ODlgbM

Q& A

In the example above, could we have sketched the graph by reversing the order of the transformations? No. The order of the transformations follows the order of operations. When the function is evaluated at a given input, the corresponding output is calculated by following the order of operations. This is why we performed the compression first.

Summary

  • Vertical compressions of the identity happen when the slope is between 00 and 11
  • Vertical stretches of the identity happen when the slope is greater than 11
  • Reflections happen when the slope is negative
  • Vertical shifts happen when the intercept is not equal to 00
  • Transformations can be combined

Licenses & Attributions