Mathematics · Formula

Chain rule for derivatives

The derivative of a composite function is the outer derivative evaluated at the inner function, times the inner derivative.

Mathematics librarySymbols definedWorked example
Formula
d/dx f(g(x)) = f′(g(x)) · g′(x)

The derivative of a composite function is the outer derivative evaluated at the inner function, times the inner derivative.

What the symbols mean

  • f — the outer function
  • g — the inner function

What it means

Rates of change multiply along a chain of dependencies, which is why the rule is essential for composite functions, implicit differentiation and related rates.

Worked example

Example

d/dx sin(3x) = cos(3x) × 3 = 3 cos(3x).

Related formulas

These relationships often appear alongside the chain rule for derivatives in the same problems.

Frequently asked questions

What is the chain rule for derivatives formula?

The relationship is d/dx f(g(x)) = f′(g(x)) · g′(x). The derivative of a composite function is the outer derivative evaluated at the inner function, times the inner derivative.

When should I use the chain rule for derivatives formula?

Rates of change multiply along a chain of dependencies, which is why the rule is essential for composite functions, implicit differentiation and related rates.

How do I avoid unit mistakes?

Write each quantity with its unit before substituting, convert to the units the formula expects, and check that the result's unit matches the quantity you are solving for. Angles must be in radians for calculus-based expressions unless the page says degrees.

Sources and standards

The equation form, symbols and expected units on this page are checked against the reference works below.

How these are used: sources and standards.

Reviewed November 2026 · Educational reference. See the disclaimer and methodology.