Self-inverse functions

Definition

A special type of function is the self-inverse function: a function that is its own inverse. That is, f(x)=f1(x) for all x in the domain of f.

For example, we can check that f(x)=x, g(x)=x and h(x)=1x are all self-inverse functions.

Special results for self-inverse functions

In the previous sections saw that f2(x)=ff(x) and ff1(x)=x. For self inverse functions, since f=f1, we have f2(x)=ff(x)=ff1(x)=x.

The result that f2(x)=x is rather powerful: it means that applying f twice has the same result of not doing anything. This allows us to simplify cases where we compose a function several times.

For example, f3(x)=ff2(x)=f(x) and f4(x)=f2f2(x)=f2(x)=x. Are you able to figure out what f314(x) and f999(x) are?