Canonical: https://knowlpedia.com/shared-foundations/inverse-function/

# Inverse function

A function that undoes a bijective function

If \(f:A\to B\) is a [bijection](https://knowlpedia.com/shared-foundations/bijective-function/), its **inverse function** is the function \(f^{-1}:B\to A\) for which \(f^{-1}(b)\) is the unique \(a\in A\) satisfying \(f(a)=b\).

## Equivalent characterization

Equivalently,
\[
f^{-1}\circ f=\mathrm{id}_A\quad\text{and}\quad f\circ f^{-1}=\mathrm{id}_B,
\]

where \(\mathrm{id}_A\) and \(\mathrm{id}_B\) are [identity functions](https://knowlpedia.com/shared-foundations/identity-function/).

## Remarks

The notation \(f^{-1}\) is also used for the [preimage](https://knowlpedia.com/shared-foundations/preimage/) of a subset, an operation defined even when \(f\) is not bijective.

## Examples

- The inverse of \(f:\mathbb R\to\mathbb R\), \(f(x)=x^3\), is \(f^{-1}(y)=\sqrt[3]{y}\).
- The inverse of \(f:\mathbb Z\to\mathbb Z\), \(f(n)=n+1\), is \(f^{-1}(m)=m-1\).
