MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the...

107
MAT01A1: the Chain Rule Dr Craig Week: 4 May 2020

Transcript of MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the...

Page 1: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

MAT01A1: the Chain Rule

Dr Craig

Week: 4 May 2020

Page 2: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

This lecture covers a very important

differentiation technique. Before we get

started, let’s recap some of the concepts

from last week.

Page 3: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Warm up:

A nice question that requires Special Limits:

limθ→0

sin 3θ

θ + tan 8θAttempt this and then look at the solution

on the next slide.

Hint: look at the example limx→0

sin 7x

4xfrom

last time.

Page 4: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Solution: We want to get this in a form so

that we can use limx→0

sinx

x= 1. We divide

above and below by 3θ.

limθ→0

sin 3θ

θ + tan 8θ= lim

θ→0

(sin 3θ)/(3θ)

θ/(3θ) + (tan 8θ)/(3θ)

Next, we change the tan 8θ tosin 8θ

cos 8θ.

limθ→0

sin 3θ3θ

13 +

tan 8θ3θ

= limθ→0

sin 3θ3θ

13 +

sin 8θ3θ cos 8θ

Page 5: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Solution: We want to get this in a form so

that we can use limx→0

sinx

x= 1. We divide

above and below by 3θ.

limθ→0

sin 3θ

θ + tan 8θ= lim

θ→0

(sin 3θ)/(3θ)

θ/(3θ) + (tan 8θ)/(3θ)

Next, we change the tan 8θ tosin 8θ

cos 8θ.

limθ→0

sin 3θ3θ

13 +

tan 8θ3θ

= limθ→0

sin 3θ3θ

13 +

sin 8θ3θ cos 8θ

Page 6: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Solution: We want to get this in a form so

that we can use limx→0

sinx

x= 1. We divide

above and below by 3θ.

limθ→0

sin 3θ

θ + tan 8θ= lim

θ→0

(sin 3θ)/(3θ)

θ/(3θ) + (tan 8θ)/(3θ)

Next, we change the tan 8θ tosin 8θ

cos 8θ.

limθ→0

sin 3θ3θ

13 +

tan 8θ3θ

= limθ→0

sin 3θ3θ

13 +

sin 8θ3θ cos 8θ

Page 7: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Solution: We want to get this in a form so

that we can use limx→0

sinx

x= 1. We divide

above and below by 3θ.

limθ→0

sin 3θ

θ + tan 8θ= lim

θ→0

(sin 3θ)/(3θ)

θ/(3θ) + (tan 8θ)/(3θ)

Next, we change the tan 8θ tosin 8θ

cos 8θ.

limθ→0

sin 3θ3θ

13 +

tan 8θ3θ

= limθ→0

sin 3θ3θ

13 +

sin 8θ3θ cos 8θ

Page 8: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Now we apply the same technique that we

used for the example in the last lecture:

limθ→0

sin 3θ3θ

13 +

sin 8θ3θ cos 8θ

= limθ→0

sin 3θ3θ

13 +(

sin 8θ3θ cos 8θ ×

88

)

We re-arrange the fraction in the bottom

right and take the limit:

limθ→0

sin 3θ3θ

13 +(

83 cos 8θ ×

sin 8θ8θ

) = limθ→0

sin 3θ3θ

limθ→0

13 + lim

θ→0

83 cos 8θ limθ→0

sin 8θ8θ

=1

(1/3) + (8/3)(1)=

1

3

Page 9: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Now we apply the same technique that we

used for the example in the last lecture:

limθ→0

sin 3θ3θ

13 +

sin 8θ3θ cos 8θ

= limθ→0

sin 3θ3θ

13 +(

sin 8θ3θ cos 8θ ×

88

)We re-arrange the fraction in the bottom

right and take the limit:

limθ→0

sin 3θ3θ

13 +(

83 cos 8θ ×

sin 8θ8θ

) = limθ→0

sin 3θ3θ

limθ→0

13 + lim

θ→0

83 cos 8θ limθ→0

sin 8θ8θ

=1

(1/3) + (8/3)(1)=

1

3

Page 10: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Now we apply the same technique that we

used for the example in the last lecture:

limθ→0

sin 3θ3θ

13 +

sin 8θ3θ cos 8θ

= limθ→0

sin 3θ3θ

13 +(

sin 8θ3θ cos 8θ ×

88

)We re-arrange the fraction in the bottom

right and take the limit:

limθ→0

sin 3θ3θ

13 +(

83 cos 8θ ×

sin 8θ8θ

) = limθ→0

sin 3θ3θ

limθ→0

13 + lim

θ→0

83 cos 8θ limθ→0

sin 8θ8θ

=1

(1/3) + (8/3)(1)=

1

3

Page 11: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Quick revision quiz

Write down the following

1. (fg)′

2.

(f

g

)′3. d

dx(sinx)

4. ddx(cosx)

5. ddx(tanx)

6. ddx(cscx)

7. ddx(secx)

8. ddx(cotx)

Page 12: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

The product rule:

If f and g are both differentiable, then:

d

dx[f (x).g(x)] = f (x)

d

dxg(x)+g(x)

d

dxf (x)

Or, in abbreviated form:

(f · g)′ = f ′g + g′f

Page 13: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

The quotient rule:

If f and g are both differentiable, then:

d

dx

[f (x)

g(x)

]=g(x) ddx[f (x)]− f (x)

ddx[g(x)]

[g(x)]2

