Operations such as , and with two real numbers and can easily be extended to operations with real functions and , and this then gives the functions , and . You can consider these operations for functions as generalisations of those for numbers. However, there is also a fundamentally different way to create a new function from two existing functions, which has no analogue for real numbers. Indeed, you can easily compose several functions, which means applying them one after the other: first apply , and then apply to the result of . That gives the final result .

Consider the functions and . Then

In general, the relationship between and on the one hand, and on the other hand, can be very complicated. Only in simple cases, you can easily see the connection.

Let and be two functions that are composable. Are the following statements true or false?
Every zero point of is also a zero point of TrueFalse
Every zero point of is also a zero point of TrueFalse
The graph of is always above the graph of TrueFalse

Domain of composite functions

In the previous examples and exercises, all functions have a domain and a codomain equal to , and composing was never a problem. If the domain or codomain (or both) is a strict subset of the real numbers, then composing becomes more difficult, and in some cases impossible.

Suppose two functions and are given, with subsets of . Under which conditions can we compose and , and what is the domain and codomain of ?

To determine the value for a number , one must first determine , and so we need . Then must be applied to , and that can only be done if . So the domain of is the subset of that is mapped into :

If (and thus in particular if ) the condition is automatic, and one gets the simpler formula

So in general, the domain of (if this composition exists) is a subset of , the codomain is equal to and the image is a subset of .

In the machine representation, composition in the case of becomes:

2025-10-01 16:07:19