Inverse Functions — Definition, Steps, Examples

#Algebra
TL;DR
An inverse function, written $f^{-1}$, undoes the original function — feed an output back in and you recover the original input. This article gives the definition, the four-step method to find an inverse, the verification by composition, the reflection-over-$y=x$ graph, why only bijective functions are invertible, and six worked examples.
BT
Bhanzu TeamLast updated on July 1, 20268 min read

What Is An Inverse Function?

The inverse function of $f$, written $f^{-1}$, is the function that reverses $f$: if $f$ sends $x$ to $y$, then $f^{-1}$ sends $y$ back to $x$. The defining relationship is the pair of compositions:

$$f^{-1}(f(x)) = x \qquad \text{and} \qquad f(f^{-1}(x)) = x$$

In words: do $f$ then $f^{-1}$ (or the reverse), and you are back where you started. Applying a function and then its inverse is the identity function — the do-nothing map.

The inverse also swaps the roles of domain and range: the domain of $f$ becomes the range of $f^{-1}$, and the range of $f$ becomes the domain of $f^{-1}$. This is the function-level version of the inverse relation, which reverses every ordered pair.

Which Functions Have An Inverse?

A high-frequency search is does every function have an inverse? The answer is no, and the reason is precise: a function has an inverse if and only if it is bijective — both one-one and onto.

  • It must be one-one (injective). If two inputs share an output, the reverse map can't decide which input to return. See the one-to-one function.

  • It must be onto (surjective) its codomain, so every value you might feed to $f^{-1}$ actually came from somewhere.

Together, those are the conditions for a bijective function. When a function isn't one-one — like $f(x) = x^2$ over all reals — we often restrict the domain (to $x \geq 0$) so that the restricted piece is bijective and an inverse exists.

How Do You Find The Inverse Of A Function?

The standard method has four steps. How do you find the inverse of a function algebraically? is one of the most-searched phrasings, so here it is in full:

  1. Replace $f(x)$ with $y$.

  2. Swap $x$ and $y$ everywhere.

  3. Solve the new equation for $y$.

  4. Rename $y$ as $f^{-1}(x)$.

The swap in step 2 is the heart of it — it encodes "outputs become inputs." Each worked example below runs these four steps.

What Does The Graph Of An Inverse Function Look Like?

The graph of $f^{-1}$ is the reflection of the graph of $f$ across the line $y = x$. Because the inverse swaps each point $(a, b)$ into $(b, a)$, the whole curve flips over that diagonal. This gives a fast visual check: if you fold the paper along $y = x$ and the two graphs land on each other, they are inverses. It also explains why a function passes the horizontal line test exactly when its inverse passes the vertical line test — reflection turns one test into the other.

Examples Of Inverse Functions

The six examples build from a clean line to a rational function and a restricted-domain case, with one deliberate wrong turn.

Example 1

Find the inverse of $f(x) = 2x + 3$.

Replace $f(x)$ with $y$: $y = 2x + 3$.

Swap $x$ and $y$: $x = 2y + 3$.

Solve for $y$: $x - 3 = 2y$, so $y = \dfrac{x - 3}{2}$.

Rename: $f^{-1}(x) = \dfrac{x - 3}{2}$.

Example 2

Find the inverse of $f(x) = x^3 - 1$, then verify it.

The tempting wrong move is to read $f^{-1}$ as a reciprocal and write $\dfrac{1}{x^3 - 1}$.

Test that against the definition: $f(f^{-1}(x))$ should return $x$, but $\left(\dfrac{1}{x^3-1}\right)^3 - 1$ does not simplify to $x$. The reciprocal is not the inverse.

Run the four steps instead.

$y = x^3 - 1$.

Swap: $x = y^3 - 1$.

Solve: $y^3 = x + 1$, so $y = \sqrt[3]{x + 1}$.

Rename: $f^{-1}(x) = \sqrt[3]{x + 1}$.

Verify: $f(f^{-1}(x)) = \left(\sqrt[3]{x+1}\right)^3 - 1 = (x + 1) - 1 = x$. Correct. The first instinct to treat $f^{-1}$ as $\dfrac{1}{f}$ is exactly where this one goes wrong.

Example 3

Find the inverse of $f(x) = \dfrac{4x + 1}{3x - 2}$.

$y = \dfrac{4x + 1}{3x - 2}$.

Swap: $x = \dfrac{4y + 1}{3y - 2}$.

Clear the denominator: $x(3y - 2) = 4y + 1$.

$3xy - 2x = 4y + 1$.

Gather the $y$ terms: $3xy - 4y = 2x + 1$.

Factor: $y(3x - 4) = 2x + 1$.

Solve: $y = \dfrac{2x + 1}{3x - 4}$.

Rename: $f^{-1}(x) = \dfrac{2x + 1}{3x - 4}$.

Example 4

Verify that $f(x) = 5x - 7$ and $g(x) = \dfrac{x + 7}{5}$ are inverses.

Compose one way: $f(g(x)) = 5 \cdot \dfrac{x + 7}{5} - 7 = (x + 7) - 7 = x$.

Compose the other way: $g(f(x)) = \dfrac{(5x - 7) + 7}{5} = \dfrac{5x}{5} = x$.

