Skip to main content

Course Notes for Calculus I

Section 2.6 Week 2 Activity

Subsection 2.6.1 Composing Functions

Activity 2.6.1.

Compose the functions \(f(x) = \frac{1}{x+4}\) and \(g(x) = x^2 - 4\) in both orders. Determine the domain of both compositions.
Solution.
For the composition \(f \circ g\text{,}\) \(f\) is the outside function and \(g\) is the inside function. I use the function \(g\) to replace the variable in the function \(f\text{.}\)
\begin{equation*} f \circ g(x) = \frac{1}{(x^2-4) + 4} = \frac{1}{x^2} \end{equation*}
In the resulting function, I need to exclude \(x = 0\) to avoid division by zero. The inside function \(g\) has no restrictions, so there are no other domain concerns and the domain is all real numbers except 0.
For the composition \(g \circ f\text{,}\) \(g\) is the outside function and \(f\) is the inside function. I use the function \(f\) to replace the variable in the function \(g\text{.}\)
\begin{equation*} g \circ f(x) = \left( \frac{1}{x+4} \right)^2 - 4 = \frac{1}{(x+4)^2} - 4 \end{equation*}
In the resulting function, I need to exclude \(x = -4\) to avoid division by zero. The inside function \(f\) has the same restriction, \(x \neq -4\text{,}\) so there are no other domain concerns and the domain is all real numbers except \(-4\text{.}\)

Activity 2.6.2.

Compose the functions \(f(x) = e^{x^2-1}\) and \(g(x) = \sqrt{x^3-5}\) in both orders. Determine the domain of both compositions.
Solution.
For the composition \(f \circ g\text{,}\) \(f\) is the outside function and \(g\) is the inside function. I use the function \(g\) to replace the variable in the function \(f\text{.}\)
\begin{equation*} f \circ g(x) = e^{(\sqrt{x^3-5})^2-1} = e^{x^3-5-1} = e^{x^3-6} \end{equation*}
The resulting function has no obvious domain restrictons. However, since I have to do the inside function \(g\) first, I need to respect the domain restrictions of \(g\text{.}\) The argument in the square root needs to be positive, I need \(x^3-5 \geq 0\text{.}\) This inequality simplifies into \(x^3 \geq 5\) and further to \(x \geq \sqrt[3]{5}\text{.}\) Therefore, the domain of the composition is all real numbers \(x \geq \sqrt[3]{5}\text{.}\)
For the composition \(g \circ f\text{,}\) \(g\) is the outside function and \(f\) is the inside function. I use the function \(f\) to replace the variable in the function \(g\text{.}\)
\begin{equation*} g \circ f(x) = \sqrt{(e^{x^2-1})^3 - 5} = \sqrt{e^{3(x^2-1)} - 5} \end{equation*}
I’ve simplified this one step using the laws of exponents. Even though this is still a complicated expression, there aren’t any more reasonable simplifications. The domain restrictions are also complicated here. The inside function \(f\) has no restrictions, so I only have to worry about the final form; unfortunately, that final form isn’t easy to pull apart. The square root is the only restriction, so the term inside the square root must be non-negative. I will work with that inequality a bit. (I’m going to apply a logarithm to get ride of the exponential; this respects the inequality, since the logarithm is an increasing function. Any increasing function preserves inequalities and an decreasing function reverses them.)
\begin{align*} e^{3(x^2-1)} - 5 \amp \geq 0 \\ e^{3(x^2-1)} \amp \geq 5 \\ \ln (e^{3(x^2-1)}) \amp \geq \ln 5 \\ 3(x^2-1) \amp \geq \ln 5 \\ x^2-1 \amp \geq \frac{1}{3} \ln 5 \\ x^2 \amp \geq \frac{1}{3} \ln 5 + 1 \\ x \amp \geq \sqrt{\frac{1}{3} \ln 5 + 1} \end{align*}
After the manipulation of this inequality, I get an understandable domain restriction. This composition is defined for all real numbers \(x \geq \sqrt{\frac{1}{3} \ln 5 + 1}\text{.}\)

Subsection 2.6.2 Recognizing Composition

Activity 2.6.3.

Express the function \(f(x) = \sqrt[4]{x^2-4}\) as a composition of two functions.
Solution.
I want to write \(f = g \circ h\) for some functions \(g\) and \(h\text{.}\) I need to break this into successive processes. The first observation is that the fourth root is the last operations of the function: first I square the variable, then subtract 4, then apply the fourth root. Therefore, the fourth root is a reasonable choice of the outside function, with everything inside the root as the inside function. That gives a decomposition.
\begin{equation*} f = g \circ h \text{ where } g(x) = \sqrt[4]{x} \text{ and } h(x) = x^2-4 \end{equation*}
Note that this isn’t the only possible answer. Often there are many ways to break apart a function as the composition of two (or more) pieces. Here is another possibility.
\begin{equation*} f = g \circ h \text{ where } g(x) = \sqrt[4]{x-4} \text{ and } h(x) = x^2 \end{equation*}

