Mathematics 265 Introduction to Calculus I

Study Guide :: Unit 4

Differentiation

The Chain Rule

Prerequisites

To complete this section, you must be able to recognize the composition of functions. Read the section titled “Composition of Functions” on page 35 of the textbook. Do Exercises 45-50 on page 39.

The chain rule is applied in the differentiation of the composition of two or more functions. We will start by identifying the composition of a power function f ( u ) = u r and a function u = g ( x ) . That is,

f g ( x ) = f ( g ( x ) ) = ( g ( x ) ) r .

It is important that you recognize a function of this form as a composition of these two functions.

Example 4.39. The function h ( x ) = 4 x - 6 is the composition of

f ( u ) = u 1 2  and  u = g ( x ) = 4 x - 6 .

To see this, note that

h ( x ) = f g ( x ) = f ( g ( x ) ) = ( 4 x - 6 ) 1 2 .

Example 4.40. The function h ( x ) = tan 5 ( 3 x ) is the composition of

f ( u ) = u 5  and  u = g ( x ) = tan ( 3 x ) ,

since

h ( x ) = f ( g ( x ) ) = ( tan ( 3 x ) ) 5 .

The composition of a trigonometric function (as outside function) and a function g ( x ) (as an inside function) has the form TrigFctn ( g ( x ) ) .

Example 4.41. The function cos ( x 2 - 5 ) is the composition of cos  t and g ( x ) = x 2 - 5 ; that is, cos ( g ( x ) ) .

Example 4.42. The function sec ( cot  x ) is the composition of sec  t and g ( x ) = cot  x , that is, sec ( g ( x ) ) .

Example 4.43. The function

R ( x ) = 1 sec 2 ( x )

has the form

R ( x ) = ( sec ( x ) ) - 2 ;

hence, it is the composition of the power function f ( u ) = u - 2 and the function u = g 1 ( x ) = sec ( x ) .

At the same time, the function g 1 ( x ) is the composition of the functions sec  t and g 2 ( x ) = x .

Hence,

R ( x ) = f ( sec ( g 2 ( x ) ) ) = [ sec ( g ( x ) ) ] - 2 .

Our problem now is to find the derivative of such functions. The rule that we apply is the chain rule.

The Chain Rule: d d x f g ( x ) = f ( g ( x ) ) g ( x )

On page 152 of the textbook, the author makes an attempt to explain why the chain rule works. To apply this rule, we must understand it. The term f ( g ( x ) ) is the composition of the derivative function f (outside function) and the function g ( x ) (inside function); that is f ( g ( x ) ) = f g ( x ) . So, we must obtain the derivative of the outside function, and then make a composition of this derivative function (as an outside function) with the function g ( x ) .

Example 4.44. The function h ( x ) = 4 x - 6 (see Example 4.39, above) is the composition of f ( u ) = u 1 2 and g ( x ) = 4 x - 6 .

We have

f ( u ) = 1 2 u ,

so

f ( g ( x ) ) = 1 2 g ( x ) = 1 2 4 x - 6 ,

and since g ( x ) = 4 , the derivative is

h ( x ) = 1 2 4 x - 6 ( 4 ) = 2 4 x - 6 .

Example 4.45. The function h ( x ) = sin 3   x is the composition of f ( u ) = u 3 and g ( x ) = sin  x .

Since f ( u ) = 3 u 2 , then f ( g ( x ) ) = 3 ( g ( x ) ) 2 = 3  sin x , and g ( x ) = cos  x . So, h ( x ) = 3  sin x  cos  x . See Example 4.38.

A function of the form h ( x ) = ( g ( x ) ) r is the composition of f ( u ) = u r and u = g ( x ) . Since f ( u ) = r u r - 1 , we have f ( g ( x ) ) = r ( g ( x ) ) r - 1 , and then

d d x ( g ( x ) ) r = r ( g ( x ) ) r - 1 g ( x ) .

This is known as the general power rule.

The General Power Rule: d d x ( g ( x ) ) r = r ( g ( x ) ) r 1 g ( x ) .

Warning: When applying the general power rule, do not forget to multiply $r{(g(x))^{r - 1}}$ by the derivative $g'(x)$. Observe that, to apply the general power rule, we must identify the function $g(x)$ and the power $r$.

Example 4.46. The function f ( x ) = cos x + 5 is equal to f ( x ) = ( cos x + 5 ) 1 2 . Hence, the power is r = 1 2 and g ( x ) = cos x + 5 .

We will find the derivative of g first. Alas, we must use the general power rule, since g ( x ) = ( cos  x ) 3 + 5 .

Hence, g ( x ) = - 3 ( cos  x ) 2  sin  x . [Agree?]

Then,

f ( x ) = 1 2 ( cos 3   x + 5 ) 1 / 2 ( 3 ( cos x ) 2   sin x ) = 3 2 cos 2   x   sin x cos 3   x + 5 .

Example 4.47. For the function R ( x ) = ( sec ( x ) ) - 2 in Example 4.42, we have

d d t  sec  t = sec  t  tan  t  and  d d x x = 1 2 x ,

