Example 21: Derivative of by the chain rule
Find the derivative of the function given by .
Let . By the chain rule,
.
Want the reason behind every step, the basics and the checks?
is a function inside another function: first square , then take the sine of the result. The chain rule says the rate of change of such a composite is the product of the two separate rates: the rate of the outer function (sine) at the inner value, times the rate of the inner function (squaring). So the answer is times .
- Given
- for every real .
- To find
- .
- Plan
- (1) Split into an inner function and an outer function . (2) Differentiate each one separately. (3) Multiply the two derivatives (chain rule). (4) Write the answer in terms of only.
Basics you need
means "do first, then ": . The order matters: squaring then taking sine is not the same as taking sine then squaring. Basics: composite functions
From Table 5.3: , so ; and . Basics: derivative rules
If , , and both and exist, then . Basics: slope at a point
Solution
Recognise the composite: name the inner and outer functions
To compute for a given , we do two jobs in order: first square , then take the sine. Give each job a name:
Then , so .
The chain rule only applies once we can see a function as "outer applied to inner". The test for which is inner: it is the job done first when you evaluate. With : first , then . So squaring is inner and sine is outer.(often printed ) is different from . The second one is : sine first, then square. Example: at , but . Basics: composite functionsDifferentiate each piece separately
Inner: by the power rule with ,
Outer, as a function of its own variable :
Both derivatives exist for every real and every real , so the conditions of the chain rule hold everywhere.
Theorem 4 asks for two things before it may be used: and must exist. Checking them is part of the solution, not a formality. Here both functions are differentiable on all of , so there are no exceptional points.Multiply the two rates (chain rule)
The diagram shows why the rates multiply.
The input passes through two machines. Near , changes about 2 times as fast as , and changes about times as fast as . So changes about times as fast as . If a small change in makes change by about , and a small change makes change by about , then the change in is about . The two "magnification factors" multiply. That is the content of the chain rule.Chain rule: (Theorem 4, Section 5.3.1). Lesson: chain ruleWrite the answer in terms of
The question is about , and was only a helper. Put back:
An answer that still contains mixes two variables and cannot be evaluated from alone. The book calls expressing the final result in "normal practice". Writing the factor in front avoids the ambiguity of being misread as .Substitution: wherever appears, write . Keep the brackets: , not .
for every real . (The book's solution gets the same: .)
At the formula gives . A difference quotient straddling :
which agrees to five significant figures (the small gap shrinks as the step shrinks). At : . At the slope is : the graph of is flat at the origin, as is zero there.
- Forgetting the inner derivative: writing alone. The factor is the inner rate and must be multiplied in.
- Differentiating the inside of the cosine: writing . The outer derivative is evaluated at the inner value ; the inner derivative multiplies from outside.
- Confusing with . The derivative of is , a different function.
- Leaving in the final answer. Always substitute back.
- For a composite, ask "what is done first?" That is the inner function .
- Derivative = (derivative of outer, evaluated at ) (derivative of inner).
- The same pattern gives for any differentiable , for example Exercise 5.2 Q1.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Composite | Step 1 | Chapter 1 (composition of functions); Theorem 4, Section 5.3.1 |
| ; | Step 2 | Table 5.3, Section 5.3 (Lesson: chain rule) |
| Chain rule | Step 3 | Theorem 4 (Chain Rule), Section 5.3.1 |
| All numerical values | Check | Recomputed in the site's verification script (exact derivative and difference quotients) |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →