Given two functions,
-
The order of the composition is important. The notation is read from left to right, so
means apply the function first and the function second. The reason for this order is when you write write down the notation to plug into the function it is , and the function is applied to first. -
Function composition only exists when the codomian of the first function is equal to the domain of the second function. (Though because you can always make the codomain bigger than needed, you could also make function composition work if the codomain of the first function is a subset of the domain of the second function.)
-
It is possible to preform function composition in both directions if the domain and the codomain of the same set. For example if
and then both and are defined. -
The identity function on a set
is defined as the function given by . -
If
is a function then its composition with the identity function is itself:Note the direction the identity function is applied. This is so that the domain/codomain line up correctly for function composition. (Also this means that if
then and are undefined functions.)