Math ClubMath Club
v1 · padrão canônico

Lesson 53 — The Chain Rule

Derivative of a composite function: if y = f(g(x)), then dy/dx = f'(g(x))·g'(x). The most used rule in all of applied calculus.

Used in: 2nd Year High School (16 years old) · Equivalent Japanese Math II/III §微分 · Equivalent German Klasse 11 Abitur

ddx[f(g(x))]=f(g(x))g(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)

The Chain Rule: the derivative of a composite function f(g(x))f(g(x)) is the derivative of the outer function, evaluated at the inner function, multiplied by the derivative of the inner function. In Leibniz notation: dydx=dydududx\dfrac{dy}{dx} = \dfrac{dy}{du} \cdot \dfrac{du}{dx}, where u=g(x)u = g(x).

Choose your door

Rigorous notation, full derivation, hypotheses

Definition and theory

Formal Statement

"The chain rule states that the derivative of f(g(x))f(g(x)) is f(g(x))g(x)f'(g(x)) \cdot g'(x). That is, we differentiate the outer function ff, evaluate it at the inner function g(x)g(x), and multiply by the derivative of the inner function." — OpenStax Calculus Volume 1, §3.6

"Think of the process from outside in: identify the outer function, differentiate it while keeping the inner function unchanged, then multiply by the derivative of the inner function." — Boelkins, Active Calculus §2.5

Rigorous Proof

The difficulty lies in the fact that g(x+h)g(x)g(x+h) - g(x) can be zero for h0h \neq 0, invalidating the naive argument of canceling Δg\Delta g. The solution uses the auxiliary function:

