With the caveat that domains need to be aligned, we have many operations on functions that make up an arithmetic on functions...

Addition

The sum of two functions is again a function.

The additive identity is the zero function, for all real numbers.

For each function, , there is another function , such that . and are inverses of each other with respect to addition.

Multiplication

The product of two functions is again a function.

The multiplicative identity is for all real numbers.

For each function, , there is another function , such that , again domain restrictions might be needed to avoid problems. and are inverses of each other with respect to multiplication. (If we were talking about numbers, then we might also use exponential notation .

Composition

Composition is a new operation on functions.

The composition of two functions is again a function.

The identity function, for all , is the identity element with respect to composition.

The inverse of with respect to composition is another function whose composition with produces the identity function.

Stealing the exponential notation from numbers, the symbol for the inverse of is .

If we write a compopsition in function notation, , then we see that the algebra of composition is replacement.

Of course, that isn’t the whole story. As we said earlier, formulas are not functions.

and so , the identity function. But remember our caveat. There are always domain issues. In this case for almost all of the real numbers.

We know that,

This is equivalent to for almost all real numbers.

In this case, , which means that , since is not in the domain of . Secondly, is not in the domain of . We also cannot have values of that make .

There are no such real numbers.

Wait. There is more to this story. We would like the other way as well: and so .

Thus, . We must also avoid , because is not in the domain of .

There are no such real numbers.

Therefore, and are inverse functions on .

1 The Other Half of the Story

We would like our function arithmetic to mimic our arithmetic for numbers. For numbers, the inverses are commutative.

In our example, we also want . It does.

In this case, we cannot have

Therefore, and are inverse functions on .

ooooo=-=-=-=-=-=-=-=-=-=-=-=-=ooOoo=-=-=-=-=-=-=-=-=-=-=-=-=ooooo
more examples can be found by following this link
More Examples of Function Algebra