In abbreviated form:(fg

)′=f ′g − g′f

g2.

Page 14: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Derivatives of Trig Functions:

d

dx(sinx) = cosx

d

dx(cscx) = − cscx cotx

d

dx(cosx) = − sinx

d

dx(secx) = secx tanx

d

dx(tanx) = sec2 x

d

dx(cotx) = − csc2 x

Page 15: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

I regard the Chain Rule as the single mostimportant topic in the entire year. If you

do not properly understand the Chain Rule,

the rest of MAT01A1 and MAT01B1 will be

a total mystery. So, here we go. . .

Page 16: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Derivatives of more complex functions

Our rules do not yet allow us to differentiate

functions like the following

F (x) =√x2 + 1

G(x) = sin(3x)

H(x) = ex2

The Chain Rule enables us to differentiate

composite functions. A proof can be found

in the textbook (it is not required).

Page 17: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

The Chain Rule

If f and g are both differentiable and

F = f ◦ g is the composite function

F (x) = f (g(x)),

then F is differentiable and F ′ is given by

F ′(x) = f ′(g(x)).g′(x)

Example: Findd

dx

(√x2 + 3x

)

Page 18: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

The Chain Rule

If f and g are both differentiable and

F = f ◦ g is the composite function

F (x) = f (g(x)),

then F is differentiable and F ′ is given by

F ′(x) = f ′(g(x)).g′(x)

Example: Findd

dx

(√x2 + 3x

)

Page 19: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Example: Findd

dx

(√x2 + 3x

)

The chain rule says if

F (x) = f(g(x)) then F ′(x) = f ′(g(x)).g′(x)

Here we have the outer function f(x) =√x, and

the inner function g(x) = x2 + 3x. Using our rulesof differentiation we have

f ′(x) =1

2√x

and g′(x) = 2x+ 3.

To calculaute f ′(g(x)), we use g(x) as the inputinto the derivative function f ′(x). Therefore

f ′(g(x)) =1

2√x2 + 3x

Page 20: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Example: Findd

dx

(√x2 + 3x

)The chain rule says if

F (x) = f(g(x)) then F ′(x) = f ′(g(x)).g′(x)

Here we have the outer function f(x) =√x, and

the inner function g(x) = x2 + 3x. Using our rulesof differentiation we have

f ′(x) =1

2√x

and g′(x) = 2x+ 3.

To calculaute f ′(g(x)), we use g(x) as the inputinto the derivative function f ′(x). Therefore

f ′(g(x)) =1

2√x2 + 3x

Page 21: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Example: Findd

dx

(√x2 + 3x

)The chain rule says if

F (x) = f(g(x)) then F ′(x) = f ′(g(x)).g′(x)

Here we have the outer function f(x) =√x, and

the inner function g(x) = x2 + 3x.

Using our rulesof differentiation we have

f ′(x) =1

2√x

and g′(x) = 2x+ 3.

To calculaute f ′(g(x)), we use g(x) as the inputinto the derivative function f ′(x). Therefore

f ′(g(x)) =1

2√x2 + 3x

Page 22: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Example: Findd

dx

(√x2 + 3x

)The chain rule says if

F (x) = f(g(x)) then F ′(x) = f ′(g(x)).g′(x)

Here we have the outer function f(x) =√x, and

the inner function g(x) = x2 + 3x. Using our rulesof differentiation we have

f ′(x) =1

2√x

and g′(x) = 2x+ 3.

To calculaute f ′(g(x)), we use g(x) as the inputinto the derivative function f ′(x). Therefore

f ′(g(x)) =1

2√x2 + 3x

Page 23: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Example: Findd

dx

(√x2 + 3x

)The chain rule says if

F (x) = f(g(x)) then F ′(x) = f ′(g(x)).g′(x)

Here we have the outer function f(x) =√x, and

the inner function g(x) = x2 + 3x. Using our rulesof differentiation we have

f ′(x) =1

2√x

and g′(x) = 2x+ 3.

To calculaute f ′(g(x)), we use g(x) as the inputinto the derivative function f ′(x). Therefore

f ′(g(x)) =1

2√x2 + 3x

Page 24: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

If F (x) = f (g(x)) then

F ′(x) = f ′(g(x)).g′(x)

Example: Findd

dx

(√x2 + 3x

)

Solution:

d

dx

(√x2 + 3x

)=

1

2√x2 + 3x

(2x + 3)

=2x + 3

2√x2 + 3x

Page 25: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

If F (x) = f (g(x)) then

F ′(x) = f ′(g(x)).g′(x)

Example: Findd

dx

(√x2 + 3x

)Solution:

d

dx

(√x2 + 3x

)=

1

2√x2 + 3x

(2x + 3)

=2x + 3

2√x2 + 3x

Page 26: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Chain rule examples:

Differentiate the following functions:

1. H(x) = sin(x2)

2. T (x) = sin2 x

The key to successfully applying the Chain

Rule is recognising the inner and outer

function.

The easiest way to do this is to think about

how you would evaluate the function at a

given x value.

Page 27: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Chain rule examples:

Differentiate the following functions:

1. H(x) = sin(x2)

2. T (x) = sin2 x

The key to successfully applying the Chain

Rule is recognising the inner and outer

function.

The easiest way to do this is to think about

how you would evaluate the function at a

given x value.

Page 28: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Chain rule examples:

Differentiate the following functions:

1. H(x) = sin(x2)

