Topic summary
Composition of functions
Extracted from the Wikipedia article Function composition.
Examples
- Composition of functions on a finite set: If f = {(1, 1), (2, 3), (3, 1), (4, 2)}, and g = {(1, 2), (2, 3), (3, 1), (4, 2)}, then g ∘ f = {(1, 2), (2, 1), (3, 2), (4, 3)}, as shown in the figure.
- Composition of functions on an infinite set: If f: R → R (where R is the set of all real numbers) is given by f(x) = 2x + 4 and g: R → R is given by g(x) = x, then: (f ∘ g)(x) = f(g(x)) = f(x) = 2x + 4, and(g ∘ f)(x) = g(f(x)) = g(2x + 4) = (2x + 4).
- If an airplane's altitude at time t is a(t), and the air pressure at altitude x is p(x), then (p ∘ a)(t) is the pressure around the plane at time t.
- Function defined on finite sets which change the order of their elements such as permutations can be composed on the same set, this being composition of permutations.