On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Advanced Functions · Grade 9-12

Inverse Function

The inverse f−1 reverses f: if f sends a to b, then f−1 sends b back to a.

f−1(f(x))=x and f(f−1(x))=x

Quick Answer

The inverse f−1 reverses f: if f sends a to b, then f−1 sends b back to a. Use an inverse when you know a result and need the input behind it: the Celsius reading behind a Fahrenheit one, the price before tax from a receipt total. To find it, undo the steps of f in reverse order, or swap x and y and solve for y. An inverse exists only when no two inputs share an output.

Why This Matters

Inverses let you solve for an input instead of guessing it, and whole families of functions exist as inverses: logarithms undo exponentials, and arcsin⁡ undoes sine. They also explain why some questions lack a single answer: x2=9 has two solutions, so squaring has no inverse until it is restricted, which is why 9 is defined as 3 alone.

Intuitive Explanation

Getting dressed is a sequence: socks, then shoes. Undoing it runs backwards, shoes off first, then socks. A function built from steps works the same way. f(x)=2x+6 means 'double, then add 6', so its inverse means 'subtract 6, then halve': f−1(x)=x−62. Start at 5, apply f to get 16, apply f−1 and you are back at 5.

On a graph, an inverse swaps the axes. If (5,16) lies on f, then (16,5) lies on f−1. Swapping every point reflects the graph in the line y=x, which is where the algebra recipe 'swap x and y, then solve for y' comes from. Domain and range trade places too: the outputs of f become the inputs of f−1.

Not every function can be undone. Squaring sends both 3 and −3 to 9, so from 9 alone you cannot tell where you started; on the graph, the horizontal line y=9 hits y=x2 twice. A function must be one-to-one to have an inverse, and the usual fix is to keep only part of the domain. Watch the notation as well: f−1 is not the reciprocal, since 12x+6 is a completely different function from x−62.

Think of it like this. An inverse is a translation back. If f translates English into French, f−1 translates the French into English and returns your original sentence. That only works if no two English words share a French word; when two do, the way back is ambiguous, just as 3 and −3 both square to 9.

Core idea. An inverse function reverses a function, turning each output back into the input that produced it.


When to Use

Use an inverse when a problem gives an output and asks for the input that produced it, says undo or reverse, or asks you to rewrite a formula with the other variable as the subject, such as solving F=1.8C+32 for C. First check that f is one-to-one with the horizontal line test, and restrict the domain if it is not. If you need only one value, solving f(x)=b directly is enough; if you need 1f(x), that is a reciprocal, not an inverse.

Tip. Ask: If I know the output, does this rule hand back the exact input that produced it?

How to Recognize It

Before reaching for an inverse, check what the problem hands you, what it wants back, and whether the original rule ever sends two inputs to the same output.

  1. Do you need to turn many outputs back into inputs, or a formula for doing so?

    Yes means build f−1, for instance turning F=1.8C+32 into C=F−321.8. For the input behind just one output, solving f(x)=b once is enough.

  2. Does a horizontal line cross the graph more than once?

    Yes means two inputs share an output, so f is not one-to-one and has no inverse until you restrict the domain, as x≥0 does for x2. No means an inverse exists on the whole domain.

  3. Does the problem want one divided by the output, 1f(x)?

    Yes means a reciprocal, which has nothing to do with undoing: for f(x)=x+3 the reciprocal is 1x+3 but the inverse is x−3. No means the −1 in f−1 is a label, not an exponent.

  4. Is the second rule meant to cancel the first, so that applying both returns the input unchanged?

    Yes means the two are inverses; check that f(f−1(x))=x. If the second rule only carries the process further, such as converting money and then charging a fee, it is a composition.

Inverse Function compared with Reciprocal, One-to-one mapping, and Function composition

All four rows involve undoing, flipping or chaining functions, and two of them share the −1 symbol. Ask whether you are reversing a rule's steps (inverse), flipping one number upside down (reciprocal), checking whether reversal is possible (one-to-one), or running one rule after another (composition).

Inverse Function

