All lessons
↺

Inverse Functions

Undoing — and the mirror across y = x.

Interactive graph

Interactive Lab
Drag corner to resize ↘

Drag the sliders in the Desmos graph. Watch how each parameter reshapes the curve in real time.

Concepts

What is an Inverse?

VisualAn inverse undoes the original. If f sends 2 → 8, then f⁻¹ sends 8 → 2.

Algebraf−1(f(x))=xf^{-1}(f(x)) = x and f(f−1(x))=xf(f^{-1}(x)) = x.

f−1 ⁣(f(x))=xf^{-1}\!\big(f(x)\big) = x

Graphical Reflection

VisualThe inverse is the original graph reflected across the line y = x. Watch the two moving points swap coordinates.

AlgebraIf (a,b)(a,b) is on ff, then (b,a)(b,a) is on f−1f^{-1}.

Finding the Inverse

VisualSwap x and y, then solve for y.

AlgebraStep 1: replace f(x)f(x) with yy. Step 2: swap x↔yx \leftrightarrow y. Step 3: solve for yy.

y=f(x)→swapx=f(y)→solvey=f−1(x)y = f(x) \xrightarrow{\text{swap}} x = f(y) \xrightarrow{\text{solve}} y = f^{-1}(x)

When Does It Exist?

VisualOnly one-to-one functions have inverses. If a horizontal line cuts the graph twice, no inverse (without restricting domain).

AlgebraPass the horizontal line test → one-to-one → invertible.

Key formulas

Inverse identity
f−1(f(x))=xf^{-1}(f(x)) = x
f⁻¹ undoes f
Reflection
(a,b)∈f⇒(b,a)∈f−1(a,b) \in f \Rightarrow (b,a) \in f^{-1}
Across y = x
Domain/range swap
dom(f−1)=ran(f)\text{dom}(f^{-1}) = \text{ran}(f)
Inputs and outputs exchange

Finished reading?

Mark this lesson complete to update your mastery.

Quick practice

Full practice
easyinverses
If f(x)=2xf(x)=2x, find f−1(x)f^{-1}(x).
easyinverses
If f(3)=7f(3) = 7, what is f−1(7)f^{-1}(7)?
mediuminverses
Find the inverse of f(x)=3x−5f(x)=3x-5.
mediuminverses
Does f(x)=x2f(x)=x^2 have an inverse over its entire domain?
hardinverses
Find the inverse of f(x)=2x+1x−3f(x)=\dfrac{2x+1}{x-3}, x≠3x \neq 3.