Calculus Study Notes: The Chain Rule, Logarithmic Derivatives, and General Power Rule

The Chain Rule for Composite Functions

  • Definition of Composition and Chain Rule Formula:

    • When evaluating the derivative of a composite function g(f(x))g(f(x)), where an inner function f(x)f(x) is nested inside an outer function g(x)g(x), the derivative is obtained by taking the derivative of the outer function evaluated at the inner function, and multiplying it by the derivative of the inner function:         ddx[g(f(x))]=g′(f(x))×f′(x)\frac{d}{dx}[g(f(x))] = g'(f(x)) \times f'(x)

  • Derivation of Square Root Derivative via Power Rule:

    • The square root function can be expressed as a fractional exponent:         x=x12\sqrt{x} = x^{\frac{1}{2}}

    • Applying the power rule yields:         ddx[x12]=12x12−1=12x−12=12x\frac{d}{dx}[x^{\frac{1}{2}}] = \frac{1}{2}x^{\frac{1}{2} - 1} = \frac{1}{2}x^{-\frac{1}{2}} = \frac{1}{2\sqrt{x}}

  • Worked Example 1: Square Root of a Polynomial:

    • Function:         y=x2+x3+2y = \sqrt{x^2 + x^3 + 2}

    • Identification of Components:

      • Outer function: g(u)=ug(u) = \sqrt{u} with derivative g′(u)=12ug'(u) = \frac{1}{2\sqrt{u}}

      • Inner function: f(x)=x2+x3+2f(x) = x^2 + x^3 + 2

    • Step-by-Step Chain Rule Solution:

      1. Differentiate outer function while retaining the inner function:             g′(f(x))=12x2+x3+2g'(f(x)) = \frac{1}{2\sqrt{x^2 + x^3 + 2}}

      2. Differentiate inner function:             f′(x)=ddx[x2+x3+2]=2x+3x2f'(x) = \frac{d}{dx}[x^2 + x^3 + 2] = 2x + 3x^2

      3. Multiply the outer derivative by the inner derivative:             dydx=12x2+x3+2×(2x+3x2)\frac{dy}{dx} = \frac{1}{2\sqrt{x^2 + x^3 + 2}} \times (2x + 3x^2)

    • Alternative Power Representation Solution:

      • Rewrite function:             y=(x2+x3+2)12y = (x^2 + x^3 + 2)^{\frac{1}{2}}

      • Differentiate using the general power rule:             dydx=12(x2+x3+2)−12×(2x+3x2)\frac{dy}{dx} = \frac{1}{2}(x^2 + x^3 + 2)^{-\frac{1}{2}} \times (2x + 3x^2)

  • Worked Example 2: Trigonometric Function with Nested Square Root:

    • Function:         f(x)=sin⁡(x+x)f(x) = \sin(x + \sqrt{x})

    • Identification of Components:

      • Outer function: sin⁡(u)\sin(u) with derivative cos⁡(u)\cos(u)

      • Inner function: x+xx + \sqrt{x}

    • Step-by-Step Solution:

      1. Differentiate outer function while leaving inner function unchanged:             cos⁡(x+x)\cos(x + \sqrt{x})

      2. Differentiate inner function:             ddx[x+x]=1+12x\frac{d}{dx}[x + \sqrt{x}] = 1 + \frac{1}{2\sqrt{x}}

      3. Combine via multiplication:             f′(x)=cos⁡(x+x)×(1+12x)f'(x) = \cos(x + \sqrt{x}) \times \left(1 + \frac{1}{2\sqrt{x}}\right)

      • Note: The trigonometric expression cos⁡(x+x)\cos(x + \sqrt{x}) is evaluated separately and then multiplied by the full derivative of the inner term (1+12x)\left(1 + \frac{1}{2\sqrt{x}}\right).

