Published on
2 min read

Chain rule

Authors

The chain rule is a fundamental concept in calculus that deals with the derivative of a composition of functions. If you have a function nested inside another function, the chain rule allows you to find the derivative of the whole composition.

Given two functions, u(x)u(x) and v(u)v(u), and you want to find the derivative of their composition, i.e., v(u(x))v(u(x)), the chain rule states: d[v(u(x))]dx=dvdududx\frac{d[v(u(x))]}{dx} = \frac{dv}{du} \cdot \frac{du}{dx}

Here's a breakdown of how it works:

  1. Differentiate the outer function vv with respect to its variable uu (treating uu as the variable). This gives dvdu\frac{dv}{du}.
  2. Differentiate the inner function uu with respect to xx. This gives dudx\frac{du}{dx}.
  3. Multiply these two derivatives together.

To illustrate, consider the function: y=sin(3x2+4x)y = \sin(3x^2 + 4x)

Here, u(x)=3x2+4xu(x) = 3x^2 + 4x is the inner function, and v(u)=sin(u)v(u) = \sin(u) is the outer function.

  1. Differentiating v(u)=sin(u)v(u) = \sin(u) with respect to uu gives: dvdu=cos(u)\frac{dv}{du} = \cos(u)

  2. Differentiating u(x)=3x2+4xu(x) = 3x^2 + 4x with respect to xx gives: dudx=6x+4\frac{du}{dx} = 6x + 4

  3. Using the chain rule, the derivative of yy with respect to xx is: dydx=cos(3x2+4x)(6x+4)\frac{dy}{dx} = \cos(3x^2 + 4x) \cdot (6x + 4)

In essence, the chain rule allows us to "peel off" layers of a function and differentiate each layer step by step, multiplying the results as we go. It's a powerful tool when dealing with nested or composite functions.