Quarry School

Finding the inverse of a formula by swapping and solving — quick review

In plain words

Think of wrapping a gift.

Rule

For a one-to-one function f: write y = f(x), swap x and y to get x = f(y), solve for y, and name the result f−1(x). If solving produces ±, the domain of f picks the sign, because the outputs of f−1 are the inputs of f. The domain of f−1 is the range of f.

Step

  1. Make sure f is a one-to-one function on its domain. Use the horizontal line test, or use the restricted domain you are given. If two inputs share an output, stop: there is no inverse function yet.

  2. Write y in place of f(x). If the function comes with a domain condition such as x ≥ 0, write it beside the equation.

  3. Swap the letters. Every x becomes y and every y becomes x, in the equation and in the domain condition. So x ≥ 0 becomes y ≥ 0.

  4. Solve the swapped equation for y. One y: undo the steps in reverse order. Two y's in a fraction: clear the fraction, gather the y terms on one side, factor y out, divide. A squared y: take the square root of both sides and write ±.

  5. If ± appeared, keep the one sign that fits the condition on y.

  6. Write f−1(x) = your result, and state its domain, which is the range of f.

  7. Check. Send one number through f, then send the result through f−1. You should land on the number you started with.

Strategy

  1. Confirm that f is a one-to-one function on its domain.

  2. Write y = f(x), with the domain condition beside it if there is one.

  3. Swap x and y everywhere, in the domain condition too.

  4. Solve for y, using the branch of the map below that fits the formula.

  5. If ± appeared, keep the sign that fits the condition on y.

  6. Write f−1(x) = the result. Its domain is the range of f.

  7. Check with a number: through f, then through f−1, back to the start. For full proof, compose both ways and get x each time.

Question

Find f−1(x) for f(x) = x2 + 5. In plain words: f halves its input, then adds 5. Find the rule that takes each output back to its input.

Answer

f−1(x)=2x−10

Trap

The most common mistake comes with the square root. After x = y2, people write y = x out of habit, or leave y = ±x as the answer. Neither is safe. Write ± first, then look at the condition on y that came from the domain of f, and keep the one sign that fits it. For x ≥ 0 that is x. For x ≤ 0 it is −x. Then test with a number from the domain of f: it must come back to itself.

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.

Term

one-to-one function

Definition

A function in which no two different inputs share an output. Every output comes from exactly one input, so the function can be undone.

Term

horizontal line test

Definition

A check done on a graph. If no horizontal line crosses the graph more than once, the function is a one-to-one function and has an inverse function.

Term

domain

Definition

The set of all inputs a function accepts. For an inverse function, the domain is the range of the original function.

Term

range

Definition

The set of all outputs a function actually produces. For an inverse function, the range is the domain of the original function.

Term

the line y = x

Definition

The diagonal line through the origin where both coordinates are equal, such as (2, 2). The graph of a function and the graph of its inverse function are mirror images across it.

Term

restricted domain

Definition

A domain made smaller on purpose. When the inputs kept are picked so that no two of them give the same output, the function becomes one-to-one on them and gains an inverse function.