If

is the inverse function of

, then

. In this Demonstration you can choose two functions

and

. The graphs of

and

are drawn with red and blue dashes. Choose the composition

or

. The graph of the composition is drawn as a solid green curve. If it is the line

, the functions are inverses of each other. If the solid curve is only partly the same as the line

, the domain of the functions has to be restricted.