Day 22 - The Chain Rule + Applied Differentiation Notes

Course Overview and Learning Objectives
  • Module & Reading: Day 22 - Chain Rule | Section 11.4

  • Key Objectives:

    • Apply the chain rule to compute derivatives of composite functions.

    • Determine and evaluate the derivative of the absolute value function.

Foundations and Mathematical Formulation of the Chain Rule
  • Theoretical Statement: If ff is differentiable with respect to uu, and uu is differentiable with respect to xx, the composite function f(u)f(u) is differentiable with respect to xx.

  • Leibniz Notation:

    • ddx[f(u)]=dfdu⋅dudx\frac{d}{dx}[f(u)] = \frac{df}{du} \cdot \frac{du}{dx}

  • Lagrange / Functional Notation:

    • If u=g(x)u = g(x), then ddx[f(g(x))]=f′(g(x))⋅g′(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)

  • Core Mechanism: Rate of change of composite function = (Derivative of outer evaluated at inner) ×\times (Derivative of inner with respect to independent variable).

Example 22.1: Logarithmic, Absolute Value, and Algebraic Derivatives
  • Part (a): Differentiate f(x)=log⁡3(x2)f(x) = \log_3(x^2)

    • Outer: g(u)=log⁡3(u)  ⟹  dgdu=1uln⁡(3)g(u) = \log_3(u) \implies \frac{dg}{du} = \frac{1}{u \ln(3)}

    • Inner: u=x2  ⟹  dudx=2xu = x^2 \implies \frac{du}{dx} = 2x

    • Chain Rule: f′(x)=1x2ln⁡(3)⋅2x=2xln⁡(3)f'(x) = \frac{1}{x^2 \ln(3)} \cdot 2x = \frac{2}{x \ln(3)} (valid for x≠0x \neq 0)

    • Log Rule Alternative: f(x)=2log⁡3(∣x∣)  ⟹  f′(x)=2⋅1xln⁡(3)=2xln⁡(3)f(x) = 2\log_3(|x|) \implies f'(x) = 2 \cdot \frac{1}{x \ln(3)} = \frac{2}{x \ln(3)}

  • Part (b): Differentiate f(x)=log⁡3(x2+1)f(x) = \log_3(x^2 + 1)

    • Outer: g(u)=log⁡3(u)  ⟹  dgdu=1uln⁡(3)g(u) = \log_3(u) \implies \frac{dg}{du} = \frac{1}{u \ln(3)}

    • Inner: u=x2+1  ⟹  dudx=2xu = x^2 + 1 \implies \frac{du}{dx} = 2x

    • Result: f′(x)=1(x2+1)ln⁡(3)⋅2x=2x(x2+1)ln⁡(3)f'(x) = \frac{1}{(x^2 + 1)\ln(3)} \cdot 2x = \frac{2x}{(x^2 + 1)\ln(3)}

    • Domain Note: Because x2+1≥1>0x^2 + 1 \ge 1 > 0 for all x∈Rx \in \mathbb{R}, domain is (−∞,∞)(-\infty, \infty).

  • Part (c): Differentiate the Absolute Value Function y=∣x∣y = |x|

    • Radical Form: y=x2=(x2)1/2y = \sqrt{x^2} = (x^2)^{1/2}

    • Outer: f(u)=u1/2  ⟹  dfdu=12uf(u) = u^{1/2} \implies \frac{df}{du} = \frac{1}{2\sqrt{u}}

    • Inner: u=x2  ⟹  dudx=2xu = x^2 \implies \frac{du}{dx} = 2x

    • Assembly: dydx=12x2⋅2x=xx2=x∣x∣=∣x∣x=sgn(x)\frac{dy}{dx} = \frac{1}{2\sqrt{x^2}} \cdot 2x = \frac{x}{\sqrt{x^2}} = \frac{x}{|x|} = \frac{|x|}{x} = \text{sgn}(x)

    • Piecewise Evaluation:

    • For x>0x > 0: dydx=1\frac{dy}{dx} = 1

    • For x<0x < 0: dydx=−1\frac{dy}{dx} = -1

    • At x=0x = 0: Derivative is undefined (corner/cusp; left-hand derivative −1≠-1 \neq right-hand derivative 11).

  • Part (d): Differentiate h(x)=13x2+1h(x) = \frac{1}{\sqrt{3x^2 + 1}}

    • Exponential Form: h(x)=(3x2+1)−1/2h(x) = (3x^2 + 1)^{-1/2}

    • Outer: f(u)=u−1/2  ⟹  dfdu=−12u−3/2f(u) = u^{-1/2} \implies \frac{df}{du} = -\frac{1}{2}u^{-3/2}

    • Inner: u=3x2+1  ⟹  dudx=6xu = 3x^2 + 1 \implies \frac{du}{dx} = 6x

    • Assembly: h′(x)=−12(3x2+1)−3/2⋅6x=−3x(3x2+1)3/2=−3x(3x2+1)3h'(x) = -\frac{1}{2}(3x^2 + 1)^{-3/2} \cdot 6x = -\frac{3x}{(3x^2 + 1)^{3/2}} = -\frac{3x}{\sqrt{(3x^2 + 1)^3}}

  • Part (e): Differentiate k(t)=(5t1/4+9t+7)20k(t) = (5t^{1/4} + 9t + 7)^{20}

    • Generalized Power Rule: ddt[un]=nun−1dudt\frac{d}{dt}[u^n] = n u^{n-1} \frac{du}{dt}

    • Inner Function: u(t)=5t1/4+9t+7  ⟹  dudt=54t−3/4+9u(t) = 5t^{1/4} + 9t + 7 \implies \frac{du}{dt} = \frac{5}{4}t^{-3/4} + 9

    • Chain Rule: k′(t)=20(5t1/4+9t+7)19(54t−3/4+9)=(5t1/4+9t+7)19(25t−3/4+180)k'(t) = 20(5t^{1/4} + 9t + 7)^{19} \left(\frac{5}{4}t^{-3/4} + 9\right) = (5t^{1/4} + 9t + 7)^{19}(25t^{-3/4} + 180)

