Quarry School

Checking that two functions are inverses — quick review

In plain words

Think of a round trip.

Rule

Two functions f and g are inverses of each other exactly when both of these are true: f(g(x)) = x for every input x that g accepts, and g(f(x)) = x for every input x that f accepts. When both hold, g is f−1 and f is g−1. If either one fails, even for a single input, they are not inverses.

Step

  1. Write down both rules, f(x) and g(x), side by side.

  2. First order, f(g(x)): copy the rule for f, but wherever it has x, write an empty pair of parentheses. Then put the whole formula for g(x) inside the parentheses.

  3. Simplify. The result must be exactly x. Not x + 2, not 3x, not −x.

  4. Second order, g(f(x)): copy the rule for g with empty parentheses in place of x, and put the whole formula for f(x) inside.

  5. Simplify. Again the result must be exactly x.

  6. Decide. If both orders gave x, for every input the inner function accepts, f and g are inverses. If either one gave anything else, they are not, and you can stop at the first failure.

  7. Spot check with one number: pick a number f accepts, run it through f and then g, and confirm it comes back. Then pick a number g accepts and run it through g and then f.

Question

Are f(x) = 3x − 5 and g(x) = x+53 inverses of each other? In plain words: if you run any number through one of them and then through the other, in either order, do you always get that number back?

Answer

f(g(x)) = x
g(f(x)) = x
Yes, f and g are inverses of each other, so g = f−1.

Trap

Stopping after one order. Getting f(g(x)) = x feels like the finish, but it is half of the test. With f(x) = x2 and g(x) = x, the first order gives (x)2 = x and passes, while the second order gives g(f(−3)) = 9 = 3, which is not −3. Always write both lines, f(g(x)) and g(f(x)), before you answer yes.

Strategy

  1. Quick screen: pick one number a that f accepts, find f(a), then put that result into g. If you do not get a back, stop: they are not inverses.

  2. Write f(g(x)): the rule for f with the whole of g(x), in parentheses, in place of x. Simplify.

  3. If the result is not exactly x, stop: they are not inverses.

  4. Write g(f(x)): the rule for g with the whole of f(x), in parentheses, in place of x. Simplify.

  5. If this result is also exactly x for every input f accepts, f and g are inverses. If not, they are not, even though the first order passed.

  6. Check your algebra with a number in both orders.

Term

inverse function

Definition

A function that undoes another one. It takes each output of the first function back to the input it came from.