2. T (x) = sin2 x

The key to successfully applying the Chain

Rule is recognising the inner and outer

function.

The easiest way to do this is to think about

how you would evaluate the function at a

given x value.

Page 29: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

1. H(x) = sin(x2)

2. T (x) = sin2 x = (sinx)2

How would you evaluate H(x) for some value

of x?

First you would square x and then you

would put the result into the sin function.

For T (x), you would first calculate sinx and

then square the result.

Page 30: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

1. H(x) = sin(x2)

2. T (x) = sin2 x = (sinx)2

How would you evaluate H(x) for some value

of x? First you would square x and then you

would put the result into the sin function.

For T (x), you would first calculate sinx and

then square the result.

Page 31: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

1. H(x) = sin(x2)

2. T (x) = sin2 x = (sinx)2

How would you evaluate H(x) for some value

of x? First you would square x and then you

would put the result into the sin function.

For T (x), you would first calculate sinx and

then square the result.

Page 32: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

1. H(x) = sin(x2)

2. T (x) = sin2 x

Solutions:

1. We have H(x) = f (g(x)) where

g(x) = x2 and f (x) = sinx. Therefore

H ′(x) = f ′(g(x)).g′(x) = cos(x2).2x

2. Now we have T (x) = f (g(x)) where

g(x) = sinx and f (x) = x2. Therefore

T ′(x) = f ′(g(x)).g′(x)

= 2(sinx)1. cosx = 2 sinx cosx

Page 33: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

1. H(x) = sin(x2)

2. T (x) = sin2 x

Solutions:

1. We have H(x) = f (g(x)) where

g(x) = x2 and f (x) = sinx.

Therefore

H ′(x) = f ′(g(x)).g′(x) = cos(x2).2x

2. Now we have T (x) = f (g(x)) where

g(x) = sinx and f (x) = x2. Therefore

T ′(x) = f ′(g(x)).g′(x)

= 2(sinx)1. cosx = 2 sinx cosx

Page 34: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

1. H(x) = sin(x2)

2. T (x) = sin2 x

Solutions:

1. We have H(x) = f (g(x)) where

g(x) = x2 and f (x) = sinx. Therefore

H ′(x) = f ′(g(x)).g′(x) = cos(x2).2x

2. Now we have T (x) = f (g(x)) where

g(x) = sinx and f (x) = x2. Therefore

T ′(x) = f ′(g(x)).g′(x)

= 2(sinx)1. cosx = 2 sinx cosx

Page 35: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

1. H(x) = sin(x2)

2. T (x) = sin2 x

Solutions:

1. We have H(x) = f (g(x)) where

g(x) = x2 and f (x) = sinx. Therefore

H ′(x) = f ′(g(x)).g′(x) = cos(x2).2x

2. Now we have T (x) = f (g(x)) where

g(x) = sinx and f (x) = x2.

Therefore

T ′(x) = f ′(g(x)).g′(x)

= 2(sinx)1. cosx = 2 sinx cosx

Page 36: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

1. H(x) = sin(x2)

2. T (x) = sin2 x

Solutions:

1. We have H(x) = f (g(x)) where

g(x) = x2 and f (x) = sinx. Therefore

H ′(x) = f ′(g(x)).g′(x) = cos(x2).2x

2. Now we have T (x) = f (g(x)) where

g(x) = sinx and f (x) = x2. Therefore

T ′(x) = f ′(g(x)).g′(x)

= 2(sinx)1. cosx = 2 sinx cosx

Page 37: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

1. H(x) = sin(x2)

2. T (x) = sin2 x

Solutions:

1. We have H(x) = f (g(x)) where

g(x) = x2 and f (x) = sinx. Therefore

H ′(x) = f ′(g(x)).g′(x) = cos(x2).2x

2. Now we have T (x) = f (g(x)) where

g(x) = sinx and f (x) = x2. Therefore

T ′(x) = f ′(g(x)).g′(x)

= 2(sinx)1. cosx = 2 sinx cosx

Page 38: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

More chain rule examples:

Differentiate the following functions:

3. y = (x3 − 1)100

4. f (x) =1

3√x2 + x + 1

5. g(t) =

(t− 1

2t + 1

)9

Try them first on your own. The solutions

are on the slides that follow.

Page 39: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

3. y = (x3 − 1)100

y′ = 100(x3−1)99 ddx

(x3−1)

= 100(x3 − 1)993x2 = 300x2(x3 − 1)99

4. f (x) =1

3√x2 + x + 1

= (x2 + x + 1)−1/3

f ′(x) = (−1/3)(x2+x+1)−4/3 ddx

(x2+x+1)

=−1

3(x2 + x + 1)4/3(2x + 1) =

−2x− 1

3(x2 + x + 1)4/3

Page 40: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

3. y = (x3 − 1)100

y′ = 100(x3−1)99 ddx

(x3−1)

= 100(x3 − 1)993x2 = 300x2(x3 − 1)99

4. f (x) =1

3√x2 + x + 1

= (x2 + x + 1)−1/3

f ′(x) = (−1/3)(x2+x+1)−4/3 ddx

(x2+x+1)

=−1

3(x2 + x + 1)4/3(2x + 1) =

−2x− 1

3(x2 + x + 1)4/3

Page 41: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

3. y = (x3 − 1)100

y′ = 100(x3−1)99 ddx

(x3−1)

= 100(x3 − 1)993x2 =

300x2(x3 − 1)99