Example 22.2: Marginal Profit and Labor Production Application
  • Given Models:

    • Profit: P=750Q0.25+5QP = 750Q^{0.25} + 5Q (QQ = widgets produced/year)

    • Production: Q=20000n−80n2−2n3Q = 20000n - 80n^2 - 2n^3 (nn = number of workers)

    • Goal: Evaluate and interpret marginal profit dPdn\frac{dP}{dn} at n=20n = 20.

  • Chain Rule Formulation:

    • dPdn=dPdQ⋅dQdn\frac{dP}{dn} = \frac{dP}{dQ} \cdot \frac{dQ}{dn}

  • Step-by-Step Solution:

    1. Derivative of Profit: dPdQ=750(0.25)Q−0.75+5=187.5Q3/4+5\frac{dP}{dQ} = 750(0.25)Q^{-0.75} + 5 = \frac{187.5}{Q^{3/4}} + 5

    2. Output at n=20n = 20: Q(20)=20000(20)−80(20)2−2(20)3=400000−32000−16000=352000Q(20) = 20000(20) - 80(20)^2 - 2(20)^3 = 400000 - 32000 - 16000 = 352000

    3. Evaluate dPdQ\frac{dP}{dQ}: dPdQ∣Q=352000=187.5(352000)3/4+5≈0.01298+5=5.01298 dollars/widget\frac{dP}{dQ}\Big|_{Q=352000} = \frac{187.5}{(352000)^{3/4}} + 5 \approx 0.01298 + 5 = 5.01298\,\text{dollars/widget}

    4. Derivative of Workforce: dQdn=20000−160n−6n2\frac{dQ}{dn} = 20000 - 160n - 6n^2

    5. Evaluate dQdn\frac{dQ}{dn}: dQdn∣n=20=20000−160(20)−6(20)2=20000−3200−2400=14400 widgets/worker\frac{dQ}{dn}\Big|_{n=20} = 20000 - 160(20) - 6(20)^2 = 20000 - 3200 - 2400 = 14400\,\text{widgets/worker}

    6. Calculate Marginal Profit:

    • dPdn∣n=20=5.01298×14400≈72186.91 dollars/worker\frac{dP}{dn}\Big|_{n=20} = 5.01298 \times 14400 \approx 72186.91\,\text{dollars/worker}

  • Economic Interpretation: Employing one additional worker (from 20 to 21) increases annual company profit by approximately $72186.91\$72186.91.

