- Verberg vooruitgang Hide progress Toon vooruitgang Show progress
- Verwijder je antwoorden (op deze pagina) Remove your answers (on this page)
As we mentioned in Section GraphsofFunctions, in this chapter, we are studying functions in a more abstract and general setting. In this section, we begin our study of what can be considered as the algebra of functions by defining function arithmetic.
Given two real numbers, we have four primary arithmetic operations available to us: addition, subtraction, multiplication, and division (provided we don’t divide by \(0\).) Since the functions we study in this text have ranges which are sets of real numbers, it makes sense we can extend these arithmetic notions to functions.
For example, to add two functions means we add their outputs; to subtract two functions, we subtract their outputs, and so on and so forth. More formally, given two functions \(f\) and \(g\), we define a new function \(f+g\) whose rule is determined by adding the outputs of \(f\) and \(g\). That is \((f+g)(x) = f(x) + g(x)\). While this looks suspiciously like some kind of distributive property, it is nothing of the sort. The ‘\(+\)’ sign in the expression ‘\(f+g\)’ is part of the name of the function we are defining, whereas the plus sign ‘\(+\)’ sign in the expression \(f(x) + g(x)\) represents real number addition: we are adding the output from \(f\), \(f(x)\) with the output from \(g\), \(g(x)\) to determine the output from the sum function, \((f+g)(x)\).
Of course, in order to define \((f+g)(x)\) by the formula \((f+g)(x) = f(x) + g(x)\), both \(f(x)\) and \(g(x)\) need to be defined in the first place; that is, \(x\) must be in the domain of \(f\) and the domain of \(g\). You’ll recall this means \(x\) must be in the intersection of the domains of \(f\) and \(g\). We define the following.
The sum of \(f\) and \(g\), denoted \(f+g\), is the function defined by the formula
The difference of \(f\) and \(g\), denoted \(f-g\), is the function defined by the formula
The product of \(f\) and \(g\), denoted \(fg\), is the function defined by the formula
The quotient of \(f\) and \(g\), denoted \(\frac {f}{g}\), is the function defined by the formula
We put these definitions to work for us in the next example.
\(s\) whose graph is given below:
Find the domain of each of the following functions:
Find expressions for the functions below. State the domain for each.
By definition, \((fg)(x) = f(x)g(x)\). We are given \(f(x) = 6x^2-2x\) and \(g(t) = 3 - \frac {1}{t}\) so \(g(x) = 3 - \frac {1}{x}\). Hence,
To find the domain of \(fg\), we note the domain of \(f\) is all real numbers, \((-\infty , \infty )\) whereas the domain of \(g\) is restricted to \(\{ t \in \mathbb {R} \, | \, t > 0 \} = (0, \infty )\). Hence, the domain of \(fg\) is likewise restricted to \((0, \infty )\). Note if we relied solely on the simplified formula for \((fg)(x) = 18x^2 - 12x + 2\), we would have obtained the incorrect answer for the domains of \(fg\).
To find an expression for \(\left (\frac {g}{f}\right )(t) = \frac {f(t)}{g(t)}\) we first note \(f(t) = 6t^2-2t\) and \(g(t) = 3 - \frac {1}{t}\). Hence:
| \(\left ( \frac {g}{f}\right )(t)\) | \(=\) | \(\frac {g(t)}{f(t)} \) | |
| = | \(\frac {3-\frac {1}{t}\vphantom {\left (\frac {1}{t}\right )}}{6t^2 - 2t}\) = \(\frac {3-\frac {1}{t}\vphantom {\left (\frac {1}{t}\right )}}{6t^2 - 2t} \cdot \frac {t}{t}\) | simplify compound fractions | |
| = | \(\frac {\left (3-\frac {1}{t}\right ) t}{\left (6t^2 - 2t\right )t}\) = \(\frac {3t-1}{\left (6t^2 - 2t\right )t}\) | ||
| = | \(\frac {3t-1}{2t^2(3t-1)}\) = \(\frac {\cancelto {1}{(3t-1)}}{2t^2\cancel {(3t-1)}}\) | factor and cancel | |
| = | \(\frac {1}{2t^2}\) |
Hence, \(\left (\frac {g}{f} \right )(t) = \frac {1}{2t^2} = \frac {1}{2} t^{-2}\). To find the domain of \(\frac {g}{f}\), a real number must be both in the domain of \(g\), \((0, \infty )\), and the domain of \(f\), \((-\infty , \infty )\) so we start with the set \((0, \infty )\). Additionally, we require \(f(t) \neq 0\). Solving \(f(t) = 0\) amounts to solving \(6t^2-2t = 0\) or \(2t(3t-1) = 0\). We find \(t = 0\) or \(t = \frac {1}{3}\) which means we need to exclude these values from the domain. Hence, our final answer for the domain of \(\frac {g}{f}\) is \(\left (0, \frac {1}{3} \right ) \cup \left (\frac {1}{3}, \infty \right )\). Note that, once again, using the simplified formula for \(\left (\frac {g}{f}\right )(t)\) to determine the domain of \(\frac {g}{f}\), would have produced erroneous results.
A few remarks are in order. First, in number funcarithfindvaluesex parts threefunctionsfirstex through threefunctionslastex, we first encountered combinations of three functions despite Definition functionarithmeticdefn only addressing combinations of two functions at a time. It turns out that function arithmetic inherits many of the same properties of real number arithmetic. For example, we showed above that \(((s+g)+h)(3) = (s+(g+h))(3)\). In general, given any three functions \(f\), \(g\), and \(h\), \((f+g)+h = f +(g+h)\) that is, function addition is assocative. To see this, choose an element \(x\) common to the domains of \(f\), \(g\), and \(h\). Then
The key step to the argument is that \((f(x)+g(x))+h(x) = f(x) + (g(x)+h(x))\) which is true courtesy of the associative property of real number addition. And just like with real number addition, because function addition is associative, we may write \(f+g+h\) instead of \((f+g)+h\) or \(f+(g+h)\) even though, when it comes down to computations, we can only add two things together at a time.
For completeness, we summarize the properties of function arithmetic in the theorem below. The proofs of the properties all follow along the same lines as the proof of the associative property and are left to the reader. We investigate some additional properties in the exercises.
Additive Inverse: The function \(F(x) = -f(x)\) for all \(x\) in the domain of \(f\) satisfies:
Multiplicative Inverse: If \(f(x) \neq 0\) for all \(x\) in the domain of \(f\), then \(F(x) = \frac {1}{f(x)}\) satisfies:
In the next example, we decompose given functions into sums, differences, products and/or quotients of other functions. Note that there are infinitely many different ways to do this, including some trivial ones. For example, suppose we were instructed to decompose \(f(x) = x+2\) into a sum or difference of functions. We could write \(f = g+h\) where \(g(x) = x\) and \(h(x) = 2\) or we could choose \(g(x) = 2x+3\) and \(h(x) = -x-1\). More simply, we could write \(f = g+h\) where \(g(x) = x+2\) and \(h(x) = 0\). We’ll call this last decomposition a ‘trivial’ decomposition. Likewise, if we ask for a decomposition of \(f(x) = 2x\) as a product, a nontrivial solution would be \(f = gh\) where \(g(x) = 2\) and \(h(x) = x\) whereas a trivial solution would be \(g(x) = 2x\) and \(h(x) = 1\). In general, non-trivial solutions to decomposition problems avoid using the additive identity, \(0\), for sums and differences and the multiplicative identity, \(1\), for products and quotients.
For \(f(x) = x^2 - 2x\), find functions \(g\), \(h\) and \(k\) to decompose \(f\) nontrivially as:
For \(F(t) = \frac {2t+1}{\sqrt {t^2-1}}\), find functions \(G\), \(H\) and \(K\) to decompost \(F\) nontrivially as:
Next, we are asked to find functions \(G\) and \(H\) so \(F (t) = (GH)(t) = G(t) H(t)\). This means we need to rewrite the expression for \(F(t)\) as a product. One way to do this is to convert radical notation to exponent notation:
To express \(F\) as a sum of functions \(G\) and \(H\), we could rewrite
Last, but not least, to write \(F = \frac {G+H}{K}\), we require \(F(t) =\left (\frac {G+H}{K}\right )(t) = \frac {(G+H)(t)}{K(t)} = \frac {G(t)+H(t)}{K(t)}\). Identifying \(G(t) = 2t\), \(H(t) = 1\), and \(K(t) = \sqrt {t^2-1}\), we get
Recall the average rate of change of a function over the interval \([a,b]\) is the slope of the line connecting the two points \((a, f(a))\) and \((b, f(b))\) and is given by
For the purposes of this section, consider a function \(f\) defined over an interval containing \(x\) and \(x+\Delta x\) where \(\Delta x \neq 0\). The average rate of change of \(f\) over the interval \([x,x+\Delta x]\) is thus given by the formula:
Our aim in this section is to develop formulas which relate the rate of change of arithmetic combinations of functions to the rates of change of the component functions. Our first step is to study the difference operator ‘\(\Delta \)’ and how it works with the standard arithmetic operations.
In general, if \(u\) is some quantity which assumes two values in a particular order, say \(u_{1}\) (the ‘first’ or ‘initial’ value) and \(u_{2}\) (the ‘second’ or ‘final’ value), then \(\Delta u = u_{2} - u_{1}\). For example, if \(u\) represents the temperature of an object before (\(u_{1}\)) heat is applied and after (\(u_{2}\)) heat is applied, \(\Delta u = u_{2} - u_{1}\) represents the increase in temperature of the object.
In the context of functions and rates of change, \(u\) is the function \(f\) defined on the interval \([x, x + \Delta x]\) with \(u_{1} = f(x)\) and \(u_{2} = f(x+\Delta x)\). Here, \(\Delta u = u_{2} - u_{1} = f(x+\Delta x) - f(x) = \Delta [f(x)]\).
Suppose we have two quantities, \(u\) and \(v\) with \(\Delta u = u_{2} - u_{1}\) and \(\Delta v = v_{2} - v_{1}\). What do we mean by \(\Delta [u+v]\)? The initial value of the sum \(u+v\) would be the sum of the initial values \(u_{1} + v_{1}\). Likewise, the final value of the sum would be the sum of the final values \(u_{2} + v_{2}\). Hence:
A similar calculation gives \(\Delta [u - v] = \Delta u - \Delta v\).
Let’s turn our attention to products. We have \(\Delta [uv] = u_{2} \, v_{2} - u_{1} \, v_{1}\). We’d like to express \(\Delta [uv]\) in terms of \(\Delta u\) and \(\Delta v\) and there seems to be no way obvious way to do that. We take to some geometric reasoning for inspiration. Let’s assume the all the quantities we’re working with are positive.
We imagine the product \(u_{1} \, v_{1}\) as being the area of a rectangle with width \(u_{1}\) and length \(v_{1}\). Likewise, the product \(u_{2} \, v_{2}\) is the area of a (larger) rectangle with width \(u_{2}\) and length \(v_{2}\).
From \(\Delta u = u_{2} - u_{1}\), we get \(u_{2} = u_{1} + \Delta u\) and, likewise, \(v_{2} = v_{1} + \Delta v\). Doing so allows us to decompose the larger rectangle into four smaller rectangles.
Using this schematic, we see the area \(u_{2} \, v_{2}\) is the sum of the areas of four smaller rectangles:
Hence, \(\Delta [uv] = u_{2} \, v_{2} - u_{1} \, v_{1} = v_{1} \, \Delta u + u_{1} \, \Delta v + \Delta u \, \Delta v\).
To prove this formula holds in general, we can substitute \(u_{2} = u_{1} + \Delta u\) and \(v_{2} = v_{1} + \Delta v\) into \(\Delta [uv] = u_{2} \, v_{2} - u_{1} \, v_{1}\) and simplify. We leave the details to the reader.
Next, we turn our attention to quotients. We begin with: \(\Delta \left [ \frac {u}{v} \right ] = \frac {u_{2}}{v_{2}} - \frac {u_{1}}{v_{1}}\).
Instead of appealing to geometric reasoning here, we take a cue from the previous discussion and substitute \(u_{2} = u_{1} + \Delta u\) and \(v_{2} = v_{1} + \Delta v\) and set about getting a common denominator:
We summarize these results in the following theorem.
The Product Rule for Change: \(\Delta [uv] = v_{1} \, \Delta u + u_{1} \, \Delta v+ \Delta u \, \Delta v\)
You’ll note we’ve called out a special case for the Product Rule, the Constant Multiple Rule. If one of the factors is a constant, \(c\), then \(\Delta c = 0\) (since constants don’t change.)
In the following example, we use the Quotient Rule for Change to help approximate the propagated error when using measured quantities (with associated uncertainties) in calculations.
Since every measurement in the lab has an associated uncertainty, she notes the pipet she used to measure the volume has an uncertainty of \(\pm 0.125\) mL and the balance she used to mass the substance has an uncertainty of \(\pm 0.01\) g. This means the actual volume measurement can be anywhere from as low as \(5 - 0.125 = 4.875\) mL and as high as \(5 + 0.125 = 5.125\) mL. Likewise, the actual mass of the substance can be anywhere from \(68.2 - 0.01 = 68.19\) g to \(68.2+ 0.01 = 68.21\)g. Our goal is to help estimate the associated uncertainty for the density, \(\rho \).
In this scenario, we have two quantities, the volume, \(V\) and the mass, \(m\). We’ll take \(V_{1}\) and \(m_{1}\) to be the measured values of volume and mass, respectively, and use the uncertainties in each of the respective measurements as \(\Delta V\) and \(\Delta m\). Since \(\Delta \rho = \Delta \left [ \frac {m}{V}\right ]\), using the Quotient Rule from Theorem 2 gives:
Substituting \(V_{1} = 5\) mL, \(m_{1} = 68.2\) g, \(\Delta V = \pm 0.125\) mL and \(\Delta m = \pm 0.01\) g gives:
Since we have no idea the exact value of each uncertainty, we need to make a judgement call as to which of the sign values, ‘\(\pm \)’ , to use. To get the largest (most conservative) answer for \(\Delta \rho \), we select the \(\pm \) which generate the largest numerator and smallest denominator:
Hence, \(\frac {\Delta \rho }{\rho } \approx \frac {0.3517 \, \frac {\text {g}}{\text {mL}}}{13.64 \, \frac {\text {g}}{\text {mL}}} \approx 0.0258 = 2.58 \%\).
We may interpret this as the uncertainties in the measurements for mass and volume in this situation could produce up to a \(2.58 \%\) error in the calculated density.
In order to establish formulas for the average rate of change for functions, we substitute \(f(x)\) for \(u_{1}\) and \(g(x)\) for \(v_{1}\) and divide each of the expressions in Theorem 2 by \(\Delta x\). For example, if we to find an expression for the average rate of change of \(fg\) in terms of \(f\), \(g\), and their respective average rates of change:
Note that with the last term, we may associate the ‘\(\Delta x\)’ with either of the factors in the numerator:
Either way, we’ve managed to express the average rate of change of the function \(fg\) in terms of the changes and rates of change of \(f\) and \(g\).
In the result below, we abbreviate the average rate of change as ‘ARoC’ for convenience.
The Product Rule for ARoC:
The Quotient Rule for ARoC:
Our final example revisits the scenario in Exercise ?? in Section ??.
We find \(\text {ARoC}[C(x)] = \frac {C(71) - C(70)}{71-70} = \frac {4277.83 - 4240}{1} = 37.83\). This means that as we move from producing \(70\) to \(71\) PortaBoy systems the cost will increase by \(\$ 37.83\) per system.
For revenue, we find \(\text {ARoC}[R(x)] = \frac {R(71) - R(70)}{71-70} = \frac {10188.5 - 10150}{1} = 38.5\). This means that as we move from selling \(70\) to \(71\) PortaBoy systems, the revenue generated will increase by \(\$ 38.5\) per system.
Since \(P(x) = R(x) - C(x)\), the Difference Rule of Theorem 3 gives \(\text {ARoC}[P(x)] = \text {ARoC}[R(x)] - \text {ARoC}[C(x)]\). In this case, we’d get \(\text {ARoC}[P(x)] = 38.5 - 37.83 = 0.67\). This means as we move from producing and selling \(70\) to \(71\) PortaBoy systems, the profit generated will increase by just \(67\) cents per system. At this point, the increase in revenue is nearly balanced out by the increase in cost. Since costs typically continue to rise as the number of items is produced while the revenue falls as we try to sell more items, we are likely near a maximum point with the profit. A quick check of the graph on desmos confirms our suspicions.
Note that in Example 4, since \(\Delta x = 1\), the average rate of change for the cost moving from producing \(70\) to \(71\) systems, \( \frac {C(71) - C(70)}{71-70}\) is the same numerical value as the additional cost incurred by producing the \(71\)st system, \(C(71) - C(70)\). The same goes for the revenue and profit calculations. This is the concept of marginal analysis is studied at length in Economics and Business Calculus classes. For us, it’s time for some Exercises.