Inverse Functions — Definition, Steps, Examples

#Algebra
TL;DR
An inverse function, written f−1f^{-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=xy=x graph, why only bijective functions are invertible, and six worked examples.
MV
Madhukar VLast updated on July 1, 20268 min read

What Is An Inverse Function?

The inverse function of ff, written f−1f^{-1}, is the function that reverses ff: if ff sends xx to yy, then f−1f^{-1} sends yy back to xx. The defining relationship is the pair of compositions:

f−1(f(x))=xandf(f−1(x))=xf^{-1}(f(x)) = x \qquad \text{and} \qquad f(f^{-1}(x)) = x

In words: do ff then f−1f^{-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 ff becomes the range of f−1f^{-1}, and the range of ff becomes the domain of f−1f^{-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−1f^{-1} actually came from somewhere.

Together, those are the conditions for a bijective function. When a function isn't one-one — like f(x)=x2f(x) = x^2 over all reals — we often restrict the domain (to x≥0x \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)f(x) with yy.

  2. Swap xx and yy everywhere.

  3. Solve the new equation for yy.

  4. Rename yy as f−1(x)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−1f^{-1} is the reflection of the graph of ff across the line y=xy = x. Because the inverse swaps each point (a,b)(a, b) into (b,a)(b, a), the whole curve flips over that diagonal. This gives a fast visual check: if you fold the paper along y=xy = 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+3f(x) = 2x + 3.

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

Swap xx and yy: x=2y+3x = 2y + 3.

Solve for yy: x−3=2yx - 3 = 2y, so y=x−32y = \dfrac{x - 3}{2}.

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

Example 2

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

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

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

Run the four steps instead.

y=x3−1y = x^3 - 1.

Swap: x=y3−1x = y^3 - 1.

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

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

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

Example 3

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

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

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

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

3xy−2x=4y+13xy - 2x = 4y + 1.

Gather the yy terms: 3xy−4y=2x+13xy - 4y = 2x + 1.

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

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

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

Example 4

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

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

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

Both compositions return xx, so ff and gg are inverses.

Example 5

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

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

y=x2y = x^2.

Swap: x=y2x = y^2.

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

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

The restriction is what makes the inverse exist.

Example 6

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

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

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

Solve for ff: c−32=95fc - 32 = \dfrac{9}{5}f, so f=59(c−32)f = \dfrac{5}{9}(c - 32).

The inverse is F−1(c)=59(c−32)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)=cf(x) = c is the act of applying f−1f^{-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−1f^{-1} as a reciprocal

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

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

The correct way: f−1f^{-1} is the reverse map, found by swapping xx and yy and solving — not by flipping a fraction. The reciprocal of f(x)=2xf(x) = 2x is 12x\dfrac{1}{2x}; its inverse is x2\dfrac{x}{2}. They are different functions. The memorizer who reads every −1-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)=x2f(x) = x^2 over all reals and report ±x\pm\sqrt{x} as a function.

The correct way: ±x\pm\sqrt{x} isn't a function (two outputs per input). Restrict the domain to x≥0x \geq 0 first, then the inverse x\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 xx and yy on one side of the equation but not the other.

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

Conclusion

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

  • Find it by swapping xx and yy 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=xy = 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−1f^{-1} the same as 1f\dfrac{1}{f}?
No. f−1f^{-1} is the inverse (reverse) function; 1f\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)f(x) with yy, swap xx and yy, solve for yy, then rename it f−1(x)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=xy = 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 ff becomes an output of f−1f^{-1}, so ff's domain becomes f−1f^{-1}'s range and vice versa
✍️ Written By
Madhukar V
Madhukar V
Math Columnist & Analyst
I see mathematics as more than just numbers and formulas—it is a way of thinking, questioning, and understanding the world around us. I work at the intersection of mathematics, EdTech, technology, and AI-powered learning, I enjoy exploring how mathematical ideas can be made simple, meaningful, and relatable. Through my articles, I aim to present mathematics with curiosity and a practical perspective, helping readers see the beauty and relevance behind every concept in a Bhanzu way.
LinkedIn
Related Articles
Book a FREE Demo ClassBook Now →