Q(y)={f(y)f(g(a))yg(a)yg(a)f(g(a))y=g(a)Q(y) = \begin{cases} \dfrac{f(y) - f(g(a))}{y - g(a)} & y \neq g(a) \\ f'(g(a)) & y = g(a) \end{cases}

QQ is continuous at g(a)g(a) (by differentiability of ff). Since f(g(a+h))f(g(a))=Q(g(a+h))[g(a+h)g(a)]f(g(a+h)) - f(g(a)) = Q(g(a+h)) \cdot [g(a+h) - g(a)], dividing by hh and taking the limit h0h \to 0 yields (fg)(a)=f(g(a))g(a)(f \circ g)'(a) = f'(g(a)) \cdot g'(a).

Fundamental Special Cases

Composite FunctionDerivative
[g(x)]n[g(x)]^nn[g(x)]n1g(x)n\,[g(x)]^{n-1} \cdot g'(x)
sin(g(x))\sin(g(x))cos(g(x))g(x)\cos(g(x)) \cdot g'(x)
cos(g(x))\cos(g(x))sin(g(x))g(x)-\sin(g(x)) \cdot g'(x)
eg(x)e^{g(x)}eg(x)g(x)e^{g(x)} \cdot g'(x)
ln(g(x))\ln(g(x))g(x)/g(x)g'(x)/g(x)
g(x)\sqrt{g(x)}g(x)/(2g(x))g'(x) / (2\sqrt{g(x)})
ag(x)a^{g(x)}ag(x)lnag(x)a^{g(x)} \ln a \cdot g'(x)

Triple Composition

For h(x)=f(g(k(x)))h(x) = f(g(k(x))):

(fgk)(x)=f(g(k(x)))g(k(x))k(x)(f \circ g \circ k)'(x) = f'(g(k(x))) \cdot g'(k(x)) \cdot k'(x)
(tripla)
what this means · The chain rule generalizes: multiply the derivative of each layer, always from outside in.

Composition Diagram

xg(x)u = g(x)g'(x) = du/dxf(u)y = f(g(x))dy/dx = f'(g)·g'

Flow of composition: input x, processed by g to yield u, then by f to yield y. The total rate dy/dx is the product of the individual rates.

Solved Examples

Exercise list

40 exercises · 10 with worked solution (25%)

26 4 6 3 1
  1. Ex. 53.1Answer key

    Calculate ddx[(2x+3)5]\dfrac{d}{dx}[(2x+3)^5].

    Show solution
    Inner: g(x)=2x+3g(x) = 2x+3, derivative g(x)=2g'(x) = 2. Outer: f(u)=u5f(u) = u^5, derivative 5u45u^4 evaluated at g(x)g(x): 5(2x+3)45(2x+3)^4. Result: 5(2x+3)42=10(2x+3)45(2x+3)^4 \cdot 2 = 10(2x+3)^4.
    Show step-by-step (with the why)
    1. Identify the layers. Write h(x)=f(g(x))h(x) = f(g(x)) with f(u)=u5f(u) = u^5 (outer) and g(x)=2x+3g(x) = 2x+3 (inner). Always name the layers explicitly before differentiating.
    2. Differentiate the outer layer. f(u)=5u4f'(u) = 5u^4. Evaluate at g(x)g(x): f(g(x))=5(2x+3)4f'(g(x)) = 5(2x+3)^4. Note: the argument remains 2x+32x+3, not xx.
    3. Differentiate the inner layer. g(x)=2g'(x) = 2. The derivative of a linear function is its slope.
    4. Multiply. h(x)=5(2x+3)42=10(2x+3)4h'(x) = 5(2x+3)^4 \cdot 2 = 10(2x+3)^4.

    Mnemonic: for any (linear)n(\text{linear})^n, the derivative is n(linear)n1(slope)n \cdot (\text{linear})^{n-1} \cdot (\text{slope}). Here the slope is 2, hence the factor of 2.

  2. Ex. 53.2

    Calculate (sin(4x))(\sin(4x))'.

    Show solution
    Inner: g(x)=4xg(x) = 4x, derivative 44. Outer: sinu\sin u, derivative cosu\cos u. Result: cos(4x)4=4cos(4x)\cos(4x) \cdot 4 = 4\cos(4x).
  3. Ex. 53.3

    Calculate (ex2)(e^{x^2})'.

    Show solution
    Inner: g(x)=x2g(x) = x^2, derivative 2x2x. Outer: eue^u, derivative eue^u. Result: ex22x=2xex2e^{x^2} \cdot 2x = 2xe^{x^2}. Common mistake: writing only xex2xe^{x^2} — missing the factor of 2 from the derivative of x2x^2.
    Show step-by-step (with the why)
    1. Identify the layers. f(u)=euf(u) = e^u (outer), g(x)=x2g(x) = x^2 (inner).
    2. Differentiate the outer layer. f(u)=euf'(u) = e^u. Evaluated at g(x)g(x): ex2e^{x^2}. The exponential function is its own derivative.
    3. Differentiate the inner layer. g(x)=2xg'(x) = 2x. Power rule on x2x^2.
    4. Multiply. (ex2)=ex22x=2xex2(e^{x^2})' = e^{x^2} \cdot 2x = 2xe^{x^2}.

    Mnemonic: the exponential function "copies itself" upon differentiation — the only new factor is the derivative of the exponent. Never forget this factor.

  4. Ex. 53.4Answer key

    Calculate (ln(x2+1))(\ln(x^2 + 1))'.

    Show solution
    Formula: (ln(g(x)))=g(x)/g(x)(\ln(g(x)))' = g'(x)/g(x). Here g(x)=x2+1g(x) = x^2 + 1, g(x)=2xg'(x) = 2x. Result: 2xx2+1\dfrac{2x}{x^2+1}.
  5. Ex. 53.5Answer key

    Calculate (x2+1)(\sqrt{x^2+1})'.

    Show solution
    Inner: g(x)=x2+1g(x) = x^2+1, derivative 2x2x. Outer: u\sqrt{u}, derivative 1/(2u)1/(2\sqrt{u}). Result: 12x2+12x=xx2+1\frac{1}{2\sqrt{x^2+1}} \cdot 2x = \frac{x}{\sqrt{x^2+1}}.
  6. Ex. 53.6

    Calculate (cos2x)(\cos^2 x)'.

    Show solution
    Inner: g(x)=cosxg(x) = \cos x, derivative sinx-\sin x. Outer: u2u^2, derivative 2u2u evaluated at cosx\cos x: 2cosx2\cos x. Result: 2cosx(sinx)=2sinxcosx=sin2x2\cos x \cdot (-\sin x) = -2\sin x\cos x = -\sin 2x (double angle identity).
    Show step-by-step (with the why)
    1. Rewrite. cos2x=(cosx)2\cos^2 x = (\cos x)^2. Outer layer: f(u)=u2f(u) = u^2. Inner: g(x)=cosxg(x) = \cos x.
    2. Differentiate the outer. f(u)=2uf'(u) = 2u evaluated at cosx\cos x: 2cosx2\cos x.
    3. Differentiate the inner. g(x)=sinxg'(x) = -\sin x.
    4. Multiply. (cos2x)=2cosx(sinx)=2sinxcosx(\cos^2 x)' = 2\cos x \cdot (-\sin x) = -2\sin x\cos x.
    5. Simplify. Using the identity 2sinxcosx=sin2x2\sin x\cos x = \sin 2x: result sin2x-\sin 2x.

    Curiosity: differentiating cos2x\cos^2 x and differentiating 1sin2x1 - \sin^2 x yield the same result — confirm this using the chain rule on the latter for practice.

  7. Ex. 53.7

    Calculate (tan(2x))(\tan(2x))'.

    Show solution
    Inner: g(x)=2xg(x) = 2x, derivative 22. Outer: tanu\tan u, derivative sec2u\sec^2 u. Result: sec2(2x)2=2sec2(2x)\sec^2(2x) \cdot 2 = 2\sec^2(2x).
  8. Ex. 53.8

    Calculate (sin(cosx))(\sin(\cos x))'.

    Show solution
    Inner: g(x)=cosxg(x) = \cos x, derivative sinx-\sin x. Outer: sinu\sin u, derivative cosu\cos u. Result: cos(cosx)(sinx)=sinxcos(cosx)\cos(\cos x) \cdot (-\sin x) = -\sin x \cos(\cos x).
  9. Ex. 53.9

    Calculate (esinx)(e^{\sin x})'.

    Show solution
    Inner: sinx\sin x, derivative cosx\cos x. Outer: eue^u, derivative eue^u. Result: esinxcosxe^{\sin x} \cdot \cos x.
  10. Ex. 53.10

    Calculate ((lnx)3)((\ln x)^3)'.

    Show solution
    Inner: g(x)=lnxg(x) = \ln x, derivative 1/x1/x. Outer: u3u^3, derivative 3u23u^2. Result: 3(lnx)21x=3(lnx)2x3(\ln x)^2 \cdot \frac{1}{x} = \frac{3(\ln x)^2}{x}.
    Show step-by-step (with the why)
    1. Identify. (lnx)3(\ln x)^3 is a composition: f(u)=u3f(u) = u^3 (outer), g(x)=lnxg(x) = \ln x (inner). It is not the same as ln(x3)\ln(x^3)!
    2. Differentiate the outer. f(u)=3u2f'(u) = 3u^2 evaluated at lnx\ln x: 3(lnx)23(\ln x)^2.
    3. Differentiate the inner. g(x)=1/xg'(x) = 1/x.
    4. Result. 3(lnx)21x=3(lnx)2x3(\ln x)^2 \cdot \frac{1}{x} = \frac{3(\ln x)^2}{x}.

    Mnemonic: (lnx)3ln(x3)=3lnx(\ln x)^3 \neq \ln(x^3) = 3\ln x. The position of the exponent changes everything. Be careful with notation.

  11. Ex. 53.11

    Calculate (1x2)(\sqrt{1-x^2})'.

    Show solution
    Inner: g(x)=1x2g(x) = 1-x^2, derivative 2x-2x. Outer: u\sqrt{u}, derivative 1/(2u)1/(2\sqrt{u}). Result: 121x2(2x)=x1x2\frac{1}{2\sqrt{1-x^2}} \cdot (-2x) = \frac{-x}{\sqrt{1-x^2}}. (Domain: 1<x<1-1 < x < 1.)
  12. Ex. 53.12

    Calculate (1x2+4)\left(\dfrac{1}{x^2+4}\right)'.

    Show solution
    Rewrite as (x2+4)1(x^2+4)^{-1}. Inner: x2+4x^2+4, derivative 2x2x. Outer: u1u^{-1}, derivative u2-u^{-2}. Result: (x2+4)22x=2x(x2+4)2-(x^2+4)^{-2} \cdot 2x = -\dfrac{2x}{(x^2+4)^2}.
  13. Ex. 53.13Answer key

    Calculate (2x2)(2^{x^2})'.

    Show solution
    Formula: (ag(x))=ag(x)lnag(x)(a^{g(x)})' = a^{g(x)} \ln a \cdot g'(x). Here a=2a=2, g(x)=x2g(x)=x^2, g(x)=2xg'(x)=2x. Result: 2x2ln22x=2xln22x22^{x^2} \cdot \ln 2 \cdot 2x = 2x\ln 2 \cdot 2^{x^2}.
  14. Ex. 53.14

    Calculate (sin3(2x))(\sin^3(2x))'.

    Show solution
    Three layers: outermost u3u^3, intermediate sinv\sin v, innermost 2x2x. Chain rule: 3sin2(2x)cos(2x)2=6sin2(2x)cos(2x)3\sin^2(2x) \cdot \cos(2x) \cdot 2 = 6\sin^2(2x)\cos(2x).
    Show step-by-step (with the why)
    1. Identify 3 layers. sin3(2x)=(sin(2x))3\sin^3(2x) = (\sin(2x))^3. Outer: f3(u)=u3f_3(u) = u^3. Middle: f2(v)=sinvf_2(v) = \sin v. Inner: f1(x)=2xf_1(x) = 2x.
    2. Differentiate each layer. f3(u)=3u2f_3'(u) = 3u^2; f2(v)=cosvf_2'(v) = \cos v; f1(x)=2f_1'(x) = 2.
    3. Assemble the product from outside in. 3[sin(2x)]2cos(2x)23[\sin(2x)]^2 \cdot \cos(2x) \cdot 2.
    4. Simplify. 6sin2(2x)cos(2x)6\sin^2(2x)\cos(2x).

    Mnemonic: in triple composition, always assemble the product from the outermost to the innermost layer. Never skip a layer.

  15. Ex. 53.15

    Calculate (arctan(x2))(\arctan(x^2))'. (Ans: 2x/(1+x4)2x/(1+x^4).)

    Show solution
    Formula: (arctan(g(x)))=g(x)/(1+[g(x)]2)(\arctan(g(x)))' = g'(x)/(1+[g(x)]^2). Here g(x)=x2g(x)=x^2, g(x)=2xg'(x)=2x. Result: 2x1+x4\dfrac{2x}{1+x^4}.
  16. Ex. 53.16

    Calculate (ln(sinx))(\ln(\sin x))'.

    Show solution
    Formula: (ln(g(x)))=g(x)/g(x)(\ln(g(x)))' = g'(x)/g(x). Here g(x)=sinxg(x)=\sin x, g(x)=cosxg'(x)=\cos x. Result: cosx/sinx=cotx\cos x / \sin x = \cot x.
  17. Ex. 53.17Answer key

    Calculate (ecos(2x))(e^{\cos(2x)})'.

    Show solution
    Three layers: eue^u, cosv\cos v, 2x2x. Chain rule: ecos(2x)(sin(2x))2=2sin(2x)ecos(2x)e^{\cos(2x)} \cdot (-\sin(2x)) \cdot 2 = -2\sin(2x)\,e^{\cos(2x)}.
  18. Ex. 53.18

    Calculate (tanx)(\sqrt{\tan x})'.

    Show solution
    Inner: tanx\tan x, derivative sec2x\sec^2 x. Outer: u\sqrt{u}, derivative 1/(2u)1/(2\sqrt{u}). Result: sec2x2tanx\dfrac{\sec^2 x}{2\sqrt{\tan x}}. (Domain: tanx>0\tan x > 0.)
  19. Ex. 53.19Answer key

    Calculate (sin(x))(\sin(\sqrt{x}))'.

    Show solution
    Inner: x\sqrt{x}, derivative 1/(2x)1/(2\sqrt{x}). Outer: sinu\sin u, derivative cosu\cos u. Result: cos(x)12x=cos(x)2x\cos(\sqrt{x}) \cdot \dfrac{1}{2\sqrt{x}} = \dfrac{\cos(\sqrt{x})}{2\sqrt{x}}.
  20. Ex. 53.20

    Calculate ((3x+5)10)((3x+5)^{10})'.

    Show solution
    Inner: 3x+53x+5, derivative 33. Outer: u10u^{10}, derivative 10u910u^9. Result: 10(3x+5)93=30(3x+5)910(3x+5)^9 \cdot 3 = 30(3x+5)^9.
  21. Ex. 53.21Answer key

    Calculate (cos(3x2+2))(\cos(3x^2+2))'.

    Show solution
    Inner: 3x2+23x^2+2, derivative 6x6x. Outer: cosu\cos u, derivative sinu-\sin u. Result: sin(3x2+2)6x=6xsin(3x2+2)-\sin(3x^2+2) \cdot 6x = -6x\sin(3x^2+2).
  22. Ex. 53.22

    Calculate (ln(lnx))(\ln(\ln x))'.

    Show solution
    Inner: lnx\ln x, derivative 1/x1/x. Outer: lnu\ln u, derivative 1/u1/u. Result: 1lnx1x=1xlnx\frac{1}{\ln x} \cdot \frac{1}{x} = \frac{1}{x \ln x}. (Domain: x>1x > 1.)
    Show step-by-step (with the why)
    1. Identify. ln(lnx)\ln(\ln x) is a composition of the logarithm with itself: f(u)=lnuf(u) = \ln u (outer), g(x)=lnxg(x) = \ln x (inner).
    2. Differentiate the outer. f(u)=1/uf'(u) = 1/u evaluated at lnx\ln x: 1/lnx1/\ln x.
    3. Differentiate the inner. g(x)=1/xg'(x) = 1/x.
    4. Result. (1/lnx)(1/x)=1/(xlnx)(1/\ln x) \cdot (1/x) = 1/(x\ln x).

    Note: the natural domain requires x>1x > 1 so that the inner logarithm lnx>0\ln x > 0 (the argument of the outer logarithm must be positive).

  23. Ex. 53.23

    Calculate (xsin(x2))(x \cdot \sin(x^2))'.

    Show solution
    Product: u=xu = x, v=sin(x2)v = \sin(x^2). Product rule: 1sin(x2)+xcos(x2)2x=sin(x2)+2x2cos(x2)1 \cdot \sin(x^2) + x \cdot \cos(x^2) \cdot 2x = \sin(x^2) + 2x^2\cos(x^2).
    Show step-by-step (with the why)
    1. Recognize the product. Two factors: u=xu = x and v=sin(x2)v = \sin(x^2). Use the product rule, not the chain rule directly.
    2. Differentiate each factor. u=1u' = 1. For v=(sin(x2))v' = (\sin(x^2))': chain rule with inner x2x^2, derivative 2x2x. Thus v=cos(x2)2xv' = \cos(x^2) \cdot 2x.
    3. Product rule. (uv)=uv+uv=1sin(x2)+x2xcos(x2)(uv)' = u'v + uv' = 1 \cdot \sin(x^2) + x \cdot 2x\cos(x^2).
    4. Result. sin(x2)+2x2cos(x2)\sin(x^2) + 2x^2\cos(x^2).

    Mnemonic: in this type of exercise, first identify IF it is a product or a composition. xsin(x2)x \cdot \sin(x^2) is a product. sin(xx2)=sin(x3)\sin(x \cdot x^2) = \sin(x^3) would be pure composition.

  24. Ex. 53.24

    Calculate (xex2)(x \cdot e^{x^2})'.

    Show solution
    Product: u=xu=x, v=ex2v=e^{x^2}. Derivative: 1ex2+x2xex2=ex2(1+2x2)1 \cdot e^{x^2} + x \cdot 2xe^{x^2} = e^{x^2}(1+2x^2).
  25. Ex. 53.25

    Calculate (sin(x2+1))(\sin(\sqrt{x^2+1}))'.

    Show solution
    Three layers: sinu\sin u, v\sqrt{v}, x2+1x^2+1. Chain rule: cos(x2+1)12x2+12x=xcos(x2+1)x2+1\cos(\sqrt{x^2+1}) \cdot \frac{1}{2\sqrt{x^2+1}} \cdot 2x = \frac{x\cos(\sqrt{x^2+1})}{\sqrt{x^2+1}}.
  26. Ex. 53.26Answer key

    Calculate (tan2(3x))(\tan^2(3x))'.

    Show solution
    Three layers: u2u^2, tanv\tan v, 3x3x. Chain rule: 2tan(3x)sec2(3x)3=6tan(3x)sec2(3x)2\tan(3x) \cdot \sec^2(3x) \cdot 3 = 6\tan(3x)\sec^2(3x).
  27. Ex. 53.27

    Find the tangent line to the curve y=(x2+1)3y = (x^2+1)^3 at the point x=1x = 1. (Ans: y=24x16y = 24x - 16.)

    Show solution
    At x=1x=1: y(1)=(12+1)3=8y(1) = (1^2+1)^3 = 8. Derivative: y=3(x2+1)22xy' = 3(x^2+1)^2 \cdot 2x. At x=1x=1: y(1)=342=24y'(1) = 3 \cdot 4 \cdot 2 = 24. Tangent line: y8=24(x1)y - 8 = 24(x - 1), or y=24x16y = 24x - 16.
  28. Ex. 53.28

    Error Analysis. A student writes (ex2)=xex2(e^{x^2})' = xe^{x^2}. What specific error was made?

    Select the correct option
    Select an option first
    Show solution
    In (ex2)(e^{x^2})', the inner function is $x^2$, whose derivative is $2x$, not $x$. The student multiplied by $x$ instead of $2x$. The correct result is 2xex22xe^{x^2}. This is the most common error with the chain rule for exponentials.
  29. Ex. 53.29

    Conceptual. To differentiate sin(x2)\sin(x^2), which rule applies? Why isn't it the product rule?

    Select the correct option
    Select an option first
    Show solution
    See the referenced source for the detailed solution.
  30. Ex. 53.30

    Calculate (eex)(e^{e^x})'.

    Show solution
    Inner: exe^x, derivative exe^x. Outer: eue^u, derivative eue^u. Result: eexexe^{e^x} \cdot e^x. The function eexe^{e^x} grows immensely fast: at x=0x=0, (eex)x=0=e11=e2.72(e^{e^x})'|_{x=0} = e^1 \cdot 1 = e \approx 2.72.
    Show step-by-step (with the why)
    1. Identify layers. Outermost: f(u)=euf(u) = e^u, derivative eue^u. Inner: g(x)=exg(x) = e^x, derivative exe^x.
    2. Evaluate derivatives at composed arguments. Outer evaluated: eexe^{e^x}. Inner: exe^x.
    3. Multiply. eexexe^{e^x} \cdot e^x.

    Observation: at x=0x=0 the derivative is $e$, consistent with rapid growth.

  31. Ex. 53.31

    Physics. The position of a particle in simple harmonic motion is s(t)=sin(ωt)s(t) = \sin(\omega t). Calculate the acceleration s(t)s''(t) and show that s(t)=ω2s(t)s''(t) = -\omega^2 s(t).

    Show solution
    Velocity: s(t)=ωcos(ωt)s'(t) = \omega\cos(\omega t) (chain rule). Acceleration: s(t)=ω(sin(ωt))ω=ω2sin(ωt)=ω2s(t)s''(t) = \omega \cdot (-\sin(\omega t)) \cdot \omega = -\omega^2\sin(\omega t) = -\omega^2 s(t). Acceleration is proportional to the negative of displacement — simple harmonic oscillator law.
    Show step-by-step (with the why)
    See the referenced source for the step-by-step walkthrough.
  32. Ex. 53.32Answer key

    Nuclear Physics. Radioactive decay follows N(t)=N0eλtN(t) = N_0 e^{-\lambda t}. Calculate N(t)N'(t) and show that N(t)=λN(t)N'(t) = -\lambda N(t).

    Show solution
    N(t)=N0eλtN(t) = N_0 e^{-\lambda t}. Chain rule: inner λt-\lambda t, derivative λ-\lambda. Outer eue^u. Result: N(t)=N0eλt(λ)=λN(t)N'(t) = N_0 e^{-\lambda t} \cdot (-\lambda) = -\lambda N(t). The decay rate is proportional to the amount present — law of radioactive decay.
  33. Ex. 53.33Answer key

    Biology. Logistic growth is P(t)=K1+ertP(t) = \dfrac{K}{1 + e^{-rt}}. Calculate P(0)P'(0).

    Show solution
    At t=0t=0: P(0)=K/(1+1)=K/2P(0) = K/(1+1) = K/2. Rewrite P=K(1+ert)1P = K(1+e^{-rt})^{-1}. Chain rule: P(t)=K(1)(1+ert)2(rert)=rKert(1+ert)2P'(t) = K \cdot (-1)(1+e^{-rt})^{-2} \cdot (-re^{-rt}) = \dfrac{rKe^{-rt}}{(1+e^{-rt})^2}. At t=0t=0: P(0)=rK14=rK4P'(0) = \dfrac{rK \cdot 1}{4} = \dfrac{rK}{4}.
    Show step-by-step (with the why)
    1. P(0). P(0)=K/(1+e0)=K/2P(0) = K/(1+e^0) = K/2. The population starts at half the carrying capacity.
    2. Rewrite to apply chain rule. P(t)=K(1+ert)1P(t) = K(1+e^{-rt})^{-1}. Outer: u1u^{-1}. Inner: 1+ert1 + e^{-rt}.
    3. Differentiate. Outer: u2-u^{-2}. Inner: the derivative of erte^{-rt} is rert-re^{-rt} (inner chain rule). Thus P(t)=K((1+ert)2)(rert)=rKert/(1+ert)2P'(t) = K \cdot (-(1+e^{-rt})^{-2}) \cdot (-re^{-rt}) = rKe^{-rt}/(1+e^{-rt})^2.
    4. At t=0. P(0)=rK/(1+1)2=rK/4P'(0) = rK/(1+1)^2 = rK/4. The maximum growth rate occurs at P=K/2P = K/2.

    Curiosity: the inflection point of logistic growth occurs exactly when the population reaches half the carrying capacity — this is when growth is fastest.

  34. Ex. 53.34

    Statistics. Calculate f(x)f'(x) for the standard normal density f(x)=12πex2/2f(x) = \dfrac{1}{\sqrt{2\pi}} e^{-x^2/2}.

    Show solution
    f(x)=12πex2/2f(x) = \frac{1}{\sqrt{2\pi}} e^{-x^2/2}. Chain rule on ex2/2e^{-x^2/2}: inner x2/2-x^2/2, derivative x-x. Result: f(x)=12πex2/2(x)=xf(x)f'(x) = \frac{1}{\sqrt{2\pi}} e^{-x^2/2} \cdot (-x) = -x \cdot f(x). The derivative of the Gaussian is itself multiplied by x-x.
  35. Ex. 53.35

    Finance. The present value of a cash flow SS discounted at rate rr is V(t)=SertV(t) = S\,e^{-rt}. Calculate dV/dtdV/dt and interpret the result.

    Show solution
    Product: u=ertu = e^{-rt} (derivative rert-re^{-rt} via chain rule), v=Sv = S (constant, derivative zero). Product rule: V(t)=rertS+ert0=rSert=rV(t)V'(t) = -re^{-rt} \cdot S + e^{-rt} \cdot 0 = -rSe^{-rt} = -rV(t). The present value decays at a rate rr multiplied by its own value.
  36. Ex. 53.36

    Physics. Kinetic energy is E(v)=12mv2E(v) = \tfrac{1}{2}mv^2 and velocity is v(t)=atv(t) = at. Calculate dE/dtdE/dt using the chain rule and verify with direct differentiation.

    Show solution
    E(t)=12mv(t)2=12m(at)2=12ma2t2E(t) = \frac{1}{2}m v(t)^2 = \frac{1}{2}m(at)^2 = \frac{1}{2}ma^2 t^2. Direct derivative: E(t)=ma2tE'(t) = ma^2 t. Via chain rule: dEdt=dEdvdvdt=mva=m(at)a=ma2t\frac{dE}{dt} = \frac{dE}{dv} \cdot \frac{dv}{dt} = mv \cdot a = m(at) \cdot a = ma^2 t. Both methods agree.
  37. Ex. 53.37

    Calculate (sin(cos(sinx)))(\sin(\cos(\sin x)))'.

    Show solution
    Three layers: f3=sinuf_3 = \sin u, f2=cosvf_2 = \cos v, f1=sinxf_1 = \sin x. Chain rule from outside in: cos(cos(sinx))(sin(sinx))cosx=cosxsin(sinx)cos(cos(sinx))\cos(\cos(\sin x)) \cdot (-\sin(\sin x)) \cdot \cos x = -\cos x \cdot \sin(\sin x) \cdot \cos(\cos(\sin x)).
    Show step-by-step (with the why)
    1. Identify the 3 layers. Outermost: f3(u)=sinuf_3(u) = \sin u, derivative cosu\cos u. Intermediate: f2(v)=cosvf_2(v) = \cos v, derivative sinv-\sin v. Innermost: f1(x)=sinxf_1(x) = \sin x, derivative cosx\cos x.
    2. Evaluate each derivative at its composed argument. Outer: cos(cos(sinx))\cos(\cos(\sin x)). Intermediate: sin(sinx)-\sin(\sin x). Inner: cosx\cos x.
    3. Product. cos(cos(sinx))(sin(sinx))cosx\cos(\cos(\sin x)) \cdot (-\sin(\sin x)) \cdot \cos x.

    Mnemonic: in triple composition, set up a table of layers and derivatives before multiplying — this prevents errors in order or missing factors.

  38. Ex. 53.38

    Calculate ddx[(x+x2+1)n]\dfrac{d}{dx}\left[(x + \sqrt{x^2+1})^n\right].

    Show solution
    f(x)=(x+x2+1)nf(x) = (x+\sqrt{x^2+1})^n. Outer: unu^n, derivative nun1nu^{n-1}. Inner: x+x2+1x + \sqrt{x^2+1}, derivative 1+x/x2+11 + x/\sqrt{x^2+1} (via chain rule on the square root). Result: n(x+x2+1)n1(1+xx2+1)n(x+\sqrt{x^2+1})^{n-1} \cdot \left(1 + \dfrac{x}{\sqrt{x^2+1}}\right).
  39. Ex. 53.39

    Calculate (sin(ex2))(\sin(e^{x^2}))'.

    Show solution
    Three layers: sinu\sin u, eve^v, x2x^2. Chain rule: cos(ex2)ex22x\cos(e^{x^2}) \cdot e^{x^2} \cdot 2x.
    Show step-by-step (with the why)
    1. Layers. Outermost: sinu\sin u, derivative cosu\cos u. Intermediate: eve^v, derivative eve^v. Innermost: x2x^2, derivative 2x2x.
    2. Evaluate each derivative at its composed argument. Outer: cos(ex2)\cos(e^{x^2}). Intermediate: ex2e^{x^2}. Inner: 2x2x.
    3. Product. cos(ex2)ex22x\cos(e^{x^2}) \cdot e^{x^2} \cdot 2x.

    Note: at x=0x=0 the derivative is zero (factor 2x=02x = 0), consistent with a possible extremum. Check numerically: h(0.001)h(0.001)0h(0.001) - h(-0.001) \approx 0.

  40. Ex. 53.40

    Proof. Explain why the naive argument ΔfΔgΔgh\frac{\Delta f}{\Delta g} \cdot \frac{\Delta g}{h} fails as a rigorous proof of the chain rule. How does the auxiliary function Q(y)Q(y) resolve the issue?

    Show solution
    The naive argument writes f(g(a+h))f(g(a))h=ΔfΔgΔgh\frac{f(g(a+h))-f(g(a))}{h} = \frac{\Delta f}{\Delta g} \cdot \frac{\Delta g}{h}. The problem: Δg=g(a+h)g(a)\Delta g = g(a+h) - g(a) can be zero for h0h \neq 0 (e.g., oscillating gg), leading to division by zero. The solution is to define the auxiliary function Q(y)Q(y) which equals the difference quotient when yg(a)y \neq g(a) and f(g(a))f'(g(a)) when y=g(a)y = g(a). The continuity of QQ at g(a)g(a) (guaranteed by differentiability of ff) allows completing the argument without division by zero.

Sources

  • Active Calculus 2.0 — Boelkins, Austin, Schlicker · 2024 · §2.5. Primary source. CC-BY-NC-SA.
  • Calculus Volume 1 — OpenStax (Herman et al.) · 2016 · §3.6. CC-BY-NC-SA.
  • APEX Calculus — Hartman et al. · 2024 · v5 · §2.5. CC-BY-NC.

Updated on 2024-05-15 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.