Inverse Function Calculator
f⁻¹(x) · Step-by-Step · Domain & Range · Graph
Find the inverse f⁻¹(x) of linear, power, quadratic, rational, exponential, logarithmic, and square root functions with full derivation, domain/range, and graph.
Quick Examples
Inverse Function Result
Original f(x)
Inverse f⁻¹(x)
Step-by-Step Derivation
Domain & Range
| Function | Domain | Range |
|---|
Note: Domain of f = Range of f⁻¹ | Range of f = Domain of f⁻¹
Verification — Composition Check
Numerical Check at x = 2
Graph — f(x), f⁻¹(x), and y = x
One-to-One Test
What Is an Inverse Function?
An inverse function f⁻¹(x) is a function that "undoes" the action of f(x). If f maps an input a to an output b — that is, f(a) = b — then f⁻¹ maps b back to a: f⁻¹(b) = a. The two functions satisfy the composition identities:
f(f⁻¹(x)) = x for all x in the domain of f⁻¹ f⁻¹(f(x)) = x for all x in the domain of f
Inverse functions are fundamental across mathematics, science, and engineering. The relationship between exponentiation and logarithms, squaring and square roots, and encoding and decoding all rely on the concept of function inversion.
The Horizontal Line Test
A function f(x) has an inverse over its entire domain if and only if it is one-to-one (injective) — meaning each output value corresponds to exactly one input. The horizontal line test provides a graphical check: draw any horizontal line across the graph. If every horizontal line intersects the graph at most once, f is one-to-one and its inverse exists globally.
When a function fails the horizontal line test — such as f(x) = x² over all real numbers — an inverse still exists after restricting the domain. For instance, f(x) = x² on x ≥ 0 gives the well-defined inverse f⁻¹(x) = √x.
How to Find the Inverse Algebraically
The standard algebraic technique for finding inverses follows four steps:
- Step 1: Replace f(x) with y.
- Step 2: Swap x and y in the equation.
- Step 3: Solve the resulting equation for y.
- Step 4: Write f⁻¹(x) = (the solved expression).
For example, with f(x) = 2x + 3: write y = 2x + 3, swap to get x = 2y + 3, solve to get y = (x − 3)/2, so f⁻¹(x) = (x − 3)/2.
Domain Restrictions and Range
One critical rule: the domain of f equals the range of f⁻¹, and the range of f equals the domain of f⁻¹. Domain restrictions arise naturally when the function is only one-to-one on part of its domain.
| f(x) | f⁻¹(x) | Domain of f | Domain of f⁻¹ |
|---|---|---|---|
| 2x + 3 | (x−3)/2 | All reals | All reals |
| x² (x≥0) | √x | [0, ∞) | [0, ∞) |
| eˣ | ln(x) | All reals | (0, ∞) |
| log₂(x) | 2ˣ | (0, ∞) | All reals |
| √(x−1) | x²+1 (x≥0) | [1, ∞) | [0, ∞) |
Real-World Applications
Inverse functions appear throughout applied mathematics and computing:
- Temperature conversion: F = (9/5)C + 32 and its inverse C = (5/9)(F − 32) are linear inverses used daily.
- Cryptography and data encoding: Encryption and decryption operations (such as RSA exponentiation and its modular inverse) rely on function inversion.
- Logarithm/exponential pairs: Compound interest uses A = Pe^(rt); solving for t requires the inverse: t = ln(A/P) / r.
- Signal processing: The inverse Fourier transform inverts the Fourier transform, recovering a signal from its frequency spectrum.
- Physics: Snell's law gives the refraction angle from incident angle via arcsin — the inverse of sin.
The Inverse Function Theorem (Calculus)
In calculus, the inverse function theorem states that if f is differentiable at a and f'(a) ≠ 0, then f⁻¹ is differentiable at b = f(a) and:
(f⁻¹)'(b) = 1 / f'(a) where b = f(a)
This elegant reciprocal relationship is used to differentiate inverse trigonometric functions (arcsin, arccos, arctan), inverse hyperbolic functions, and complex logarithms — all without needing to solve explicitly for the inverse expression. For example, since d/dx[sin x] = cos x, the derivative of arcsin at a point y is 1/cos(arcsin(y)) = 1/√(1−y²).
Graph Reflection Across y = x
A fundamental geometric fact: the graph of f⁻¹(x) is always the reflection of the graph of f(x) across the line y = x. This is because swapping x and y in the equation geometrically reflects every point (a, b) on f to the point (b, a) on f⁻¹. The line y = x is equidistant from (a, b) and (b, a), making it the exact mirror line. The interactive graph on this page plots both f and f⁻¹ together with the y = x line so you can see this symmetry directly.