Definition:Composition of Mappings

Definition
Let $$f_1: S_1 \to S_2$$ and $$f_2: S_2 \to S_3$$ be mappings such that the domain of $$f_2$$ is the same set as the codomain of $$f_1$$.

Then the composite of $$f_1$$ and $$f_2$$ is defined and denoted as:


 * $$f_2 \circ f_1 = \left\{{\left({x, z}\right): x \in S_1, z \in S_3: \exists y \in S_2: \left({x, y}\right) \in f_1 \and \left({y, z}\right) \in f_2}\right\}$$

That is, the composite mapping $$f_2 \circ f_1$$ is defined as:


 * $$f_2 \circ f_1 \left({S_1}\right) = f_2 \left({f_1 \left({S_1}\right)}\right)$$


 * CompositeMapping.png

Domain and Codomain
The domain of $$f_2 \circ f_1$$ is the domain of $$f_1$$:
 * $$\operatorname{Dom} \left({f_2 \circ f_1}\right) = \operatorname{Dom} \left({f_1}\right)$$

The codomain of $$f_2 \circ f_1$$ is the codomain of $$f_2$$:
 * $$\operatorname{Cdm} \left({f_2 \circ f_1}\right) = \operatorname{Cdm} \left({f_2}\right)$$

These follow directly from:
 * $$f_2 \circ f_1 \subseteq S_1 \times S_3$$

Alternative Terminology
Some authors write $$f_2 \circ f_1$$ as $$f_2 f_1$$.

Some sources call $$f_2 \circ f_1$$ the resultant of $$f_1$$ and $$f_2$$ or the product of $$f_1$$ and $$f_2$$.

See, for example,.