Derivatives of Logarithmic Functions

  • Inverse Relationship Between Exponential and Logarithm Functions:

    • The exponential function exe^x and the natural logarithm function ln⁡(x)\ln(x) are inverse functions of each other that cancel each other out when composed:         eln⁡(x)=xfor x>0e^{\ln(x)} = x \quad \text{for } x > 0         ln⁡(ex)=xfor all x\ln(e^x) = x \quad \text{for all } x

  • Derivation of the Derivative of Natural Logarithm:

    • To find ddx[ln⁡(x)]\frac{d}{dx}[\ln(x)], begin with the inverse identity:         eln⁡(x)=xe^{\ln(x)} = x

    • Differentiate both sides with respect to xx using implicit differentiation and the chain rule:         ddx[eln⁡(x)]=ddx[x]\frac{d}{dx}[e^{\ln(x)}] = \frac{d}{dx}[x]

    • Apply chain rule to left side (outer function eue^u, inner function ln⁡(x)\ln(x)):         eln⁡(x)×ddx[ln⁡(x)]=1e^{\ln(x)} \times \frac{d}{dx}[\ln(x)] = 1

    • Solve algebraically for ddx[ln⁡(x)]\frac{d}{dx}[\ln(x)]:         ddx[ln⁡(x)]=1eln⁡(x)\frac{d}{dx}[\ln(x)] = \frac{1}{e^{\ln(x)}}

    • Substitute eln⁡(x)=xe^{\ln(x)} = x back into the denominator:         ddx[ln⁡(x)]=1x\frac{d}{dx}[\ln(x)] = \frac{1}{x}

Differentiation of Exponential Functions with Arbitrary Bases

  • Algebraic Transformation to Base ee:

    • For any positive constant base a>0a > 0, express aa as an exponential function with base ee:         a=eln⁡(a)a = e^{\ln(a)}

    • Rewrite axa^x using rules of exponents:         ax=(eln⁡(a))x=exln⁡(a)a^x = (e^{\ln(a)})^x = e^{x\ln(a)}

  • Derivation of Derivative Formula for axa^x:

    • Differentiate exln⁡(a)e^{x\ln(a)} using the chain rule:         ddx[ax]=ddx[exln⁡(a)]\frac{d}{dx}[a^x] = \frac{d}{dx}[e^{x\ln(a)}]

    • Outer function is eue^u; inner function is xln⁡(a)x\ln(a) (where ln⁡(a)\ln(a) is a constant):         ddx[xln⁡(a)]=ln⁡(a)\frac{d}{dx}[x\ln(a)] = \ln(a)

    • Apply the chain rule:         ddx[exln⁡(a)]=exln⁡(a)×ddx[xln⁡(a)]=exln⁡(a)×ln⁡(a)\frac{d}{dx}[e^{x\ln(a)}] = e^{x\ln(a)} \times \frac{d}{dx}[x\ln(a)] = e^{x\ln(a)} \times \ln(a)

    • Substitute exln⁡(a)=axe^{x\ln(a)} = a^x back into the equation:         ddx[ax]=axln⁡(a)\frac{d}{dx}[a^x] = a^x \ln(a)

  • Special Case a=ea = e:

    • Substituting a=ea = e yields:         ddx[ex]=exln⁡(e)=ex×1=ex\frac{d}{dx}[e^x] = e^x \ln(e) = e^x \times 1 = e^x

  • Application to Doubling Functions:

    • For a function modeling a doubling process where y=2xy = 2^x:         ddx[2x]=2xln⁡(2)\frac{d}{dx}[2^x] = 2^x \ln(2)

The General Power Rule for All Real Exponents

  • Derivation for Arbitrary Real Exponents:

    • Let rr be any real number, and consider y=xry = x^r.

    • Rewrite xx using the natural logarithm and exponential base ee:         xr=(eln⁡(x))r=erln⁡(x)x^r = (e^{\ln(x)})^r = e^{r\ln(x)}

    • Differentiate both sides using the chain rule:         ddx[xr]=ddx[erln⁡(x)]\frac{d}{dx}[x^r] = \frac{d}{dx}[e^{r\ln(x)}]

    • Outer function derivative is erln⁡(x)e^{r\ln(x)}.

    • Inner function derivative (where rr is a constant multiplier):         ddx[rln⁡(x)]=r×1x=rx\frac{d}{dx}[r\ln(x)] = r \times \frac{1}{x} = \frac{r}{x}

    • Multiply outer derivative by inner derivative:         ddx[xr]=erln⁡(x)×rx\frac{d}{dx}[x^r] = e^{r\ln(x)} \times \frac{r}{x}

    • Substitute erln⁡(x)=xre^{r\ln(x)} = x^r back into the expression:         ddx[xr]=xr×rx=r×xrx=rxr−1\frac{d}{dx}[x^r] = x^r \times \frac{r}{x} = r \times \frac{x^r}{x} = r x^{r-1}

  • General Power Rule Statement:

    • For any real number exponent rr:         ddx[xr]=rxr−1\frac{d}{dx}[x^r] = r x^{r-1}

