Skip to content

Mathematics · Ch 1 — Sets, Relations and Functions

Inverse of a Function

1.6.5

Inverse of a Function

Definition. For a bijection f:X→Yf:X\to Y, the inverse is the function g:Y→Xg:Y\to X defined by g(y)=xg(y)=x whenever f(x)=yf(x)=y; write g=f−1g=f^{-1}. A function with an inverse is invertible.

Composition characterisation. If f:X→Yf:X\to Y is a bijection with inverse g:Y→Xg:Y\to X, then g∘f=IXg\circ f=I_X and f∘g=IYf\circ g=I_Y (the identity functions on X,YX,Y). Conversely, if f:X→Yf:X\to Y and g:Y→Xg:Y\to X satisfy g∘f=IXg\circ f=I_X and f∘g=IYf\circ g=I_Y, then both ff and gg are automatically bijections and are inverses of each other (f−1=g, g−1=ff^{-1}=g,\ g^{-1}=f). This gives a second, equivalent definition of invertibility purely via composition, without mentioning "bijection" directly.

f−1f^{-1} is only ever defined for a bijection: if ff is not one-to-one, some yy has two different pre-images a≠ba\ne b with f(a)=f(b)=yf(a)=f(b)=y, so f−1(y)f^{-1}(y) could not be assigned a single value; if ff is not onto, some yy has no pre-image at all, so f−1(y)f^{-1}(y) has nothing to be.

Example. A={1,2,3,4}, f={(1,2),(2,4),(3,1),(4,3)}A=\{1,2,3,4\},\ f=\{(1,2),(2,4),(3,1),(4,3)\} (a bijection A→AA\to A): f−1={(2,1),(4,2),(1,3),(3,4)}f^{-1}=\{(2,1),(4,2),(1,3),(3,4)\}, i.e. {(1,3),(2,1),(3,4),(4,2)}\{(1,3),(2,1),(3,4),(4,2)\} once re-sorted.

Working rule for f:R→Rf:R\to R. (i) Write y=f(x)y=f(x); (ii) solve algebraically for xx in terms of yy; (iii) that expression is f−1(y)f^{-1}(y); (iv) finally relabel yy as xx to write f−1(x)f^{-1}(x). …