Differential calculus·Elementary·Differentiation rule

Chain Rule

The chain rule differentiates a composite function by multiplying the derivative of the outer function by the derivative of the inner function.

Differentiate the outside expression first, keep the inside, then multiply by the derivative of the inside.

Differential CalculusDifferentiation rules

What does chain rule mean?

If y=f(g(x)) and both functions are differentiable at the relevant inputs, then the rate at which y changes with x is the rate of f with respect to its input multiplied by the rate at which g changes with x. For nested expressions, apply the rule from the outside inward and multiply every layer’s derivative.

Notation

(f∘g)'(x)

Chain rule for a composite function

ddxf(g(x))=f′(g(x))g′(x)\frac{d}{dx}f(g(x))=f'(g(x))g'(x)

Chain Rule examples

Example 1

Differentiate (3x+1)^2.

Answer: 6(3x+1)

The outer square contributes 2(3x+1); multiply by the inner derivative 3.

Properties and types

  • Applies to differentiable compositions.
  • The inner function remains inside the outer derivative.
  • For multiple nested functions, multiply one derivative per layer.

Where is chain rule used?

This concept appears in a range of mathematical and practical settings:

  • Composite algebraic and trigonometric functions
  • Related rates
  • Multivariable calculus

Common misunderstandings

  • Forgetting the inner derivative factor.
  • Differentiating only the outer function.
  • Applying the rule to a sum when the sum rule is sufficient.

Related tools and learning resources