Skip to main content
Mathovia

Algebra / Graphing and Functions

Inverse Functions: Undoing What a Function Does

An inverse function reverses what the original did: put an output in and get the original input back. Finding one is a short procedure — swap x and y, then solve for y — but there are three things worth understanding around it. Only one-to-one functions have inverses, the notation f⁻¹ does not mean a reciprocal, and the graph of the inverse is always the mirror image of the original in the line y = x.

Practice Problems
M
Written by
Mathovia Team
Editorial Team

Every function is a set of instructions. An inverse function is the same instructions run backwards: multiply by 3 and add 6 becomes subtract 6 and divide by 3. Getting from one to the other is mechanical once you know the procedure.

The defining property of an inverse function
The defining property of an inverse

The Definition

is the inverse of when composing them in either order returns the input untouched:

Put another way: if sends to , then sends back to . Every ordered pair is reversed.

The notation is a trap. does not mean . The here is a label meaning “inverse”, not an exponent. For :

  • — the inverse function
  • — the reciprocal

Completely different. If you need the reciprocal, write or just the fraction.

Only One-to-One Functions Have Inverses

Reversing a function swaps every input and output. For the result to be a function, each output must have come from exactly one input — which is the definition of one-to-one.

fails. It sends both and to , so reversing gives and : one input, two outputs.

A parabola with its left half greyed out, its right half kept, and the square root curve shown as the inverse of the kept portion
Discard half the parabola and an inverse becomes possible.

The fix is to restrict the domain. Keep only and becomes one-to-one, with inverse . That is exactly why the radical is defined to return only the non-negative root.

Finding an Inverse: Swap and Solve

Three steps, in this order.

Step-by-step: y = 3x + 6, swap to x = 3y + 6, solve to get the inverse (x minus 6) over 3
Swap first, then solve — the order matters.
  1. Write .
  2. Swap and .
  3. Solve for , then rename it .

For :

So .

Swapping before solving is what keeps this reliable. Solving first and swapping afterwards reaches the same place but leaves more room for error, and the intermediate lines stop meaning anything.

There is a useful sanity check built into the method: the inverse should undo the operations in reverse order. multiplies by 3 then adds 6; subtracts 6 then divides by 3. Last operation undone first, like taking off shoes and socks.

Checking by Composition

Do not trust the algebra alone — compose both ways.

For the pair above:

Both directions return , so the inverse is correct. See Function Composition — this is the one situation where the order genuinely does not matter.

The Graph: a Mirror in y = x

Because every pair becomes , the graph of is the reflection of across the line .

A line f and its inverse drawn on the same axes, symmetric about the dashed line y = x
f and f⁻¹ are mirror images in the diagonal.

Two consequences follow immediately.

The graph of an inverse can be drawn without any algebra — fold the paper along .

Any point where the graph meets is fixed by the inverse, because reflecting it leaves it where it was.

This also gives a second way to see the one-to-one requirement: reflecting a graph across turns horizontal lines into vertical ones, so a graph failing the horizontal line test produces a reflection that fails the vertical line test.

Domain and Range Swap

Since inputs and outputs trade places, so do the two sets.

Four boxes showing that the domain of f becomes the range of f inverse and the range of f becomes its domain
Domain and range exchange roles.

For , the domain is and the range is . So has domain and range .

This is often the only way to get the inverse’s domain right. Solving gives , and that formula would happily accept any real number — but the inverse is only defined on , because that is all ever produced.

Inverses You Already Know

FunctionInverseRestriction
none
, none
none
needs
none
its own inverse

That last row is a self-inverse function — reflecting in gives back the same curve. and behave the same way.

Worked Example A: A Linear Function

Find the inverse of .

Check: . ✓

Worked Example B: A Fraction

Find the inverse of .

So .

Worked Example C: A Restricted Quadratic

Find the inverse of for .

Only the positive root is taken, because the restriction forces . Domain of the inverse: .

Worked Example D: A Rational Function

Find the inverse of .

Collect the terms and factor:

The “collect and factor” step is the whole technique whenever appears twice.

Worked Example E: Domain and Range

. Give its inverse with the correct domain.

Domain of : . Range of : .

So , with domain — the range of . Without that restriction the formula would wrongly accept negative inputs.

Worked Example F: A Real Reversal

Celsius to Fahrenheit is . Find the reverse conversion.

Which is the familiar Fahrenheit-to-Celsius formula. The two conversions are inverse functions, which is why applying both returns the temperature you started with.

Common Mistakes to Avoid

  • Reading as a reciprocal. It is the inverse function.
  • Solving before swapping. Swap and first.
  • Forgetting the domain restriction. The inverse’s domain is the original’s range.
  • Inverting a function that is not one-to-one. Restrict the domain first.
  • Taking both roots when undoing a square. The restriction picks one.
  • Checking only one composition. Verify both directions.
  • Undoing operations in the original order. Reverse them — last operation first.
  • Forgetting to collect terms when appears twice. Gather and factor.

Where Inverses Lead Next

  • Logarithms, defined as the inverse of the exponential function.
  • Inverse trigonometric functions, each on a restricted domain for exactly this reason.
  • Solving equations, since applying an inverse to both sides is what isolating a variable really is.
  • Unit conversions, which come in inverse pairs.
  • Calculus, where the derivative of an inverse relates directly to the derivative of the original.
  • Cryptography, where encryption and decryption are inverse functions.

Practice Problems

Work each one before opening the answer.

Problem 1. Find the inverse of .

Show answer

.

Problem 2. Find the inverse of .

Show answer

.

Problem 3. Find the inverse of .

Show answer

.

Problem 4. Find the inverse of .

Show answer

, so .

Problem 5. Find the inverse of .

Show answer

.

Problem 6. Verify that and are inverses.

Show answer

and . Both give . ✓

Problem 7. Why does have no inverse function on all real numbers?

Show answer

It is not one-to-one — — so reversing would give the input 4 two outputs.

Problem 8. If , what is ?

Show answer

. The inverse sends the output back to its input.

Problem 9. has domain and range . State the domain and range of .

Show answer

Domain , range — they swap.

Problem 10. Find the inverse of .

Show answer

. It is its own inverse.

Problem 11. Find the inverse of .

Show answer

, so .

Problem 12. A graph of passes through . Give a point on .

Show answer

— the coordinates swap.

Quick Reference

ItemRule
Definition and
Requirement must be one-to-one
Finding itWrite , swap, solve for
Checking itCompose both ways; both give
GraphReflection in
Points becomes
Domain of Range of
Range of Domain of
vs Inverse function vs reciprocal — different
Not one-to-oneRestrict the domain first

Inverses require a one-to-one function and are verified with composition. The domain and range swapping is the step most often missed. More Algebra lessons are available.

Frequently Asked Questions

What is an inverse function?+

An inverse function undoes the original. If takes 3 to 11, then takes 11 back to 3. Formally, for every in the domain of .

How do you find the inverse of a function?+

Write the function as , swap and , then solve the new equation for . That expression is . For : swapping gives , so .

Does f inverse mean 1 over f?+

No. is the inverse function, while is the reciprocal. The is notation, not an exponent, and the two are almost never the same thing.

Which functions have inverses?+

Only one-to-one functions. If two inputs share an output, reversing the function would give that value two outputs, which is not allowed. A function that is not one-to-one can still be inverted on a restricted domain.

What does the graph of an inverse function look like?+

It is the mirror image of the original graph in the line . Every point on corresponds to on , which is exactly a reflection across that diagonal.

How do you check an inverse is correct?+

Compose the two functions both ways. If and , the inverse is correct. Checking only one direction can miss a domain problem.

Related lessons