4. f (x) =1

3√x2 + x + 1

= (x2 + x + 1)−1/3

f ′(x) = (−1/3)(x2+x+1)−4/3 ddx

(x2+x+1)

=−1

3(x2 + x + 1)4/3(2x + 1) =

−2x− 1

3(x2 + x + 1)4/3

Page 42: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

3. y = (x3 − 1)100

y′ = 100(x3−1)99 ddx

(x3−1)

= 100(x3 − 1)993x2 = 300x2(x3 − 1)99

4. f (x) =1

3√x2 + x + 1

= (x2 + x + 1)−1/3

f ′(x) = (−1/3)(x2+x+1)−4/3 ddx

(x2+x+1)

=−1

3(x2 + x + 1)4/3(2x + 1) =

−2x− 1

3(x2 + x + 1)4/3

Page 43: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

3. y = (x3 − 1)100

y′ = 100(x3−1)99 ddx

(x3−1)

= 100(x3 − 1)993x2 = 300x2(x3 − 1)99

4. f (x) =1

3√x2 + x + 1

= (x2 + x + 1)−1/3

f ′(x) = (−1/3)(x2+x+1)−4/3 ddx

(x2+x+1)

=−1

3(x2 + x + 1)4/3(2x + 1) =

−2x− 1

3(x2 + x + 1)4/3

Page 44: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

3. y = (x3 − 1)100

y′ = 100(x3−1)99 ddx

(x3−1)

= 100(x3 − 1)993x2 = 300x2(x3 − 1)99

4. f (x) =1

3√x2 + x + 1

= (x2 + x + 1)−1/3

f ′(x) = (−1/3)(x2+x+1)−4/3 ddx

(x2+x+1)

=−1

3(x2 + x + 1)4/3(2x + 1) =

−2x− 1

3(x2 + x + 1)4/3

Page 45: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

3. y = (x3 − 1)100

y′ = 100(x3−1)99 ddx

(x3−1)

= 100(x3 − 1)993x2 = 300x2(x3 − 1)99

4. f (x) =1

3√x2 + x + 1

= (x2 + x + 1)−1/3

f ′(x) = (−1/3)(x2+x+1)−4/3 ddx

(x2+x+1)

=−1

3(x2 + x + 1)4/3(2x + 1) =

−2x− 1

3(x2 + x + 1)4/3

Page 46: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

3. y = (x3 − 1)100

y′ = 100(x3−1)99 ddx

(x3−1)

= 100(x3 − 1)993x2 = 300x2(x3 − 1)99

4. f (x) =1

3√x2 + x + 1

= (x2 + x + 1)−1/3

f ′(x) = (−1/3)(x2+x+1)−4/3 ddx

(x2+x+1)

=−1

3(x2 + x + 1)4/3(2x + 1)

=−2x− 1

3(x2 + x + 1)4/3

Page 47: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

3. y = (x3 − 1)100

y′ = 100(x3−1)99 ddx

(x3−1)

= 100(x3 − 1)993x2 = 300x2(x3 − 1)99

4. f (x) =1

3√x2 + x + 1

= (x2 + x + 1)−1/3

f ′(x) = (−1/3)(x2+x+1)−4/3 ddx

(x2+x+1)

=−1

3(x2 + x + 1)4/3(2x + 1) =

−2x− 1

3(x2 + x + 1)4/3

Page 48: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

5. g(t) =

(t− 1

2t + 1

)9

g′(t) = 9

(t− 1

2t + 1

)8d

dt

(t− 1

2t + 1

)

= 9

(t− 1

2t + 1

)8((1)(2t + 1)− (t− 1)(2)

(2t + 1)2

)

= 9

(t− 1

2t + 1

)8(3

(2t + 1)2

)=

27(t− 1)8

(2t + 1)10

Page 49: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

5. g(t) =

(t− 1

2t + 1

)9

g′(t) = 9

(t− 1

2t + 1

)8d

dt

(t− 1

2t + 1

)

= 9

(t− 1

2t + 1

)8((1)(2t + 1)− (t− 1)(2)

(2t + 1)2

)

= 9

(t− 1

2t + 1

)8(3

(2t + 1)2

)=

27(t− 1)8

(2t + 1)10

Page 50: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

5. g(t) =

(t− 1

2t + 1

)9

g′(t) = 9

(t− 1

2t + 1

)8d

dt

(t− 1

2t + 1

)

= 9

(t− 1

2t + 1

)8((1)(2t + 1)− (t− 1)(2)

(2t + 1)2

)

= 9

(t− 1

2t + 1

)8(3

(2t + 1)2

)=

27(t− 1)8

(2t + 1)10

Page 51: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

5. g(t) =

(t− 1

2t + 1

)9

g′(t) = 9

(t− 1

2t + 1

)8d

dt

(t− 1

2t + 1

)

= 9

(t− 1

2t + 1

)8((1)(2t + 1)− (t− 1)(2)

(2t + 1)2

)

= 9

(t− 1

2t + 1

)8(3

(2t + 1)2

)

=27(t− 1)8

(2t + 1)10

Page 52: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

5. g(t) =

(t− 1

2t + 1

)9

g′(t) = 9

(t− 1

2t + 1

)8d

dt

(t− 1

2t + 1

)

= 9

(t− 1

2t + 1

)8((1)(2t + 1)− (t− 1)(2)

(2t + 1)2

)

= 9