Meaning
Use this when you need to reverse a function to recover the input from a known output, and the function is one-to-one.
Key test
If I know the output, does this rule hand back the exact input that produced it?
Formula
f−1(f(x))=x and f(f−1(x))=x
Example
Find the inverse of f(x)=2x+6.

Reciprocal

Meaning
Flips a number to one over itself; nothing to do with reversing a function.
Key test
Use when you literally need 1/x, not the undoing of a rule.
Formula
1f(x)
Example
1x+3 is the reciprocal; x−3 is the inverse of x+3

One-to-one mapping

Meaning
The property a function must have to be invertible, not the inverse itself.
Key test
Use when you are checking whether an inverse can exist at all.
Formula
f(a)=f(b)⇒a=b
Example
x2 fails this, so it has no inverse over all reals

Function composition

Meaning
Chains two functions; the inverse is the special partner that composes with f to give x.
Key test
Use when combining functions in general, not specifically undoing one.
Formula
f(g(x))
Example
f−1(f(x))=x is the defining composition of an inverse

Formula & Notation

f−1(f(x))=x and f(f−1(x))=x
f−1 ⁣:Y→X satisfies f−1(f(x))=x  ∀x∈X and f(f−1(y))=y  ∀y∈Y

How to read it: f−1 denotes the inverse function. To find it: write y=f(x), swap x and y, solve for y.

Worked Examples

Example 1 — Find an inverse

Easy

Find the inverse of f(x)=2x+6.
Show the steps and the answer
  1. Describe what f does, in order: multiply by 2, then add 6.

    An inverse undoes those steps in reverse order, the way shoes come off before socks.

  2. Undo them backwards: subtract 6, then divide by 2, so f−1(x)=x−62.

    The last thing f did has to be the first thing undone.

  3. Confirm with algebra: from y=2x+6 swap to x=2y+6, then x−6=2y and y=x−62.

    Swapping x and y records that inputs and outputs trade places.

  4. Test a number both ways: f(5)=16 and f−1(16)=16−62=5.

    Going there and back must return the starting value: f−1(f(5))=5.

Answer: f−1(x)=x−62

Takeaway: Undo the steps of f in reverse order, then test one value there and back.

Example 2 — No inverse exists

Standard

Does f(x)=x2 have an inverse over all real numbers?
Show the steps and the answer
  1. Find two inputs with the same output: f(3)=9 and f(−3)=9.

    An inverse would have to send 9 back to a single input, but there are two candidates.

  2. Apply the horizontal line test: y=9 meets the parabola at (−3,9) and (3,9).

    Any horizontal line crossing twice means f is not one-to-one, so no inverse function exists.

  3. Restrict the domain to x≥0: now each output y≥0 comes from one input, and f−1(x)=x.

    Keeping only the right half removes the duplicate inputs, which is exactly why 9 means 3 and not −3.

Answer: No inverse without restricting the domain to x≥0

Takeaway: Check one-to-one before looking for an inverse; when it fails, keep a piece of the domain that passes the horizontal line test.

Example 3 — Find the mistake: inverse or reciprocal?

Application

For f(x)=2x+6, Maya computes f−1(10) and writes: "f−1(10)=1f(10)=126." Find the mistake and correct it.
Show the steps and the answer
  1. Name Maya's reading: she treated the −1 as an exponent, as if f−1=1f.

    For numbers 5−1=15, but attached to a function's name, f−1 means the reversing function.

  2. Ask the inverse question: which input makes f(x)=10? Solve 2x+6=10 to get x=2.

    f−1(10) is the input that f sends to 10.

  3. Check: f(2)=2(2)+6=10.

    Running f on the answer must give back 10, and it does.

  4. Test Maya's value: f(126)=226+6≈6.08, not 10.

    The reciprocal does not undo f, so it cannot be the inverse.

Answer: f−1(10)=2

Takeaway: f−1(b) answers 'which input gave b?'. The reciprocal of f is written 1f(x) or [f(x)]−1.