Activity 2.6.4.

Express \(f(x) = \sin (e^{x^2+x+1})\) as the composition of two functions.
Solution.
I want to write \(f = g \circ h\) for some functions \(g\) and \(h\text{.}\) I need to break this into successive processes. If I want the simplest outside function, I can observe that the sine function is the last step, applied to everything else in the function. I could choose the sine function as the outside function, leaving everything else as the inside.
\begin{equation*} f = g \circ h \text{ where } g(x) = \sin (x) \text{ and } h(x) = e^{x^2+x+1} \end{equation*}
There are other possible solutions. Here is one where I would like the inside function to be slightly simpler.
\begin{equation*} f = g \circ h \text{ where } g(x) = \sin (e^x) \text{ and } h(x) = x^2+x+1 \end{equation*}

Subsection 2.6.3 Inverting Functions

Activity 2.6.5.

Invert the function \(f(x) = \ln (\sqrt{x})\) on the domain \(x > 0\text{.}\)
Solution.
The function is increasing on this domain (since it is the composition of two increasing functions), so it is invertible. I follow the steps of the process: set \(y = f(x)\text{,}\) solve for \(y\text{,}\) then switch variables to write the inverse as a function of the conventional independent variable \(x\text{.}\)
\begin{align*} y \amp = \ln (\sqrt{x}) \\ e^y \amp = \sqrt{x} \\ (e^y)^2 \amp = x \\ f^{-1}(x) \amp = e^{2x} \end{align*}
Note that I use the exponential to remove the logarithm: these are inverse operations, so one removes the other.

Activity 2.6.6.

Invert the function \(f(x) = \frac{1}{\ln (x-1)}\) on the domain \(x > 2\text{.}\)
Solution.
When \(x > 2 \text{,}\) the logarithm \(\ln (x-1)\) is positive and growing, so its reciprocal is positive and decreasing. The function is invertible on this domain. I follow the steps of the process: set \(y = f(x)\text{,}\) solve for \(y\text{,}\) then switch variables to write the inverse as a function of the conventional independent variables \(x\text{.}\) (In the step from the first to the second line, we simply take the reciprocal of each side of the equation; when the numerators are not zero, this is a valid operation).
\begin{align*} y \amp = \frac{1}{\ln (x-1)}\\ \frac{1}{y} \amp = \ln (x-1)\\ e^{\frac{1}{y}} \amp = x-1 \\ e^{\frac{1}{y}} + 1 \amp = x \\ f^{-1}(x) \amp = e^{\frac{1}{x}} + 1 \end{align*}

Subsection 2.6.4 Regression

Activity 2.6.7.

Here is a dataset. Plot the points of this dataset on the cartesian plane. Choose a type of function to match the data. (You don’t have give a specific function, just a general class: linear, quadratic, sinusoidal, exponential, etc).
Table 2.6.1. Data Set 1 for Regression
x 0 1 2 3 4 5 6 7 8 9 10 11
y 0.8 -0.4 -2.3 -2.8 -2.9 -2.7 -2.2 -0.7 0.5 5.4 7.1 9.4
Solution.
I plot the points of the data set in the cartesian plane. They drop initially, then rise again. A reasonable choice for this data set is a quadratic function.
Figure 2.6.2. A Quadratic Regression

Activity 2.6.8.

Here is a dataset. Plot the points of this dataset on the cartesian plane. Choose a type of function to match the data. (You don’t have give a specific function, just a general class: linear, quadratic, sinusoidal, exponential, etc).
Table 2.6.3. Data Set 2 for Regression
x 0 1 2 3 4 5 6 7 8 9 10 11
y -2.5 1.2 2.7 2.1 -0.4 -2.8 -2.6 -0.1 2.4 2.7 1.2 -2.4
Solution.
I plot the points of the data set in the cartesian plane. The data rises and falls in what looks like a regular pattern. A sinusoidal function is a good choice for this data.
Figure 2.6.4. A Sinusoidal Regression

Activity 2.6.9.

Here is a dataset. Plot the points of this dataset on the cartesian plane. Choose a type of function to match the data. (You don’t have give a specific function, just a general class: linear, quadratic, sinusoidal, exponential, etc).
Table 2.6.5. 3ata Set 3 for Regression
x 0 1 2 3 4 5 6 7 8 9 10 11
y -0.8 1.7 2.9 2.4 0.6 -0.3 -1.1 0.1 3.2 7.2 20.6 64.4
Solution.
I plot the points of the data set in the cartesian plane. The data rises, fall, and then rises rapidly. Three changes in directions is possible with a cubic, so that is a reasonable choise for this data.
Figure 2.6.6. A Cubic Regression

Activity 2.6.10.

