Composition of functions
Forming a new function by applying one function after another
Composition of functions
A composition of functions is the function obtained by applying one function after another: if and are functions (so the codomain of matches the domain of ), then the composition is defined by
Composition is associative when defined, and identity functions act as identities for composition. If is bijective , then composing with its inverse function recovers the appropriate identity functions.
Examples:
- Let be and let be ; then .
- If is the inclusion of a subset and is any function, then is the restriction of to .