(t− 1

2t + 1

)8(3

(2t + 1)2

)=

27(t− 1)8

(2t + 1)10

Page 53: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Another method for trig derivatives

Findd

dx(cscx)

using the fact that cscx = (sinx)−1.

Try this on your own and then look at the

solution on the next slide.

Page 54: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

d

dx(cscx) =

d

dx

((sinx)−1

)

The outer function is f (x) = x−1 and the

inner function is g(x) = sinx.

d

dxf (g(x)) = f ′(g(x)).g′(x)

Therefored

dx

((sinx)−1

)= (−1)(sinx)−2 d

dx(sinx)

=−1

(sinx)2(cosx) =

− cosx

sinx· 1

sinx= −cotx cscx

Page 55: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

d

dx(cscx) =

d

dx

((sinx)−1

)The outer function is f (x) = x−1 and the

inner function is g(x) = sinx.

d

dxf (g(x)) = f ′(g(x)).g′(x)

Therefored

dx

((sinx)−1

)= (−1)(sinx)−2 d

dx(sinx)

=−1

(sinx)2(cosx) =

− cosx

sinx· 1

sinx= −cotx cscx

Page 56: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

d

dx(cscx) =

d

dx

((sinx)−1

)The outer function is f (x) = x−1 and the

inner function is g(x) = sinx.

d

dxf (g(x)) = f ′(g(x)).g′(x)

Therefored

dx

((sinx)−1

)= (−1)(sinx)−2 d

dx(sinx)

=−1

(sinx)2(cosx) =

− cosx

sinx· 1

sinx= −cotx cscx

Page 57: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

d

dx(cscx) =

d

dx

((sinx)−1

)The outer function is f (x) = x−1 and the

inner function is g(x) = sinx.

d

dxf (g(x)) = f ′(g(x)).g′(x)

Therefored

dx

((sinx)−1

)= (−1)(sinx)−2 d

dx(sinx)

=−1

(sinx)2(cosx) =

− cosx

sinx· 1

sinx= −cotx cscx

Page 58: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

d

dx(cscx) =

d

dx

((sinx)−1

)The outer function is f (x) = x−1 and the

inner function is g(x) = sinx.

d

dxf (g(x)) = f ′(g(x)).g′(x)

Therefored

dx

((sinx)−1

)= (−1)(sinx)−2 d

dx(sinx)

=−1

(sinx)2(cosx)

=− cosx

sinx· 1

sinx= −cotx cscx

Page 59: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

d

dx(cscx) =

d

dx

((sinx)−1

)The outer function is f (x) = x−1 and the

inner function is g(x) = sinx.

d

dxf (g(x)) = f ′(g(x)).g′(x)

Therefored

dx

((sinx)−1

)= (−1)(sinx)−2 d

dx(sinx)

=−1

(sinx)2(cosx) =

− cosx

sinx· 1

sinx=

−cotx cscx

Page 60: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

d

dx(cscx) =

d

dx

((sinx)−1

)The outer function is f (x) = x−1 and the

inner function is g(x) = sinx.

d

dxf (g(x)) = f ′(g(x)).g′(x)

Therefored

dx

((sinx)−1

)= (−1)(sinx)−2 d

dx(sinx)

=−1

(sinx)2(cosx) =

− cosx

sinx· 1

sinx= −cotx cscx

Page 61: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

This is a good point to take a break. Have a

look over the examples that have been done

already and make sure you understand them.

Come back in 20 minutes, or even tomorrow,

to carry on.

Page 62: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

A useful piece of terminology

If F (x) = f(g(x)) then F ′(x) = f ′(g(x)).g′(x)

The derivative of the inner function is often

referred to as the “chain rule factor”, e.g.:

d

dt(cot 2t) = (− csc2 2t)2 = −2 csc2 2t

Here the 2 is what we would call the chain

rule factor. When doing a long differentiation

problem, make sure that you remember to

include the chain rule factor in each step!

Page 63: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Chain rule with product rule

Differentiate

y = (2x + 1)5(x3 − x + 1)4

Try this on your own before looking at the

solution. Hint: apply the product rule first

(recall (fg)′ = f ′g + g′f) and then use the

chain rule to calculate f ′ and g′.

Tidy up your answer at the end by taking out

common factors.

Page 64: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Chain rule with product rule

Differentiate

y = (2x + 1)5(x3 − x + 1)4

Try this on your own before looking at the

solution. Hint: apply the product rule first

(recall (fg)′ = f ′g + g′f) and then use the

chain rule to calculate f ′ and g′.

Tidy up your answer at the end by taking out

common factors.

Page 65: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

y′ =d

dx

((2x + 1)5

)(x3 − x + 1)4+

(2x + 1)5d

dx

((x3 − x + 1)4

)

=

(5(2x + 1)4 · d

dx(2x + 1)

)(x3−x+1)4+

