Lesson 2 of 7 · 18 min
The chain rule with sine, cosine, e and ln
Differentiate , , powers of sine and cosine, and composites that mix exponential, logarithmic and trigonometric functions, using the chain rule.
What you will be able to do
- Use and .
- Differentiate powers of trigonometric functions, such as , and tell apart from .
- Use the chain rule on composites of exponential, logarithmic and trigonometric functions, such as and .
The graph of fits two complete waves into the space where fits one. It climbs to the same height in half the horizontal distance, so it must be twice as steep. You would expect its gradient function to be , and it is.
The solid curve is ; the dashed curve is its derivative. As grows, the wave is squashed horizontally, every slope is multiplied by , and so is the height of the derivative graph.
The factor comes from the chain rule. Write with . Then and , so
The same argument works for any inside function .
Key idea
Sine and cosine of a function
Differentiate the outside (sine or cosine), keep the inside exactly as it is, then multiply by the derivative of the inside. Both rules are on the QCAA formula sheet. For a linear inside, and .
Differentiate .
Worked example
Sine and cosine of a function
Differentiate:
(a)
(b)
(c)
Step 1: (a) Identify the inside and its derivative
The inside is , with derivative 4.
Step 2: (a) Apply the rule
For sine, . The inside stays exactly the same.
Step 3: (b) Identify the inside and its derivative
Let , so .
Step 4: (b) Apply the rule
For cosine, , so the negative sign and the both go in front.
Step 5: (c) Keep the constant and apply the rule
The inside is , with derivative :
Try it yourself first, then check the working one step at a time.
Answer
(a) (b) (c)
Method
Identify the inside function and differentiate it.
Differentiate the outside: , , with the inside unchanged.
Multiply by the derivative of the inside, and tidy constants.
Watch out for
Writing in (b): the inside stays ; only its derivative goes in front.
In (c), differentiates to , so the coefficient is divided by 3, not multiplied.
Powers of sine and cosine. is shorthand for . Here the outside function is the square and the inside is , so the chain rule gives
That is very different from , where sine is on the outside.
Outside: squaring. Inside: .
Outside: sine. Inside: .
Differentiate .
Worked example
Differentiate
Differentiate .
Step 1: Rewrite the power
is shorthand for the cube of . Writing the bracket shows the cube is the outside function.
Step 2: Name the layers
Outside: . Middle: . Inside: .
Step 3: Differentiate each layer
, ,
Step 4: Multiply and substitute back
The chain rule extends to any number of layers. Multiply the derivative of every layer, each evaluated at what is inside it.
Try it yourself first, then check the working one step at a time.
Answer
Method
Rewrite as .
Differentiate from the outside in: the power, then the sine, then the inside.
Multiply all the derivatives together.
Watch out for
Stopping after two layers: is missing the factor of 2.
Writing : the outside power is differentiated first and its inside, , stays unchanged.
Mixing in and . You already know and from Topic 1. They are the chain rule too, so they combine with sine and cosine in any order. Find the outside function, differentiate it with the inside left alone, and multiply by the derivative of the inside.
| Outside | Inside | ||
|---|---|---|---|
Differentiate .
Worked example
Composites of , and trigonometric functions
(a) Differentiate .
(b) Differentiate , and hence find the gradient of its graph at .
Step 1: (a) Identify the outside and inside
Outside: . Inside: , so .
needs the chain rule itself, because is a composite.
Step 2: (a) Apply
Step 3: (b) Identify the outside and inside
Outside: . Inside: , so .
Step 4: (b) Apply
Step 5: (b) Substitute
Try it yourself first, then check the working one step at a time.
Answer
(a) . (b) , and the gradient at is .
Method
Find the outside function: , , , or .
Differentiate the inside, using the chain rule again if it is a composite.
Apply the matching rule from the formula sheet.
Watch out for
Changing the exponent: differentiates to , not .
Writing : the derivative of the inside goes on top.
Differentiate , for .
Common mistake
Three chain-rule slips
- Forgetting the inside's derivative. , not .
- Changing the inside. . The bracket still holds , not .
- Mixing up and . Ask "what did I do last?" For you squared last, so the square is the outside.
Exam tip
Showing the chain rule
For anything more than a linear inside, write the substitution: "Let , so ." It shows the marker your method, and it stops you from dropping the inside's derivative.
Summary
and .
For a linear inside: and .
, so .
The same chain rule handles and , so composites like and need no new rules.
Outside first, inside unchanged, then multiply by the derivative of the inside. Use more than one layer when needed.
Finished the lesson?
Try the 4 quick checks above and the lesson completes itself, or mark it complete now.