Chain rule

    Understanding the Chain Rule

    The Chain Rule is a fundamental differentiation rule used to find the derivative of a composite function. A composite function is a function within a function, often written as f(g(x)). Without the Chain Rule, differentiating many common functions would be impossible or exceedingly complex.

    The Formula

    If y = f(u) and u = g(x), then the composite function is y = f(g(x)). The Chain Rule states that the derivative of y with respect to x is:

    • In Leibniz notation: dy/dx = (dy/du) * (du/dx)
    • In prime notation: d/dx [f(g(x))] = f'(g(x)) * g'(x)

    Essentially, you differentiate the 'outer' function (f) with respect to its argument (g(x)), and then multiply by the derivative of the 'inner' function (g) with respect to x.

    Applying the Chain Rule

    Let's break down the application with examples:

    • Example 1: Power Rule combined with Chain Rule
      Consider y = (2x + 1)^3. Here, the outer function is u^3 and the inner function is u = 2x + 1.
      • Derivative of outer: d/du (u^3) = 3u^2
      • Derivative of inner: d/dx (2x + 1) = 2
      • Applying Chain Rule: dy/dx = 3(2x + 1)^2 * 2 = 6(2x + 1)^2
    • Example 2: Trigonometric Function with Chain Rule
      Consider y = sin(x^2). The outer function is sin(u) and the inner function is u = x^2.
      • Derivative of outer: d/du (sin(u)) = cos(u)
      • Derivative of inner: d/dx (x^2) = 2x
      • Applying Chain Rule: dy/dx = cos(x^2) * 2x = 2x cos(x^2)

    Chain Rule with Multiple Layers

    The Chain Rule can be extended to functions with multiple layers, such as f(g(h(x))). In such cases, you apply the rule iteratively:

    d/dx [f(g(h(x)))] = f'(g(h(x))) * g'(h(x)) * h'(x)

    • Example: Differentiate y = cos^4(3x). This can be viewed as y = (cos(3x))^4.
      • Outermost function: u^4, where u = cos(3x). Derivative: 4u^3.
      • Next layer: cos(v), where v = 3x. Derivative: -sin(v).
      • Innermost function: 3x. Derivative: 3.
      • Combining: dy/dx = 4(cos(3x))^3 * (-sin(3x)) * 3 = -12 cos^3(3x) sin(3x)

    Importance in Implicit Differentiation

    The Chain Rule is crucial in implicit differentiation, where y is often a function of x, but not explicitly stated as y=f(x). When differentiating terms involving y with respect to x, we treat y as an inner function. For example, the derivative of y^2 with respect to x is 2y * dy/dx, applying the Chain Rule to (g(x))^2.

    Practice questions

    1

    What is the derivative of f(x) = sin(5x^3)?

    2

    Find dy/dx if y = e^(sqrt(x)).

    3

    If y = (x^2 + 3)^4, what is dy/dx?

    4

    Using implicit differentiation, find dy/dx for x^2 + y^2 = 25.

    Practice more free →

    Free AP4U account — unlimited practice, AI grader, and progress tracking.

    Canonical: https://apforu.com/ap/calculus-bc/unit-3-differentiation-composite-implicit-and-inverse-functions/chain-rule