Resources For Teachers For Tutors For Students & Parents Pricing
Pre-Calculus Functions (advanced)

Inverse functions (verifying with composition, domain restrictions)

20 practice questions 0 video lessons Theory + worked examples

Inverse Functions

Texas Precalculus (TEKS) • Standard P.2(E), P.2(H) • Functions

Inverse Functions is a topic in Functions in the Texas Essential Knowledge and Skills (Precalculus, §111.42). It is aligned to Standard P.2(E), P.2(H), which requires students to determine and analyze inverse functions using multiple representations.

An inverse function \(f^{-1}\) undoes \(f\), so \(f(f^{-1}(x))=x\); its graph is the reflection of \(f\) across the line \(y=x\), and only one-to-one functions have one.

Texas Precalculus (TEKS) › Functions › Inverse Functions  —  Standard P.2(E), P.2(H)

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

The inverse \(f^{-1}\) of a function \(f\) undoes what \(f\) does: if \(f\) sends \(a\mapsto b\), then \(f^{-1}\) sends \(b\mapsto a\). Formally,

\[f\big(f^{-1}(x)\big)=x\quad\text{and}\quad f^{-1}\big(f(x)\big)=x.\]

Because inputs and outputs trade places, the domain and range swap, and the graphs of \(f\) and \(f^{-1}\) are mirror images across the line \(y=x\).

Only one-to-one functions have inverses. A function is one-to-one when every output comes from exactly one input — it passes the horizontal line test. If it doesn't, restrict the domain first.

The notation \(f^{-1}\) means the inverse function, not the reciprocal: \(f^{-1}(x)\neq \dfrac{1}{f(x)}\).

A function and its inverse are reflections across y = x The curve y equals x squared for x at least 0 and its inverse y equals the square root of x are mirror images across the dashed line y equals x. x y f(x)=x² f⁻¹(x)=√x y=x
\(f\) and \(f^{-1}\) are reflections across \(y=x\); the domain and range swap.
Horizontal line test for a one-to-one function A horizontal line meets the full parabola y equals x squared at two points, so it is not one-to-one and has no inverse unless the domain is restricted. x y one y → two x fails the line test
The full parabola fails the horizontal line test, so \(x^2\) needs a restricted domain to be invertible.

The defining relationship and the domain/range swap:

\[f\big(f^{-1}(x)\big)=x,\qquad f^{-1}\big(f(x)\big)=x\]
\[\text{dom}(f^{-1})=\text{ran}(f),\qquad \text{ran}(f^{-1})=\text{dom}(f)\]
f of f inverse of x equals x; domain and range swap
\(f^{-1}\) is the inverse, not a reciprocal: \(f^{-1}(x)\neq \dfrac{1}{f(x)}\).

How to find an inverse function

  1. Replace \(f(x)\) with \(y\).
  2. Swap \(x\) and \(y\).
  3. Solve the new equation for \(y\).
  4. Write \(y=f^{-1}(x)\), and state any domain restriction.
  5. Verify with \(f(f^{-1}(x))=x\) and \(f^{-1}(f(x))=x\).
If \(f\) isn't one-to-one (e.g. \(x^2\)), restrict its domain to a piece that is before inverting.
Example 1 — Invert a linear function
Find the inverse of \(f(x)=2x+3\).
Solution

Write \(y=f(x)\), swap \(x\) and \(y\), then solve for \(y\).

\(y\)\(=\)\(2x+3\)
\(x\)\(=\)\(2y+3\)
\(x-3\)\(=\)\(2y\)
\(y\)\(=\)\(\dfrac{x-3}{2}\)

So \(f^{-1}(x)=\dfrac{x-3}{2}\).

inverse is x minus 3 over 2
Example 2 — Verify with composition
Confirm that \(f(x)=2x+3\) and \(g(x)=\dfrac{x-3}{2}\) are inverses.
Solution

Inverses satisfy \(f(g(x))=x\) and \(g(f(x))=x\). Check both:

\(f(g(x))\)\(=\)\(2\!\left(\dfrac{x-3}{2}\right)+3\)
\(=\)\((x-3)+3=x\)
\(g(f(x))\)\(=\)\(\dfrac{(2x+3)-3}{2}\)
\(=\)\(\dfrac{2x}{2}=x\)

Both compositions return \(x\), so they are inverses.

both compositions equal x, confirming inverses
Example 3 — Invert a cubic
Find the inverse of \(f(x)=x^3-1\).
Solution

Swap and solve, undoing the cube with a cube root.

\(y\)\(=\)\(x^3-1\)
\(x\)\(=\)\(y^3-1\)
\(x+1\)\(=\)\(y^3\)
\(y\)\(=\)\(\sqrt[3]{x+1}\)

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

inverse is the cube root of x plus 1
Example 4 — Restrict the domain
\(f(x)=x^2\) has no inverse on all reals. Restrict the domain and find \(f^{-1}\).
Solution

On all of \(\mathbb{R}\), \(x^2\) fails the horizontal line test. Restrict to \(x\ge 0\), where it is one-to-one.

\(y\)\(=\)\(x^2\quad(x\ge 0)\)
\(x\)\(=\)\(y^2\)
\(y\)\(=\)\(\sqrt{x}\)

So \(f^{-1}(x)=\sqrt{x}\), with domain \(x\ge 0\) — the range of the restricted \(f\).

with domain x at least 0 the inverse is the square root of x

Common pitfalls

\(f^{-1}\) is not a reciprocal. \(f^{-1}(x)\neq \dfrac{1}{f(x)}\) — the \(-1\) marks the inverse function.
Not every function has an inverse. Only one-to-one functions do; otherwise restrict the domain first.
Swap domain and range. The domain of \(f^{-1}\) is the range of \(f\); carry restrictions across.

Frequently asked questions

What is an inverse function?

A function \(f^{-1}\) that undoes \(f\): if \(f(a)=b\) then \(f^{-1}(b)=a\), and \(f(f^{-1}(x))=x\).

How do you find the inverse of a function?

Write \(y=f(x)\), swap \(x\) and \(y\), solve for \(y\), and write \(y=f^{-1}(x)\). Then verify by composition.

How do you know a function has an inverse?

It must be one-to-one — pass the horizontal line test. If a horizontal line meets the graph more than once, restrict the domain first.

Does f to the minus 1 mean one over f?

No. \(f^{-1}\) is the inverse function, not the reciprocal: \(f^{-1}(x)\neq \dfrac{1}{f(x)}\).

Why are f and its inverse reflections across y = x?

Because the inverse swaps each point \((a,b)\) for \((b,a)\), and swapping coordinates reflects a point across the line \(y=x\).