Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2014/discrete-mathematics-continuous-mathematics-and-probability/1/d/solution

Function composition is not always commutative. The reversed function composition may be undefined when the necessary domain of a function and codomain do not match. A counterexample using functions avoids that issue: let and . Then
Both function compositions exist, and their values differ at every real .

New to topics? Read the docs here!