Advanced Multi-Rule Differentiation Problems

  • Combining Chain Rule and Quotient Rule:

    • Problem Structure:         y=(2x2−x−3sin⁡(x)+ln⁡(x))5y = \left(\frac{2x^2 - x^{-3}}{\sin(x) + \ln(x)}\right)^5

    • Step 1: Apply Chain Rule to Outermost Power:         dydx=5(2x2−x−3sin⁡(x)+ln⁡(x))4×ddx[2x2−x−3sin⁡(x)+ln⁡(x)]\frac{dy}{dx} = 5 \left(\frac{2x^2 - x^{-3}}{\sin(x) + \ln(x)}\right)^4 \times \frac{d}{dx}\left[\frac{2x^2 - x^{-3}}{\sin(x) + \ln(x)}\right]

    • Step 2: Apply Quotient Rule to Inner Fraction:

      • Numerator: N(x)=2x2−x−3N(x) = 2x^2 - x^{-3}

      • Numerator Derivative: N′(x)=4x+3x−4N'(x) = 4x + 3x^{-4}

      • Denominator: D(x)=sin⁡(x)+ln⁡(x)D(x) = \sin(x) + \ln(x)

      • Denominator Derivative: D′(x)=cos⁡(x)+1xD'(x) = \cos(x) + \frac{1}{x}

      • Quotient Rule Formula:             ddx[N(x)D(x)]=N′(x)D(x)−N(x)D′(x)(D(x))2\frac{d}{dx}\left[\frac{N(x)}{D(x)}\right] = \frac{N'(x)D(x) - N(x)D'(x)}{(D(x))^2}

    • Step 3: Assemble Full Unsimplified Derivative:         dydx=5(2x2−x−3sin⁡(x)+ln⁡(x))4×(4x+3x−4)(sin⁡(x)+ln⁡(x))−(2x2−x−3)(cos⁡(x)+1x)(sin⁡(x)+ln⁡(x))2\frac{dy}{dx} = 5 \left(\frac{2x^2 - x^{-3}}{\sin(x) + \ln(x)}\right)^4 \times \frac{(4x + 3x^{-4})(\sin(x) + \ln(x)) - (2x^2 - x^{-3})\left(\cos(x) + \frac{1}{x}\right)}{(\sin(x) + \ln(x))^2}

  • Nested Chain Rule with Multiple Composition Layers:

    • Problem Structure:         y=sin⁡2(ln⁡(x5+x))=[sin⁡(ln⁡(x5+x))]2y = \sin^2(\ln(x^5 + x)) = [\sin(\ln(x^5 + x))]^2

    • Layer Decomposition:

      1. Outer Power Layer: f1(u)=u2f_1(u) = u^2

      2. Trigonometric Layer: f2(v)=sin⁡(v)f_2(v) = \sin(v)

      3. Logarithmic Layer: f3(w)=ln⁡(w)f_3(w) = \ln(w)

      4. Polynomial Inner Layer: f4(x)=x5+xf_4(x) = x^5 + x

    • Step-by-Step Layer Differentiation:

      1. Derivative of Outer Power Layer: 2sin⁡(ln⁡(x5+x))2\sin(\ln(x^5 + x))

      2. Derivative of Trigonometric Layer: cos⁡(ln⁡(x5+x))\cos(\ln(x^5 + x))

      3. Derivative of Logarithmic Layer: 1x5+x\frac{1}{x^5 + x}

      4. Derivative of Polynomial Inner Layer: 5x4+15x^4 + 1

    • Final Combined Product:         dydx=2sin⁡(ln⁡(x5+x))×cos⁡(ln⁡(x5+x))×1x5+x×(5x4+1)\frac{dy}{dx} = 2\sin(\ln(x^5 + x)) \times \cos(\ln(x^5 + x)) \times \frac{1}{x^5 + x} \times (5x^4 + 1)