Properties of Function Composition
Function composition, which involves combining functions sequentially, has several important properties we need to know. Let's study these properties using the following example functions:
Non-Commutative Property
The first and most common property is that the order in which functions are composed matters. Changing the order of functions usually results in a different composite function.
In general, is not equal to .
Example:
Let's compare and .
-
Calculating :
-
Calculating :
Since , it is proven that . This property also applies to other compositions, for example and .
Associative Property
If we compose three or more functions, the order of performing the composition does not affect the final result, as long as the order of the functions remains the same.
Mathematically, for functions , , and , the following holds:
This means we can compose with first, and then compose the result with . Alternatively, we can compose with first, and then compose with the result. The outcome will be the same.
Example:
Let's check if .
-
Calculating :
We already know .
-
Calculating :
First, find :
Now, compose with this result:
Since both results are the same (), the associative property is proven to hold: .
This associative property also applies to other combinations of function order, such as and .
Identity Element
There is a special function called the identity function, denoted by , which is defined as . This function does not change its input.
If a function is composed with the identity function (from either the left or the right), the result is the function itself.
Example:
With :
Both result in the function again.