---
title: "The Chain Rule"
description: "Differentiate a composition by multiplying the rate of the outer function by the rate of the inner one. The rule is what makes substitution, related rates and implicit differentiation possible."
canonical: https://lightmysky.com/learn/mathematics/the-chain-rule-mt_kdhl4dmwJn
source: https://lightmysky.com/learn/mathematics/the-chain-rule-mt_kdhl4dmwJn.md
retrieved: 2026-11-12
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# The Chain Rule

Differentiate a composition by multiplying the rate of the outer function by the rate of the inner one. The rule is what makes substitution, related rates and implicit differentiation possible.

Subject: Mathematics · Area: Calculus & Analysis · Ages 18 to 19
Page: https://lightmysky.com/learn/mathematics/the-chain-rule-mt_kdhl4dmwJn

## Ready when they can

- Identify composition layers and apply or check their derivative factors
- Differentiate nested compositions, including exponential and logarithmic functions
- Relate changing quantities through rates and units, including solving for an unknown rate

## Lesson: The chain rule: rates times rates

If g is differentiable at x and f is differentiable at g(x), the derivative of f(g(x)) is f'(g(x))g'(x). Keep the inner input while differentiating the outer function, then multiply by the inner derivative. For (2x²+3)⁴, the factors are 4(2x²+3)³ and 4x, giving 16x(2x²+3)³.

**Example.** Evaluate only after differentiating. For F(x) = (x²+2)², the derivative is 2(x²+2) times 2x = 4x(x²+2). At 2, it equals 8 times 6 = 48. The power rule lowers the outer exponent; the inner derivative supplies a separate multiplier.

Using radians, the derivatives of sin u and cos u are cos u and -sin u. Thus cos(g(x)) has derivative -sin(g(x))g'(x). The argument remains g(x), not g'(x). Check the argument and the multiplier separately. Differentiating the resulting derivative again gives a second derivative, not the original function.

The elementary rules are (e^u)' = e^u and (ln u)' = 1/u for u > 0. A logarithmic composition needs a positive argument and its inner derivative as a multiplier. For x > 0, cos(ln(3x)) has derivative -sin(ln(3x)) times (1/(3x)) times 3, giving -sin(ln(3x))/x.

For f(g(h(x))), apply the chain rule to f and g(h(x)), then to g and h. The result is f'(g(h(x)))g'(h(x))h'(x), provided the needed derivatives exist. This is two chain-rule applications. If an inner derivative is zero and the other factors are defined and finite, the composite derivative is zero.

If y = f(x) and x changes with time, dy/dt = (dy/dx)(dx/dt). Units cancel like fractions. Metres per metre times metres per second gives metres per second. For rates 5 and -2 in those units, the output rate is -10 metres per second. The sign records the direction of change.

An exponential outer layer retains its entire argument. For e^(cos(3x)), the derivative factors are e^(cos(3x)), -sin(3x) and 3. Multiply them before evaluating an input. At a point, use the values of every factor; a zero inner factor makes the product zero only when the remaining factors are defined and finite.

**Example.** For a sphere, V = (4/3)pi r³, so dV/dt = 4pi r² dr/dt. Differentiate while r still varies with time. At r = 2 cm and dr/dt = 3 cm/s, dV/dt = 48pi cm³/s. The same equation can be solved for dr/dt when the volume rate and positive radius are known.

For a circle, A = pi r², so dA/dt = 2pi r dr/dt. Form the rate equation before substituting a moment's radius. A radius in metres and radius rate in metres per second give area rate in square metres per second. To infer an inner rate's units, cancel the intermediate quantity from the desired output rate.

*(drawing: Each layer supplies its derivative factor under the chain rule's differentiability conditions.)*

**Recap.** Keep the inner arguments and multiply the derivative factors. For changing quantities, differentiate before inserting momentary values.

*Original chain-rule lesson and questions written for this learning dataset, with dataset flashcards.*

## Practice

18 questions on this page, each with its working shown.

## Needs first

- [The Power Rule for Differentiating Polynomials](https://lightmysky.com/learn/mathematics/the-power-rule-for-differentiating-polynomials-mt_l7f4j44bR3)
- [The Product and Quotient Rules](https://lightmysky.com/learn/mathematics/the-product-and-quotient-rules-mt_NJ7INJ0jfv)

## Optional connections

- [Composite functions](https://lightmysky.com/learn/mathematics/composite-functions-mt_jqGJHXgYNw)

## Opens up

- [Derivatives of Exponential, Logarithmic and Trigonometric Functions](https://lightmysky.com/learn/mathematics/derivatives-of-exponential-logarithmic-and-trigonometric-functions-mt_695WPZKADT)
- [The Multivariable Chain Rule](https://lightmysky.com/learn/mathematics/the-multivariable-chain-rule-mt_CHSHdNxPmJ)
- [Integration by Substitution](https://lightmysky.com/learn/mathematics/integration-by-substitution-mt_jH-j_XsdC7)
