Chain rules for nested functions and restricted inputs
Introduced
6:12
Differentiation
Section G is differentiation. These are the standard results: x to the n gives n x to the n minus 1; e to the k x gives k e to the k x; ln x gives 1 over x; a…
English narration · English and 中文 subtitles you can switch
In this lesson
| English | Meaning |
|---|---|
| Chain rule/tʃeɪn ruːl/ | |
| nested function | |
| composite derivative/ˈkɒmpəzɪt dɪˈrɪvətɪv/ | The derivative of a function inside another function, found by the chain rule: the outer derivative times the inner derivative. |
| outer function/ˈaʊtə ˈfʌŋkʃn/ | |
| sine/saɪn/ | For an acute angle in a right-angled triangle, the opposite side divided by the hypotenuse. |
| tangent/ˈtændʒənt/ | A straight line that touches a curve at a point and has the same direction there. |
Gears that multiply rates, built 1991
- In 1991, the Science Museum in London finished building Charles Babbage's Difference Engine No. 2 from his drawings of 1847–49: 8,000 parts of bronze, cast iron and steel. Turning one gear turns the next, and each pair multiplies the rate of turning by its gear ratio. The chain rule works the same way: when functions are nested, their rates multiply. The derivative of a nested function is its composite derivative 复合函数的导数.
- If $y = f(u)$ and $u = g(x)$, then $\dfrac{dy}{dx} = \dfrac{dy}{du} \times \dfrac{du}{dx}$.
Outer times inner
- Differentiate the outer function 外层函数, keeping the inner one as it is, then multiply by the derivative of the inner one.
- $y = \sqrt{3x^2 + 4}$: $\dfrac{dy}{dx} = \dfrac{1}{2}(3x^2 + 4)^{-\frac{1}{2}} \times 6x = \dfrac{3x}{\sqrt{3x^2 + 4}}$.
Differentiate $\sqrt{5x - 1}$.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
$\tfrac{1}{2}(5x - 1)^{-\frac{1}{2}} \times 5$.
Differentiate $\cos(x^3)$.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
$-\sin(x^3) \times 3x^2$.
Three layers
- $y = \sin^3(2x)$ is $(\sin(2x))^3$: three layers — cube, sine 正弦, $2x$.
- $\dfrac{dy}{dx} = 3\sin^2(2x) \times \cos(2x) \times 2 = 6\sin^2(2x)\cos(2x)$.
Chain rules for nested functions and restricted inputs
For y=f(u) and u=g(x), dy/dx=f′(g(x))g′(x)
Choose the derivative rule and preserve every coefficient, inner rate and input restriction.
Differentiate $\ln(\cos 2x)$.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
$\tfrac{1}{\cos 2x} \times (-\sin 2x) \times 2$.
Worked example: a tangent with the chain rule
Find the tangent to $y = e^{\sin x}$ at $x = \tfrac{\pi}{2}$.
- Chain rule 链式法则: $\dfrac{dy}{dx} = e^{\sin x} \times \cos x$.
- At $x = \tfrac{\pi}{2}$: $y = e^1 = e$; gradient $e \times 0 = 0$.
- Tangent: $y = e$ — a horizontal tangent at a maximum of the curve.
Find the gradient of $y = (x^2 + 1)^3$ at $x = 1$.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$3(2)^2 \times 2$.
Restricted inputs
- $y = \sqrt{4 - x^2}$ is defined for $-2 \le x \le 2$, but $\dfrac{dy}{dx} = \dfrac{-x}{\sqrt{4 - x^2}}$ only for $-2 < x < 2$.
- At $x = \pm 2$ the tangent 切线 is vertical: the formula would divide by zero.
$y = \sqrt{9 - x^2}$ has a finite derivative at $x = 3$.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
The tangent is vertical there.
Gear ratios
- If gear $A$ turns 3 times for each turn of $B$, and $B$ turns 4 times for each turn of $C$, then $A$ turns 12 times per turn of $C$.
- In symbols: $\tfrac{dA}{dC} = \tfrac{dA}{dB} \times \tfrac{dB}{dC}$.
$\tfrac{dy}{du} = 5$ and $\tfrac{du}{dx} = -2$. Find $\tfrac{dy}{dx}$.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
Multiply the rates.
Evaluate the outer derivative at the inner function, not at $x$. For $\sin(x^2)$, the derivative is $\cos(x^2) \times 2x$, not $\cos x \times 2x$. And every layer contributes a factor: $\sin^3(2x)$ needs the 2 from $2x$.
For a nested function 复合函数, multiply the derivatives of each layer, from outside in, keeping each inner function unchanged inside the outer derivative. Check the domain: roots and logarithms can make the derivative undefined at the edges of the function's domain.
Find the stationary points of $y = e^{x^2 - 4x}$ and decide their nature.
Chain rule with an exponential.
What went wrong? Only the site team sees this.