More on Linear Functions: Learn It 6

Graphing Linear Functions Cont.

Graphing a Linear Function Using Transformations

Another option for graphing is to use transformations on the identity function [latex]f\left(x\right)=x[/latex]. 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 [latex]f\left(x\right)=mx[/latex], the [latex]m[/latex] is acting as the vertical stretch or compression of the identity function. When [latex]m[/latex] is negative, there is also a vertical reflection of the graph. Notice that multiplying the equation [latex]f\left(x\right)=x[/latex] by [latex]m[/latex] stretches the graph of [latex]f[/latex] by a factor of [latex]m[/latex] units if [latex]m > 1[/latex] and compresses the graph of [latex]f[/latex] by a factor of [latex]m[/latex] units if [latex]0 < m < 1[/latex]. This means the larger the absolute value of [latex]m[/latex], 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 [latex]f\left(x\right)=x[/latex].

Vertical Shift

In [latex]f\left(x\right)=mx+b[/latex], the [latex]b[/latex] acts as the vertical shift, moving the graph up and down without affecting the slope of the line. Notice that adding a value of [latex]b[/latex] to the equation of [latex]f\left(x\right)=x[/latex] shifts the graph of [latex]f[/latex] a total of [latex]b[/latex] units up if [latex]b[/latex] is positive and [latex]|b|[/latex] units down if [latex]b[/latex] 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 [latex]f\left(x\right)=x[/latex].

 

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 [latex]f\left(x\right)=mx+b[/latex].

  1. Graph [latex]f\left(x\right)=x[/latex].
  2. Vertically stretch or compress the graph by a factor [latex]m[/latex].
  3. Shift the graph up or down [latex]b[/latex] units.

Graph [latex]f(x)=\frac{1}{2}x - 3[/latex] using transformations.

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. For example, following order of operations, let the input be 2.

[latex]\begin{array}{l}f\text{(2)}=\frac{\text{1}}{\text{2}}\text{(2)}-\text{3}\hfill \\ =\text{1}-\text{3}\hfill \\ =-\text{2}\hfill \end{array}[/latex]