A function answers the question “given this input, what comes out?” Often you need the reverse question. Which temperature gave this reading, which time gave this height, which angle gave this sine? An inverse function answers it, but only when every output comes from exactly one input. When that fails, you keep one piece of the function and reverse that piece.
Key terms
One-to-one
Definition A function with domain is one-to-one on if different inputs always give different outputs. Equivalently, for all and in ,
Being one-to-one is a property of the rule together with its stated domain. The same rule can be one-to-one on one domain and not on another.
In plain words No output is shared. If you know the output, there is only one input it could have come from.
Example For on all real numbers, forces , so is one-to-one. The square function is not one-to-one on all real numbers, since with . On it is one-to-one, because two nonnegative numbers with equal squares are equal.
Horizontal line test
Definition A function is one-to-one on its domain exactly when every horizontal line meets its graph, drawn over that domain only, in at most one point. A line that misses the graph is fine, since it only means is not an output. A line that meets the graph twice shows an output attained at two allowed inputs.
In plain words Slide a horizontal line up and down. If it ever cuts the graph twice, two inputs share an output and the function cannot be reversed as it stands.
Example The line meets the parabola at and , so the square function fails on all real numbers. The graph of is increasing everywhere, so no horizontal line meets it twice and the cube function passes. In fact each horizontal line meets it exactly once, since every real number is a cube. A sketch makes the test easy to read, but the algebra of the previous section is what proves it.
Inverse function
Definition Let be one-to-one with domain and range . Its inverse function has domain and range and is defined by
Because is one-to-one, each in comes from exactly one in , so really gives a single output. The domain of the inverse is the range of the original, and the range of the inverse is the domain of the original.
In plain words The inverse takes an output of and returns the unique input that produced it.
Example Take on all real numbers, with range all real numbers. Solving for gives , so
Since , the inverse must send back to , and indeed .
Undoing a function
Definition If is one-to-one with domain and range , then
Conversely, if a function with domain satisfies for every in and for every in , then . Checking both compositions is how you verify a proposed inverse.
In plain words The inverse undoes the steps of in reverse order, like taking off shoes before socks. Doing one and then the other brings you back to where you started.
Example The function multiplies by and then adds . Undoing in reverse order means subtracting and then dividing by , which is the formula found above. Both checks work for every real .
Swapped coordinates
Definition For a one-to-one function , the point lies on the graph of exactly when the point lies on the graph of . Swapping the coordinates of every point also swaps the sets of first and second coordinates, which is why the domain and range trade places.
In plain words Every input and output pair of shows up in the inverse with its two numbers in the other order.
Example The function has domain and range . Solving gives , and because the inverse accepts only outputs of ,
The points , and on the graph of become , and on the graph of the inverse. The condition is part of the answer. Without it the formula would send to , while , not .
Reflection across the line y = x
Definition For , the line is the perpendicular bisector of the segment joining and . Hence the graph of is the mirror image of the graph of across the line . The picture looks like a true mirror image only when both axes use the same scale.
In plain words Fold the plane along the diagonal line . The graph of lands exactly on the graph of its inverse.
Example For the inverse is . The point is on the graph of and is on the graph of the inverse. The segment between them has midpoint , which lies on , and slope
so it crosses the line , of slope , at a right angle.
Restricted domain
Definition If is not one-to-one, choose a subset of its domain on which it is one-to-one, usually an interval where is increasing or decreasing. The restriction of to is a new function with the same rule and domain . It has an inverse whose domain is the set of outputs with in and whose range is . The inverse belongs to the restricted function, not to the original one, and a different choice of gives a different inverse, so the choice must always be stated.
In plain words Keep only a piece of the graph that passes the horizontal line test, then reverse that piece.
Example The shifted square function sends both and to , so it is not one-to-one. Its vertex is , and it is increasing on , where its outputs fill . On that branch , so solving takes the nonnegative root, . The chosen inverse is
with range . As a check, and . On the other branch the inverse would be , which sends to . Applying the chosen inverse to the unrestricted function gives , which equals only when , exactly the chosen domain.
Inverse versus reciprocal
Definition The symbol means the inverse function, not the reciprocal. The reciprocal of is the function
defined where exists and . With an exponent it is written . The two are different functions in general.
In plain words The in means run backwards. It does not mean one over .
Example Let . Its inverse is , while its reciprocal is . At the inverse gives , while the reciprocal gives .
Check yourself
- Find the inverse of and verify it with both compositions.
Show the answer
Solving gives , so . The checks hold for every real .
- The function is restricted to . Find the inverse of this restriction with its domain and range.
Show the answer
On this branch the outputs fill and . From we take , so
with range . As a check, and .
- Is one-to-one on ? If not, give the largest interval of the form on which it is.
Show the answer
It is not, since and . The vertex is at and the function increases from there, so is one-to-one on , and on no longer interval of that form.