Here is a dataset. Plot the points of this dataset on the cartesian plane. Choose a type of function to match the data. (You don’t have give a specific function, just a general class: linear, quadratic, sinusoidal, exponential, etc).
Table 2.6.7. Data Set 4 for Regression
x 0 1 2 3 4 5 6 7 8 9 10 11
y -2.9 -2.4 -2.3 -2.0 -1.8 -1.7 -1.1 0.9 1.4 1.7 2.2 2.3
Solution.
I plot the points of the data set in the cartesian plane. The data here points to a increasing function and looks mostly linear. I could simply guess a linear function. However, there seems to be a jump between 6 and 7, which makes a single line a bit problematic. It could be a more complicated kind of function which connects the two pieces. It would also be a discontinuous piecewise function: sometimes functions make sudden jumps. I’ve chosen this last option, and show two different lines for the two pieces of the data set.
Figure 2.6.8. A Piecewise Regression

Activity 2.6.11.

Here is a dataset. Plot the points of this dataset on the cartesian plane. Choose a type of function to match the data. (You don’t have give a specific function, just a general class: linear, quadratic, sinusoidal, exponential, etc).
Table 2.6.9. Data Set 5 for Regression
x 0 1 2 3 4 5 6 7 8 9 10 11
y -2.1 -0.4 0.4 0.5 0.9 1.4 1.5 2.0 2.2 2.6 2.8 3.0
Solution.
I plot the points of the data set in the cartesian plane. The data is increasing, but more and more slowly as I go along. I want some kind of function which increases but bends downward. Two comnon functions with this behaviours are the square root and the logarithm. I’ve chose to do with a square root function.
Figure 2.6.10. A Square Root Regression

Subsection 2.6.5 Interpreting Parameters

Activity 2.6.12.

Consider \(C(t) = ae^{-bt}\text{,}\) a model of the concentration of a chemical over time. Give an interpretation for the parameters \(a\) and \(b\) in this model. Assume that the parameters are positive.
Solution.
This is the same form as the exponential form for population growth, but with a negative exponent. I can use our undersatnding of the parameters in population growth to interpret these parameters. When \(t=0\text{,}\) I have \(C(0) = a\text{,}\) so \(a\) the starting value. The coefficient in the exponential was the rate of exponential growth for population. I can likewise conclude that \(b\) is control the rate of decay of concentration here. This is decay because there is a negative exponential.

Activity 2.6.13.

Consider \(p(d) = a + bd\text{,}\) a model of the pressure in a body of water as a function of depth. Give an interpretation for the parameters \(a\) and \(b\) in this model. Assume that the parameters are positive.
Solution.
When the depth is zero, I have \(p(0) = a\text{.}\) I can conclude that \(a\) is the pressure at the surface of the body of water. Since the parameters are positive, this pressure increases linearly as the depth increases. The parameter \(b\) is the slope of this increas, so it measure that rate of which the water gains pressure as depth increases.

Activity 2.6.14.

Consider \(h(t) = a + b\sin(\pi t) - ct\text{,}\) a model of height of an object as a function of time. Give an interpretation for the parameters \(a\text{,}\) \(b\) and \(c\)in this model. Assume that the parameters are positive.
Solution.
When the time is 0, I have \(p(0) = a\text{.}\) Therefore, I can call \(a\) the starting height. The other pieces of the function are sinusoidal oscillation linear decline. The parameter \(b\) is the amplitude of the sinusoidal piece and the parameter \(c\) is the negative slope of the linear decline. The behaviour of the model comes from adding these two behaviours together: so I get some oscillations while generally having a linear decline.

Activity 2.6.15.

Consider \(p(t) = (a-b)t + c\text{,}\) a model of population as a function of time. Give an interpretation for the parameters \(a\text{,}\) \(b\) and \(c\) in this model. Assume that the parameters are positive.
Solution.
When time is 0, I have \(p(0) = c\text{,}\) so \(c\) is the starting value of the population. The population is linear, with slope \(a-b\text{.}\) This will be positive or negative depending on which parameter is larger. Since the parater \(a\) is positive but I subtract the parameter \(b\text{,}\) \(a\) must have a positive effect on the population and \(b\) must have a negative effect. The simpliest way to interpret this is to assume that \(a\) is a birth rate and \(b\) is a death rate. The population will only grow if the rate of briths exceeds the rate of deaths.

Subsection 2.6.6 Conceptual Review Questions

  • What does ‘the behaviour of a function’ mean? What tools exist to describe how functions behave?
  • What is domain and how it is determined?
  • What is boundedness?
  • What is monotonicity?
  • What is composition and how does it differ from pointwise operations?
  • What does it meant to invert a function? What does the inverse of a function do?
  • In a composition, how do the domains of the pieces work together to determine the domain of the composition?
  • How does a function model a set of data? What does it mean to fit a function to a data set?
  • What are the common shapes of functions and how do we recognize them?