We call g the inner function, and f the outer function of the composition. g may be any function, and often is itself another composite function.

The reversed process of composition is called decomposition. Composition is like dressing your feet, socks on first then boots on, and decomposition like undressing, you take boots off first then socks off.

Some composite functions can be decomposed in several ways. We will only consider those functions whose outermost function is a basic function of the form

un, sin u, cos u, tan u, ln u and eu

At times the expression does not appear to be of these, but often it can be written in these forms.
For example, is x−2,is e−2x , isx½, sin2x is (sin x)2, cos3 (x2 + 1) is (cos (x2 + 1))3

Look now at a decomposition. We need only decompose until we reach a simple function, which we can differentiate easily.

The order of decomposition is very important. Notice the difference in decomposition in the next two examples.