Euler Hall — free maths guides

Find the inverse of a linear function by solving for the input

Solve y = f(x) for x and rename the result as f inverse. The idea in plain words, a worked example, and a check with the answers shown — part of the free Precalculus guides.

The inverse runs the machine backwards

A function takes an input and produces an output. Its inverse takes the output and produces the input. Nothing more.

So finding an inverse is one operation, repeated exactly: writey=f(x)y = f(x), then solve forxx in terms ofyy. Renameyy toxx at the end, because the inverse is a function of its own input.

For a linearf(x)=ax+bf(x)=ax+b that means undoing two steps in reverse order — subtractbb, then divide byaa:

f−1(x)=x−ba.f^{-1}(x) = \frac{x-b}{a}.

Why solving is the definition

The definition of an inverse isf−1(f(x))=xf^{-1}(f(x)) = x for everyxx in the domain. Solvingy=f(x)y=f(x) forxx produces exactly the map that satisfies it: ifxx is the value satisfyingf(x)=yf(x)=y, then feedingyy to that map returnsxx.

That is why the check is a composition, not a comparison. Two formulas can look similar and only one will actually undo the function. The+b+b versus−b-b is a single character and the difference between an inverse and a wrong answer.

It is also why a constant function has no inverse:f(x)=6f(x)=6 gives the output 6 at every input, so no map could decide which input to return.

Worked example

Find the inverse off(x)=5x+3f(x)=5x+3 and check it at two points.

Step 1. Replacef(x)f(x) byyy.y=5x+3y = 5x + 3.

Step 2. Solve forxx. Subtract 3:y−3=5xy - 3 = 5x. Divide by 5:x=y−35x = \dfrac{y-3}{5}.

Step 3. Rename.f−1(x)=x−35f^{-1}(x) = \dfrac{x-3}{5}.

Step 4. Check one point.f−1(f(2))=f−1(13)=13−35=2f^{-1}(f(2)) = f^{-1}(13) = \frac{13-3}{5} = 2. Correct.

Step 5. Check a second point.f−1(f(−1))=f−1(−2)=−2−35=−1f^{-1}(f(-1)) = f^{-1}(-2) = \frac{-2-3}{5} = -1. Correct.

Step 6. Check the signs. Both checks passed, which is the evidence that the constant was subtracted rather than added.

By the end you can
  • Solve y = f(x) for x and rename the result as f inverse
  • Check an inverse by composing it with the original
  • Evaluate an inverse at a stated output without writing the formula
Check yourself

(a) Find the inverse off(x)=7x−4f(x)=7x-4.

(b) Find the inverse off(x)=x3+2f(x)=\frac{x}{3}+2.

(c) Check your answer to (a) by computingf−1(f(5))f^{-1}(f(5)).

Answers

(a)f−1(x)=x+47f^{-1}(x)=\dfrac{x+4}{7}.

(b)f−1(x)=3(x−2)=3x−6f^{-1}(x)=3(x-2)=3x-6.

(c)f(5)=31f(5)=31 andf−1(31)=31+47=5f^{-1}(31)=\frac{31+4}{7}=5. Correct.

Work out where to start — free, no accountAnswer six real questions — free, no account