- Verberg vooruitgang Hide progress Toon vooruitgang Show progress
- Verwijder je antwoorden (op deze pagina) Remove your answers (on this page)
Theorems linearabsvaluegraphs, standardformgraph, linearmononialgraphs, linearlaurentlgraphs, linearrootgraphs and linearrationalpowergraphs all describe ways in which the graph of a function can changed, or ‘transformed’ to obtain the graph of a related function. The results and proofs of each of these theorems are virtually identical, and with the language of function composition, we can see better why.
Consider, for instance, Theorem linearrationalpowergraphs, in which we describe how to transform the graph of \(f(x) = x^r\) to \(F(x) = a(bx-h)^r +k\). We may think of \(F\) as being build up from \(f\) by composing \(f\) with linear functions. Specifically, if we let \(i(x) = bx-h\), then \((f\circ i)(x) = f(i(x)) = f(bx-h) = (bx-h)^r\). If, additionally, we let and \(j(x) = ax+k\), then \((j \circ (f \circ i))(x) = j( (f \circ i)(x)) = j((bx-h)^r) = a(bx-h)^r+k = F(x)\). Hence, we can view \(F = j \circ f \circ i\).
In this section, our goal is to generalize the aforementioned theorems to the graphs of all functions. Along the way, you’ll see some very familiar arguments, but, additionally, we hope this section affords the reader an opportunity to not only see how these transformations work they way they do, but why.
Our motivational example for the results in this section is the graph of \(y = f(x)\) below. While we could formulate an expression for \(f(x)\) as a piecewise-defined function consisting of linear and constant parts, we wish to focus more on the geometry here. That being said, we do record some of the function values - the ‘key points’ if you will - to track through each transformation.
Suppose we wished to graph \(g(x) = f(x) + 2\). From a procedural point of view, we start with an input \(x\) to the function \(f\) and we obtain the output \(f(x)\). The function \(g\) takes the output \(f(x)\) and adds \(2\) to it. Using the sample values for \(f\) from the table above we can create a table of values for \(g\) below, hence generating points on the graph of \(g\).
In general, if \((a,b)\) is on the graph of \(y=f(x)\), then \(f(a) = b\). Hence, \(g(a) = f(a) +2 = b+2\), so the point \((a,b+2)\) is on the graph of \(g\). In other words, to obtain the graph of \(g\), we add \(2\) to the \(y\)-coordinate of each point on the graph of \(f\).
Geometrically, adding \(2\) to the \(y\)-coordinate of a point moves the point \(2\) units above its previous location. Adding \(2\) to every \(y\)-coordinate on a graph en masse is moves or ‘shifts’ the entire graph of \(f\) up \(2\) units. Notice that the graph retains the same basic shape as before, it is just \(2\) units above its original location. In other words, we connect the four ‘key points’ we moved in the same manner in which they were connected before.
You’ll note that the domain of \(f\) and the domain of \(g\) are the same, namely \([0,5]\), but that the range of \(f\) is \([1,5]\) while the range of \(g\) is \([3,7]\). In general, shifting a function vertically like this will leave the domain unchanged, but could very well affect the range.
You can easily imagine what would happen if we wanted to graph the function \(j(x) = f(x) - 2\). Instead of adding \(2\) to each of the \(y\)-coordinates on the graph of \(f\), we’d be subtracting \(2\). Geometrically, we would be moving the graph down \(2\) units. We leave it to the reader to verify that the domain of \(j\) is the same as \(f\), but the range of \(j\) is \([-1,3]\). In general, we have:
To graph \(F(x) = f(x) + k\), add \(k\) to each of the \(y\)-coordinates of the points on the graph of \(y=f(x)\).
NOTE: This results in a vertical shift up \(k\) units if \(k > 0\) or down \(k\) units if \(k< 0\).
To prove Theorem 1, we first note that \(f\) and \(F\) have the same domain (why?) Let \(c\) be an element in the domain of \(F\) and, hence, the domain of \(f\). The fact that \(f\) and \(F\) are functions guarantees there is exactly one point on each of their graphs corresponding to \(x=c\). On \(y=f(x)\), this point is \((c, f(c))\); on \(y = F(x)\), this point is \((c, F(c)) = (c, f(c)+k)\). This sets up a nice correspondence between the two graphs and shows that each of the points on the graph of \(F\) can be obtained to by adding \(k\) to each of the \(y\)-coordinates of the corresponding point on the graph of \(f\). This proves Theorem 1. In the language of ‘inputs’ and ‘outputs’, Theorem 1 says adding to the output of a function causes the graph to shift vertically.
Keeping with the graph of \(y=f(x)\) above, suppose we wanted to graph \(g(x) = f(x+2)\). In other words, we are looking to see what happens when we add \(2\) to the input of the function. Let’s try to generate a table of values of \(g\) based on those we know for \(f\). We quickly find that we run into some difficulties. For instance, when we substitute \(x=4\) into the formula \(g(x)=f(x+2)\), we are asked to find \(f(4+2)=f(6)\) which doesn’t exist because the domain of \(f\) is only \([0,5]\). The same thing happens when we attempt to find \(g(5)\).
What we need here is a new strategy. We know, for instance, \(f(0) = 1\). To determine the corresponding point on the graph of \(g\), we need to figure out what value of \(x\) we must substitute into \(g(x) = f(x+2)\) so that the quantity \(x+2\), works out to be \(0\). Solving \(x+2=0\) gives \(x=-2\), and \(g(-2) = f((-2)+2) = f(0) = 1\) so \((-2,1)\) on the graph of \(g\). To use the fact \(f(2) = 3\), we set \(x+2 = 2\) to get \(x=0\). Substituting gives \(g(0) = f(0+2) = f(2) = 3\). Continuing in this fashion, we produce the table below.
In summary, the points \((0,1)\), \((2,3)\), \((4,3)\) and \((5,5)\) on the graph of \(y=f(x)\) give rise to the points \((-2,1)\), \((0,3)\), \((2,3)\) and \((3,5)\) on the graph of \(y=g(x)\), respectively. In general, if \((a,b)\) is on the graph of \(y=f(x)\), then \(f(a) = b\). Solving \(x+2 = a\) gives \(x = a-2\) so that \(g(a-2) = f((a-2)+2) = f(a) = b\). As such, \((a-2,b)\) is on the graph of \(y=g(x)\). The point \((a-2,b)\) is exactly \(2\) units to the left of the point \((a,b)\) so the graph of \(y=g(x)\) is obtained by shifting the graph \(y=f(x)\) to the left \(2\) units, as pictured below.
Note that while the ranges of \(f\) and \(g\) are the same, the domain of \(g\) is \([-2,3]\) whereas the domain of \(f\) is \([0,5]\). In general, when we shift the graph horizontally, the range will remain the same, but the domain could change. If we set out to graph \(j(x) = f(x-2)\), we would find ourselves adding \(2\) to all of the \(x\) values of the points on the graph of \(y=f(x)\) to effect a shift to the right \(2\) units. Generalizing these notions produces the following result.
To graph \(F(x) = f(x-h)\), add \(h\) to each of the \(x\)-coordinates of the points on the graph of \(y=f(x)\).
NOTE: This results in a horizontal shift right \(h\) units if \(h > 0\) or left \(h\) units if \(h< 0\).
To prove Theorem 2, we first note the domains of \(f\) and \(F\) may be different. If \(c\) is in the domain of \(f\), then the only number we know for sure is in the domain of \(F\) is \(c+h\), since \(F(c+h) = f((c+h)-h) = f(c)\). This sets up a nice correspondence between the domain of \(f\) and the domain of \(F\) which spills over to a correspondence between their graphs, The point \((c, f(c))\) is the one and only point on the graph of \(y = f(x)\) corresponding to \(x=c\) just as the point \((c+h, F(c+h)) = (c+h, f(c))\) is the one and only point on the graph of \(y = F(x)\) corresponding to \(x=c+h\). This correspondence shows we may obtain the graph of \(F\) by adding \(h\) to each \(x\)-coordinate of each point on the graph of \(f\), which establishes the theorem. In words, Theorem 2 says that subtracting from the input to a function amounts to shifting the graph horizontally.
Theorems 1 and 2 present a theme which will run common throughout the section: changes to the outputs from a function result in some kind of vertical change; changes to the inputs to a function result in some kind of horizontal change. We demonstrate Theorems 1 and 2 in the example below.
Suppose \((-1,3)\) is on the graph of \(y = f(x)\). Find a point on the graph of:
Let \(f(t) = |t|-2t\).
Below is the graph of \(y = f(x)\).
Use it to sketch the graph of
Below on the left is the graph of \(y=f(x)\) and below on the right is the graph of \(y = g(x)\). Write \(g(x)\) in terms of \(f(x)\) and vice-versa.
Solution.
Note that the expression \(f(x-7)+4\) differs from \(f(x)\) in two ways indicating two different transformations. In situations like this, its best if we handle each transformation in turn, starting with the graph of \(y=f(x)\) and ‘building up’ to the graph of \(y = f(x-7)+4\).
We choose to work from the ‘inside’ (argument) out and use Theorem 2 to first get a point on the graph of \(y=f(x-7) = f(x-h)\). Identifying \(h=7\), we add \(7\) to the \(x\)-coordinate of \((-1,3)\) to get \((-1+7,3) = (6,3)\). Hence, \((6,3)\) is a point on the graph of \(y = f(x-7)\).
Next, we apply Theorem 1 to graph \(y = f(x-7)+4\) starting with \(y=f(x-7)\). Viewing \(f(x-7)+4 = f(x-7)+k\), we identify \(k=4\) and add \(4\) to the \(y\)-coordinate of \((6,3)\) to get \((6,3+4) = (6,7)\). To check, we note that if we substitute \(x=6\) into \(y = f(x-7)+4\), we get \(y=f(6-7)+4 = f(-1)+4 = 3+4 =7\).
Here the independent variable is \(t\) instead of \(x\) which doesn’t affect the geometry in any way since our convention is the independent variable is used to label the horizontal axis and the dependent variable is used to label the vertical axis.
Using the Desmos interactive below, we can check our answers graphically by adjusting the sliders for two parameters ‘\(a\)’ and ‘\(b\).’ For the function \(g(t) = f(t-a)\), adjusting the slider for \(a\) from \(a=0\) to \(a=4\) shows the graph of \(f\) gradually shifting horizontally to to end up \(4\) units to the right of its starting position. Likewise, adjusting the slider for the parameter \(b\), we see the graph of the function \(h(t) = f(t) - b\) gradually shifts the graph of \(f\) vertically until it stops \(2\) units below its starting position.
Comparing formulas, it appears as if \(F(x) = f(x-2)\). We check:
We recognize \(F(x) = f(x-2) =f(x-h)\). With \(h=2\), Theorem 2 tells us to add \(2\) to each of the \(x\)-coordinates of the points on the graph of \(f\), moving the graph of \(f\) to the right two units.
We can check our answer by showing each ordered pair \((x,y)\) listed on our final graph satisfies the equation \(y = f(x-2)\). Starting with \((0,0)\), we substitute \(x=0\) into \(y=f(x-2)\) and get \(y = f(0-2) = f(-2)\). Since \((-2,0)\) is on the graph of \(f\), we know \(f(-2) = 0\). Hence, \(y = f(0-2) = f(-2) = 0\), showing the point \((0,0)\) is on the graph of \(y=f(x-2)\). We invite the reader to check the remaining points.
We have \(F(x) = f(x)+1 = f(x)+k\) where \(k=1\), so Theorem 1 tells us to move the graph of \(f\) up \(1\) unit by adding \(1\) to each of the \(y\)-coordinates of the points on the graph of \(f\).
To check our answer, we proceed as above. Starting with the point \((-2,1)\), we substitute \(x=-2\) into \(y=f(-2)+1\) to get \(y = f(-2)+1\). Since \((-2,0)\) is on the graph of \(f\), we know \(f(-2) = 0\). Hence, \(y = f(-2)+1 =0+1 = 1\). This proves \((-2,1)\) is on the graph of \(y=f(x)+1\). We encourage the reader to check the remaining points in kind.
We are asked to graph \(F(x) = f(x+1) -2\). As above, when we have more than one modification to do, we work from the inside out and build up to \(F(x)=f(x+1)-2\) from \(f(x)\) in stages. First, we apply Theorem 2 to graph \(y=f(x+1)\) from \(y=f(x)\). Rewriting \(f(x+1) = f(x-(-1))\), we identify \(h=-1\), so we add \(-1\) to (subtract \(1\) from) each of the \(x\)-coordinates on the graph of \(f\), shifting it to the left \(1\) unit.
Next, we apply Theorem 1 to graph \(y = f(x+1)-2\) starting with the graph of \(y=f(x+1)\). Writing \(f(x+1)-2=f(x+1)+(-2) = f(x+1)+k\), we identify \(k=-2\) so Theorem 1 instructs us to add \(-2\) to (subtract \(2\) from) each of the \(y\)-coordinates on the graph of \(y = f(x+1)\), thereby shifting the graph down two units.
To check, we start with the point \((-3, -2)\). We find when we substitute \(x=-3\) into the equation \(y=f(x+1)-2\) we get \(y = f(-3+1)-2 = f(-2)-2\). Since \((-2,0)\) is on the graph of \(f\), we know \(f(-2) =0\), so \(y = f(-3+1)-2 = f(-2)-2 = 0 - 2 = -2\). This proves \((-3,-2)\) is on the graph of \(y=f(x+1)-2\). We leave the checks of the remaining points to the reader.
To write \(g(x)\) in terms of \(f(x)\), we note that based on points which are labeled, it appears as if the graph of \(g\) can be obtained from the graph of \(f\) by shifting the graph of \(f\) to the right \(0.5\) units and down \(1\) unit.
Per Theorems 2 and 1, \(g(x)\) must take the form \(g(x) = f(x-h)+k\). Since the horizontal shift is to the right \(0.5\) units, \(h = 0.5\) and since the vertical shift is down \(1\) unit, \(k = -1\). Hence, we get \(g(x) = f(x-0.5)-1\).
We can check our answer by working through both transformations, in sequence, as in the previous example. To write \(f(x)\) in terms of \(g(x)\), we need to reverse the process - that is, we need to shift the graph of \(g\) left one half of a unit and up one unit. Theorems 2 and 1 suggest the formula \(f(x) = g(x+0.5)+1\). We leave it to the reader to check. □
We now turn our attention to reflections. We know from Section ?? that to reflect a point \((x,y)\) across the \(x\)-axis, we replace \(y\) with \(-y\). If \((x,y)\) is on the graph of \(f\), then \(y=f(x)\), so replacing \(y\) with \(-y\) is the same as replacing \(f(x)\) with \(-f(x)\). Hence, the graph of \(y=-f(x)\) is the graph of \(f\) reflected across the \(x\)-axis. Similarly, the graph of \(y=f(-x)\) is the graph of \(y = f(x)\) reflected across the \(y\)-axis.
To graph \(F(x)=-f(x)\), multiply each of the \(y\)-coordinates of the points on the graph of \(y=f(x)\) by \(-1\).
NOTE: This results in a reflection across the \(x\)-axis.
To graph \(F(x)=f(-x)\), multiply each of the \(x\)-coordinates of the points on the graph of \(y=f(x)\) by \(-1\).
NOTE: This results in a reflection across the \(y\)-axis.
The proof of Theorem 3 follows in much the same way as the proofs of Theorems 1 and 2. If \(c\) is an element of the domain of \(f\) and \(F(x) = -f(x)\), then the point \((c, f(c))\) corresponds to the point \((c, F(c)) = (c,-f(c))\). Comparing the corresponding points \((c, f(c))\) and \((c, -f(c))\), we see they only difference is the \(y\)-coordinates are the exact opposite - indicating they are mirror-images across the \(x\)-axis. Similarly, if \(c\) is an element in the domain of \(f\), then \(c\) corresponds to the element \(-c\) in the domain of \(F(x) = f(-x)\) since \(F(-c) = f(-(-c)) = f(c)\). Hence, the corresponding points here are \((c, f(c))\) and \((-c, F(-c)) = (-c, f(c))\). Comparing \((c, f(c))\) with \((-c, f(c))\), we see they are reflections about the \(y\)-axis.
Using the language of inputs and outputs, Theorem 3 says that multiplying the outputs from a function by \(-1\) reflects its graph across the horizontal axis, while multiplying the inputs to a function by \(-1\) reflects the graph across the vertical axis.
Applying Theorem 3 to the graph of \(y=f(x)\) given at the beginning of the section, we can graph \(y=-f(x)\) by reflecting the graph of \(f\) about the \(x\)-axis.
By reflecting the graph of \(f\) across the \(y\)-axis, we obtain the graph of \(y=f(-x)\).
Use Theorems 1, 2 and 3 to answer the questions below. Check your answers using a graphing utility where appropriate.
Suppose \((2,-5)\) is on the graph of \(y = f(x)\). Find a point on the graph of:
Below is the graph of \(y = f(x)\). Use it to sketch the graph of
Below on the right is the graph of \(y = g(x)\). Write \(g(x)\) in terms of \(f(x)\) and vice-versa.
The graph on the right shows a decreasing function passing through the points \((-1,3)\), \((0,2)\), and \((1,0)\). The curve decreases from left to right, becoming steeper as it approaches the point \((1,0)\). A dashed horizontal line at \(y=4\) is shown above the graph.
Note that the \(x\)-axis, \(y=0\), is a horizontal asymptote to the graph of \(y = f(x)\) and the line \(y=4\) is a horizontal asymptote to the graph of \(y = g(x)\).
Solution.
To find a point on the graph of \(y=f(-x)\), Theorem 3 tells us to multiply the \(x\)-coordinate of the point on the graph of \(y=f(x)\) by \(-1\): \(((-1)2, -5) = (-2,-5)\).
To check, since \((2,-5)\) is on the graph of \(f\), we know \(f(2) = -5\). Hence, when we substitute \(x=-2\) into \(y = f(-x)\), we get \(y = f(-(-2)) = f(2) = -5\), proving \((-2,-5)\) is on the graph of \(y=f(-x)\).
To find a point on the graph of \(y = -f(x+2)\), we first note we have two transformations at work here, so we work our way from the inside out and build \(f(x)\) to \(-f(x+2)\).
First, we find a point on the graph of \(y=f(x+2)\). Writing \(f(x+2) = f(x-(-2))\), we apply Theorem 2 with \(h=-2\) and add \(-2\) to (or subtract \(2\) from) the \(x\)-coordinate of the point we know is on \(y=f(x)\): \((2-2,-5) = (0,-5)\).
Next we apply Theorem 3 to the graph of \(y=f(x+2)\) to get a point on the graph of \(y=-f(x+2)\) by multiplying the \(y\)-coordinate of \((0,-5)\) by \(-1\): \((0, (-1)(-5)) = (0,5)\).
To check, recall \(f(2)=-5\) so that when we substitute \(x=0\) into the equation \(y = -f(x+2)\), we get \(y=-f(0+2) = -f(2) = -(-5)=5\), as required.
Rewriting \(f(8-x) = f(-x+8)\) we see we have two transformations at play here: a reflection across the \(y\)-axis and a horizontal shift. Since both of these transformations affect the \(x\)-coordinates of the graph, the question becomes which transformation to address first. To help us with this decision, we attack the problem algebraically.
Recall that since \((2,-5)\) is on the graph of \(f\), we know \(f(2) = -5\). Hence, to get a point on the graph of \(y = f(-x+8)\), we need to match up the arguments of \(f(-x+8)\) and \(f(2)\): \(-x+8 = 2\).
To solve this equation, we first subtract \(8\) from both sides to get \(-x = -6\). Geometrically, subtracting \(8\) from the \(x\)-coordinate of \((2,-5)\), shifts the point \((2,-5)\) left \(8\) units to get the point \((-6,-5)\).
Next, we multiply both sides of the equation \(-x = -6\) by \(-1\) to get \(x = 6\). Geometrically, multiplying the \(x\)-coordinate of \((-6,-5)\) by \(-1\) reflects the point \((-6,-5)\) across the \(y\)-axis to \((6,-5)\).
To check we substitute \(x=6\) into \(y = f(-x+8)\), and obtain \(y = f(-6+8) = f(2) = -5\).
Even though we have found our answer, we re-examine this process from a ‘build’ perspective. We began with a point on the graph of \(y=f(x)\) and first shifted the graph to the left \(8\) units. Per Theorem 2, this point is on the graph of \(y=f(x+8)\).
Next we took a point on the graph of \(y=f(x+8)\) and reflected it about the \(y\)-axis. Per Theorem 3, this put the point on the graph of \(y=f(-x+8)\).
In general, when faced with graphing functions in which there is both a horizontal shift and a reflection about the \(y\)-axis, we’ll deal with the shift first.
In this example, the independent variable is \(s\) and the dependent variable is \(t\). We are asked to reflect the graph of \(h\) about the \(t\)-axis, which in this case is the vertical axis. Hence, \(H(s) = h(-s) = (-s)^3-(-s)^2 = -s^3-s^2\).
Using the Desmos interactive below, we can use the slider for \(s\) and observe that points on the graph of the function \(t=H(s)\) are indeed reflections across the (vertical) \(t\)-axis of points on the graph of the function \(t = h(s)\).
Comparing the formulas for \(G(t) = \frac {t+4}{t-3}\) and \(g(t) =\frac {t+4}{3-t}\), we have the same numerators, but in the denominator, we have \((t-3) = -(3-t)\):
Hence, the graph of \(y=G(t)\) should be the graph of \(y=g(t)\) reflected across the \(t\)-axis.
Using the Desmos interactive below, adjusting the slider for \(t\) traces corresponding points on both \(y = g(t)\) and \(y = G(t)\), confirming that these two graphs are reflections about the (horizontal) \(t\)-axis.
We have two transformations indicated with the formula \(F(x) = f(-x)+1\): a reflection across the \(y\)-axis and a vertical shift. Working from the inside out, we first tackle the reflection. Per Theorem 3, to obtain the graph of \(y=f(-x)\) from \(y=f(x)\), we multiply each of the \(x\)-coordinates of each of the points on the graph of \(y=f(x)\) by \((-1)\).
Next, we use Theorem 1 to obtain the graph of \(y =f(-x)+1\) from the graph of \(y = f(-x)\) by adding \(1\) to each of the \(y\)-coordinates of each of the points on the graph of \(y = f(-x)\). This shifts the graph of \(y=f(-x)\) up one unit. Note, the horizontal asymptote \(y=0\) is also shifted up \(1\) unit to \(y=1\).
To check our answer, we begin with the point \((0,2)\). Substituting \(x=0\) into \(y=f(-x)+1\), we get \(y=f(-0)+1 = f(0)+1\). Since the point \((0,1)\) is on the graph of \(f\), we know \(f(0) = 1\). Hence, \(y = f(0)+1= 1+1=2\), so \((0,2)\) is, indeed, on the graph of \(y=f(-x)+1\). We leave it to the reader to check the remaining points.
In order to graph \(F(x)= 1 - f(2-x)\), we first rewrite as \(F(x) = -f(-x+2)+1\) and note there are four modifications to the formula \(f(x)\) indicated here.
Working from the inside out, we see we have a reflection about the \(y\)-axis indicated as well as a horizontal shift. From our work above, we know we first handle the shift: that is, we apply Theorem 2 to graph \(y=f(x+2) = f(x-(-2))\) by adding \(-2\) to (subtracting \(2\) from) the \(x\)-coordinates of the points on the graph of \(y=f(x)\).
Next, we use Theorem 3 to graph \(y=f(-x+2)\) starting with the graph of \(y = f(x+2)\) by multiplying each of the \(x\)-coordinates of the points of the graph of \(y=f(x+2)\) by \(-1\). This reflects the graph of \(f(x+2)\) about the \(y\)-axis.
We have the graph of \(y=f(-x+2)\) and need to build towards the graph of \(y=-f(-x+2)+1\). The transformations that remain are a reflection about the \(x\)-axis and a vertical shift. The question is which to do first.
Once again, we can think algebraically about the problem. We know the point \((0,1)\) is on the graph of \(f\) which means \(f(0) = 1\). This point corresponds to the point \((2,1)\) on the graph of \(f(-x+2)\). Indeed, when we substitute \(x=2\) into \(y=f(-x+2)\), we get \(y = f(-2+2) = f(0) =1\).
If we substitute \(x=2\) into the formula \(y=-f(-x+2)+1\), we get \(y=-f(-2+2)+1 = -f(0)+1 = -1(1)+1 = 0\). That is, we first multiply the \(y\)-coordinate of \((2,1)\) by \(-1\) then add \(1\). This suggests we take care of the reflection about the \(x\)-axis first, then the vertical shift.
We proceed below to obtain the graph of \(y=-f(-x+2)\) from \(y=f(-x+2)\) by multiplying each of the \(y\)-coordinates on the graph of \(y=f(-x+2)\) by \(-1\). Note the horizontal asymptote remains unchanged: \(y=(-1)(0) = 0\).
Finally, we take care of the vertical shift. Per Theorem 1, we graph \(y=-f(-x+2)+1\) by adding \(1\) to the \(y\)-coordinates of each of the points on the graph of \(y=-f(-x+2)\). This moves the graph up one unit, including the horizontal asymptote: \(y=0+1 = 1\).
To check, we begin with the point \((2,0)\). Substituting \(x=2\) into \(y=1 - f(2-x)\), we obtain \(y = 1-f(2-2) = 1-f(0)\). Since \((0,1)\) is on the graph of \(f\), we know \(f(0) = 1\). This means \(y = 1-f(2-2) = 1-f(0)= 1-1 = 0\). This proves \((2,0)\) is on the graph of \(y=1 - f(2-x)\), and we recommend the reader check the remaining points.
With the transformations at our disposal, our task amounts to finding values of \(h\) and \(k\) and choosing between signs \(\pm \) so that \(g(x) = \pm f( \pm x - h) + k\).
Based on the horizontal asymptote, \(y=4\), we choose \(k=4\). Note, however, in the graph of \(y=f(x)+4\), the entire graph is above the line \(y=4\). Since the graph of \(g\) approaches the asymptote from below, we know \(y=-f(\pm x-h)+4\).
Hence, two of transformations applied to the graph of \(f\) are a reflection across the \(x\)-axis followed by a shift up \(4\) units. This means the point \((0,1)\) on the graph of \(f\) must correspond to the point \((-1,3)\) on the graph of \(g\), since these are the points closest to the asymptote on each graph.
Likewise, the points \((1,2)\) and \((2,4)\) on the graph of \(f\) must correspond to \((0,2)\) and \((1,0)\), respectively, on the graph of \(g\). Looking at the \(x\)-coordinates only, we have \(x=0\) moves to \(x=-1\), \(x=1\) moves to \(x=0\), and \(x=2\) moves to \(x=1\). Hence, the net effect on the \(x\)-values is a shift left \(1\) unit. Hence, we guess the formula for \(g(x)\) to be \(g(x) = -f(x+1)+4\).
We can readily check by going through the transformations: first, shift left \(1\) unit; next, reflect across the \(x\)-axis; finally, shift up \(4\). We leave it to the reader to verify that tracking each of the points on the graph of \(f\) along with the horizontal asymptote through this sequence of transformations results in the graph of \(g\).
One way to recover the graph of \(f\) from the graph of \(g\) is to reverse the process by which we obtained \(g\) from \(f\). The challenge here comes from the fact that two different operations were done which affected the \(y\)-values: reflection and shifting - and the order in which these are done matters.
To motivate our methodology, let’s consider a more down-to-earth example like putting on socks and then putting on shoes. Unless we’re very talented, to reverse this process, we take off the shoes first, then the socks - that is, we undo each step in the reverse order. In the same way, when we think about reversing the steps transforming the graph of \(f\) to the graph of \(g\), we need to undo each transformation in the opposite order.
To review, we obtained the graph of \(g\) from the graph of \(f\) by first shifting the graph to the left \(1\) unit, then reflecting the graph about the \(x\)-axis, then, finally, shifting the graph up \(4\) units. Hence, we first undo the vertical shift. Instead of shifting the graph up four units, we shift the graph down four units. This takes the graph of \(y = g(x)\) to \(y = g(x)-4\).
Next, we have to undo the refection across the \(x\)-axis. Thinking at the level of points, to recover the point \((a,b)\) from its reflection across the \(x\)-axis, \((a,-b)\), we simply reflect across the \(x\)-axis again: \((a,-(-b)) = (a,b)\). Per Theorem 3, this takes the graph the graph of \(y = g(x)-4\) to the graph of \(y = -[g(x)-4] = -g(x) + 4\).
Last, to undo moving the graph to the left \(1\) unit, we move the graph of \(y=-g(x)+4\) to the right \(1\) unit. Per Theorem 2, we accomplish this by graphing \(y = -g(x-1)+4\). We leave it to the reader to start with the graph of \(y=g(x)\) and graph \(y = -g(x-1)+4\) and show it matches the graph of \(y=f(x)\). □
Some remarks about Example 2 are in order. In number 1(iii) above, to find a point on the graph of \(y=f(-x+8)\), we took the given \(x\)-coordinate on our starting graph, \(2\), and subtracted \(8\) first then multiplied by \(-1\). If this seems somehow ‘backwards’ it should.
When evaluating the expression \(-x+8\), the order of operations mandates we multiply by \(-1\) first then add \(8\). Here, however, we weren’t evaluating an expression - we were solving an equation: \(-x+8 = 2\), which meant we did the exact opposite steps in the opposite order. This exemplifies a larger theme with transformations: when adjusting inputs, the resulting points on the graph are obtained by applying the opposite operations indicated by the formula in the opposite order of operations.
On the other hand, when it came to multiple transformations involving the \(y\)-coordinates, we followed the order of operations. As in 4(ii) above, when it came to applying a reflection about the \(x\)-axis and a vertical shift, we applied the reflection first, then the shift. This is because instead of solving an equation to find the new \(y\)-coordinates, we were simplifying an expression. Again, this is an example of a much larger theme: when adjusting outputs, the resulting points on the graph are obtained by applying the stated operations in the usual order.
Last but not least, in number 5, to find \(f\) in terms of \(g\), we reversed the steps used to transform \(f\) into \(g\). Another tact is to approach the problem in the same way we approached transforming \(f\) into \(g\): namely, starting with the graph of \(g\), determine values \(h\) and \(k\) and signs \(\pm \) so that \(f(x) = \pm g(\pm x - h) + k\). We leave this to the reader.
We now turn our attention to our last class of transformations: scalings. A thorough discussion of scalings can get complicated because they are not as straight-forward as the previous transformations. A quick review of what we’ve covered so far, namely vertical shifts, horizontal shifts and reflections, will show you why those transformations are known as rigid transformations.
Simply put, rigid transformations preserve the distances between points on the graph - only their position and orientation in the plane change. If, however, we wanted to make a new graph twice as tall as a given graph, or one-third as wide, we would be affecting the distance between points. These sorts of transformations are hence called non-rigid. As always, we motivate the general theory with an example.
Suppose we wish to graph the function \(g(x) =2 f(x)\) where \(f(x)\) is the function whose graph is given at the beginning of the section. From its graph, we can build a table of values for \(g\) as before.
Graphing, we get:
In general, if \((a,b)\) is on the graph of \(f\), then \(f(a) = b\) so that \(g(a) = 2 f(a) = 2b\) puts \((a,2b)\) on the graph of \(g\). In other words, to obtain the graph of \(g\), we multiply all of the \(y\)-coordinates of the points on the graph of \(f\) by \(2\). Multiplying all of the \(y\)-coordinates of all of the points on the graph of \(f\) by \(2\) causes what is known as a ‘vertical scaling by a factor of \(2\).’
If we wish to graph \(y = \frac {1}{2} f(x)\), we multiply the all of the \(y\)-coordinates of the points on the graph of \(f\) by \(\frac {1}{2}\). This creates a ‘vertical scaling by a factor of \(\frac {1}{2}\)’ as seen below.
These results are generalized in the following theorem.
To graph \(F(x) = af(x)\), multiply each of the \(y\)-coordinates of the points on the graph of \(y=f(x)\) by \(a\).
The proof of Theorem 4 mimics the proofs of Theorems 1 and 3. If \(c\) is in the domain of \(f\), then \((c, f(c))\) is on the graph of \(f\) and the corresponding point on the graph of \(F(x)=af(x)\) is \((c, F(c)) = (c, a f(c))\). Comparing the points \((c, f(c))\) and \((c, a f(c))\) proves the theorem.
A few remarks about Theorem 4 are in order. First, a note about the verbiage. To the authors, the words ‘stretch’, ‘expansion’, and ‘dilation’ all indicate something getting bigger. Hence, ‘stretched by a factor of \(2\)’ makes sense if we are scaling something by multiplying it by \(2\). Similarly, we believe words like ‘shrink’, ‘compression’ and ‘contraction’ all indicate something getting smaller, so if we scale something by a factor of \(\frac {1}{2}\), we would say it ‘shrinks by a factor of \(2\)’ - not ‘shrinks by a factor of \(\frac {1}{2}\)’. This is why we have written the descriptions ‘stretch by a factor of \(a\)’ and ‘shrink by a factor of \(\frac {1}{a}\)’ in the statement of the theorem.
Second, in terms of inputs and outputs, Theorem 4 says multiplying the outputs from a function by positive number \(a\) causes the graph to be vertically scaled by a factor of \(a\). It is natural to ask what would happen if we multiply the inputs of a function by a positive number. This leads us to our last transformation of the section.
Referring to the graph of \(f\) given at the beginning of this section, suppose we want to graph \(g(x) = f(2x)\). In other words, we are looking to see what effect multiplying the inputs to \(f\) by \(2\) has on its graph. If we attempt to build a table directly, we quickly run into the same problem we had in our discussion leading up to Theorem 2, as seen in the table on the left below.
We solve this problem in the same way we solved this problem before. For example, if we want to determine the point on \(g\) which corresponds to the point \((2,3)\) on the graph of \(f\), we set \(2x =2 \) so that \(x=1\). Substituting \(x=1\) into \(g(x)\), we obtain \(g(1) = f(2 \cdot 1) = f(2) = 3\), so that \((1,3)\) is on the graph of \(g\). Continuing in this fashion, we obtain the table on the lower right.
| \( \begin{array}{|c||c|c|c|c|} \hline x & (x,f(x)) & f(x)& g(x)=f(2x) & (x, g(x)) \\ \hline 0 & (0,1)& 1 & f(2 \cdot 0) = f(0) = 1 &(0, 1) \\ \hline 2 & (2,3) & 3 & f(2\cdot 2) = f(4) = 3 &(2,3) \\ \hline 4 & (4,3) & 3 & f(2 \cdot 4) = f(8) = ? & \\ \hline 5 & (5,5) & 5 & f(2 \cdot 5) = f(10) = ? & \\ \hline \end{array} \) | \( \begin{array}{|r||c|c|c|} \hline x & 2x & g(x)=f(2x) & (x, g(x)) \\ \hline 0 & 0 & g(0)= f(2 \cdot 0) = f(0) = 1 &(0, 0) \\ \hline 1 & 2 & g(1)=f(2 \cdot 1) = f(2) = 3 &(1,3) \\ \hline 2 & 4 & g(2)=f(2 \cdot 2) = f(4) = 3 & (2,3)\\ \hline \frac {5}{2} & 5 & g\left (\frac {5}{2}\right )=f\left (2 \cdot \frac {5}{2} \right ) = f(5) = 5 & \left (\frac {5}{2},5\right ) \\ \hline \end{array} \) |
In general, if \((a,b)\) is on the graph of \(f\), then \(f(a) = b\). Hence \(g\left (\frac {a}{2}\right ) = f\left (2 \cdot \frac {a}{2}\right ) = f(a) = b\) so that \(\left (\frac {a}{2}, b\right )\) is on the graph of \(g\). In other words, to graph \(g\) we divide the \(x\)-coordinates of the points on the graph of \(f\) by \(2\). This results in a horizontal scaling by a factor of \(\frac {1}{2}\).
If, on the other hand, we wish to graph \(y = f\left ( \frac {1}{2} x\right )\), we end up multiplying the \(x\)-coordinates of the points on the graph of \(f\) by \(2\) which results in a horizontal scaling by a factor of \(2\), as demonstrated below.
We have the following theorem.
To graph \(F(x) = f(bx)\), divide each of the \(x\)-coordinates of the points on the graph of \(y=f(x)\) by \(b\).
The proof of Theorem 5 follows closely the spirit of the proof of Theorems 2 and 3. If \(c\) is an element of the domain of \(f\), them the number \(\frac {c}{b}\) corresponds to a domain element of \(F(x)= f(bx)\) since \(F\left (\frac {c}{b} \right ) = f\left ( b \cdot \frac {c}{b} \right ) = f(c)\). Hence, there is a correspondence between the point \((c, f(c))\) on the graph of \(f\) and the point \(\left ( \frac {c}{b}, F\left (\frac {c}{b}\right ) \right )= \left ( \frac {c}{b}, f(c) \right )\) on the graph of \(F\). We can obtain \( \left ( \frac {c}{b}, f(c) \right )\) by dividing the \(x\)-coordinate of \((c, f(c))\) by \(b\) and the result follows.
Theorem 5 tells us that if we multiply the input to a function by \(b\), the resulting graph is scaled horizontally by a factor of \(\frac {1}{b}\). The next example explores how vertical and horizontal scalings sometimes interact with each other and with the other transformations introduced in this section.
Use Theorems 1, 2, 3, 4 and 5 to answer the questions below. Check your answers using a graphing utility where appropriate.
Suppose \((-1,4)\) is on the graph of \(y = f(x)\). Find a point on the graph of:
Below is the graph of \(y = f(x)\). Use it to sketch the graph of
Below on the right is the graph of \(y = g(x)\). Write \(g(x)\) in terms of \(f(x)\) and vice-versa.
NOTE: The \(y\)-axis, \(x=0\), is a vertical asymptote to the graph of \(y = f(x)\) and the line \(x=2\) is a vertical asymptote to the graph of \(y = g(x)\).
Solution.
As we examine the formula \(y = 3f(x-2)\), we note two modifications from \(y=f(x)\). Building from the inside out, we start with obtaining a point on the graph of \(y=f(x-2)\).
Per Theorem 2, this shifts all of the points on the graph of \(y=f(x)\) \(2\) units to the right. Hence, the point \((-1,4)\) on the graph of \(y=f(x)\) moves to the point \((-1+2, 4) = (1,4)\) on the graph of \(y=f(x-2)\).
To get a point on the graph of \(y = 3f(x-2) = a f(x-3)\), we apply Theorem 4 with \(a=3\) to the point \((1,4)\) on the graph of \(y=f(x-2)\) to get the point \((1,3(4)) = (1,12)\) on the graph of \(y=3f(x-2)\).
To check, we note that since \((-1,4)\) is on the graph of \(y=f(x)\), we know \(f(-1)=4\). Hence, when we substitute \(x=1\) into the \(y=3f(x-2)\), we get \(y=3f(1-2) = 3f(-1) = 3(4) = 12\).
The formula \(y = f\left (-\frac {1}{2} x \right )\) also indicates two transformations: a horizontal scaling, indicated by \(\frac {1}{2}\) factor, as well as a reflection across the \(y\)-axis. The question before us is which to do first.
If we return to algebra for inspiration, we know \(f(-1) = 4\), so we match up the arguments of \(f\left (-\frac {1}{2} x \right )\) and \(f(-1)\) and get the equation \(-\frac {1}{2} x = -1\). We solve this equation by multiplying both sides by \(-2\): \(x = (-2)(-1) = 2\). That is, we take the original \(x\)-value on the graph of \(y=f(x)\) and multiply it by \(-2\).
If we think of \(-2= (-1)(2)\) then multiplying by the ‘\(2\)’ in ‘\((-1)(2)\)’ produces a horizontal stretch by a factor of \(2\) while multiplying by the ‘\(-1\)’ reflects the point across the \(y\)-axis.
Applying the horizontal stretch first, we use Theorem 5 and start with the point \((-1,4)\) on the graph of \(y=f(x)\) and multiply the \(x\)-coordinate by \(2\) to obtain a point on the graph of \(y=f\left (\frac {1}{2} x\right )\): \((-1(2), 4) = (-2,4)\).
Next, we take care of the reflection about the \(y\)-axis using Theorem 3 . Starting with \((-2,4)\) on the graph of \(y=f\left (\frac {1}{2} x \right )\), we multiply the \(x\)-coordinate by \(-1\) to obtain a point on the graph of \(y = f\left (\frac {1}{2} (-x) \right ) = f\left (-\frac {1}{2} x \right )\): \(((-1)(-2),4) = (2,4)\).
To check, note when \(x=2\) is substituted into \(y = f\left (-\frac {1}{2} x \right )\), we get \(y = f\left (-\frac {1}{2} (2) \right ) = f(-1) = 4\).
Of course, we could have equally written the multiple \(-2 = (2)(-1)\) and reversed these steps: doing the reflection first, then the horizontal scaling.
Proceeding this way, we start with the point \((-1,4)\) on the graph of \(y=f(x)\) and reflect across the \(y\)-axis to obtain the point \(((-1)(-1), 4) = (1,4)\) on the graph of \(y = f(-x)\).
Next, we stretch the graph of \(y=f(-x)\) by a factor of \(2\) by multiplying the \(x\)-coordinates of the points on the graph by \(2\) and obtain \((2(1), 4) = (2,4)\) on the graph of \(y=f\left (-\frac {1}{2} x\right )\).
In general when it comes to reflections and scalings, whether horizontal or, as we’ll see soon, vertical, either order will produce the same results.
The formula \(f(2x-3)+1\) indicates three transformations: a horizontal shift, a horizontal scaling, and a vertical shift. As usual, we appeal to algebra to give us guidance on which horizontal transformation to apply first.
Since we know \(f(-1) = 4\), we set \(2x-3 = -1\) and solve. Our first step is to add \(3\) to both sides: \(2x=(-1)+3 =2\). Since we are adding \(3\) to the given \(x\)-value \(-1\), this corresponds to a shift to the right \(3\) units, so the point \((-1,4)\) is moved to the point \((2,4)\).
Next, to solve \(2x=2\), we divide this new \(x\)-coordinate \(2\) by \(2\) and get \(x = \frac {2}{2}=1\) which corresponds to a horizontal compression by a factor of \(2\). This moves the point \((2,4)\) to \((1,4)\).
Hence, the algebra suggests we use Theorem 2 first and follow it up with Theorem 5. Starting with \((-1,4)\) on the graph of \(y=f(x)\), we shift to the right \(3\) units to obtain the point \((-1+3, 4) = (2,4)\) on the graph of \(y=f(x-3)\).
Next, we start with the point \((2,4)\) on the graph of \(y=f(x-3)\) and horizontally shrink the \(x\)-axis by a factor of \(2\) to get the point \(\left (\frac {2}{2}, 4\right ) = (1,4)\) on the graph of \(y=f(2x-3)\).
Last, but not least, we take care of the vertical shift using Theorem 1. Starting with the point \((1,4)\) on the graph of \(y=f(2x-3)\), we add \(1\) to the \(y\)-coordinate to get the point \((1,4+1) = (1,5)\) on the graph of \(y = f(2x-3)+1\).
To check, we substitute \(x=1\) into the formula \(y = f(2x-3)+1\) and get \(y = f(2(1)-3)+1 = f(-1)+1 = 4+1 = 5\), as required.
To vertically stretch the graph of \(y=g(t)\) by \(4\), we use Theorem 4 with \(a=4\) to get
Using the Desmos interactive below, adjusting the slider for \(t\) traces corresponding points on both \(y = g(t)\) and \(y = G(t)\). Dividing the \(y\)-coordinates on the graph of \(y = G(t)\) by the \(y\)-coordinates of the corresponding points on the graph of \(y=g(t)\) confirms a vertical scaling factor of \(4\).
When comparing the formulas for \(H(s) = 8s^3 - 12s^2\) and \(h(s) = s^3-3s^2\), it doesn’t appear as if any shifting or reflecting is going on (why not?)
We also note that since the coefficient of \(s^3\) in the expression of \(H(s)\) is \(8\) times that of the coefficient of \(s^3\) in \(h(s)\), but the coefficient of \(s^2\) in \(H(s)\) is only \(4\) times the coefficient of \(s^2\) in \(h(s)\), the change is not the result of a vertical scaling (again, why not?)
Hence, if anything, we are looking for a horizontal scaling. In other words, we are looking for a real number \(b>0\) so \(h(bs) = H(s)\), that is, \((bs)^3 - 3 (bs)^2 = b^3 s^3 - 3b^2 s^2 = 8s^3-12s^2\).
Matching up coefficients of \(s^3\) gives \(b^3=8\) so \(b=2\) which checks with the coefficients of \(s^2\) : \(3b^2 = 3(2)^2 = 12\). Hence, we predict the graph of \(y=H(s)\) to be the same as \(y=h(s)\) except horizontally compressed by a factor of \(2\).
Using Desmos below, we graph both \(y=h(s)\) and \(y=H(s)\) on the same set of axes. The graph of \(H\) certainly appears to be a horizontally compressed version of \(h\) and when comparing the numerical values of the \(s\)-coordinates of the key points indicated, the ratio confirms a compression factor of \(2\).
We first rewrite the expression for \(F(x) = \frac {1-f(x)}{2} = -\frac {1}{2}f(x) + \frac {1}{2}\) in order to use the theorems available to us. Note we have two modifications to the formula of \(f(x)\) which correspond to three transformations.
Multiplying \(f(x)\) by \(-\frac {1}{2}\) indicates a vertical compression by a factor of \(2\) along with a reflection about the \(x\)-axis. Adding \(\frac {1}{2}\) indicates a vertical shift up \(\frac {1}{2}\) units.
As always the question is which to do first. Once again, we look to algebra for the answer. Picking the point \((1,0)\) on the graph of \(f(x)\), we know \(f(1) = 0\). To see which point this corresponds to on the graph of \(y=F(x)\), we find \(F(1) = -\frac {1}{2}f(1)+\frac {1}{2} = -\frac {1}{2} (0) +\frac {1}{2} = 0 + \frac {1}{2} = \frac {1}{2}\).
Hence, we first multiplied the \(y\)-value \(0\) by \(-\frac {1}{2}\). As above, we can think of \(-\frac {1}{2} = (-1) \frac {1}{2}\) so that multiplying by \(-\frac {1}{2}\) amounts to a vertical compression by a factor of \(2\) first, then the refection about the \(x\)-axis second. Lastly, adding the \(\frac {1}{2}\) is the vertical shift up \(\frac {1}{2}\) unit.
Beginning with the vertical scaling by a factor of \(\frac {1}{2}\), we use Theorem 4 to graph \(y=\frac {1}{2} f(x)\) starting from \(y=f(x)\) by multiplying each of the \(y\)-coordinates of each of the points on the graph of \(y=f(x)\) by \(\frac {1}{2}\).
Next, we reflect the graph of \(y = \frac {1}{2} f(x)\) across the \(x\)-axis to produce the graph of \(y=-\frac {1}{2} f(x)\) by multiplying each of the \(y\)-coordinates of the points on the graph of \(y=\frac {1}{2} f(x)\) by \(-1\):
Finally, we shift the graph of \(y = -\frac {1}{2} f(x)\) vertically up \(\frac {1}{2}\) unit by adding \(\frac {1}{2}\) to each of the \(y\)-coordinates of each of the points to obtain the graph of \(y = -\frac {1}{2}f(x)+\frac {1}{2} = F(x)\).
In the Desmos interactive below, the graph of \(y=f(x)\) is given as well as the option to click on each intermediary step, in sequence, to build up to the graph of \(y=F(x)\).
Note that as with horizontal scalings and reflections about the \(y\)-axis, the order of vertical scalings and reflections across the \(x\)-axis is interchangeable. Had we decided to think of the factor \(-\frac {1}{2} = \frac {1}{2} \cdot (-1)\), we could have just as well started with the graph of \(y=f(x)\) and produced the graph of \(y=-f(x)\) first.
Next, we vertically scale the graph of \(y=-f(x)\) by multiplying each of the \(y\)-coordinates of each of the points on the graph of \(y=-f(x)\) by \(\frac {1}{2}\) to obtain the graph of \(y = -\frac {1}{2} f(x)\):
Notice we’ve reached the same graph of \(y=-\frac {1}{2} f(x)\) that we had before, and, hence we arrive at the same final answer as before once we apply the vertical shift: \(y = =-\frac {1}{2} f(x) + \frac {1}{2} = F(x)\).
The Desmos interactive below builds \(y=F(x)\) from \(y=f(x)\) using this new sequence of transformations.
We check our answer as we have so many times before. We start with the point \(\left (1, \frac {1}{2}\right )\) and substitute \(x=1\) into \(y=\frac {1-f(x)}{2}\) to get \(y=\frac {1-f(1)}{2}\). From the graph of \(f\), we know \(f(1) = 0\), so we get \(y=\frac {1-f(1)}{2} = \frac {1-0}{2} = \frac {1}{2}\). This proves \(\left (1, \frac {1}{2}\right )\) is on the graph of \(y=\frac {1-f(x)}{2}\). We invite the reader to check the remaining points.
Note that in the preceding example, since none of the transformations included adjusting the \(x\)-coordinates of points, the vertical asymptote, \(x=0\) remained in place.
As with the previous example, we first rewrite \(F(x)= f\left ( \frac {1-x}{2} \right ) = F\left ( -\frac {1}{2}x + \frac {1}{2} \right )\). Here again, we have two modifications to the formula \(f(x)\), the \(-\frac {1}{2}\) multiple indicating a horizontal scaling and a reflection across the \(y\)-axis and a horizontal shift.
Based on our experience from previous examples, we do the horizontal shift first, with the order of the scaling and reflection more or less irrelevant.
To produce the graph of \(y = f\left (x+\frac {1}{2}\right )\) we subtract \(\frac {1}{2}\) from each of the \(x\)-coordinates of each of the points on the graph of \(y=f(x)\). This moves the graph to the left \(\frac {1}{2}\) unit, including the vertical asymptote \(x=0\) which moves to \(x = -\frac {1}{2}\).
Next, we graph \(y = f\left (\frac {1}{2}x + \frac {1}{2} \right )\) starting with \(y = f\left (x+\frac {1}{2}\right )\) by horizontally expanding the graph by a factor of \(2\). That is, we multiply each \(x\)-coordinates on the graph of \(y = f\left (x+\frac {1}{2}\right )\) by \(2\), including the vertical asymptote, \(x =-\frac {1}{2}\) which moves to \(x = 2 \left (-\frac {1}{2} \right ) = -1\).
Finally, we reflect the graph of \(y = f\left (\frac {1}{2}x + \frac {1}{2} \right )\) about the \(y\)-axis to graph \(y = f\left (-\frac {1}{2}x + \frac {1}{2} \right )\). We accomplish this by multiplying each of the \(x\)-coordinates of each of the points on the graph of \(y = f\left (\frac {1}{2}x + \frac {1}{2} \right )\) by \(-1\). This includes the vertical asymptote which is moved to \(x = (-1)(-1) = 1\).
As above, we can track these transformations, in sequence, using a Desmos interactive.
To check our answer, we begin with the point \((-1,0)\) and substitute \(x=-1\) into \(y = f\left ( \frac {1-x}{2} \right )\). We get \(y = f\left ( \frac {1-(-1)}{2} \right ) = f\left ( \frac {2}{2} \right ) = f(1)\). From the graph of \(f\), we know \(f(1) = 0\), hence we have \(y = f(1) = 0\), proving \((-1,0)\) is on the graph of \(y = f\left ( \frac {1-x}{2}\right )\). The reader is encouraged to check the remaining points.
As mentioned previously, instead of doing the horizontal scaling first, then the reflection, we could have done the reflection first, then the scaling. We leave this to the reader to check.
To write \(g(x)\) in terms of \(f(x)\), we assume we can find real numbers \(a\), \(b\), \(h\), and \(k\) and choose signs \(\pm \) so that \(g(x) = \pm a f(\pm b x - h)+k\).
The most notable change we see is the vertical asymptote \(x=0\) has moved to \(x=2\). Moreover, instead of the graph increasing off to the right, it is decreasing coming in from the left. This suggests a horizontal shift of \(2\) units as well as a reflection across the \(y\)-axis.
Since we always shift first then reflect, we have a shift left of \(2\) units followed by a reflection about the \(y\)-axis. In other words, \(g(x) = \pm a f(-x+2) + k\).
Comparing \(y\)-values, the \(y\)-values on the graph of \(g\) appear to be exactly twice the corresponding values on the graph of \(f\), indicating a vertical stretch by a factor of \(2\). Hence, we get \(g(x) = 2 f(-x+2)\). We leave it to the reader to check the graph of \(y=2f(-x+2)\) matches the graph of \(y=g(x)\).
To write \(f(x)\) in terms of \(g(x)\), we reverse the steps done in obtaining the graph of \(g(x)\) from \(f(x)\) in the reverse order.
Since to get from the graph of \(f\) to the graph of \(g\), we: first, shifted left \(2\) units; second reflected across the \(y\)-axis; third, vertically stretched by a factor of \(2\), our first step in taking \(g\) back to \(f\) is to implement a vertical compression by a factor of \(2\). Hence, starting with the graph of \(y=g(x)\), our first step results in the formula \(y = \frac {1}{2} g(x)\).
Next, we need to undo the reflection abut the \(y\)-axis. If the point \((a,b)\) is reflected about the \(y\)-axis, we obtain the point \((-a,b)\). To return to the point \((a,b)\), we reflect \((-a,b)\) across the \(y\)-axis again: \((-(-a),b) = (a,b)\). Hence, we take the graph of \(y = \frac {1}{2} g(x)\) and reflect it across the \(y\)-axis to obtain \(y = \frac {1}{2} g(-x)\).
Our last step is to undo a horizontal shift to the left \(2\) units. The reverse of this process is shifting the graph to the right two units, so we get \(y = \frac {1}{2} g(-(x-2)) = \frac {1}{2} g(-x+2)\).
We leave it to the reader to start with the graph of \(y=g(x)\) and check the graph of \(y = \frac {1}{2} g(-x+2)\) matches the graph of \(y = f(x)\). □
Now that we have studied three basic classes of transformations: shifts, reflections, and scalings, we present a result below which provides one algorithm to follow to transform the graph of \(y=f(x)\) into the graph of \(y=af(bx-h)+k\) without the need of using Theorems 1, 2, 3, 4 and 5 individually.
Theorem 6 is the ultimate generalization of Theorems ??, ??, ??, ??, ?? and ??. We note the underlying assumption here is that regardless of the order or number of shifts, reflections and scalings applied to the graph of a function \(f\), we can always represent the final result in the form \(g(x) = a f(bx-h)+k\). Since each of these transformations can ultimately be traced back to composing \(f\) with linear functions, this fact is verified by showing compositions of linear functions results in a linear function.
Add \(h\) to each of the \(x\)-coordinates of the points on the graph of \(f\).
NOTE: This results in a horizontal shift to the left if \(h < 0\) or right if \(h > 0\).
Divide the \(x\)-coordinates of the points on the graph obtained in Step 1 by \(b\).
NOTE: This results in a horizontal scaling, but includes a reflection about the \(y\)-axis if \(b < 0\).
Multiply the \(y\)-coordinates of the points on the graph obtained in Step 2 by \(a\).
NOTE: This results in a vertical scaling, but includes a reflection about the \(x\)-axis if \(a < 0\).
Add \(k\) to each of the \(y\)-coordinates of the points on the graph obtained in Step 3.
NOTE: This results in a vertical shift up if \(k > 0\) or down if \(k < 0\).
Theorem 6 can be established by generalizing the techniques developed in this section. Suppose \((c,f(c))\) is on the graph of \(f\). To match up the inputs of \(f(bx-h)\) and \(f(c)\), we solve \(bx-h = c\) and solve.
We first add the \(h\) (causing the horizontal shift) and then divide by \(b\). If \(b\) is a positive number, this induces only a horizontal scaling by a factor of \(\frac {1}{b}\). If \(b<0\), then we have a factor of \(-1\) in play, and dividing by it induces a reflection about the \(y\)-axis. So we have \(x = \frac {c+h}{b}\) as the input to \(g\) which corresponds to the input \(x=c\) to \(f\).
We now evaluate \(g\left ( \frac {c+h}{b}\right ) = a f\left (b \cdot \frac {c+h}{b} -h \right ) + K = a f(c+h-h) = a f(c)+k\). We notice that the output from \(f\) is first multiplied by \(a\). As with the constant \(b\), if \(a > 0\), this induces only a vertical scaling. If \(a < 0\), then the \(-1\) induces a reflection across the \(x\)-axis. Finally, we add \(k\) to the result, which is our vertical shift.
A less precise, but more intuitive way to paraphrase Theorem 6 is to think of the quantity \(bx-h\) is the ‘inside’ of the function \(f\). What’s happening inside \(f\) affects the inputs or \(x\)-coordinates of the points on the graph of \(f\). To find the \(x\)-coordinates of the corresponding points on \(g\), we undo what has been done to \(x\) in the same way we would solve an equation.
What’s happening to the output can be thought of as things happening ‘outside’ the function, \(f\). Things happening outside affect the outputs or \(y\)-coordinates of the points on the graph of \(f\). Here, we follow the usual order of operations to simplify the new \(y\)-value: we first multiply by \(a\) then add \(k\) to find the corresponding \(y\)-coordinates on the graph of \(g\).
It needs to be stressed that our approach to handling multiple transformations, as summarized in Theorem 6 is only one approach. Your instructor may have a different algorithm. As always, the more you understand, the less you’ll ultimately need to memorize, so whatever algorithm you choose to follow, it is worth thinking through each step both algebraically and geometrically.
We make good use of Theorem 6 in the following example.
Solution. We use Theorem 6 to track the five ‘key points’ \((-4,-3)\), \((-2,0)\), \((0,3)\), \((2,0)\) and \((4,-3)\) indicated on the graph of \(f\) to their new locations.
We first rewrite \(g(x)\) in the form presented in Theorem 6, \(g(x) = -\frac {3}{2}f(-2x+1) +2\). We set \(-2x+1\) equal to the \(x\)-coordinates of the key points and solve.
For example, solving \(-2x+1 = -4\), we first subtract \(1\) to get \(-2x = -5\) then divide by \(-2\) to get \(x = \frac {5}{2}\). Subtracting the \(1\) is a horizontal shift to the left \(1\) unit. Dividing by \(-2\) can be thought of as a two step process: dividing by \(2\) which compresses the graph horizontally by a factor of \(2\) followed by dividing (multiplying) by \(-1\) which causes a reflection across the \(y\)-axis. We summarize the results in a table below on the left.
Next, we take each of the \(x\) values and substitute them into \(g(x) = -\frac {3}{2}f(-2x+1) +2\) to get the corresponding \(y\)-values. Substituting \(x=\frac {5}{2}\), and using the fact that \(f(-4)=-3\), we get
| \(\begin{array}{|r||r|r|r|} \hline (c,f(c))& c & -2x+1=c & x \\ \hline (-4,-3) & -4 & -2x+1 = -4 & x = \frac {5}{2} \\ \hline (-2,0) & -2 & -2x+1 = -2 & x = \frac {3}{2} \\ \hline (0,3) & 0 & -2x+1 = 0 & x = \frac {1}{2} \\ \hline (2,0) & 2 & -2x+1 = 2 & x = -\frac {1}{2} \\ \hline (4,-3) & 4 & -2x+1 = 4 & x = -\frac {3}{2} \\ \hline \end{array}\) | \(\begin{array}{|r||r|r|} \hline x & g(x) & (x, g(x)) \\ \hline \frac {5}{2} & \frac {13}{2} & \left (\frac {5}{2}, \frac {13}{2} \right ) \\ \hline \frac {3}{2} & 2 & \left (\frac {3}{2}, 2 \right )\\ \hline \frac {1}{2} & - \frac {5}{2} & \left (\frac {1}{2}, -\frac {5}{2} \right ) \\ \hline -\frac {1}{2} & 2 & \left (-\frac {1}{2}, 2 \right ) \\ \hline -\frac {3}{2} & \frac {13}{2} & \left (-\frac {3}{2}, \frac {13}{2} \right ) \\ \hline \end{array}\) |
To graph \(g\), we plot each of the points in the table above and connect them in the same order and fashion as the points to which they correspond.
To check, we can use the GeoGebra interactive below. Starting with graph of \(y=f(x)\), we can click on each transformation, in sequence, and track not only the key points, but also see the graph at the end of each step. The graph of \(y=g(x)\) is what results after the final step, Step 4.
□
The reader is strongly encouraged to graph the series of functions which shows the gradual transformation of the graph of \(f\) into the graph of \(g\) in Example 4. We have outlined the sequence of transformations in the above exposition; all that remains is to plot the five intermediate stages. Our next example turns the tables and asks for the formula of a function given a desired sequence of transformations.
Solution. To help keep us organized we will label each intermediary function. The function \(g_{1}\) will be the result of applying the first transformation to \(f\). The function \(g_{2}\) will be the result of applying the first two transformations to \(f\) - which is also the result of applying the second transformation to \(g_{1}\), and so on.
Per Theorem 3, \(g_{6}(x) = g_{5}(-x)\):
In the Desmos interactive below, the graph of \(y=f(x)\) is given. By clicking on each of the functions \(g_{1}\) through \(g_{6}\), we are able to see each transformation, in sequence, as the graph of \(y=f(x)\) is transformed into the graph of \(y = g(x)\).
Hence, \(g(x) = g_{6}(x) = -(2x+1)^2+|2x+1| + 1\). □
It is instructive to show that the expression \(g(x)\) in Example 4 can be written as \(g(x) = a f(bx-h)+k\).
One way is to compare the graphs of \(f\) and \(g\) and work backwards. A more methodical way is to repeat the work of Example 4, but never substitute the formula for \(f(x)\) as follows:
Hence \(g(x) = -f(-2x-1)+1\). Note we can show \(f\) is even, so \(f(-2x-1) = f(-(2x+1)) = f(2x+1)\) and obtain \(g(x) = -f(2x+1)+1\).
At the beginning of this section, we discussed how all of the transformations we’d be discussing are the result of composing given functions with linear functions. Not all transformations, not even all rigid transformations, fall into these categories.
For example, consider the graphs of \(y=f(x)\) and \(y=g(x)\) below.
The graph on the right is a piecewise linear function connecting the points \((0,5)\), \((2,0)\), \((4,3)\), and \((5,3)\). The graph decreases from \((0,5)\) to \((2,0)\), then increases to \((4,3)\), and remains horizontal from \((4,3)\) to \((5,3)\).
In Exercise ??, we explore a non-linear transformation and revisit the pair of functions \(f\) and \(g\) then.