# 4.1 Linear functions  (Page 9/27)

 Page 9 / 27

## Vertical stretch or compression

In the equation $\text{\hspace{0.17em}}f\left(x\right)=mx,$ the $\text{\hspace{0.17em}}m\text{\hspace{0.17em}}$ is acting as the vertical stretch    or compression of the identity function. When $\text{\hspace{0.17em}}m\text{\hspace{0.17em}}$ is negative, there is also a vertical reflection of the graph. Notice in [link] that multiplying the equation of $\text{\hspace{0.17em}}f\left(x\right)=x\text{\hspace{0.17em}}$ by $\text{\hspace{0.17em}}m\text{\hspace{0.17em}}$ stretches the graph of $\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$ by a factor of $\text{\hspace{0.17em}}m\text{\hspace{0.17em}}$ units if $\text{\hspace{0.17em}}m>\text{1}\text{\hspace{0.17em}}$ and compresses the graph of $\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$ by a factor of $\text{\hspace{0.17em}}m\text{\hspace{0.17em}}$ units if $\text{\hspace{0.17em}}0 This means the larger the absolute value of $\text{\hspace{0.17em}}m,\text{\hspace{0.17em}}$ the steeper the slope.

## Vertical shift

In $\text{\hspace{0.17em}}f\left(x\right)=mx+b,$ the $\text{\hspace{0.17em}}b\text{\hspace{0.17em}}$ acts as the vertical shift    , moving the graph up and down without affecting the slope of the line. Notice in [link] that adding a value of $\text{\hspace{0.17em}}b\text{\hspace{0.17em}}$ to the equation of $\text{\hspace{0.17em}}f\left(x\right)=x\text{\hspace{0.17em}}$ shifts the graph of $\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$ a total of $\text{\hspace{0.17em}}b\text{\hspace{0.17em}}$ units up if $\text{\hspace{0.17em}}b\text{\hspace{0.17em}}$ is positive and $\text{\hspace{0.17em}}|b|\text{\hspace{0.17em}}$ units down if $\text{\hspace{0.17em}}b\text{\hspace{0.17em}}$ is negative.

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.

Given the equation of a linear function, use transformations to graph the linear function in the form $\text{\hspace{0.17em}}f\left(x\right)=mx+b.$

1. Graph $\text{\hspace{0.17em}}f\left(x\right)=x.$
2. Vertically stretch or compress the graph by a factor $\text{\hspace{0.17em}}m.$
3. Shift the graph up or down $\text{\hspace{0.17em}}b\text{\hspace{0.17em}}$ units.

## Graphing by using transformations

Graph $\text{\hspace{0.17em}}f\left(x\right)=\frac{1}{2}x-3\text{\hspace{0.17em}}$ using transformations.

The equation for the function shows that $\text{\hspace{0.17em}}m=\frac{1}{2}\text{\hspace{0.17em}}$ so the identity function is vertically compressed by $\text{\hspace{0.17em}}\frac{1}{2}.\text{\hspace{0.17em}}$ The equation for the function also shows that $\text{\hspace{0.17em}}b=-3\text{\hspace{0.17em}}$ so the identity function is vertically shifted down 3 units. First, graph the identity function, and show the vertical compression as in [link] .

Then show the vertical shift as in [link] .

Graph $\text{\hspace{0.17em}}f\left(x\right)=4+2x\text{\hspace{0.17em}}$ using transformations.

In [link] , 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 the order: Let the input be 2.

$\begin{array}{ccc}\hfill f\left(2\right)& =& \frac{1}{2}\left(2\right)-3\hfill \\ & =& 1-3\hfill \\ & =& -2\hfill \end{array}$

## Writing the equation for a function from the graph of a line

Earlier, we wrote the equation for a linear function from a graph. Now we can extend what we know about graphing linear functions to analyze graphs a little more closely. Begin by taking a look at [link] . We can see right away that the graph crosses the y -axis at the point $\text{\hspace{0.17em}}\left(0,\text{4}\right)\text{\hspace{0.17em}}$ so this is the y -intercept.

Then we can calculate the slope by finding the rise and run. We can choose any two points, but let’s look at the point $\text{\hspace{0.17em}}\left(–2,0\right).\text{\hspace{0.17em}}$ To get from this point to the y- intercept, we must move up 4 units (rise) and to the right 2 units (run). So the slope must be

$m=\frac{\text{rise}}{\text{run}}=\frac{4}{2}=2$

Substituting the slope and y- intercept into the slope-intercept form of a line gives

the gradient function of a curve is 2x+4 and the curve passes through point (1,4) find the equation of the curve
1+cos²A/cos²A=2cosec²A-1
test for convergence the series 1+x/2+2!/9x3
a man walks up 200 meters along a straight road whose inclination is 30 degree.How high above the starting level is he?
100 meters
Kuldeep
Find that number sum and product of all the divisors of 360
Ajith
exponential series
Naveen
what is subgroup
Prove that: (2cos&+1)(2cos&-1)(2cos2&-1)=2cos4&+1
e power cos hyperbolic (x+iy)
10y
Michael
tan hyperbolic inverse (x+iy)=alpha +i bita
prove that cos(π/6-a)*cos(π/3+b)-sin(π/6-a)*sin(π/3+b)=sin(a-b)
why {2kπ} union {kπ}={kπ}?
why is {2kπ} union {kπ}={kπ}? when k belong to integer
Huy
if 9 sin theta + 40 cos theta = 41,prove that:41 cos theta = 41
what is complex numbers
Dua
Yes
ahmed
Thank you
Dua
give me treganamentry question
Solve 2cos x + 3sin x = 0.5