Example 22.3: Exponential, Logistic, and Variable-Base Functions
  • Part (a): Exponential with Linear Power f(x)=ekxf(x) = e^{kx}

    • Outer: g(u)=eu  ⟹  g′(u)=eug(u) = e^u \implies g'(u) = e^u | Inner: u=kx  ⟹  u′=ku = kx \implies u' = k

    • Derivative: f′(x)=kekxf'(x) = k e^{kx}

  • Part (b): Gaussian Density Function f(x)=12πe−x2/2f(x) = \frac{1}{\sqrt{2\pi}} e^{-x^2/2}

    • Inner Exponent: u=−12x2  ⟹  dudx=−xu = -\frac{1}{2}x^2 \implies \frac{du}{dx} = -x

    • Chain Rule: f′(x)=12πe−x2/2⋅(−x)=−x2πe−x2/2f'(x) = \frac{1}{\sqrt{2\pi}} e^{-x^2/2} \cdot (-x) = -\frac{x}{\sqrt{2\pi}} e^{-x^2/2}

  • Part (c): Logistic Function P(t)=N1+Cb−t=N(1+Cb−t)−1P(t) = \frac{N}{1 + Cb^{-t}} = N(1 + Cb^{-t})^{-1}

    • Outer: g(u)=Nu−1  ⟹  dgdu=−Nu2g(u) = N u^{-1} \implies \frac{dg}{du} = -\frac{N}{u^2}

    • Inner: u=1+Cb−t  ⟹  dudt=−Cb−tln⁡(b)u = 1 + Cb^{-t} \implies \frac{du}{dt} = -C b^{-t} \ln(b)

    • Chain Rule: P′(t)=(−N(1+Cb−t)2)⋅(−Cb−tln⁡(b))=NCb−tln⁡(b)(1+Cb−t)2P'(t) = \left(-\frac{N}{(1 + Cb^{-t})^2}\right) \cdot \left(-C b^{-t}\ln(b)\right) = \frac{N C b^{-t}\ln(b)}{(1 + Cb^{-t})^2}

  • Part (d): Exponential Polynomial g(t)=et5−5t4+10t3−10t2+5t−1g(t) = e^{t^5 - 5t^4 + 10t^3 - 10t^2 + 5t - 1}

    • Binomial Factorization: Exponent matches (t−1)5(t - 1)^5, so g(t)=e(t−1)5g(t) = e^{(t - 1)^5}

    • Derivative of Inner: u′(t)=5(t−1)4=5t4−20t3+30t2−20t+5u'(t) = 5(t - 1)^4 = 5t^4 - 20t^3 + 30t^2 - 20t + 5

    • Factored Form: g′(t)=5(t−1)4e(t−1)5g'(t) = 5(t - 1)^4 e^{(t - 1)^5}

    • Expanded Form: g′(t)=(5t4−20t3+30t2−20t+5)et5−5t4+10t3−10t2+5t−1g'(t) = (5t^4 - 20t^3 + 30t^2 - 20t + 5) e^{t^5 - 5t^4 + 10t^3 - 10t^2 + 5t - 1}

  • Part (e): Variable-Base Variable-Exponent Function y=xxy = x^x (x>0x > 0)

    • Method 1 (Base ee rewrite):

    • Rewrite: y=eln⁡(xx)=exln⁡(x)y = e^{\ln(x^x)} = e^{x\ln(x)}

    • Inner Product Rule: ddx[xln⁡(x)]=1⋅ln⁡(x)+x⋅1x=ln⁡(x)+1\frac{d}{dx}[x\ln(x)] = 1 \cdot \ln(x) + x \cdot \frac{1}{x} = \ln(x) + 1

    • Chain Rule: dydx=exln⁡(x)(ln⁡(x)+1)=xx(ln⁡(x)+1)\frac{dy}{dx} = e^{x\ln(x)}(\ln(x) + 1) = x^x(\ln(x) + 1)

    • Method 2 (Implicit Logarithmic Differentiation):

    • Take ln⁡\ln of both sides: ln⁡(y)=xln⁡(x)\ln(y) = x\ln(x)

    • Implicit Derivative: 1ydydx=ln⁡(x)+1  ⟹  dydx=y(ln⁡(x)+1)=xx(ln⁡(x)+1)\frac{1}{y}\frac{dy}{dx} = \ln(x) + 1 \implies \frac{dy}{dx} = y(\ln(x) + 1) = x^x(\ln(x) + 1)

Summary and Academic Deliverables
  • Core Rule: Chain Rule allows systematic differentiation of composite functions by decomposing them into outer and inner rates of change.

  • Deadlines Due This Week:

    • Lab 6

    • HW 9