Both compositions return $x$, so $f$ and $g$ are inverses.

Example 5

Find the inverse of $f(x) = x^2$ on the restricted domain $x \geq 0$.

On all reals, $x^2$ is not one-one, so it has no inverse. Restrict to $x \geq 0$, where it is bijective onto $[0, \infty)$.

$y = x^2$.

Swap: $x = y^2$.

Solve, keeping $y \geq 0$: $y = \sqrt{x}$.

Rename: $f^{-1}(x) = \sqrt{x}$, with domain $x \geq 0$.

The restriction is what makes the inverse exist.

Example 6

A temperature converter sends Celsius to Fahrenheit by $F(c) = \dfrac{9}{5}c + 32$. Find the inverse that converts back.

$y = \dfrac{9}{5}c + 32$.

Swap the roles (call the input $f$): $c = \dfrac{9}{5}f + 32$.

Solve for $f$: $c - 32 = \dfrac{9}{5}f$, so $f = \dfrac{5}{9}(c - 32)$.

The inverse is $F^{-1}(c) = \dfrac{5}{9}(c - 32)$ — the familiar Fahrenheit-to-Celsius formula.

Why Inverses Matter: "An Inverse Is The Mathematics Of Undoing"

Inverse functions exist because almost every useful process needs to be reversible — and mathematics needed a precise object for "go back."

  • They solve equations. Solving $f(x) = c$ is the act of applying $f^{-1}$ to both sides. Logarithms invert exponentials, roots invert powers, inverse trigonometric functions invert sine and cosine.

  • They reverse transformations. A coordinate change, a currency conversion, or an encryption step is only useful if it can be undone — and the undo is an inverse function.

  • They define new operations. The logarithm was defined by John Napier (1550–1617, Scotland) in 1614 as the inverse of exponential growth, turning multiplication into addition and saving astronomers years of hand calculation.

The destination this opens is the whole world of "solving for the input." Once you see logarithms, roots, and arc-trig as inverses of functions you already know, an entire layer of equations becomes a single move: apply the inverse.

Where Inverses Trip Students Up

Three mistakes account for most wrong inverse answers.

Mistake 1: Reading $f^{-1}$ as a reciprocal

Where it slips in: the instant the $-1$ notation appears.

Don't do this: write $f^{-1}(x) = \dfrac{1}{f(x)}$.

The correct way: $f^{-1}$ is the reverse map, found by swapping $x$ and $y$ and solving — not by flipping a fraction. The reciprocal of $f(x) = 2x$ is $\dfrac{1}{2x}$; its inverse is $\dfrac{x}{2}$. They are different functions. The memorizer who reads every $-1$ as "one over" lands wrong here.

Mistake 2: Forgetting to check the function is one-one first

Where it slips in: parabolas, even powers, and any many-to-one function.

Don't do this: "invert" $f(x) = x^2$ over all reals and report $\pm\sqrt{x}$ as a function.

The correct way: $\pm\sqrt{x}$ isn't a function (two outputs per input). Restrict the domain to $x \geq 0$ first, then the inverse $\sqrt{x}$ exists and is single-valued. The rusher who jumps straight to algebra without checking bijectivity produces a non-function.

Mistake 3: Swapping in the wrong place

Where it slips in: rational and multi-step functions where the swap gets applied to only part of the expression.

Don't do this: swap $x$ and $y$ on one side of the equation but not the other.

The correct way: replace every $x$ with $y$ and every $y$ with $x$ in one clean move, then solve. The second-guesser who edits the equation piece by piece introduces errors here.

Conclusion

  • An inverse function $f^{-1}$ undoes $f$: $f^{-1}(f(x)) = x$ and $f(f^{-1}(x)) = x$.

  • Find it by swapping $x$ and $y$ and solving — never by taking a reciprocal.

  • Only bijective functions are invertible; non-bijective ones need a restricted domain.

  • The graph of an inverse function is the reflection of the original across $y = x$.

  • Inverses are how we solve equations and reverse transformations — logarithms, roots, and arc-trig are all inverses.

To master inverses with a teacher who explains the reasoning behind each step, explore Bhanzu's algebra tutor, find help with algebra, or browse math tutoring. Want a live Bhanzu trainer to walk through inverse-function problems with your child? Book a free demo class.

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

Is $f^{-1}$ the same as $\dfrac{1}{f}$?
No. $f^{-1}$ is the inverse (reverse) function; $\dfrac{1}{f}$ is the reciprocal. They are different objects that happen to share notation
Does every function have an inverse?
No. Only bijective functions (one-one and onto) have full inverse functions. Non-bijective functions need their domain restricted before an inverse exists
How do you find inverse functions algebraically?
Replace $f(x)$ with $y$, swap $x$ and $y$, solve for $y$, then rename it $f^{-1}(x)$ — that four-step method finds inverse functions for any one-one rule
How can you tell two functions are inverses from their graphs?
Their graphs are mirror images across the line $y = x$. Fold along that diagonal and the two curves coincide
Why does the inverse swap domain and range?
Because the inverse reverses each input-output pair: an input of $f$ becomes an output of $f^{-1}$, so $f$'s domain becomes $f^{-1}$'s range and vice versa
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →