1.7: Transformations
- Page ID
- 80761
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)In this section, we study how the graphs of functions change, or transform, when certain specialized modifications are made to their formulas. The transformations we will study fall into three broad categories: shifts, reflections and scalings, and we will present them in that order. Suppose the graph below is the complete graph of a function \(f\).
The Fundamental Graphing Principle for Functions says that for a point \((a,b)\) to be on the graph, \(f(a) = b\). In particular, we know \(f(0) = 1\), \(f(2)=3\), \(f(4)=3\) and \(f(5)=5\). Suppose we wanted to graph the function defined by the formula \(g(x) = f(x) + 2\). Let’s take a minute to remind ourselves of what \(g\) is doing. 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. In order to graph \(g\), we need to graph the points \((x,g(x))\). How are we to find the values for \(g(x)\) without a formula for \(f(x)\)? The answer is that we don’t need a formula for \(f(x)\), we just need the values of \(f(x)\). The values of \(f(x)\) are the \(y\) values on the graph of \(y=f(x)\). For example, using the points indicated on the graph of \(f\), we can make the following table.
\(\begin{array}{|c||c|c|c|c|} \hline x & (x,f(x)) & f(x) & g(x)=f(x)+2 & (x, g(x)) \\ \hline 0 & (0,1)& 1 & 3 &(0, 3) \\ \hline 2 & (2,3) & 3 & 5 &(2,5) \\ \hline 4 & (4,3) & 3 & 5 &(4, 5) \\ \hline 5 & (5,5) & 5 & 7 &( 5 ,7) \\ \hline \end{array}\)
In general, if \((a,b)\) is on the graph of \(y=f(x)\), then \(f(a) = b\), so \(g(a) = f(a) +2 = b+2\). Hence, \((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 usually described as ‘shifting the graph 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 points we moved in the same manner in which they were connected before. We have the results side-by-side at the top of the next page.
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]\). What we have discussed is generalized in the following theorem.
Suppose \(f\) is a function and \(k\) is a positive number.
- To graph \(y=f(x)+k\), shift the graph of \(y=f(x)\) up \(k\) units by adding \(k\) to the \(y\)-coordinates of the points on the graph of \(f\).
- To graph \(y=f(x)-k\), shift the graph of \(y=f(x)\) down \(k\) units by subtracting \(k\) from the \(y\)-coordinates of the points on the graph of \(f\).
The key to understanding Theorem 1.2 and, indeed, all of the theorems in this section comes from an understanding of the Fundamental Graphing Principle for Functions. If \((a,b)\) is on the graph of \(f\), then \(f(a) = b\). Substituting \(x=a\) into the equation \(y=f(x)+k\) gives \(y=f(a)+k = b+k\). Hence, \((a,b+k)\) is on the graph of \(y=f(x)+k\), and we have the result. In the language of ‘inputs’ and ‘outputs’, Theorem 1.2 can be paraphrased as “Adding to, or subtracting from, the output of a function causes the graph to shift up or down, respectively.” So what happens if we add to or subtract from the input of the function?
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.1 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.
\[\begin{array}{|c||c|c|c|c|} \hline x & (x,f(x)) & f(x)& g(x)=f(x+2) & (x, g(x)) \\ \hline 0 & (0,1)& 1 & f(0+2) = f(2) = 3 &(0, 3) \\ \hline 2 & (2,3) & 3 & f(2+2) = f(4) = 3 &(2,3) \\ \hline 4 & (4,3) & 3 & f(4+2) = f(6) = ? & \\ \hline 5 & (5,5) & 5 & f(5+2) = f(7) = ? & \\ \hline \end{array}\]
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)\) is 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 get \[\begin{array}{|r||c|c|c|} \hline x & x+2 & g(x)=f(x+2) & (x, g(x)) \\ \hline -2 & 0 & g(-2)=f(0) = 1 &(-2, 1) \\ \hline 0 & 2 & g(0)=f(2) = 3 &(0,3) \\ \hline 2 & 4 & g(2)=f(4) = 3 & (2,3)\\ \hline 3 & 5 & g(3)=f(5) = 5 & (3,5) \\ \hline \end{array}\]
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.
Suppose \(f\) is a function and \(h\) is a positive number.
- To graph \(y=f(x+h)\), shift the graph of \(y=f(x)\) left \(h\) units by subtracting \(h\) from the \(x\)-coordinates of the points on the graph of \(f\).
- To graph \(y=f(x-h)\), shift the graph of \(y=f(x)\) right \(h\) units by adding \(h\) to the \(x\)-coordinates of the points on the graph of \(f\).
In other words, Theorem 1.3 says that adding to or subtracting from the input to a function amounts to shifting the graph left or right, respectively. Theorem 1.3 and Theorem 1.3 present a theme which will run common throughout the section: changes to the outputs from a function affect the \(y\)-coordinates of the graph, resulting in some kind of vertical change; changes to the inputs to a function affect the \(x\)-coordinates of the graph, resulting in some kind of horizontal change.
- Graph \(f(x) = \sqrt{x}\). Plot at least three points.
- Use your graph in 1 to graph \(g(x) = \sqrt{x}-1\).
- Use your graph in 1 to graph \(j(x) = \sqrt{x-1}\).
- Use your graph in 1 to graph \(m(x) = \sqrt{x+3} - 2\).
Solution.
- Owing to the square root, the domain of \(f\) is \(x \geq 0\), or \([0,\infty)\). We choose perfect squares to build our table and graph below. From the graph we verify the domain of \(f\) is \([0,\infty)\) and the range of \(f\) is also \([0, \infty)\).
\(\begin{array}{|c||c|c|} \hline x & f(x) & (x,f(x)) \\ \hline 0 & 0& (0,0) \\ \hline 1 & 1 & (1,1) \\ \hline 4 & 2 & (4,2) \\ \hline \end{array}\) &
-15-13 (-1,0.25)\((0,0)\) (1,1.5)\((1,1)\) (4,2.5)\((4,2)\) (5,-0.5)\(x\) (0.5,3)\(y\)
- The domain of \(g\) is the same as the domain of \(f\), since the only condition on both functions is that \(x \geq 0\). If we compare the formula for \(g(x)\) with \(f(x)\), we see that \(g(x) = f(x) - 1\). In other words, we have subtracted \(1\) from the output of the function \(f\). By Theorem 1.2, we know that in order to graph \(g\), we shift the graph of \(f\) down one unit by subtracting \(1\) from each of the \(y\)-coordinates of the points on the graph of \(f\). Applying this to the three points we have specified on the graph, we move \((0,0)\) to \((0,-1)\), \((1,1)\) to \((1,0)\), and \((4,2)\) to \((4,1)\). The rest of the points follow suit, and we connect them with the same basic shape as before. We confirm the domain of \(g\) is \([0, \infty)\) and find the range of \(g\) to be \([-1, \infty)\).
- Solving \(x-1 \geq 0\) gives \(x \geq 1\), so the domain of \(j\) is \([1,\infty)\). To graph \(j\), we note that \(j(x) = f(x-1)\). In other words, we are subtracting \(1\) from the input of \(f\). According to Theorem 1.3, this induces a shift to the right of the graph of \(f\). We add \(1\) to the \(x\)-coordinates of the points on the graph of \(f\) and get the result below. The graph reaffirms that the domain of \(j\) is \([1,\infty)\) and tells us that the range of \(j\) is \([0,\infty)\).
- To find the domain of \(m\), we solve \(x+3 \geq 0\) and get \([-3, \infty)\). Comparing the formulas of \(f(x)\) and \(m(x)\), we have \(m(x) = f(x+3) - 2\). We have \(3\) being added to an input, indicating a horizontal shift, and \(2\) being subtracted from an output, indicating a vertical shift. We leave it to the reader to verify that, in this particular case, the order in which we perform these transformations is immaterial; we will arrive at the same graph regardless as to which transformation we apply first.2 We follow the convention ‘inputs first’,3 and to that end we first tackle the horizontal shift. Letting \(m_{1}(x) = f(x+3)\) denote this intermediate step, Theorem 1.3 tells us that the graph of \(y=m_{1}(x)\) is the graph of \(f\) shifted to the left \(3\) units. Hence, we subtract \(3\) from each of the \(x\)-coordinates of the points on the graph of \(f\).
Since \(m(x) = f(x+3)-2\) and \(f(x+3) = m_{1}(x)\), we have \(m(x) = m_{1}(x) - 2\). We can apply Theorem 1.2 and obtain the graph of \(m\) by subtracting \(2\) from the \(y\)-coordinates of each of the points on the graph of \(m_{1}(x)\). The graph verifies that the domain of \(m\) is \([-3, \infty)\) and we find the range of \(m\) to be \([-2, \infty)\).
Keep in mind that we can check our answer to any of these kinds of problems by showing that any of the points we’ve moved lie on the graph of our final answer. For example, we can check that \((-3,-2)\) is on the graph of \(m\) by computing \(m(-3) = \sqrt{(-3)+3} - 2 = \sqrt{0}-2 = -2\, \checkmark\)
We now turn our attention to reflections. We know from Section 1.1 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 \(f\) reflected across the \(y\)-axis. Returning to the language of inputs and outputs, multiplying the output from a function by \(-1\) reflects its graph across the \(x\)-axis, while multiplying the input to a function by \(-1\) reflects the graph across the \(y\)-axis.4
Suppose \(f\) is a function.
- To graph \(y=-f(x)\), reflect the graph of \(y=f(x)\) across the \(x\)-axis by multiplying the \(y\)-coordinates of the points on the graph of \(f\) by \(-1\).
- To graph \(y=f(-x)\), reflect the graph of \(y=f(x)\) across the \(y\)-axis by multiplying the \(x\)-coordinates of the points on the graph of \(f\) by \(-1\).
Applying Theorem 1.4 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)\).
With the addition of reflections, it is now more important than ever to consider the order of transformations, as the next example illustrates.
Let \(f(x) = \sqrt{x}\). Use the graph of \(f\) from Example 1.7.1 to graph the following functions. Also, state their domains and ranges.
- \(g(x) = \sqrt{-x}\)
- \(j(x) = \sqrt{3-x}\)
- \(m(x) = 3 - \sqrt{x}\)
Solution.
- The mere sight of \(\sqrt{-x}\) usually causes alarm, if not panic. When we discussed domains in Section 1.4, we clearly banished negatives from the radicands of even roots. However, we must remember that \(x\) is a variable, and as such, the quantity \(-x\) isn’t always negative. For example, if \(x=-4\), \(-x = 4\), thus \(\sqrt{-x} = \sqrt{-(-4)} = 2\) is perfectly well-defined. To find the domain analytically, we set \(-x \geq 0\) which gives \(x \leq 0\), so that the domain of \(g\) is \((-\infty, 0]\). Since \(g(x) = f(-x)\), Theorem 1.4 tells us that the graph of \(g\) is the reflection of the graph of \(f\) across the \(y\)-axis. We accomplish this by multiplying each \(x\)-coordinate on the graph of \(f\) by \(-1\), so that the points \((0,0)\), \((1,1)\), and \((4,2)\) move to \((0,0)\), \((-1,1)\), and \((-4,2)\), respectively. Graphically, we see that the domain of \(g\) is \((-\infty, 0]\) and the range of \(g\) is the same as the range of \(f\), namely \([0,\infty)\).
- To determine the domain of \(j(x) = \sqrt{3-x}\), we solve \(3-x \geq 0\) and get \(x \leq 3\), or \((-\infty, 3]\). To determine which transformations we need to apply to the graph of \(f\) to obtain the graph of \(j\), we rewrite \(j(x) = \sqrt{-x+3} = f(-x+3)\). Comparing this formula with \(f(x) = \sqrt{x}\), we see that not only are we multiplying the input \(x\) by \(-1\), which results in a reflection across the \(y\)-axis, but also we are adding \(3\), which indicates a horizontal shift to the left. Does it matter in which order we do the transformations? If so, which order is the correct order? Let’s consider the point \((4,2)\) on the graph of \(f\). We refer to the discussion leading up to Theorem 1.3. We know \(f(4) = 2\) and wish to find the point on \(y=j(x) = f(-x+3)\) which corresponds to \((4,2)\). We set \(-x+3 = 4\) and solve. Our first step is to subtract \(3\) from both sides to get \(-x=1\). Subtracting \(3\) from the \(x\)-coordinate \(4\) is shifting the point \((4,2)\) to the left. From \(-x=1\), we then multiply5 both sides by \(-1\) to get \(x=-1\). Multiplying the \(x\)-coordinate by \(-1\) corresponds to reflecting the point about the \(y\)-axis. Hence, we perform the horizontal shift first, then follow it with the reflection about the \(y\)-axis. Starting with \(f(x) = \sqrt{x}\), we let \(j_{1}(x)\) be the intermediate function which shifts the graph of \(f\) \(3\) units to the left, \(j_{1}(x) = f(x+3)\).
To obtain the function \(j\), we reflect the graph of \(j_{1}\) about \(y\)-axis. Theorem 1.4 tells us we have \(j(x) = j_{1}(-x)\). Putting it all together, we have \(j(x) = j_{1}(-x) = f(-x+3) = \sqrt{-x+3}\), which is what we want.6 From the graph, we confirm the domain of \(j\) is \((-\infty, 3]\) and we get that the range is \([0, \infty)\).
- The domain of \(m\) works out to be the domain of \(f\), \([0, \infty)\). Rewriting \(m(x) = -\sqrt{x} + 3\), we see \(m(x) = -f(x) + 3\). Since we are multiplying the output of \(f\) by \(-1\) and then adding \(3\), we once again have two transformations to deal with: a reflection across the \(x\)-axis and a vertical shift. To determine the correct order in which to apply the transformations, we imagine trying to determine the point on the graph of \(m\) which corresponds to \((4,2)\) on the graph of \(f\). Since in the formula for \(m(x)\), the input to \(f\) is just \(x\), we substitute to find \(m(4) = -f(4)+3 = -2+3=1\). Hence, \((4,1)\) is the corresponding point on the graph of \(m\). If we closely examine the arithmetic, we see that we first multiply \(f(4)\) by \(-1\), which corresponds to the reflection across the \(x\)-axis, and then we add \(3\), which corresponds to the vertical shift. If we define an intermediate function \(m_{1}(x) = -f(x)\) to take care of the reflection, we get
To shift the graph of \(m_{1}\) up \(3\) units, we set \(m(x) = m_{1}(x)+3\). Since \(m_{1}(x) = -f(x)\), when we put it all together, we get \(m(x) = m_{1}(x)+3 = -f(x) + 3 = -\sqrt{x}+3\). We see from the graph that the range of \(m\) is \((-\infty, 3]\).
We now turn our attention to our last class of transformations known as 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, they do not change the shape of the graph, only its position and orientation in the plane. If, however, we wanted to make a new graph twice as tall as a given graph, or one-third as wide, we would be changing the shape of the graph. This type of transformation is called non-rigid for obvious reasons. Not only will it be important for us to differentiate between modifying inputs versus outputs, we must also pay close attention to the magnitude of the changes we make. As you will see shortly, the Mathematics turns out to be easier than the associated grammar.
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.
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 scaling7 by a factor of \(2\)’, and the results are given on the next page.
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 scaling8 by a factor of \(\frac{1}{2}\)’ as seen below.
These results are generalized in the following theorem.
Suppose \(f\) is a function and \(a>0\). To graph \(y=a f(x)\), multiply all of the \(y\)-coordinates of the points on the graph of \(f\) by \(a\). We say the graph of \(f\) has been vertically scaled by a factor of \(a\).
- If \(a > 1\), we say the graph of \(f\) has undergone a vertical stretching (expansion, dilation) by a factor of \(a\).
- If \(0 < a < 1\), we say the graph of \(f\) has undergone a vertical shrinking (compression, contraction) by a factor of \(\frac{1}{a}\).
A few remarks about Theorem 1.5 are in order. First, a note about the verbiage. To the authors, the words ‘stretching’, ‘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 ‘shrinking’, ‘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 ‘stretching by a factor of \(a\)’ and ‘shrinking by a factor of \(\frac{1}{a}\)’ in the statement of the theorem. Second, in terms of inputs and outputs, Theorem 1.5 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 1.3, 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{aligned}
&\begin{array}{|c||c|c|c|c|}
\hline x & (x, f(x)) & f(x) & g(x)=f(2 x) & (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}{|c||c|c|c|}
\hline x & 2 x & g(x)=f(2 x) & (x, g(x)) \\
\hline 0 & 0 & g(0)=f(0)=1 & (0,0) \\
\hline 1 & 2 & g(1)=f(2)=3 & (1,3) \\
\hline 2 & 4 & g(2)=f(4)=3 & (2,3) \\
\hline \frac{5}{2} & 5 & g\left(\frac{5}{2}\right)=f(5)=5 & \left(\frac{5}{2}, 5\right) \\
\hline
\end{array}
\end{aligned}\)
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 scaling9 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 scaling10 by a factor of \(2\), as demonstrated below.
We have the following theorem.
Suppose \(f\) is a function and \(b>0\). To graph \(y= f(bx)\), divide all of the \(x\)-coordinates of the points on the graph of \(f\) by \(b\). We say the graph of \(f\) has been horizontally scaled by a factor of \(\frac{1}{b}\).
- If \(0 < b < 1\), we say the graph of \(f\) has undergone a horizontal stretching (expansion, dilation) by a factor of \(\frac{1}{b}\).
- If \(b>1\), we say the graph of \(f\) has undergone a horizontal shrinking (compression, contraction) by a factor of \(b\).
Theorem 1.6 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}\) since the \(x\)-values are divided by \(b\) to produce corresponding points on the graph of \(y = f(bx)\). The next example explores how vertical and horizontal scalings sometimes interact with each other and with the other transformations introduced in this section.
Let \(f(x)= \sqrt{x}\). Use the graph of \(f\) from Example 1.7.1 to graph the following functions. Also, state their domains and ranges.
- \(g(x) = 3 \sqrt{x}\)
- \(j(x) = \sqrt{9x}\)
- \(m(x) =1 - \sqrt{\frac{x+3}{2}}\)
Solution.
- First we note that the domain of \(g\) is \([0, \infty)\) for the usual reason. Next, we have \(g(x) = 3 f(x)\) so by Theorem 1.5, we obtain the graph of \(g\) by multiplying all of the \(y\)-coordinates of the points on the graph of \(f\) by \(3\). The result is a vertical scaling of the graph of \(f\) by a factor of \(3\). We find the range of \(g\) is also \([0, \infty)\).
- To determine the domain of \(j\), we solve \(9x \geq 0\) to find \(x \geq 0\). Our domain is once again \([0,\infty)\). We recognize \(j(x) = f(9x)\) and by Theorem 1.6, we obtain the graph of \(j\) by dividing the \(x\)-coordinates of the points on the graph of \(f\) by \(9\). From the graph, we see the range of \(j\) is also \([0,\infty)\).
- Solving \(\frac{x+3}{2} \geq 0\) gives \(x \geq -3\), so the domain of \(m\) is \([-3, \infty)\). To take advantage of what we know of transformations, we rewrite \(m(x) = - \sqrt{\frac{1}{2} x + \frac{3}{2}} + 1\), or \(m(x) =- f\left(\frac{1}{2} x + \frac{3}{2}\right) + 1\). Focusing on the inputs first, we note that the input to \(f\) in the formula for \(m(x)\) is \(\frac{1}{2} x + \frac{3}{2}\). Multiplying the \(x\) by \(\frac{1}{2}\) corresponds to a horizontal stretching by a factor of \(2\), and adding the \(\frac{3}{2}\) corresponds to a shift to the left by \(\frac{3}{2}\). As before, we resolve which to perform first by thinking about how we would find the point on \(m\) corresponding to a point on \(f\), in this case, \((4,2)\). To use \(f(4) = 2\), we solve \(\frac{1}{2} x + \frac{3}{2} = 4\). Our first step is to subtract the \(\frac{3}{2}\) (the horizontal shift) to obtain \(\frac{1}{2} x = \frac{5}{2}\). Next, we multiply by \(2\) (the horizontal stretching) and obtain \(x = 5\). We define two intermediate functions to handle first the shift, then the stretching. In accordance with Theorem 1.3, \(m_{1}(x) = f\left(x+ \frac{3}{2}\right) = \sqrt{x+\frac{3}{2}}\) will shift the graph of \(f\) to the left \(\frac{3}{2}\) units.
Next, \(m_{2}(x) = m_{1}\left(\frac{1}{2} x\right) = \sqrt{\frac{1}{2} x + \frac{3}{2}}\) will, according to Theorem 1.6, horizontally stretch the graph of \(m_{1}\) by a factor of \(2\).
We now examine what’s happening to the outputs. From \(m(x) = - f\left(\frac{1}{2} x + \frac{3}{2}\right) + 1\), we see that the output from \(f\) is being multiplied by \(-1\) (a reflection about the \(x\)-axis) and then a \(1\) is added (a vertical shift up \(1\)). As before, we can determine the correct order by looking at how the point \((4,2)\) is moved. We already know that to make use of the equation \(f(4)=2\), we need to substitute \(x=5\). We get \(m(5) = - f\left(\frac{1}{2} (5) + \frac{3}{2}\right) + 1= - f(4)+1 = -2+1 = -1\). We see that \(f(4)\) (the output from \(f\)) is first multiplied by \(-1\) then the \(1\) is added meaning we first reflect the graph about the \(x\)-axis then shift up \(1\). Theorem 1.4 tells us \(m_{3}(x) = - m_{2}(x)\) will handle the reflection.
Finally, to handle the vertical shift, Theorem 1.2 gives \(m(x) = m_{3}(x) +1\), and we see that the range of \(m\) is \((-\infty,1]\).
Some comments about Example 1.7.3 are in order. First, recalling the properties of radicals from Intermediate Algebra, we know that the functions \(g\) and \(j\) are the same, since \(j\) and \(g\) have the same domains and \(j(x) = \sqrt{9x} = \sqrt{9} \sqrt{x} = 3 \sqrt{x} = g(x)\). (We invite the reader to verify that all of the points we plotted on the graph of \(g\) lie on the graph of \(j\) and vice-versa.) Hence, for \(f(x) = \sqrt{x}\), a vertical stretch by a factor of \(3\) and a horizontal shrinking by a factor of \(9\) result in the same transformation. While this kind of phenomenon is not universal, it happens commonly enough with some of the families of functions studied in College Algebra that it is worthy of note. Secondly, to graph the function \(m\), we applied a series of four transformations. While it would have been easier on the authors to simply inform the reader of which steps to take, we have strived to explain why the order in which the transformations were applied made sense. We generalize the procedure in the theorem below.
Suppose \(f\) is a function. If \(A \neq 0\) and \(B \neq 0\), then to graph \[g(x) = A f(Bx+H)+K\]
- Subtract \(H\) from each of the \(x\)-coordinates of the points on the graph of \(f\). 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\). This results in a horizontal scaling, but may also include 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\). This results in a vertical scaling, but may also include 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. This results in a vertical shift up if \(K > 0\) or down if \(K< 0\).
Theorem 1.7 can be established by generalizing the techniques developed in this section. Suppose \((a,b)\) is on the graph of \(f\). Then \(f(a) = b\), and to make good use of this fact, we set \(Bx+H = a\) and solve. We first subtract 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{a-H}{B}\) as the input to \(g\) which corresponds to the input \(x=a\) to \(f\). We now evaluate \(g\left( \frac{a-H}{B}\right) = A f\left(B \cdot \frac{a-H}{B} + H\right) + K = A f(a)+K = A b + 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 1.7 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 agreement: we first multiply by \(A\) then add \(K\) to find the corresponding \(y\)-coordinates on the graph of \(g\).
Below is the complete graph of \(y = f(x)\). Use it to graph \(g(x) = \frac{4-3 f(1-2x)}{2}\).
Solution
We use Theorem 1.7 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 1.7, \(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 the table on the next page.
\(\ \begin{array}{|r||r|r|r|}
\hline(a, f(a)) & a & -2 x+1=a & x \\
\hline(-4,-3) & -4 & -2 x+1=-4 & x=\frac{5}{2} \\
\hline(-2,0) & -2 & -2 x+1=-2 & x=\frac{3}{2} \\
\hline(0,3) & 0 & -2 x+1=0 & x=\frac{1}{2} \\
\hline(2,0) & 2 & -2 x+1=2 & x=-\frac{1}{2} \\
\hline(4,-3) & 4 & -2 x+1=4 & x=-\frac{3}{2} \\
\hline
\end{array}\)
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
\(\ g\left(\frac{5}{2}\right)=-\frac{3}{2} f\left(-2\left(\frac{5}{2}\right)+1\right)+2=-\frac{3}{2} f(-4)+2=-\frac{3}{2}(-3)+2=\frac{9}{2}+2=\frac{13}{2}\)
We see that the output from \(f\) is first multiplied by \(-\frac{3}{2}\). Thinking of this as a two step process, multiplying by \(\frac{3}{2}\) then by \(-1\), we have a vertical stretching by a factor of \(\frac{3}{2}\) followed by a reflection across the \(x\)-axis. Adding \(2\) results in a vertical shift up \(2\) units. Continuing in this manner, we get the table below.
\(\ \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. Plotting \(f\) and \(g\) side-by-side gives
The reader is strongly encouraged11 to graph the series of functions which shows the gradual transformation of the graph of \(f\) into the graph of \(g\). We have outlined the sequence of transformations in the above exposition; all that remains is to plot the five intermediate stages.
Our last example turns the tables and asks for the formula of a function given a desired sequence of transformations. If nothing else, it is a good review of function notation.
Let \(f(x) = x^2\). Find and simplify the formula of the function \(g(x)\) whose graph is the result of \(f\) undergoing the following sequence of transformations. Check your answer using a graphing calculator.
- Vertical shift up \(2\) units
- Reflection across the \(x\)-axis
- Horizontal shift right \(1\) unit
- Horizontal stretching by a factor of \(2\)
Solution
We build up to a formula for \(g(x)\) using intermediate functions as we’ve seen in previous examples. We let \(g_{1}\) take care of our first step. Theorem 1.2 tells us \(g_{1}(x) = f(x) + 2 = x^2+2\). Next, we reflect the graph of \(g_{1}\) about the \(x\)-axis using Theorem 1.4: \(g_{2}(x) = -g_{1}(x) = -\left(x^2+2\right) = -x^2-2\). We shift the graph to the right \(1\) unit, according to Theorem 1.3, by setting \(g_{3}(x) = g_{2}(x-1) = -(x-1)^2-2 = -x^2+2x-3\). Finally, we induce a horizontal stretch by a factor of \(2\) using Theorem 1.6 to get \(g(x) = g_{3}\left(\frac{1}{2} x\right) = -\left(\frac{1}{2} x\right)^2+2\left(\frac{1}{2} x\right)-3\) which yields \(g(x) = -\frac{1}{4} x^2 + x -3\). We use the calculator to graph the stages below to confirm our result.
We have kept the viewing window the same in all of the graphs above. This had the undesirable consequence of making the last graph look ‘incomplete’ in that we cannot see the original shape of \(f(x) = x^{2}\). Altering the viewing window results in a more complete graph of the transformed function as seen below.
This example brings our first chapter to a close. In the chapters which lie ahead, be on the lookout for the concepts developed here to resurface as we study different families of functions.
1.7.1 Exercises
Suppose \((2,-3)\) is on the graph of \(y = f(x)\). In Exercises 1 - 8, use Theorem 1.7 to find a point on the graph of the given transformed function.
- \(y = f(x)+3\)
- \(y = f(x+3)\)
- \(y = f(x)-1\)
- \(y = f(x-1)\)
- \(y = 3f(x)\)
- \(y = f(3x)\)
- \(y = -f(x)\)
- \(y = f(-x)\)
- \(y = f(x-3)+1\)
- \(y = 2f(x+1)\)
- \(y = 10 - f(x)\)
- \(y = 3f(2x) - 1\)
- \(y = \frac{1}{2} f(4-x)\)
- \(y = 5f(2x+1) + 3\)
- \(y = 2f(1-x) -1\)
- \(y =f\left(\dfrac{7-2x}{4}\right)\)
- \(y = \dfrac{f(3x) - 1}{2}\)
- \(y = \dfrac{4-f(3x-1)}{7}\)
The complete graph of \(y = f(x)\) is given below. In Exercises 19 - 27, use it and Theorem 1.7 to graph the given transformed function.
- \(y = f(x) + 1\)
- \(y = f(x) - 2\)
- \(y = f(x+1)\)
- \(y = f(x - 2)\)
- \(y = 2f(x)\)
- \(y = f(2x)\)
- \(y = 2 - f(x)\)
- \(y = f(2-x)\)
- \(y = 2-f(2-x)\)
- Some of the answers to Exercises 19 - 27 above should be the same. Which ones match up? What properties of the graph of \(y=f(x)\) contribute to the duplication?
The complete graph of \(y = f(x)\) is given below. In Exercises 29 - 37, use it and Theorem 1.7 to graph the given transformed function.
- \(y = f(x) - 1\)
- \(y = f(x + 1)\)
- \(y = \frac{1}{2} f(x)\)
- \(y = f(2x)\)
- \(y = - f(x)\)
- \(y = f(-x)\)
- \(y = f(x+1) - 1\)
- \(y = 1 - f(x)\)
- \(y = \frac{1}{2}f(x+1)-1\)
The complete graph of \(y = f(x)\) is given below. In Exercises 38 - 49, use it and Theorem 1.7 to graph the given transformed function.
- \(g(x) = f(x) + 3\)
- \(h(x) = f(x) - \frac{1}{2}\)
- \(j(x) = f\left(x - \frac{2}{3}\right)\)
- \(a(x) = f(x + 4)\)
- \(b(x) = f(x + 1) - 1\)
- \(c(x) = \frac{3}{5}f(x)\)
- \(d(x) = -2f(x)\)
- \(k(x) = f\left(\frac{2}{3}x\right)\)
- \(m(x) = -\frac{1}{4}f(3x)\)
- \(n(x) = 4f(x - 3) - 6\)
- \(p(x) = 4 + f(1 - 2x)\)
- \(q(x) = -\frac{1}{2}f\left(\frac{x + 4}{2}\right) - 3\)
The complete graph of \(y = S(x)\) is given below.
The purpose of Exercises 50 - 53 is to graph \(y = \frac{1}{2}S(-x+1) + 1\) by graphing each transformation, one step at a time.
- \(\ y=S_{1}(x)=S(x+1)\)
- \(\ y=S_{2}(x)=S_{1}(-x)=S(-x+1)\)
- \(\ y=S_{3}(x)=\frac{1}{2} S_{2}(x)=\frac{1}{2} S(-x+1)\)
- \(\ y=S_{4}(x)=S_{3}(x)+1=\frac{1}{2} S(-x+1)+1\)
Let \(f(x) = \sqrt{x}\). Find a formula for a function \(g\) whose graph is obtained from \(f\) from the given sequence of transformations.
- (1) shift right 2 units; (2) shift down 3 units
- (1) shift down 3 units; (2) shift right 2 units
- (1) reflect across the \(x\)-axis; (2) shift up 1 unit
- (1) shift up 1 unit; (2) reflect across the \(x\)-axis
- (1) shift left 1 unit; (2) reflect across the \(y\)-axis; (3) shift up 2 units
- (1) reflect across the \(y\)-axis; (2) shift left 1 unit; (3) shift up 2 units
- (1) shift left 3 units; (2) vertical stretch by a factor of 2; (3) shift down 4 units
- (1) shift left 3 units; (2) shift down 4 units; (3) vertical stretch by a factor of 2
- (1) shift right 3 units; (2) horizontal shrink by a factor of 2; (3) shift up 1 unit
- (1) horizontal shrink by a factor of 2; (2) shift right 3 units; (3) shift up 1 unit
- The graph of \(y = f(x) = \sqrt[3]{x}\) is given below on the left and the graph of \(y = g(x)\) is given on the right. Find a formula for \(g\) based on transformations of the graph of \(f\). Check your answer by confirming that the points shown on the graph of \(g\) satisfy the equation \(y = g(x)\).
- For many common functions, the properties of Algebra make a horizontal scaling the same as a vertical scaling by (possibly) a different factor. For example, we stated earlier that \(\sqrt{9x} = 3\sqrt{x}\). With the help of your classmates, find the equivalent vertical scaling produced by the horizontal scalings \(y = (2x)^{3}, \, y = |5x|, \, y = \sqrt[3]{27x} \,\) and \(\, y = \left(\frac{1}{2} x\right)^{2}\). What about \(y = (-2x)^{3}, \, y = |-5x|, \, y = \sqrt[3]{-27x}\,\) and \(\, y = \left(-\frac{1}{2} x\right)^{2}\)?
- We mentioned earlier in the section that, in general, the order in which transformations are applied matters, yet in our first example with two transformations the order did not matter. (You could perform the shift to the left followed by the shift down or you could shift down and then left to achieve the same result.) With the help of your classmates, determine the situations in which order does matter and those in which it does not.
- What happens if you reflect an even function across the \(y\)-axis?
- What happens if you reflect an odd function across the \(y\)-axis?
- What happens if you reflect an even function across the \(x\)-axis?
- What happens if you reflect an odd function across the \(x\)-axis?
- How would you describe symmetry about the origin in terms of reflections?
- As we saw in Example 1.7.5, the viewing window on the graphing calculator affects how we see the transformations done to a graph. Using two different calculators, find viewing windows so that \(f(x) = x^{2}\) on the one calculator looks like \(g(x) = 3x^{2}\) on the other.
1.7.2 Answers
- \((2,0)\)
- \((-1,-3)\)
- \((2,-4)\)
- \((3,-3)\)
- \((2,-9)\)
- \(\left(\frac{2}{3}, -3\right)\)
- \((2,3)\)
- \((-2,-3)\)
- \((5,-2)\)
- \((1,-6)\)
- \((2,13)\)
- \(y = (1,-10)\)
- \(\left(2, -\frac{3}{2}\right)\)
- \(\left(\frac{1}{2}, -12 \right)\)
- \((-1,-7)\)
- \(\left(-\frac{1}{2}, -3\right)\)
- \(\left(\frac{2}{3}, -2 \right)\)
- \((1,1)\)
- \(y = f(x) + 1\)
- \(y = f(x) - 2\)
- \(y = f(x+1)\)
- \(y = f(x - 2)\)
- \(y = 2f(x)\)
- \(y = f(2x)\)
- \(y = 2 - f(x)\)
- \(y = f(2-x)\)
- \(y = 2-f(2-x)\)
- \(y = f(x) - 1\)
- \(y = f(x + 1)\)
- \(y = \frac{1}{2} f(x)\)
- \(y = f(2x)\)
- \(y = - f(x)\)
- \(y = f(-x)\)
- \(y = f(x+1) - 1\)
- \(y = 1 - f(x)\)
- \(y = \frac{1}{2}f(x+1)-1\)
- \(g(x) = f(x) + 3\)
- \(h(x) = f(x) - \frac{1}{2}\)
- \(j(x) = f\left(x - \frac{2}{3}\right)\)
- \(a(x) = f(x + 4)\)
- \(b(x) = f(x + 1) - 1\)
- \(c(x) = \frac{3}{5}f(x)\)
- \(d(x) = -2f(x)\)
- \(k(x) = f\left(\frac{2}{3}x\right)\)
- \(m(x) = -\frac{1}{4}f(3x)\)
- \(n(x) = 4f(x - 3) - 6\)
- \(p(x) = 4 + f(1 - 2x) = f(-2x + 1) + 4\)
- \(q(x) = -\frac{1}{2}f\left(\frac{x + 4}{2}\right) - 3 = -\frac{1}{2}f\left( \frac{1}{2}x + 2 \right) - 3\)
- \(\ y=S_{1}(x)=S(x+1)\)
- \(\ y=S_{2}(x)=S_{1}(-x)=S(-x+1)\)
- \(\ y=S_{3}(x)=\frac{1}{2} S_{2}(x)=\frac{1}{2} S(-x+1)\)
- \(\ y=S_{4}(x)=S_{3}(x)+1=\frac{1}{2} S(-x+1)+1\)
- \(g(x) = \sqrt{x-2} - 3\)
- \(g(x) = \sqrt{x-2} - 3\)
- \(g(x) = -\sqrt{x} + 1\)
- \(g(x) = -(\sqrt{x} + 1) = -\sqrt{x} - 1\)
- \(g(x) = \sqrt{-x+1} + 2\)
- \(g(x) = \sqrt{-(x+1)} + 2 = \sqrt{-x-1} + 2\)
- \(g(x) = 2\sqrt{x+3} - 4\)
- \(g(x) = 2\left(\sqrt{x+3} - 4\right) = 2\sqrt{x+3} - 8\)
- \(g(x) = \sqrt{2x-3} + 1\)
- \(g(x) = \sqrt{2(x-3)} + 1 = \sqrt{2x-6}+1\)
- \(g(x) = -2\sqrt[3]{x + 3} - 1\) or \(g(x) = 2\sqrt[3]{-x - 3} - 1\)
Reference
1 We have spent a lot of time in this text showing you that \(\ f(x + 2)\) and \(\ f(x) + 2\) are, in general, wildly different algebraic animals. We will see momentarily that their geometry is also dramatically different.
2 We shall see in the next example that order is generally important when applying more than one transformation to a graph.
3 We could equally have chosen the convention ‘outputs first’.
4 The expressions \(\ −f(x)\) and \(\ f(−x)\) should look familiar - they are the quantities we used in Section 1.6 to test if a function was even, odd or neither. The interested reader is invited to explore the role of reflections and symmetry of functions. What happens if you reflect an even function across the y-axis? What happens if you reflect an odd function across the y-axis? What about the x-axis?
5 Or divide - it amounts to the same thing.
6 If we had done the reflection first, then \(\ j_{1}(x)=f(-x)\). Following this by a shift left would give us \(\ f(x)=j_{1}(x+3)=f(-(x+3))=f(-x-3)=\sqrt{-x-3}\) which isn’t what we want. However, if we did the reflection first and followed it by a shift to the right 3 units, we would have arrived at the function \(\ j(x)\). We leave it to the reader to verify the details.
7 Also called a ‘vertical stretching’, ‘vertical expansion’ or ‘vertical dilation’ by a factor of 2.
8 Also called ‘vertical shrinking’, ‘vertical compression’ or ‘vertical contraction’ by a factor of 2.
9 Also called ‘horizontal shrinking’, ‘horizontal compression’ or ‘horizontal contraction’ by a factor of 2.
10 Also called ‘horizontal stretching’, ‘horizontal expansion’ or ‘horizontal dilation’ by a factor of 2.
11 You really should do this once in your life.