Properties of Composition — Cheat sheet

Choose “Save as PDF” in the print dialog.
On this page

Key method

(f∘g)∘h=f∘(g∘h).(f\circ g)\circ h=f\circ(g\circ h).

Both sides mean f(g(h(x)))f(g(h(x))). With the identity function I(x)=xI(x)=x, f∘I=I∘f=ff\circ I=I\circ f=f on the appropriate domain.

Example

For f(x)=x+1f(x)=x+1 and g(x)=x2g(x)=x^2, (f∘g)(x)=x2+1(f\circ g)(x)=x^2+1, while (g∘f)(x)=(x+1)2(g\circ f)(x)=(x+1)^2. At x=1x=1, the outputs are 22 and 44. Thus associativity does not imply commutativity. An inverse is special: composing it with the original function returns the identity on the corresponding set.

Avoid this mistake

Canceling ff from f(a)=f(b)f(a)=f(b) requires injectivity. It is not a general algebraic cancellation rule.