Mathematics and Statistics · Ch 2 — Functions
Composite Functions
Composite Functions
Given two functions and , the composite function (read " composed with ", or " of ") is defined by first applying and then applying to the result:
For this composition to make sense, the codomain of must match (or be contained in) the domain of — the output of the first function must be a valid input to the second.
The single most important rule of composition is that it is generally not commutative: and are, in general, two entirely different functions, even when both are defined. They must always be worked out separately, never assumed equal. For example, with and ,
which are clearly different.
Composition is, however, associative: , so a chain of three or more functions may be grouped in any way. Composing any function with the identity function leaves it unchanged: . …
For and , the composite applies first, then . It requires the range of to lie …
In general ; the two composites must be computed separately. Composition is, however, associative, and the identity function is neu …