Where You'll See It

  • Converting temperatures back

    F=1.8C+32 turns Celsius into Fahrenheit. Its inverse, C=F−321.8, takes an American forecast of 86∘F back to 30∘C. Each rule undoes the other: 1.8(30)+32=86.

  • Price before sales tax

    With 8% tax the total is T=1.08p. Seeing $54 on a receipt, the inverse p=T1.08 gives a pre-tax price of $50. Taking 8% off $54 instead gives $49.68, which is wrong, because the tax was 8% of the original price, not of the total.

  • Decoding a shift cipher

    A Caesar cipher shifts each letter 3 places forward, so A becomes D and B becomes E. Decoding shifts each letter 3 places back. Every message can be recovered because the shift is one-to-one: no two letters encrypt to the same letter.

Common Mistakes

  1. The slip: Reading f−1 as a reciprocal

    Instead: it means the reversing function, not 1/f.

  2. The slip: Finding an inverse without checking one-to-one

    Instead: if f fails the horizontal line test, no inverse exists.

  3. The slip: Swapping x and y but forgetting to solve for the new y

    Instead: the inverse must be expressed as output in terms of input.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Find the inverse of f(x)=3x−5.

    Hint: Write y=3x−5, swap x and y, then solve for y.

  2. For f(x)=x4+2, find f−1(10).

    Hint: f−1(10) is the input that makes f output 10.

  3. Find the inverse of f(x)=x3+1, then check it using f(2).

    Hint: After swapping, undo the cube with a cube root.

  4. Fahrenheit from Celsius is F(C)=1.8C+32. Find the inverse function, then convert 77°F to Celsius.

    Hint: Solve F=1.8C+32 for C.

  5. A machine doubles any number, f(x)=2x. The output was 18 and you want the input. Do you need f−1(18) or 1f(18)?

    Hint: Which one undoes the doubling, and which one just flips a number?

  6. To invert f(x)=x−12, a student swaps to get x=y−12 and writes 'f−1(x)=y−12.' Find and correct the mistake.

    Hint: After swapping, the new y still has to be isolated.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why is the graph of f−1 a mirror image of f in the line y=x?

Every point (a,b)(a,b) on the graph of ff becomes the point (b,a)(b,a) on the graph of f−1f^{-1}, because the inverse swaps inputs and outputs. Swapping the two coordinates of every point is exactly a reflection in the line y=xy=x. So the graph of y=2xy=2^x, which passes through (3,8)(3,8), reflects onto the graph of y=log⁡2xy=\log_2 x, which passes through (8,3)(8,3).

Can a function be its own inverse?

Yes. f(x)=1xf(x)=\frac{1}{x} is one: applying it twice gives 11/x=x\frac{1}{1/x}=x. So are f(x)=−xf(x)=-x and f(x)=10−xf(x)=10-x, since 10−(10−x)=x10-(10-x)=x. Their graphs are symmetric about the line y=xy=x, so reflecting them leaves them unchanged. A function like this is called an involution, and applying it twice is like flipping a light switch twice.

Why is the inverse of x2 written as x and not ±x?

Because a function must give one output, and ±x\pm\sqrt{x} gives two. To build an inverse, you first restrict x2x^2 to x≥0x\ge 0, where it is one-to-one, and then its inverse is x\sqrt{x}. Restricting to x≤0x\le 0 instead would give the inverse −x-\sqrt{x}. The same choice explains why sin⁡−1\sin^{-1} returns only angles from −90∘-90^\circ to 90∘90^\circ.

Why do I undo the steps in reverse order?

Because the last step done is the first one you meet on the way back. If f(x)=3x−5f(x)=3x-5 multiplies by 3 and then subtracts 5, the inverse adds 5 and then divides by 3, giving f−1(x)=x+53f^{-1}(x)=\frac{x+5}{3}. Getting dressed works the same way: socks go on before shoes, so shoes come off first. Undoing in the forward order gives x3+5\frac{x}{3}+5, which is wrong.

Learning Path

← Before

Function
Inverse Function

You are here

You need Function, plus the habit of tracking domain and range. Inverse Function adds the reverse direction, from output back to input, with domain and range swapped and the graph reflected in y=x. Next, One-to-One Mapping explains exactly which functions can be inverted, and the Horizontal Line Test gives the quick graphical check.

See Also