Discrete Math Tutor

Relations / Function Composition Inverse

Least You Need to Know: Composition and Inverses

Function composition means applying one function and then another. A function has an inverse only when each output comes from exactly one input.

The least you need to know

Key notation

f∘g apply g, then f
f^{-1} inverse function
f(f^{-1}(y)) returns y when the inverse exists

Tiny worked example

  • Let `f(x)=2x+1` and `g(x)=x^2`.
  • Then `(f∘g)(3)=f(9)=19`.
  • If `f` is one-to-one, its inverse solves `y=2x+1`, so `f^{-1}(y)=(y-1)/2`.

Common mistakes

How to recognize this kind of problem

Start practice