- Verberg vooruitgang Hide progress Toon vooruitgang Show progress
- Verwijder je antwoorden (op deze pagina) Remove your answers (on this page)
In Section FunctionsandtheirRepresentations, we defined functions as processes. In this section, we seek to reverse, or ‘undo’ those processes. As in real life, we will find that some processes (like putting on socks and shoes) are reversible while some (like baking a cake) are not.
Consider the function \(f(x) = 3x+4\). Starting with a real number input \(x\), we apply two steps in the following sequence: first we multiply the input by \(3\) and, second, we add \(4\) to the result.
To reverse this process, we seek a function \(g\) which will undo each of these steps and take the output from \(f\), \(3x+4\), and return the input \(x\). If we think of the two-step process of first putting on socks then putting on shoes, to reverse the process, we first take off the shoes and then we take off the socks. In much the same way, the function \(g\) should undo each step of \(f\) but in the opposite order. That is, the function \(g\) should first subtract \(4\) from the input \(x\) then divide the result by \(3\). This leads us to the formula \(g(x) = \frac {x-4}{3}\).
Let’s check to see if the function \(g\) does the job. If \(x=5\), then \(f(5) = 3(5)+4 = 15+4 = 19\). Taking the output \(19\) from \(f\), we substitute it into \(g\) to get \(g(19) = \frac {19-4}{3} = \frac {15}{3} = 5\), which is our original input to \(f\). To check that \(g\) does the job for all \(x\) in the domain of \(f\), we take the generic output from \(f\), \(f(x) = 3x+4\), and substitute that into \(g\). That is, we simplify \(g(f(x)) = g(3x+4) = \frac {(3x+4)-4}{3} = \frac {3x}{3} = x\), which is our original input to \(f\). If we carefully examine the arithmetic as we simplify \(g(f(x))\), we actually see \(g\) first ‘undoing’ the addition of \(4\), and then ‘undoing’ the multiplication by \(3\).
Not only does \(g\) undo \(f\), but \(f\) also undoes \(g\). That is, if we take the output from \(g\), \(g(x) = \frac {x-4}{3}\), and substitute that into \(f\), we get \(f(g(x)) = f\left (\frac {x-4}{3}\right ) = 3 \left (\frac {x-4}{3}\right ) + 4 = (x-4) + 4 = x\). Using the language of function composition developed in Section FunctionComposition, the statements \(g(f(x)) = x\) and \(f(g(x)) = x\) can be written as \((g \circ f)(x) = x\) and \((f \circ g)(x) = x\), respectively. Abstractly, we can visualize the relationship between \(f\) and \(g\) in the diagram below.
The main idea to get from the diagram is that \(g\) takes the outputs from \(f\) and returns them to their respective inputs, and conversely, \(f\) takes outputs from \(g\) and returns them to their respective inputs. We now have enough background to state the central definition of the section.
\((g \circ f)(x) = x\) for all \(x\) in the domain of \(f\)
and
then \(f\) and \(g\) are inverses of each other and the functions \(f\) and \(g\) are said to be invertible.
If we abstract one step further, we can express the sentiment in Definition inversefunctiondefn by saying that \(f\) and \(g\) are inverses if and only if \(g \circ f = I_{1}\) and \(f \circ g = I_{2}\) where \(I_{1}\) is the identity function restricted to the domain of \(f\) and \(I_{2}\) is the identity function restricted to the domain of \(g\).
In other words, \(I_{1}(x) = x\) for all \(x\) in the domain of \(f\) and \(I_{2}(x) = x\) for all \(x\) in the domain of \(g\). Using this description of inverses along with the properties of function composition listed in Theorem functioncompprops, we can show that function inverses are unique.
Suppose \(g\) and \(h\) are both inverses of a function \(f\). By Theorem inversefunctionprops, the domain of \(g\) is equal to the domain of \(h\), since both are the range of \(f\). This means the identity function \(I_{2}\) applies both to the domain of \(h\) and the domain of \(g\). Thus \(h = h \circ I_{2} = h \circ (f \circ g) = (h \circ f) \circ g = I_{1} \circ g = g\), as required.
We summarize the important properties of invertible functions in the following theorem. Apart from introducing notation, each of the results below are immediate consequences of the idea that inverse functions map the outputs from a function \(f\) back to their corresponding inputs.
\(f(a) = c\) if and only if \(a = f^{-1}(c)\)
NOTE: In particular, for all \(y\) in the range of \(f\), the solution to \(f(x) = y\) is \(x = f^{-1}(y)\).
\((a,c)\) is on the graph of \(f\) if and only if \((c,a)\) is on the graph of \(f^{-1}\)
NOTE: This means graph of \(y=f^{-1}(x)\) is the reflection of the graph of \(y=f(x)\) across \(y=x\).
The notation \(f^{-1}\) is an unfortunate choice since you’ve been programmed since Elementary Algebra to think of this as \(\frac {1}{f}\). This is most definitely not the case since, for instance, \(f(x) = 3x+4\) has as its inverse \(f^{-1}(x) = \frac {x-4}{3}\), which is certainly different than \(\frac {1}{f(x)} = \frac {1}{3x+4}\).
Why does this confusing notation persist? As we mentioned in Section FunctionComposition, the identity function \(I\) is to function composition what the real number \(1\) is to real number multiplication. The choice of notation \(f^{-1}\) alludes to the property that \(f^{-1} \circ f = I_{1}\) and \(f \circ f^{-1} = I_{2}\), in much the same way as \(3^{-1} \cdot 3 = 1\) and \(3 \cdot 3^{-1} = 1\).
Before we embark on an example, we demonstrate the pertinent parts of Theorem inversefunctionprops to the inverse pair \(f(x) = 3x+4\) and \(g(x) = f^{-1}(x) = \frac {x-4}{3}\). Suppose we wanted to solve \(3x+4 = 7\). Going through the usual machinations, we obtain \(x = 1\). If we view this equation as \(f(x) = 7\), however, then we are looking for the input \(x\) corresponding to the output \(f(x) = 7\). This is exactly the question \(f^{-1}\) was built to answer. In other words, the solution to \(f(x) = 7\) is \(x = f^{-1}(7) =1\). In other words, the formula \(f^{-1}(x)\) encodes all of the algebra required to ‘undo’ what the formula \(f(x)\) does to \(x\). More generally, any time you have ever solved an equation, you have really been working through an inverse problem.
We also note the graphs of \(f(x) = 3x+4\) and \(g(x) = f^{-1}(x) = \frac {x-4}{3}\) are easily seen to be reflections across the line \(y=x\) as seen below. In particular, note that the \(y\)-intercept \((0,4)\) on the graph of \(y = f(x)\) corresponds to the \(x\)-intercept on the graph of \(y = f^{-1}(x)\). Indeed, the point \((0,4)\) on the graph of \(y = f(x)\) can be interpreted as \((0,4) = (0,f(0)) = (f^{-1}(4), 4)\) just as the point \((4,0)\) on the graph of \(y = f^{-1}(x)\) can be interpreted as \((4,0) = (4, f^{-1}(4)) = (f(0), 0)\).
For \(f(x) = \sqrt [3]{x-1} + 2\) and \(g(x) = (x-2)^3+1\):
To verify \(f(x) = \sqrt [3]{x-1} + 2\) and \(g(x) = (x-2)^3+1\) are inverses, we appeal to Definition inversefunctiondefn. First we show and show \((g \circ f)(x) = x\) for all real numbers, \(x\):
\(\begin{array}{rcl} (g \circ f)(x) & = & g(f(x)) \\ & = & g(\sqrt [3]{x-1} + 2) \\ & = & [ (\sqrt [3]{x-1} + 2)-2]^3 + 1 \\ & = & (\sqrt [3]{x-1})^3 + 1 \\ & = & x-1+1 \\ & = & x \, \, \checkmark \\ \end{array}\)
Next, we show \((f \circ g)(x) = x\) for all real numbers, \(x\):
\(\begin{array}{rcl} (f \circ g)(x) & = & f(g(x)) \\ & = & f((x-2)^3+1) \\ & = & \sqrt [3]{[(x-2)^3+1] -1}+2 \\ & = & \sqrt [3]{(x-2)^3} +2\\ & = & x-4+4 \\ & = & x \, \, \checkmark \\ \end{array}\)
Since the root here, \(3\), is odd, Theorem basicradicalpropseqineq gives \((\sqrt [3]{x-1})^3 = x-1\) and \(\sqrt [3]{(x-2)^3} = x-2\).
To show \(f\) and \(g\) are inverses graphically, we graph \(y = f(x)\) and \(y = g(x)\) on the same set of axes and check to see if they are reflections about the line \(y=x\).
The graph of \(y = f(x) = \sqrt [3]{x-1} + 2\) appears below on the left courtesy of Theorem linearrootgraphs in Section RootRadicalFunctions. We graph \(y = g(x) = (x-2)^3+1\) below on the right using Theorem linearmononialgraphs in Section GraphsofPolynomials.
We can immediately see three pairs of corresponding points: \((0,1)\) and \((1,0)\), \((1,2)\) and \((2,1)\), \((2,3)\) and \((3,2)\). When graphed on the same pair of axes below, the two graphs certainly appear to be symmetric about the line \(y=x\), as required.
Since \(f\) and \(g\) are inverses, the solution to \(f(x) = 5\) is \(x = f^{-1}(5) = g(5) = (5-2)^3+1 = 28\). To check, we find \(f(28) = \sqrt [3]{28-1}+2 = \sqrt [3]{27} + 2 = 3+2 = 5\), as required.
Likewise, the solution to \(g(x) = -3\) is \(x = g^{-1}(-3) = f(-3) = \sqrt [3]{(-3)-1} + 2 = 2 - \sqrt [3]{4}\). Once again, to check, we find \(g(2 - \sqrt [3]{4}) = (2 - \sqrt [3]{4}-2)^3 + 1 = (-\sqrt [3]{4})^3 +1 = -4+1 = -3\).
For \(f(t) = \frac {2t}{t+1}\) and \(g(t) = \frac {t}{2-t}\):
We begin as before but note the domain of \(f\) excludes \(t = -1\). Hence, when simplifying \((g \circ f)(t)\), we tacitly assume \(t \neq -1\).
\(\begin{array}{rcl} (g \circ f)(t) & = & g(f(t)) \\ & = & g \left (\frac {2t}{t+1} \right ) \\ & = & \frac {\frac {2t}{t+1} }{2 - \frac {2t}{t+1}} \\ & = & \frac {\frac {2t}{t+1} }{2 - \frac {2t}{t+1}} \cdot \frac {(t+1)}{(t+1)} \\ & = & \frac {2t}{2(t+1) - 2t} \\ & = & \frac {2t}{2t+2-2t} \\ & = & \frac {2t}{2} \\ & = & t \, \, \checkmark \\ \end{array}\)
Next, we note that since the domain of \(g\) excludes \(t=2\), we assume \(t \neq 2\) when simplifying \((f \circ g)(t)\).
\(\begin{array}{rcl} (f \circ g)(t) & = & f(g(t)) \\ & = & f \left ( \frac {t}{2-t} \right ) \\ & = & \frac {2\left ( \frac {t}{2-t} \right )}{\left ( \frac {t}{2-t} \right )+1} \\ & = & \frac {2\left ( \frac {t}{2-t} \right )}{\left ( \frac {t}{2-t} \right )+1}\cdot \frac {(2-t)}{(2-t)} \\ & = & \frac {2t}{t+(1)(2-t)} \\ & = & \frac {2t}{t+2-t)} \\ & = & \frac {2t}{2} \\ & = & t \, \, \checkmark \\ \end{array}\)
We can use the techniques discussed in Sections IntroRational and RationalGraphs to graph \(y=f(t)\) and \(y=g(t)\). We find the graph of \(f\) has a vertical asymptote \(t=-1\) and a horizontal asymptote \(y = 2\) .
Corresponding to the vertical asymptote \(t=-1\) on the graph of \(f\), we find the graph of \(g\) has a horizontal asymptote \(y=-1\). Likewise, the horizontal asymptote \(y=2\) on the graph of \(f\) corresponds to the vertical asymptote \(t=2\) on the graph of \(g\). Both graphs share the intercept \((0,0)\).
Using the desmos interactive below, we can select which graph (the graph of \(f\), the graph of \(g\), or both) to display to check our findings above. Note that when both graphs are displayed, they do appear symmetric about the line \(y = t\).
Don’t let the fact that \(f\) and \(g\) in this case were defined using the independent variable, ‘\(t\)’ instead of ‘\(x\)’ deter you in your efforts to solve \(f(x) = 5\). Remember that, ultimately, the function \(f\) here is the process represented by the formula \(f(t)\), and is the same process (with the same inverse!) regardless of the letter used as the independent variable. Hence, the solution to \(f(x) = 5\) is \(x = f^{-1}(1) = g(5)\). We get \(g(5) = \frac {5}{2-5} = -\frac {5}{3}\).
To check, we find \(f\left (-\frac {5}{3} \right ) = \left (-\frac {10}{3}\right ) / \left (-\frac {2}{3} \right ) = 5\). Similarly, we solve \(g(x) = -3\) by finding \(x = g^{-1}(-3) = f(-3) = \frac {-6}{-2} = 3\). Sure enough, we find \(g(3) = \frac {3}{2-3} = -3\).
We now investigate under what circumstances a function is invertible. As a way to motivate the discussion, we consider \(f(x) = x^2\). A likely candidate for the inverse is the function \(g(x) = \sqrt {x}\). However, \((g\circ f)(x) = g(f(x)) = \sqrt {x^2} = |x|\), which is not equal to \(x\) unless \(x \geq 0\).
For example, when \(x=-2\), \(f(-2)= (-2)^2 = 4\), but \(g(4) = \sqrt {4}=2\). That is, \(g\) failed to return the input \(-2\) from its output \(4\). Instead, \(g\) matches the output \(4\) to a different input, namely \(2\), which satisfies \(f(2) = 4\). Schematically:
We see from the diagram that since both \(f(-2)\) and \(f(2)\) are \(4\), it is impossible to construct a function which takes \(4\) back to both \(x=2\) and \(x=-2\) since, by definition, a function can match \(4\) with only one number.
In general, in order for a function to be invertible, each output can come from only one input. Since, by definition, a function matches up each input to only one output, invertible functions have the property that they match one input to one output and vice-versa. We formalize this concept below.
Note that an equivalent way to state Definition onetoone is that a function is one-to-one if different inputs go to different outputs. That is, if \(a \neq b\), then \(f(a) \neq f(b)\).
Before we solidify the connection between invertible functions and one-to-one functions, we take a moment to see what goes wrong graphically when trying to find the inverse of \(f(x) = x^2\).
Per Theorem inversefunctionprops, the graph of \(y = f^{-1}(x)\), if it exists, is obtained from the graph of \(y=x^2\) by reflecting \(y=x^2\) about the line \(y=x\). Procedurally, this is accomplished by interchanging the \(x\) and \(y\) coordinates of each point on the graph of \(y = x^2\). Algebraically, we are swapping the variables ‘\(x\)’ and ‘\(y\)’ which results in the equation \(x = y^2\). Using desmos, we graph both \(y=x^2\) and \(x = y^2\) below.
We see immediately the graph of \(x = y^2\) fails the Vertical Line Test, Theorem VLT. In particular, the vertical line \(x=4\) intersects the graph at two points, \((4,-2)\) and \((4,2)\) meaning the relation described by \(x = y^2\) matches the \(x\)-value \(4\) with two different \(y\)-values, \(-2\) and \(2\).
Note that the vertical line \(x=4\) and the points \((4,2)\) and \((4, -2)\) on the graph of \(x=y^2\) correspond to the horizontal line \(y=4\) and the points \((2, 4)\) and \((-2,4)\) on the graph of \(y = x^2\). This brings us right back to the concept of one-to-one. The fact that both \((-2,4)\) and \((2,4)\) are on the graph of \(f\) means \(f(-2)=f(2) = 4\). Hence, \(f\) takes different inputs, \(-2\) and \(2\), to the same output, \(4\), so \(f\) is not one-to-one.
Recall the Horizontal Line Test from Exercise HLTExercise in Section FunctionsandtheirRepresentations. Applying that result to the graph of \(f\) we say the graph of \(f\) ‘fails’ the Horizontal Line Test since the horizontal line \(y=4\) intersects the graph of \(y = x^2\) more than once. This means that the equation \(y=x^2\) does not represent \(x\) is not a function of \(y\).
Said differently, the Horizontal Line Test detects when there is at least one \(y\)-value (\(4\)) which is matched to more than one \(x\)-value (\(\pm 2\)). In other words, the Horizontal Line Test can be used to detect whether or not a function is one-to-one.
So, to review, \(f(x) = x^2\) is not invertible, not one-to-one, and its graph fails the Horizontal Line Test. It turns out that these three attributes: being invertible, one-to-one, and having a graph that passes the Horizontal Line Test are mathematically equivalent. That is to say if one if these things is true about a function, then they all are; it also means that, as in this case, if one of these things isn’t true about a function, then none of them are. We summarize this result in the following theorem.
For a function \(f\), either all of the following statements are true or none of them are:
To prove Theorem inversefunctionequivalency, we first suppose \(f\) is invertible. Then there is a function \(g\) so that \(g(f(x)) = x\) for all \(x\) in the domain of \(f\). If \(f(a) = f(b)\), then \(g(f(a)) = g(f(b))\). Since \(g(f(x)) = x\), the equation \(g(f(a)) = g(f(b))\) reduces to \(a = b\). We’ve shown that if \(f(a) = f(b)\), then \(a = b\), proving \(f\) is one-to-one.
Next, assume \(f\) is one-to-one. Suppose a horizontal line \(y=c\) intersects the graph of \(y = f(x)\) at the points \((a,c)\) and \((b,c)\). This means \(f(a) = c\) and \(f(b) = c\) so \(f(a) = f(b)\). Since \(f\) is one-to-one, this means \(a=b\) so the points \((a,c)\) and \((b,c)\) are actually one in the same. This establishes that each horizontal line can intersect the graph of \(f\) at most once, so the graph of \(f\) passes the Horizontal Line Test.
Last, but not least, suppose the graph of \(f\) passes the Horizontal Line Test. Let \(c\) be a real number in the range of \(f\). Then the horizontal line \(y=c\) intersects the graph of \(y=f(x)\) just once, say at the point \((a,c) = (a, f(a))\). Define the mapping \(g\) so that \(g(c) = g(f(a)) = a\). The mapping \(g\) is a function since each horizontal line \(y=c\) where \(c\) is in the range of \(f\) intersects the graph of \(f\) only once. By construction, we have the domain of \(g\) is the range of \(f\) and that for all \(x\) in the domain of \(f\),\(g(f(x)) = x\). We leave it to the reader to show that for all \(x\) in the domain of \(g\), \(f(g(x)) = x\), too.
Hence, we’ve shown: first, if \(f\) invertible, then \(f\) is one-to-one; second, if \(f\) is one-to-one, then the graph of \(f\) passes the Horizontal Line Test; and third, if \(f\) passes the Horizontal Line Test, then \(f\) is invertible. Hence if \(f\) is satisfies any one of these three conditions, we can show \(f\) must satisfy the other two.
We put this result to work in the next example.
To determine whether or not \(f\) is one-to-one analytically, we assume \(f(a) = f(b)\) and work to see if we can deduce \(a = b\). Since we are working with a quadratic function, it is no surprise we encounter a quadratic equation so we rewrite all nonzero terms on one side and factor to find our solutions.
\(\begin{array}{rcl} f(a) & = & f(b) \\ a^2 - 2a+4 & = & b^2 - 2b+4 \\ a^2 - 2a & = & b^2 - 2b \\ a^2 - b^2 - 2a + 2b & = & 0 \\ (a+b)(a-b) - 2(a-b) & = & 0 \\ (a-b)((a+b) -2) & = & 0 \\ a-b = 0 & \text {or} & a+b -2 = 0 \\ a = b & \text {or} & a = 2-b \\ \end{array} \)
We get \(a=b\) as one possibility, but we also get the possibility that \(a=2-b\). This suggests that \(f\) may not be one-to-one. Taking \(b=0\), we get \(a = 0\) or \(a = 2\). Since \(f(0) = 4\) and \(f(2) = 4\), we have two different inputs with the same output, proving \(f\) is neither one-to-one nor invertible.
We note that \(f\) is a quadratic function and we graph \(y=f(x)\) using the techniques presented in Section QuadraticFunctions below.
We see the graph fails the Horizontal Line Test quite often - in particular, crossing the line \(y=4\) at the points \((0,4)\) and \((2,4)\).
We begin with the assumption that \(g(a) = g(b)\) for \(a\), \(b\) in the domain of \(g\) (That is, we assume \(a \neq 1\) and \(b \neq 1\).) Through our work below, we deduce \(a=b\), proving \(g\) is one-to-one.
\(\begin{array}{rcl} g(a) & = & g(b) \\ \frac {2a}{1-a} & = & \frac {2b}{1-b} \\ 2a(1-b) & = & 2b(1-a) \\ 2a - 2ab & = & 2b - 2ba \\ 2a & = & 2b \\ a & = & b \, \, \checkmark \\ \end{array}\)
Graphing \(y=g(t)\) using the procedure outlined in Section RationalGraphs gives a sole axis intercept of \((0,0)\) with asymptotes \(t=1\) and \(y = -2\). The desmos interactive below not only allows us to check our graph, it also allows us to visualize the Horizontal Line Test. Using the slider, we can adjust the horizontal line up and down to see each horizontal line intersects the graph of \(g\) at most once.
Since \(g\) is one-to-one, \(g\) is invertible. Even though we do not have a formula for \(g^{-1}(t)\), we can nevertheless sketch the graph of \(y = g^{-1}(t)\) by reflecting the graph of \(y=g(t)\) across \(y = t\).
Corresponding to the vertical asymptote \(t=1\) on the graph of \(g\), the graph of \(y = g^{-1}(t)\) will have a horizontal asymptote \(y = 1\). Similarly, the horizontal asymptote \(y=-2\) on the graph of \(g\) corresponds to a vertical asymptote \(t = -2\) on the graph of \(g^{-1}\). The point \((0,0)\) remains unchanged when we switch the \(t\) and \(y\) coordinates, so it is on both the graph of \(g\) and \(g^{-1}\). Using desmos, we graph both \(g\) and \(g^{-1}\) and label one pair of corresponding points, \((-2,4)\) on the graph of \(g\) and \((4,-2)\) on the graph of \(g^{-1}\).
To graph \(F\), we plot the points in \(F\) below. We see the horizontal line \(y=1\) crosses the graph more than once. Hence, the graph of \(F\) fails the Horizontal Line Test.
Like the function \(F\) above, the function \(G\) is described as a set of ordered pairs. Before we set about determining whether or not \(G\) is one-to-one, we take a moment to show \(G\) is, in fact, a function. That is, we must show that each real number input to \(G\) is matched to only one output.
We are given \(G = \{ (t^3+1, 2t) \, | \, \text {$t$ is a real number.} \}\). and we know that when represented in this way, each ordered pair is of the form \((\text {input}, \text {output})\). Hence, the inputs to \(G\) are of the form \(t^3+1\) and the outputs from \(G\) are of the form \(2t\). To establish \(G\) is a function, we must show that each input produces only one output. If it should happen that \(a^3+1 = b^3+1\), then we must show \(2a = 2b\). The equation \(a^3+1 = b^3+1\) gives \(a^3=b^3\), or \(a=b\). From this it follows that \(2a=2b\) so \(G\) is a function.
In Example inversefunctiononetooneex, we showed the functions \(G\) and \(g\) are invertible and graphed their inverses. While graphs are perfectly fine representations of functions, we have seen where they aren’t the most accurate. Ideally, we would like to represent \(G^{-1}\) and \(g^{-1}\) in the same manner in which \(G\) and \(g\) are presented to us. The key to doing this is to recall that inverse functions take outputs back to their associated inputs.
Consider \(G = \{ (t^3+1, 2t) \, | \, \text {$t$ is a real number.} \}\). As mentioned in Example inversefunctiononetooneex, the ordered pairs which comprise \(G\) are in the form \((\text {input}, \text {output})\). Hence to find a compatible description for \(G^{-1}\), we simply interchange the expressions in each of the coordinates to obtain \(G^{-1} = \{ (2t, t^3+1) \, | \, \text {$t$ is a real number.} \}\).
Since the function \(g\) was defined in terms of a formula we would like to find a formula representation for \(g^{-1}\). We apply the same logic as above. Here, the input, represented by the independent variable \(t\), and the output, represented by the dependent variable \(y\), are related by the equation \(y = g(t)\). Hence, to exchange inputs and outputs, we interchange the ‘\(t\)’ and ‘\(y\)’ variables. Doing so, we obtain the equation \(t = g(y)\) which is an implicit description for \(g^{-1}\). Solving for \(y\) gives an explicit formula for \(g^{-1}\), namely \(y = g^{-1}(t)\). We demonstrate this technique below.
We claim \(g^{-1}(t) = \frac {t}{t+2}\), and leave the algebraic verification of this to the reader.
We generalize this approach below. As always, we resort to the default ‘\(x\)’ and ‘\(y\)’ labels for the independent and dependent variables, respectively.
We now return to \(f(x) = x^2\). We know that \(f\) is not one-to-one, and thus, is not invertible, but our goal here is to see what way to see what goes wrong algebraically.
If we attempt to follow the algorithm above to find a formula for \(f^{-1}(x)\), we start with the equation \(y=x^2\) and interchange the variables ‘\(x\)’ and ‘\(y\)’ to produce the equation \(x = y^2\). Solving for \(y\) gives \(y = \pm \sqrt {x}\). It’s this ‘\(\pm \)’ which is causing the problem for us since this produces two \(y\)-values for any \(x>0\).
Using the language of Section Relations, the equation \(x = y^2\) implicitly defines two functions, \(g_{1}(x) = \sqrt {x}\) and \(g_{2}(x) = -\sqrt {x}\). Graphically, each of the functions \(g_{1}\) and \(g_{2}\) correspond to the top and bottom halves, respectively, of the graph of \(x = y^2\), as seen below.
Hence, in some sense, we have two partial inverses for \(f(x) = x^2\): \(g_{1}(x) = \sqrt {x}\) returns the positive inputs from \(f\) and \(g_{2}(x) = -\sqrt {x}\) returns the negative inputs to \(f\). In order to view each of these functions as strict inverses, however, we need to split \(f\) into two parts: \(f_{1}(x) = x^2\) for \(x \geq 0\) and \(f_{2}(x) = x^2\) for \(x \leq 0\). Graphically:
We claim that \(f_{1}\) and \(g_{1}\) are an inverse function pair as are \(f_{2}\) and \(g_{2}\). Indeed, we find that for \(g_{1} \circ f_{1}\):
\(\begin{array}{rcl} (g_{1} \circ f_{1})(x) & = & g_{1}(f_{1}(x)) \\ & = & g_{1}(x^2) \\ & = & \sqrt {x^2} \\ & = & |x| = x, \, \text {as $x \geq 0$.} \\ \end{array}\)
Likewise, for \(f_{1} \circ g_{1}\):
\(\begin{array}{rcl} (f_{1} \circ g_{1})(x) & = & f_{1}(g_{1}(x)) \\ & = & f_{1}(\sqrt {x}) \\ & = & (\sqrt {x})^2 \\ & = & x \\ \end{array}\)
Graphically, we see the graphs of \(f_{1}\) and \(g_{1}\) appear to be reflections across the line \(y =x\).
Likewise, for \(g_{2} \circ f_{2}\), we get:
\(\begin{array}{rcl} (g_{2} \circ f_{2})(x) & = & g_{2}(f_{2}(x)) \\ & = & g_{2}(x^2) \\ & = & -\sqrt {x^2} \\ & = & - |x| \\ & = & -(-x) = x, \, \text {as $x \leq 0$.} \end{array}\)
Lastly, we simplify \((f_{2} \circ g_{2})(x)\):
\(\begin{array}{rcl} (f_{2} \circ g_{2})(x) & = & f_{2}(g_{2}(x)) \\ & = & f_{2}(-\sqrt {x}) \\ & = & (-\sqrt {x})^2 \\ & = & (\sqrt {x})^2 \\ & = & x \\ \end{array}\)
Graphically:
Hence, by restricting the domain of \(f\) we are able to produce invertible functions. Said differently, in much the same way the equation \(x = y^2\) implicitly describes a pair of functions, the equation \(y = x^2\) implicitly describes a pair of invertible functions.
Our next example continues the theme of restricting the domain of a function to find inverse functions.
The function \(j\) is a restriction of the function \(f\) from Example inversefunctiononetooneex. Since the domain of \(j\) is restricted to \(x \leq 1\), we are selecting only the ‘left half’ of the parabola. Hence, the graph of \(j\), seen below, passes the Horizontal Line Test and thus \(j\) is invertible.
To find an explicit formula for \(j^{-1}(x)\), we use our standard algorithm.
\( \begin{array}{rclr} y & = & j(x) & \\ y & = & x^2-2x+4, \, \, \, x \leq 1 \\ x & = & y^2 - 2y+4, \, \, \, y \leq 1 & \text {switch $x$ and $y$} \\ 0 & = & y^2 - 2y + 4-x & \\ y & = & \frac {2 \pm \sqrt {(-2)^2-4(1)(4-x)}}{2(1)} & \text {quadratic formula, $c=4-x$} \\ y & = & \frac {2 \pm \sqrt {4x-12}}{2} & \\ y & = & \frac {2 \pm \sqrt {4(x-3)}}{2} & \\ y & = & \frac {2 \pm 2\sqrt {x-3}}{2} & \\ y & = & \frac {2\left (1 \pm \sqrt {x-3}\right )}{2} & \\ y & = & 1 \pm \sqrt {x-3} & \\ y & = & 1 - \sqrt {x-3} & \text {since $y \leq 1$.} \\ \end{array}\)
Hence, \(j^{-1}(x) = 1 - \sqrt {x-3}\).
To check our answer algebraically, we start by simplifying \((j^{-1} \circ j)(x)\). Note the importance of the domain restriction \(x \leq 1\) here.
\(\begin{array}{rcl} \left (j^{-1} \circ j \right )(x) & = & j^{-1}(j(x)) \\ & = & j^{-1}\left (x^2-2x+4\right ), \, \, \, x \leq 1 \\ & = & 1 - \sqrt {\left (x^2-2x+4\right )-3} \\ & = & 1 - \sqrt {x^2-2x+1} \\ & = & 1 - \sqrt {(x-1)^2} \\ & = & 1 - |x-1| \\ & = & 1 - (-(x-1)) \, \, \text {since $x \leq 1$}\\ & = & x \, \, \checkmark \\ \end{array}\)
Next, we verify \(\left (j \circ j^{-1} \right )(x) = x\) for all \(x \geq 3\).
\(\begin{array}{rcl} \left (j \circ j^{-1} \right )(x) & = & j\left (j^{-1}(x)\right ) \\ & = & j\left (1 - \sqrt {x-3}\right ) \\ & = & \left (1 - \sqrt {x-3}\right )^2-2\left (1 - \sqrt {x-3}\right )+4 \\ & = & 1 - 2\sqrt {x-3} + \left (\sqrt {x-3}\right )^2 -2 \\ & & + \, 2\sqrt {x-3}+4 \\ & = & 1+ x-3 -2 +4 \\ & = & x \, \, \checkmark \\ \end{array}\)
We graph both \(j\) and \(j^{-1}\) on the axes below. They appear to be symmetric about the line \(y=x\).
Graphing \(y=k(t) =\sqrt {t+2} - 1\), we see \(k\) is one-to-one, so we proceed to find an formula for \(k^{-1}\).
\(\begin{array}{rclr} y & = & k(t) & \\ y & = & \sqrt {t+2}-1 & \\ t & = & \sqrt {y+2} - 1 & \text {switch $t$ and $y$} \\ t+1 & = & \sqrt {y+2} & \\ (t+1)^2 & = & \left (\sqrt {y+2}\right )^2 & \\ t^2 + 2t + 1 & = & y + 2 & \\ y & = & t^2 + 2t - 1 & \\ \end{array}\)
We have \(k^{-1}(t) = t^2+2t-1\). Based on our experience, we know something isn’t quite right. We determined \(k^{-1}\) is a quadratic function, and we have seen several times in this section that these are not one-to-one unless their domains are suitably restricted.
Theorem inversefunctionprops tells us that the domain of \(k^{-1}\) is the range of \(k\). From the graph of \(k\), we see that the range is \([-1, \infty )\), which means we restrict the domain of \(k^{-1}\) to \(t \geq -1\).
We now check that this works in our compositions. First up, we have \(\left (k^{-1} \circ k \right )(t)\).
\( \begin{array}{rcl} \left (k^{-1} \circ k \right )(t) & = & k^{-1}(k(t)) \\ & = & k^{-1}\left (\sqrt {t+2}-1\right ) \\ & = & \left (\sqrt {t+2}-1\right )^2 + 2\left (\sqrt {t+2}-1\right ) - 1 \\ & = & \left (\sqrt {t+2}\right )^2 - 2\sqrt {t+2} + 1 \\ && + \, 2 \sqrt {t+2} - 2 - 1 \\ & = &t+2 -2 \\ & = & t \, \, \checkmark \\ \end{array}\)
Next, we work on \(k \circ k^{-1}\). Note the importance of the domain restriction, \(t \geq -1\) when simplifying \((k \circ k^{-1})(t)\).
\(\begin{array}{rcl} \left (k \circ k^{-1} \right )(t) & = & k\left ( t^2+2t-1 \right ), \, \, \, t \geq -1 \\ & = & \sqrt {\left (t^2+2t-1\right )+2}-1 \\ & = & \sqrt {t^2+2t+1}-1 \\ & = & \sqrt {(t+1)^2}-1 \\ & = & |t+1| -1 \\ & = & t+1 -1, \, \, \text {since $t \geq -1$} \\ & = & t \, \, \checkmark \\ \end{array}\)
Graphically, everything checks out, provided that we remember the domain restriction on \(k^{-1}\) means we take the right half of the parabola.
Our last example of the section gives an application of inverse functions. Recall in Example PortaBoyDemand in Section LinearFunctions, we modeled the demand for PortaBoy game systems as the price per system, \(p(x)\) as a function of the number of systems sold, \(x\). In the following example, we find \(p^{-1}(x)\) and interpret what it means.
We compute \(\left ( P \circ p^{-1}\right )(x) = P \left (p^{-1}(x)\right ) = P\left (\frac {500-2x}{3}\right ) = -1.5\left (\frac {500-2x}{3}\right )^2+170\left (\frac {500-2x}{3}\right )-150\). After a hefty amount of Elementary Algebra, we obtain \(\left ( P \circ p^{-1}\right )(x) = -\frac {2}{3} x^2 +220x - \frac {40450}{3}\).
To understand what this means, recall that the original profit function \(P\) gave us the profit as a function of the number of systems sold. The function \(p^{-1}\) gives us the number of systems sold as a function of the price. Hence, when we compute \((P \circ p^{-1})(x) = P(p^{-1}(x))\), we input a price per system, \(x\) into the function \(p^{-1}\).
The number \(p^{-1}(x)\) is the number of systems sold at that price. This number is then fed into \(P\) to return the profit obtained by selling \(p^{-1}(x)\) systems. Hence, \(\left (P \circ p^{-1}\right )(x)\) gives us the profit (in dollars) as a function of the price per system, \(x\).
We know from Section QuadraticFunctions that the graph of \(y = \left ( P \circ p^{-1}\right )(x)\) is a parabola opening downwards. The maximum profit is realized at the vertex. Since we are concerned only with the price per system, we need only find the \(x\)-coordinate of the vertex. Identifying \(a = -\frac {2}{3}\) and \(b = 220\), we get, by the Vertex Formula, Equation vertexofquadraticfunctions, \(x = -\frac {b}{2a} = 165\).
Hence, weekly profit is maximized if we set the price at \(\$165\) per system. Comparing this with our answer from Example PortaBoyProfit, there is a slight discrepancy to the tune of \(\$0.50\). We leave it to the reader to balance the books appropriately.