(2x+1)5(

(4(x3 − x + 1)3 · d

dx(x3 − x + 1)

)=(5(2x + 1)4 · 2

)(x3 − x + 1)4+

(2x + 1)5(4(x3 − x + 1)3 · (3x2 − 1)

)

Page 66: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

y′ =d

dx

((2x + 1)5

)(x3 − x + 1)4+

(2x + 1)5d

dx

((x3 − x + 1)4

)=

(5(2x + 1)4 · d

dx(2x + 1)

)(x3−x+1)4+

(2x+1)5(

(4(x3 − x + 1)3 · d

dx(x3 − x + 1)

)

=(5(2x + 1)4 · 2

)(x3 − x + 1)4+

(2x + 1)5(4(x3 − x + 1)3 · (3x2 − 1)

)

Page 67: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

y′ =d

dx

((2x + 1)5

)(x3 − x + 1)4+

(2x + 1)5d

dx

((x3 − x + 1)4

)=

(5(2x + 1)4 · d

dx(2x + 1)

)(x3−x+1)4+

(2x+1)5(

(4(x3 − x + 1)3 · d

dx(x3 − x + 1)

)=(5(2x + 1)4 · 2

)(x3 − x + 1)4+

(2x + 1)5(4(x3 − x + 1)3 · (3x2 − 1)

)

Page 68: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

= 10(2x + 1)4(x3 − x + 1)4+

4(2x + 1)5(x3 − x + 1)3(3x2 − 1)

= 2(2x+1)4(x3− x+1)3(5(x3− x+1)+

2(2x + 1)(3x2 − 1))

= 2(2x+1)4(x3−x+1)3(17x3+6x2−9x+3)

Page 69: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

= 10(2x + 1)4(x3 − x + 1)4+

4(2x + 1)5(x3 − x + 1)3(3x2 − 1)

= 2(2x+1)4(x3− x+1)3(5(x3− x+1)+

2(2x + 1)(3x2 − 1))

= 2(2x+1)4(x3−x+1)3(17x3+6x2−9x+3)

Page 70: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

= 10(2x + 1)4(x3 − x + 1)4+

4(2x + 1)5(x3 − x + 1)3(3x2 − 1)

= 2(2x+1)4(x3− x+1)3(5(x3− x+1)+

2(2x + 1)(3x2 − 1))

= 2(2x+1)4(x3−x+1)3(17x3+6x2−9x+3)

Page 71: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Combining other rules

We can use the chain rule with the rule for

the derivative of ex.

Find the derivative:

h(x) = esinx

We can think of h(x) = f (g(x)) where

g(x) = sinx and f (x) = ex. Recall thatddx(e

x) = ex. Therefore

h′(x) = f ′(g(x)) · g′(x) = esinx cosx.

Page 72: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Combining other rules

We can use the chain rule with the rule for

the derivative of ex.

Find the derivative:

h(x) = esinx

We can think of h(x) = f (g(x)) where

g(x) = sinx and f (x) = ex. Recall thatddx(e

x) = ex. Therefore

h′(x) = f ′(g(x)) · g′(x) = esinx cosx.

Page 73: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Combining other rules

We can use the chain rule with the rule for

the derivative of ex.

Find the derivative:

h(x) = esinx

We can think of h(x) = f (g(x)) where

g(x) = sinx and f (x) = ex.

Recall thatddx(e

x) = ex. Therefore

h′(x) = f ′(g(x)) · g′(x) = esinx cosx.

Page 74: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Combining other rules

We can use the chain rule with the rule for

the derivative of ex.

Find the derivative:

h(x) = esinx

We can think of h(x) = f (g(x)) where

g(x) = sinx and f (x) = ex. Recall thatddx(e

x) = ex.

Therefore

h′(x) = f ′(g(x)) · g′(x) = esinx cosx.

Page 75: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Combining other rules

We can use the chain rule with the rule for

the derivative of ex.

Find the derivative:

h(x) = esinx

We can think of h(x) = f (g(x)) where

g(x) = sinx and f (x) = ex. Recall thatddx(e

x) = ex. Therefore

h′(x) = f ′(g(x)) · g′(x) =

esinx cosx.

Page 76: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Combining other rules

We can use the chain rule with the rule for

the derivative of ex.

Find the derivative:

h(x) = esinx

We can think of h(x) = f (g(x)) where

g(x) = sinx and f (x) = ex. Recall thatddx(e

x) = ex. Therefore

h′(x) = f ′(g(x)) · g′(x) = esinx cosx.

Page 77: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

A reminder about ex and lnx

Two important facts:

ln e = 1 and elnx = x.

How do we get these?

We have loga a = 1 for any a > 0 and therefore

ln e = loge e = 1.

Also, for a > 0 and b > 0 we have

loga b = c ⇐⇒ ac = b.

Now lnx = lnx so loge x = loge x. Henceeloge x = x. This gives us elnx = x.

Page 78: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

A reminder about ex and lnx

Two important facts:

ln e = 1 and elnx = x.

How do we get these?

We have loga a = 1 for any a > 0 and therefore

ln e = loge e = 1.

Also, for a > 0 and b > 0 we have

loga b = c ⇐⇒ ac = b.

Now lnx = lnx so loge x = loge x. Henceeloge x = x. This gives us elnx = x.

Page 79: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

A reminder about ex and lnx

Two important facts:

ln e = 1 and elnx = x.

How do we get these?

We have loga a = 1 for any a > 0 and therefore

ln e = loge e = 1.

Also, for a > 0 and b > 0 we have

loga b = c ⇐⇒ ac = b.

Now lnx = lnx so loge x = loge x. Henceeloge x = x. This gives us elnx = x.

Page 80: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

A reminder about ex and lnx

Two important facts:

ln e = 1 and elnx = x.

How do we get these?

We have loga a = 1 for any a > 0 and therefore

ln e = loge e = 1.

Also, for a > 0 and b > 0 we have

loga b = c ⇐⇒ ac = b.

Now lnx = lnx so loge x = loge x. Henceeloge x = x. This gives us elnx = x.

Page 81: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Derivatives of exponential functions:

In Ch 3.1 we calculated the following:

d

dxax = ax lim

h→0

ah − 1

h= ax.f ′(0)

Now we can show that for a > 0 we have

d

dxax = ax ln a

We will use the fact that a = eln a and so

ax =(eln a)x

= e(ln a)x

Page 82: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Derivatives of exponential functions:

In Ch 3.1 we calculated the following:

d

dxax = ax lim

h→0

ah − 1

h= ax.f ′(0)

Now we can show that for a > 0 we have

d

dxax = ax ln a

We will use the fact that a = eln a and so

ax =(eln a)x

= e(ln a)x

Page 83: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Derivatives of exponential functions:

In Ch 3.1 we calculated the following:

d

dxax = ax lim

h→0

ah − 1

h= ax.f ′(0)

Now we can show that for a > 0 we have

d

dxax = ax ln a

We will use the fact that a = eln a and so

ax =(eln a)x

= e(ln a)x

Page 84: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

d

dx(ax) =

d

dx

(e(ln a)x

)

= e(ln a)x · ddx

((ln a)x)

=(eln a)x · (ln a) d

dx(x)

=(eln a)x · (ln a) · (1)

= ax ln a

Page 85: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

d

dx(ax) =

d

dx

(e(ln a)x

)= e(ln a)x · d

dx((ln a)x)

=(eln a)x · (ln a) d

dx(x)

=(eln a)x · (ln a) · (1)

= ax ln a

Page 86: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

d

dx(ax) =

d

dx

(e(ln a)x

)= e(ln a)x · d

dx((ln a)x)

=(eln a)x · (ln a) d

dx(x)

=(eln a)x · (ln a) · (1)

= ax ln a

Page 87: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

d

dx(ax) =

d

dx

(e(ln a)x

)= e(ln a)x · d

dx((ln a)x)

=(eln a)x · (ln a) d

dx(x)

=(eln a)x · (ln a) · (1)

= ax ln a

Page 88: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

d

dx(ax) =

d

dx

(e(ln a)x

)= e(ln a)x · d

dx((ln a)x)

=(eln a)x · (ln a) d

dx(x)

=(eln a)x · (ln a) · (1)

= ax ln a

Page 89: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Exponential function examples

Differentiate

y = 2x

We get y′ = 2x ln 2.

Now for something harder: find F ′(x) if

F (x) = 35x

See next slide for solution(s).

Page 90: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Exponential function examples

Differentiate

y = 2x

We get y′ = 2x ln 2.

Now for something harder: find F ′(x) if

F (x) = 35x

See next slide for solution(s).

Page 91: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Exponential function examples

Differentiate

y = 2x

We get y′ = 2x ln 2.

Now for something harder: find F ′(x) if

F (x) = 35x

See next slide for solution(s).

Page 92: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Find F ′(x) if F (x) = 35x.

Solution 1:

Note that F (x) = f (g(x)) where

g(x) = 5x and f (x) = 3x. Now g′(x) = 5

and f ′(x) = 3x ln 3. Hence

F ′(x) = f ′(g(x)) · g′(x) = (35x ln 3)5.

Solution 2 (from a student last year):

F (x) = (35)x so, using the fact thatddx(a

x) = ax ln a, we get

F ′(x) = (35)x ln(35) = (35x) ln(35) = (35x)5 ln 3.

Page 93: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Find F ′(x) if F (x) = 35x.

Solution 1: Note that F (x) = f (g(x)) where

g(x) = 5x and f (x) = 3x.

Now g′(x) = 5

and f ′(x) = 3x ln 3. Hence

F ′(x) = f ′(g(x)) · g′(x) = (35x ln 3)5.

Solution 2 (from a student last year):

F (x) = (35)x so, using the fact thatddx(a

x) = ax ln a, we get

F ′(x) = (35)x ln(35) = (35x) ln(35) = (35x)5 ln 3.

Page 94: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Find F ′(x) if F (x) = 35x.

Solution 1: Note that F (x) = f (g(x)) where

g(x) = 5x and f (x) = 3x. Now g′(x) = 5

and f ′(x) = 3x ln 3.

Hence

F ′(x) = f ′(g(x)) · g′(x) = (35x ln 3)5.

Solution 2 (from a student last year):

F (x) = (35)x so, using the fact thatddx(a

x) = ax ln a, we get

F ′(x) = (35)x ln(35) = (35x) ln(35) = (35x)5 ln 3.

Page 95: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Find F ′(x) if F (x) = 35x.

Solution 1: Note that F (x) = f (g(x)) where

g(x) = 5x and f (x) = 3x. Now g′(x) = 5

and f ′(x) = 3x ln 3. Hence

F ′(x) = f ′(g(x)) · g′(x) = (35x ln 3)5.

Solution 2 (from a student last year):

F (x) = (35)x so, using the fact thatddx(a

x) = ax ln a, we get

F ′(x) = (35)x ln(35) = (35x) ln(35) = (35x)5 ln 3.

Page 96: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Find F ′(x) if F (x) = 35x.

Solution 1: Note that F (x) = f (g(x)) where

g(x) = 5x and f (x) = 3x. Now g′(x) = 5

and f ′(x) = 3x ln 3. Hence

F ′(x) = f ′(g(x)) · g′(x) = (35x ln 3)5.

Solution 2 (from a student last year):

F (x) = (35)x so, using the fact thatddx(a

x) = ax ln a, we get

F ′(x) = (35)x ln(35) = (35x) ln(35) = (35x)5 ln 3.

Page 97: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Find F ′(x) if F (x) = 35x.

Solution 1: Note that F (x) = f (g(x)) where

g(x) = 5x and f (x) = 3x. Now g′(x) = 5

and f ′(x) = 3x ln 3. Hence

F ′(x) = f ′(g(x)) · g′(x) = (35x ln 3)5.

Solution 2 (from a student last year):

F (x) = (35)x so, using the fact thatddx(a

x) = ax ln a, we get

F ′(x) = (35)x ln(35) = (35x) ln(35) = (35x)5 ln 3.

Page 98: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Double chain rule! We can apply the

chain rule to composite functions that are

made by composing more than two functions.

Examples:

1. j(x) = sin(cos(tanx))

2. y = esec 3θ

Try these on your own and then look at the

solutions. Hint: if K(x) = f (g(h(x))) then

K ′(x) = f ′(g(h(x))) · ddx

(g(h(x)))

= f ′(g(h(x))) · g′(h(x)) · h′(x)

Page 99: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Double chain rule! We can apply the

chain rule to composite functions that are

made by composing more than two functions.

Examples:

1. j(x) = sin(cos(tanx))

2. y = esec 3θ

Try these on your own and then look at the

solutions.

Hint: if K(x) = f (g(h(x))) then

K ′(x) = f ′(g(h(x))) · ddx

(g(h(x)))

= f ′(g(h(x))) · g′(h(x)) · h′(x)

Page 100: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Double chain rule! We can apply the

chain rule to composite functions that are

made by composing more than two functions.

Examples:

1. j(x) = sin(cos(tanx))

2. y = esec 3θ

Try these on your own and then look at the

solutions. Hint: if K(x) = f (g(h(x))) then

K ′(x) = f ′(g(h(x))) · ddx

(g(h(x)))

= f ′(g(h(x))) · g′(h(x)) · h′(x)

Page 101: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Solutions:

1. j′(x) = cos(cos(tanx))d

dx

(cos(tanx)

)= cos(cos(tanx))

(− sin(tanx)

) ddx

(tanx)

= − cos(cos(tanx)) sin(tanx) sec2 x

2. y′ = esec 3θd

dx

(sec 3θ

)= esec 3θ sec 3θ tan 3θ

d

dx(3θ)

= 3esec 3θ sec 3θ tan 3θ

Page 102: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Solutions:

1. j′(x) = cos(cos(tanx))d

dx

(cos(tanx)

)

= cos(cos(tanx))(− sin(tanx)

) ddx

(tanx)

= − cos(cos(tanx)) sin(tanx) sec2 x

2. y′ = esec 3θd

dx

(sec 3θ

)= esec 3θ sec 3θ tan 3θ

d

dx(3θ)

= 3esec 3θ sec 3θ tan 3θ

Page 103: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Solutions:

1. j′(x) = cos(cos(tanx))d

dx

(cos(tanx)

)= cos(cos(tanx))

(− sin(tanx)

) ddx

(tanx)

= − cos(cos(tanx)) sin(tanx) sec2 x

2. y′ = esec 3θd

dx

(sec 3θ

)= esec 3θ sec 3θ tan 3θ

d

dx(3θ)

= 3esec 3θ sec 3θ tan 3θ

Page 104: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Solutions:

1. j′(x) = cos(cos(tanx))d

dx

(cos(tanx)

)= cos(cos(tanx))

(− sin(tanx)

) ddx

(tanx)

= − cos(cos(tanx)) sin(tanx) sec2 x

2. y′ = esec 3θd

dx

(sec 3θ

)= esec 3θ sec 3θ tan 3θ

d

dx(3θ)

= 3esec 3θ sec 3θ tan 3θ

Page 105: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Solutions:

1. j′(x) = cos(cos(tanx))d

dx

(cos(tanx)

)= cos(cos(tanx))

(− sin(tanx)

) ddx

(tanx)

= − cos(cos(tanx)) sin(tanx) sec2 x

2. y′ = esec 3θd

dx

(sec 3θ

)

= esec 3θ sec 3θ tan 3θd

dx(3θ)

= 3esec 3θ sec 3θ tan 3θ

Page 106: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Solutions:

1. j′(x) = cos(cos(tanx))d

dx

(cos(tanx)

)= cos(cos(tanx))

(− sin(tanx)

) ddx

(tanx)

= − cos(cos(tanx)) sin(tanx) sec2 x

2. y′ = esec 3θd

dx

(sec 3θ

)= esec 3θ sec 3θ tan 3θ

d

dx(3θ)

= 3esec 3θ sec 3θ tan 3θ

Page 107: MAT01A1: the Chain Rule › 2020 › 05 › ch3_4-ch… · Chain rule examples: Di erentiate the following functions: 1. H(x) = sin(x2) 2. T(x) = sin2 x The key to successfully applying

Prescribed tut problems:

Complete the following exercises from the

8th edition (Ch 3.4):

1, 3, 5, 7, 9, 10, 11, 13, 17, 21, 28, 31, 47,

49, 51, 53, 61, 75, 80, 82, 84 (a & b)

A good understanding of the Chain Rule is

extremely important for understanding

the rest of the topics that we will cover this

year. That is why there are lots of prescribed

problems from this section.