Skip to main content

Section 5.6 Graphical Transformations and Function Families

In this section we discuss transformations of functions built out of the basic operations of arithmetic, applied to the inputs and/or outputs of the function. Such transformations are called graphical transformations because they can be visualized as moving the graph of a parent function. The idea of graphical transformations brings together the concept of functions, as sequential processes applied to the inputs to yield the output, together with the geometric understanding of arithmetic presented in Chapter 1.

Subsection 5.6.1 Basic Graphical Transformations

Graphical transformations have two fundamental types: inside transformations andoutside transformations. An inside transformation is some sequence of operations applied to the input before the function is evaluated, whereas an outside transformation is a sequence of operations applied after the function. For these transformations to have graphical meaning, we restrict ourselves to the following operations, applied to the input and/or output of a function \(y=f(x)\) (\(y=f(x)\) will be called the parent function:

  • We may add or subtract a positive constant \(a\) to/from \(x\text{,}\) before \(f\) is applied. Then we have a new function \(y = f(x+a)\) or \(y=f(x-a)\text{.}\)

  • We may multiply \(x\) by a constant \(k\text{,}\) before \(f\) is applied. Then we have a new function \(y = f(kx)\text{.}\)

  • We may add or subtract a positive constant \(a\) to/from \(f(x)\text{,}\) after evaluation. Then we have a new function \(y = f(x)+a\) or \(y=f(x)-a\text{.}\)

  • We may multiply \(f(x)\) by a constant \(k\text{,}\) after evaluation. Then we have a new function \(y = kf(x)\text{.}\)

In this list, the first two transformations are our basic inside transformations, the last two are our basic outside transformations.

Because outside transformations are easier to explain, we will start with them. Consider a generic function \(y = f(x)\text{,}\) whose graph is shown in the Desmos element below (Don't worry about what \(f(x)\) is; it was just made to give a random graph. You can modify it if you want.). By varying \(a\) with the slider, describe how the graph changes under the transformation \(f(x)\mapsto f(x)+a\text{.}\) The answer to why it works the way it does follows.

Textbook Description. Effect of \(f(x)\mapsto f(x)+a\)

If we build a new function \(y = f(x) + a\text{,}\) where \(a\) is a positive number, each output is increased by \(a\text{.}\) Hence, because of addition being represented as upward motion, the graph is shifted up by \(a\) units. Likewise, if the new function is \(y = f(x)-a\text{,}\) the graph is shifted down by \(a\) units (remember, we assumed \(a\) was positive).

Let \(f(x) = 3(0.5)^x\text{.}\) What is the range of \(f\text{?}\) What is the range of \(f(x) + a\) when \(a\) is any number (not necessarily just positive)? Explain. (You may us Desmos for this.)

Now we will move on to the effect of multiplication on the outside of a function. In the next Desmos graph, vary the value of \(k\) in \(y=kf(x)\) and describe the effect of the transformation of \(f(x)\mapsto kf(x)\) in your own words. You will probably need to give different descriptions for different values of \(k\text{.}\)

Textbook Description. Effect of \(f(x)\mapsto kf(x)\)

Suppose our parent function is \(y=f(x)\) and \(k>1\text{,}\) then \(y = kf(x)\) has a graph that is that of \(f\text{,}\) except stretched away from the \(x\)-axis by a factor of \(k\text{.}\) This is due to the geometric representation of multiplication by numbers greater than one being represented as a stretch away from zero. Likewise, if \(0<k<1\text{,}\) then the graph is compressed vertically by a factor of \(k\text{.}\) If \(k\) is negative, then the graph is first reflected across the \(x\)-axis, then stretched or compressed by the magnitude of \(k\text{.}\) This is due to our representation of multiplication by negative numbers as reflection, followed by a stretch or compression.

Suppose \(f\) has a horizontal intercept at \(x=r\text{.}\) Symbolically, this means \(f(r) = 0\text{.}\) What happens to the location of this intercept when the function is transformed into \(kf(x)\text{?}\) Explain both graphically and symbolically.

Describe what happens to the \(y\)-intercept of a function under the action of each of the basic outside transformations.

Now we will investigate and describe the effect of inside transformations. First, consider adding a positive number \(h\) to \(x\text{,}\) before \(f\) is applied. This is the transformation \(f(x)\mapsto f(x+h)\text{.}\) Again, investigate this transformation in the Desmos element and describe it in your own words, then read the textbook description.

Textbook Description. Effect of \(f(x)\mapsto f(x+h)\)

Because \(h\) is added to \(x\) before \(f\) is applied, the output of \(f(x+h)\text{,}\) for any given \(x\text{,}\) will be equal to the output of \(f(x)\) at a point \(h\) units to the right of \(x\text{.}\) Hence, we have the following:
  • The graph of \(f(x+h)\) is the graph of \(f(x)\text{,}\) except shifted \(h\) units to the left.

  • Likewise, the graph of \(f(x-h)\) is that of \(f(x)\text{,}\) except shifted to the right by \(h\) units.

This may seem counterintuitive at first, because adding should move things to the right. However, finding an \(x\)-value for a given \(y\)-value will involve solving for \(x\text{,}\) which means the last step we will do is subtract, i.e. move to the left. For instance, consider the following example:

Let \(f(x) = \sqrt{x-3} + 5\text{.}\) One simple point on the graph of this function is \((4,6)\text{,}\) because \(f(4) = \sqrt{4-3} + 5 = 6\text{.}\) Now let's consider the new function \(g(x) = f(x+2) = \sqrt{(x+2)-3} + 5\text{.}\) To find the transformed version of \((4,6)\) on the graph of \(g\text{,}\) we must solve:

\begin{equation*} \begin{aligned} \sqrt{(x+2) - 3} + 5 & = & 6\\ & \updownarrow & \\ (x+2) - 3 & = & 1\\ & \updownarrow & \\ (x+2) & = & 4\\ & \updownarrow & \\ x = 2.\end{aligned} \end{equation*}

Thus the transformed point is \((2,6)\text{,}\) which is two units to the left of \((4,6)\text{.}\)

Let \(f(x) = \frac{1}{(x+4)(x-5)}\text{.}\) What is the domain of \(f(x)\text{?}\) What is the domain of \(f(x-h)\text{,}\) where \(h\) is a real number?

Finally, we consider multiplying \(x\) by some number \(k\) before applying the parent function \(f\text{.}\) Explore the effect of the transformation \(f(x)\mapsto f(kx)\) with the following Desmos graph, then read the text description.

Textbook Description. Effect of \(f(x)\mapsto f(kx)\)

Suppose \(f\) is a parent function, and we want to see the effect of multiplying \(x\) by some constant \(k\text{,}\) before \(f\) is applied. We have the following:

  • If \(k>1\text{,}\) then for any given \(x\text{,}\) the output of \(f(kx)\) will be that of \(f(x)\) at a point that is a factor of \(k\) further away from the \(y\)-axis. Thus, when \(k>1\text{,}\) the graph of \(f(kx)\) is the graph of \(f(x)\text{,}\) except compressed by a factor of \(\frac{1}{k}\) toward the \(y\)-axis.

  • Likewise, the graph of \(f(kx)\) is that of \(f(x)\text{,}\) except stretched away from the \(y\)-axis by a factor of \(\frac{1}{k}\) when \(0<k<1\) (so \(\frac{1}{k} > 1\)).

  • If \(k\) is negative, the graph of \(f(kx)\) is first reflected over the \(y\)-axis, then compressed or stretched according to the absolute value of \(k\text{.}\)

Suppose \((2,3)\) is on the graph of \(y=f(x)\text{,}\) that is \(f(2) = 3\text{.}\) What point is on the graph of \(y = f(-2x) + 1\text{?}\) Explain both graphically and symbolically.

Subsection 5.6.2 Function Families and Graphical Transformations

Some of our important forms for certain function families may be thought of as graphical transformations of some building block members of the given family.

Consider the basic linear function with slope \(m\text{,}\) \(y = f(x) = mx\text{.}\) The \(y\)-intercept of this function is at \((0,0)\text{.}\) In order to obtain a new linear function whose graph passes through the point \((x_0,y_0)\text{,}\) we can perform a horizontal shift to the right by \(x_0\) units and a vertical shift up by \(y_0\) units to obtain

\begin{equation*} y = f(x-x_0) + y_0 = m(x-x_0) + y_0. \end{equation*}

This is simply the point-slope form for a line with slope \(m\) passing through the point \((x_0,y_0)\text{.}\)

Consider a basic quadratic function \(f(x) = ax^2\text{,}\) where \(a\) is some given number. The vertex of its graph is at \((0,0)\text{.}\) In order to have the vertex occur at \((h,k)\text{,}\) we simply shift it to get

\begin{equation*} y = f(x-h)+k = a(x-h)^2 + k. \end{equation*}

This is the vertex form of a quadratic.

Use factored form to find the formula for a quadratic function \(f(x)\) whose \(x\)-intercepts are at \((1,0)\) and \((4,0)\text{,}\) and whose \(y\)-intercept is at \((0,7)\text{.}\) What does the parameter \(a\) (which you must solve for) do graphically?

In building an exponential function, \(Q = f(t)\text{,}\) with an initial value of five that grows by \(3\%\) for each ten unit increase in \(t\text{,}\) we find

\begin{equation*} Q = f(t) = 5(1.03)^{t/10}. \end{equation*}
Explain how this function can be built using two graphical transformations of \(g(t) = (1.03)^t\text{.}\)