and by the chain rule, we conclude that

d d x  sec ( x ) = sec ( x )  tan ( x ) 1 2 x .

Hence, by the general power rule,

R ( x ) = 2 ( sec ( x ) 3 [ sec ( x )   tan ( x ) ( 1 2 x ) ] = tan ( x ) sec 2 ( x ) x .

Some particular cases of the general power rule are worth keeping in mind, because we make frequent use of them in this course.

If  f ( x ) = 1 g ( x ) ,   then  r = 1  and d d x 1 g ( x ) = d d x ( g ( x ) ) 1 = g ( x ) ( g ( x ) ) 2 . (4.1)

If  f ( x ) = g ( x ) ,   then  r = 1 2  and d d x g ( x ) = d d x ( g ( x ) ) 1 / 2 = g ( x ) 2 g ( x ) . (4.2)

If  f ( x ) = 1 g ( x ) ,   then  r = 1 2  and d d x 1 g ( x ) = d d x ( g ( x ) ) 1 / 2 = g ( x ) 2 ( g ( x ) ) 3 / 2 . (4.3)

Example 4.48. In the function f ( x ) = 3 x 4  tan  x , the derivative of g ( x ) = x 4  tan  x is obtained by applying the product rule

g ( x ) = x 4 ( sec x ) + ( 4 x 3 ) ( tan  x ) = x 3 ( x  sec x + 4  tan  x )

then by Equation (4.1), above,

f ( x ) = - 3 x 3 ( x  sec x + 4  tan  x ) ( x 4  tan  x ) 2 = - 3 ( x  sec x + 4  tan  x ) x 5  tan x .

Example 4.49. For the function h ( x ) = 1 cot x - 6 x , we have, by the general power rule

d d x cot x - 6 x = - 3 ( cot x  csc x + 2 ) .

Hence, by Equation (4.3), above,

h ( x ) = 3 ( cot x  csc x + 2 ) 2 ( cot x - 6 x ) 3 2 .

Exercises
  1. Do Exercises 1, 3 and 5, on page 157 of the textbook.
  2. Do at least 21 exercises from 7 to 42 on pages 157-158.

Answers to Exercises

The Leibnitz notation of the derivative plays an important role in the chain rule. If we set u = g ( x ) , then f g ( x ) = f ( g ( x ) ) = f ( u ) . In Leibnitz notation

d f d u = f ( u ) = f ( g ( x ) )  and  d u d x = g ( x ) .

Therefore, the chain rule in Leibnitz notation is

d f d x = d f d u d u d x .

Observe in the next examples how effective this notation is.

Example 4.50. For the function in Example 4.49, the function h ( x ) is the composition of f ( u ) = u - 1 2 and u = g ( x ) = cot x - 6 x ; that is h ( x ) = f ( u ) = f g ( x ) = ( cot x - 6 x ) - 1 2 .

In Leibnitz notation,

h ( x ) = d f d u d u d x = 1 2 u 3 / 2 ( 3   cot 2   x   csc 2   x 6 ) = 3   cot 2   x   csc 2   x + 6 2 u 3 / 2 .

Substituting u , we have h ( x ) = 3  cot x  csc x + 6 2 ( cot x - 6 x ) 3 2 .

Example 4.51. For the function R ( x ) = ( sec ( x ) ) - 2 in Example 4.47, the outside and inside functions ( f 1 ( u ) = u - 2 and u = g 1 ( x ) = sec ( x ) , respectively) give the function R ( x ) = f 1 ( u ) = f 1 g 1 ( x ) .

At the same time, g 1 ( x ) is the composition of f 2 ( t ) = sec  t and t = g 2 ( x ) = x ; that is, g 1 ( x ) = f 2 ( t ) = f 2 g 2 ( x ) . Hence, R ( x ) = f 1 ( f 2 g 2 ( x ) ) .

The derivative in Leibnitz notation is

R ( x ) = d f 1 d u d u d t d t d x = - 2 ( u ) - 3 ( sec  t  tan  t ) 1 2 x = - sec  t  tan  t u 3 x .

Substituting u and t , we conclude that

R ( x ) = - sec ( x ) tan ( x ) sec 3 ( x ) x = - tan ( x ) sec 2 ( x ) x .

For help with the concept of differentiation, view the PowerPoint tutorials below. To access a tutorial:

  1. Click on the file to open it.
  2. Extract the files and save them to your computer’s hard drive.
  3. Click on the file folder to open it.
  4. Click on the PowerPoint file to view and listen.

Note: If you don’t have PowerPoint installed on your computer, you can download the PowerPoint Viewer from here: https://support.office.com/en-za/article/View-a-presentation-without-PowerPoint-2010-2f1077ab-9a4e-41ba-9f75-d55bd9b231a6.

Tutorial 1: Applying Differentiation Rules

Tutorial 2: Differentiation

Tutorial 3: Differentiation

Exercises
  1. Read Examples 1-8 on pages 153-156 of the textbook.
  2. Do part (a) of Exercises 47, 49 and 53 on page 158.

Answers to Exercises