replacing

Algebraically, we just replace.

Algebraically

Let with its natural or implied domain.
Let with its natural or implied domain.

Algebraically, composition is accomplished by replacing all occurences of the variable with the entire formula for the other function.

Obviously, parentheses are vital here.

We can always make two compositions from two functions.

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