Calculus Notes: The Chain Rule for Derivatives

Overview and Significance of the Chain Rule

  • The chain rule is categorized as a critical lesson in calculus, denoted with a star due to its fundamental importance.

  • Students are encouraged to obtain extra practice in this area if they struggle, as it is a pillar of differentiation.

  • The rule is essential for finding the derivative of composite functions, where one function is nested inside another.

Conceptual Definition and Mathematical Notation

  • The chain rule is utilized when yy is defined as a function of uu, and uu is defined as a function of xx.

  • This relationship forms a composite function: y=f(g(x))y = f(g(x)).

  • Leibniz Notation:

    • If y=f(u)y = f(u) and u=g(x)u = g(x), then the derivative of yy with respect to xx is represented as:

    • dydx=dydu×dudx\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}

    • In this notation, it appears as though the dudu terms "divide out," leaving dydx\frac{dy}{dx}.

  • Prime Notation:

    • The derivative of a composite function f(g(x))f(g(x)) is calculated as the derivative of the outside function evaluated at the inside function, multiplied by the derivative of the inside function:

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

Methodology: The Multi-Layered Approach

  • The M&M Metaphor:

    • Differentiating a composite function is compared to eating an M&M candy.

    • A candy may have multiple layers: a crunchy shell, a chocolate layer, and a peanut or pretzel center.

    • The derivative must be taken layer by layer, working from the outside in.

    • The Crunchy Shell: Take the derivative of the outside layer first while leaving the inside portion exactly as it is (do not "taste the chocolate" yet).

    • The Chocolate/Peanut Layers: Continue by multiplying by the derivative of the next layer in.

  • The Onion and Ogre Metaphor:

    • Similar to characters in the film Shrek, functions can be complex and multi-layered like an onion or an ogre.

    • You must peel back each layer one at a time through multiplication.

Primary Examples and Procedural Applications

  • Example 1: Power of a Binomial

    • Function: y=(x2+1)3y = (x^2 + 1)^3

    • Identify the inside (uu): u=x2+1u = x^2 + 1

    • Identify the outside: y=u3y = u^3

    • Step 1 (Outside): The derivative of u3u^3 is 3u23u^2. Substitute back: 3(x2+1)23(x^2 + 1)^2.

    • Step 2 (Inside): The derivative of x2+1x^2 + 1 is 2x2x.

    • Combine: dydx=3(x2+1)2×(2x)\frac{dy}{dx} = 3(x^2 + 1)^2 \times (2x).

    • Final Answer: 6x(x2+1)26x(x^2 + 1)^2.

    • Note: Expanding the binomial using Pascal's triangle is mathematically valid but often unnecessary for AP (Advanced Placement) multiple-choice expectations.

  • Example 2: Trigonometric Function with a Variable Argument

    • Function: y=cos(3x)y = \cos(3x)

    • Step 1 (Outside): The derivative of the cosine function is negative sine. Leave the argument alone: sin(3x)-\sin(3x).

    • Step 2 (Inside): Multiply by the derivative of the argument (3x3x), which is 33.

    • Final Answer: 3sin(3x)-3\sin(3x).

    • Warning: The constant 33 is not part of the argument; never multiply into the sine function to get sin(9x)\sin(9x).

  • Example 3: Square Root of a Polynomial

    • Function: y=7x22x+1y = \sqrt{7x^2 - 2x + 1}

    • Rewrite for differentiation: (7x22x+1)12(7x^2 - 2x + 1)^{\frac{1}{2}}

    • Step 1 (Outside/Power Rule): 12(7x22x+1)12\frac{1}{2}(7x^2 - 2x + 1)^{-\frac{1}{2}}.

    • Step 2 (Inside): Multiply by human derivative of the polynomial: (14x2)(14x - 2).

    • Simplification: 14x227x22x+1\frac{14x - 2}{2\sqrt{7x^2 - 2x + 1}}.

    • Final Answer: 7x1x22x+1\frac{7x - 1}{\sqrt{x^2 - 2x + 1}}. (Note: Final denominator as per lecture transcript).

  • Example 4: Constant Multiplier and Power

    • Function: y=3(4x2)5y = 3(4 - x^2)^5

    • The constant 33 remains a multiplier.

    • Step 1 (Outside): 3×5(4x2)4=15(4x2)43 \times 5(4 - x^2)^4 = 15(4 - x^2)^4.

    • Step 2 (Inside): The derivative of 4x24 - x^2 is 2x-2x.

    • Combine: 2x×15(4x2)4-2x \times 15(4 - x^2)^4.

    • Final Answer: 30x(4x2)4-30x(4 - x^2)^4.

