Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

The chain rule is a derivative rule for composite functions, where one function is plugged into another. It matters because many real expressions in science, engineering, and economics are built in layers, such as sin(x2)\sin(x^2), (3x+1)5(3x + 1)^5, or e2xe^{2x}. Instead of differentiating the whole expression at once, the chain rule lets you track how a change in the input moves through each layer.

This makes complicated derivatives manageable and systematic.

The main idea is to separate a function into an inside part and an outside part. If y=f(g(x))y = f(g(x)), then the derivative is dydx=f(g(x))×g(x)\frac{dy}{dx} = f'(g(x)) \times g'(x), which means differentiate the outside while keeping the inside unchanged, then multiply by the derivative of the inside. This reflects how rates of change combine through a sequence of transformations.

The rule is especially useful in implicit differentiation, related rates, and any problem where variables depend on other variables.

Understanding The Chain Rule

A useful way to understand the rule is to think about small changes. Suppose a quantity u changes when x changes, and y changes when u changes. A tiny change in x first creates a tiny change in u.

That new change then creates a change in y. The final rate depends on both steps.

If the inner function is changing quickly, it can make the outer output change quickly even when the outer function itself has a modest slope. If the inner function is momentarily flat, the final rate is zero because no change gets passed to the outer layer at that instant.

The Leibniz form helps show this flow of change. The rate of y with respect to x can be viewed as the rate of y with respect to u multiplied by the rate of u with respect to x. The units support this idea.

If u is measured in meters and y is measured in joules, then the first rate has units of joules per meter. If x is measured in seconds, the second rate has units of meters per second. Multiplying gives joules per second.

The meter units cancel. This is more than a memory trick. It helps students check whether a rate calculation has a sensible meaning.

Some expressions contain more than two layers. For example, a cosine may contain a square, which may contain a linear expression. Work from the outside toward the center when finding the derivative, then multiply by a derivative for every layer.

A reliable method is to name intermediate quantities in order. Let the linear part be one quantity, let its square be a second quantity, then apply cosine to that second quantity.

This setup reduces missed factors. It is especially helpful when roots, logarithms, exponentials, or trigonometric functions appear together.

Students often make an error by changing the inside expression while taking the outer derivative. For a power expression, the inner part should stay intact until the derivative of the inner part is included as a separate factor. Another common error is stopping after differentiating the outside.

Check every pair of parentheses and ask whether the quantity inside depends on x. If it does, its derivative must appear somewhere in the final answer.

Simplify only after all factors are present. Expanding a large power before differentiating usually creates more work and makes errors harder to spot.

The chain rule appears whenever one measured quantity is converted through several stages. In physics, position can depend on time, while energy depends on position. In biology, a drug concentration can depend on time, while a body response depends on concentration.

In economics, a cost can depend on production, while production depends on labor hours. Graphically, the rule explains why a graph can become steep or flat after a transformation.

Practice should include identifying layers before doing any algebra. That habit makes later topics such as implicit differentiation and related rates much easier to organize.

Key Facts

  • Chain rule for composite functions: ddx[f(g(x))]=f(g(x))g(x)\frac{d}{dx}[f(g(x))] = f'(g(x))g'(x)
  • If y=(u(x))ny = (u(x))^n, then dydx=n(u(x))n1u(x)\frac{dy}{dx} = n(u(x))^{n-1}u'(x)
  • If y=sin(u(x))y = \sin(u(x)), then dydx=cos(u(x))u(x)\frac{dy}{dx} = \cos(u(x))u'(x)
  • If y=eu(x)y = e^{u(x)}, then dydx=eu(x)u(x)\frac{dy}{dx} = e^{u(x)}u'(x)
  • Leibniz form: if y=f(u)y = f(u) and u=g(x)u = g(x), then dydx=dydududx\frac{dy}{dx} = \frac{dy}{du}\frac{du}{dx}
  • Example: ddx[(3x+1)5]=5(3x+1)4×3=15(3x+1)4\frac{d}{dx}[(3x + 1)^5] = 5(3x + 1)^4 \times 3 = 15(3x + 1)^4

Vocabulary

Composite function
A function formed when the output of one function becomes the input of another, such as f(g(x))f(g(x)).
Inside function
The inner expression in a composite function, which is evaluated first, such as g(x)g(x) in f(g(x))f(g(x)).
Outside function
The function that acts on the result of the inside function, such as ff in f(g(x))f(g(x)).
Derivative
A measure of how fast a function changes with respect to its input.
Intermediate variable
A temporary variable like u=g(x)u = g(x) used to break a composite function into simpler parts.

Common Mistakes to Avoid

  • Forgetting to multiply by the derivative of the inside function, which gives an incomplete derivative because the inner layer also changes with x.
  • Differentiating the inside and outside separately and then adding them, which is wrong because the chain rule uses multiplication of rates, not addition.
  • Changing the inside expression while differentiating the outside, which is wrong because you should first treat the inside as a single unchanged quantity.
  • Using the chain rule on expressions that are not actually composite functions, which can lead to unnecessary or incorrect steps when a simpler rule applies.

Practice Questions

  1. 1 Find ddx\frac{d}{dx} of y=(2x5)4y = (2x - 5)^4.
  2. 2 Find ddx\frac{d}{dx} of y=cos(x3)y = \cos(x^3).
  3. 3 Explain why the derivative of 5x+1\sqrt{5x + 1} must include a factor from differentiating 5x+15x + 1, and describe what goes wrong if that factor is omitted.