Home > College of Sciences > Institute of Fundamental Sciences > Maths First > Online Maths Help > Calculus > Differentiation > The Chain Rule > Inner and Outer Functions SEARCH MASSEY

# Chain Rule

## Inner and Outer Functions

In general, by substituting the function g(x) for u in the function f(u) we get the composite function h(x) = f(g(x)).

### Examples

Let f(u) = sin u. If we substitute x2 for u, we get the composite function h(x) = f(x2) = sin (x2)

Let f(u) = u10. If we substitute x2 + 1 for u we get the composite function h(x) = f(x2 + 1) = (x2 + 1)10

Let f(u) = u5. If we substitute sin (x2 + 1) for u we get the composite function h(x) = f(sin (x2 + 1)) = (sin (x2 + 1))5 which is often written sin5 (x2 + 1)

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 , is x½, sin2 x 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.

### Examples

h(x) = (x2 + 1)10 has outer function y = f(u) = u10 and inner function u = g(x) = x2 + 1.

h(x) = log (cos x) has outer function y = f(u) = log u and inner function u = g(x) = cos x.

### Exercise

Complete the table:

Function
h(x)

Outer function
f(u)

Inner function
g(x)

1.

cos (x2 + 1)

Check

2.

ln (sec x)

Check

3.

ex

Check

4.

tan3 (5/x)

Check

5.

(log (2x))−2

Check

If you are finding these problems difficult, a review of algebraic order of operations may help.