Advanced Implementation: Combining Chain and Quotient Rules

  • Example 5: Power involving a Quotient

    • Function: g(x)=(x2x3+2)2g(x) = (\frac{x^2}{x^3 + 2})^2

    • Step 1 (Chain Rule - Outside): Bring the power down: 2(x2x3+2)12(\frac{x^2}{x^3 + 2})^1.

    • Step 2 (Chain Rule - Inside via Quotient Rule):

    • Formula: bottom×d(top)top×d(bottom)bottom2\frac{\text{bottom} \times d(\text{top}) - \text{top} \times d(\text{bottom})}{\text{bottom}^2}

    • Calculation: (x3+2)(2x)(x2)(3x2)(x3+2)2\frac{(x^3 + 2)(2x) - (x^2)(3x^2)}{(x^3 + 2)^2}

    • Combine and Simplify:

    • The numerator of the quotient part becomes 2x4+4x3x42x^4 + 4x - 3x^4, which simplifies to 4xx44x - x^4.

    • Combine the denominators: (x3+2)×(x3+2)2=(x3+2)3(x^3 + 2) \times (x^3 + 2)^2 = (x^3 + 2)^3.

    • Multiply by the remaining outer terms: 2(x2)(4xx4)=2x2(x(4x3))=2x3(4x3)2(x^2)(4x - x^4) = 2x^2(x(4 - x^3)) = 2x^3(4 - x^3).

    • Final Answer: 2x3(4x3)(x3+2)3\frac{2x^3(4 - x^3)}{(x^3 + 2)^3}.

Detailed Comparative Analysis: Variations in Trigonometric Functions

Details matter extensively in calculus; minor differences in notation change the derivation process.

  • Case A: Square within the Argument

    • Function: y=cos(3x2)y = \cos(3x^2)

    • Layers: Outside is cos(u)\cos(u), inside is 3x23x^2.

    • Derivative: sin(3x2)×6x-\sin(3x^2) \times 6x.

    • Result: 6xsin(3x2)-6x\sin(3x^2).

  • Case B: Squared Argument

    • Function: y=cos((3x)2)y = \cos((3x)^2)

    • Rewrite: y=cos(9x2)y = \cos(9x^2).

    • Layers: Outside is cos(u)\cos(u), inside is 9x29x^2.

    • Derivative: sin(9x2)×18x-\sin(9x^2) \times 18x.

    • Result: 18xsin(9x2)-18x\sin(9x^2).

  • Case C: Square of a Trigonometric Function (Three Layers)

    • Function: y=cos2(3x)y = \cos^2(3x)

    • Rewrite to visualize layers: y=(cos(3x))2y = (\cos(3x))^2.

    • Layer 1 (Power of 2): 2(cos(3x))12(\cos(3x))^1.

    • Layer 2 (Trigonometric Cosine): Multiply by sin(3x)-\sin(3x).

    • Layer 3 (Argument 3x): Multiply by 33.

    • Calculation: 2×(cos(3x))×(sin(3x))×32 \times (\cos(3x)) \times (-\sin(3x)) \times 3.

    • Result: 6cos(3x)sin(3x)-6\cos(3x)\sin(3x).

Questions & Discussion

  • Question: Instead of the chain rule, could cases like cos2(3x)\cos^2(3x) be solved using the product rule?

  • Response: Yes, one could write it as cos(3x)×cos(3x)\cos(3x) \times \cos(3x) and use the product rule, but the answer would typically not simplify as easily or directly as it does using the chain rule.

  • Note to BC Students: BC (Calculus BC) students are reminded that the pace of the course is significantly faster than for AB (Calculus AB) students. BC students cover more material in less time and must keep pushing to the end of the curriculum.