Chain Rule Patterns Reference: Trig, Exp, Log, and Power

How to Use This Reference

Every pattern below applies the same chain rule formula: differentiate the outer function (keeping the inner function as its argument), then multiply by the derivative of the inner function.

In each case, g(x) represents any differentiable inner function. g’(x) is its derivative.

Use the Chain Rule Calculator to apply these patterns step by step for any specific function pair. For the full formula derivation and notation explanation, see the Chain Rule Formula Reference.


Power Functions

Pattern: d/dx[g(x)ⁿ] = n · g(x)^(n−1) · g’(x)

ExpressionInner g(x)g’(x)Result
(x² + 1)^5x² + 12x10x(x² + 1)^4
(sin x)^3sin xcos x3cos(x)·sin²(x)
(3x + 2)^−23x + 23−6(3x + 2)^−3
√(x² + 4) = (x² + 4)^(1/2)x² + 42xx/√(x² + 4)
(ln x)^4ln x1/x4(ln x)³ / x

Note on square roots: Always rewrite √g(x) as g(x)^(1/2) before applying the power pattern. Then d/dx[g(x)^(1/2)] = (1/2)g(x)^(−1/2) · g’(x) = g’(x) / (2√g(x)).


Trigonometric Functions

Sine

Pattern: d/dx[sin(g(x))] = cos(g(x)) · g’(x)

Expressiong(x)g’(x)Result
sin(x²)2x2x·cos(x²)
sin(3x)3x33cos(3x)
sin(e^x)e^xe^xe^x·cos(e^x)
sin(√x)√x1/(2√x)cos(√x) / (2√x)

Cosine

Pattern: d/dx[cos(g(x))] = −sin(g(x)) · g’(x)

Expressiong(x)g’(x)Result
cos(x³)3x²−3x²·sin(x³)
cos(2x + 1)2x + 12−2sin(2x + 1)
cos(ln x)ln x1/x−sin(ln x) / x

Tangent

Pattern: d/dx[tan(g(x))] = sec²(g(x)) · g’(x)

Expressiong(x)g’(x)Result
tan(x²)2x2x·sec²(x²)
tan(5x)5x55sec²(5x)

Secant, Cosecant, Cotangent

FunctionPattern
sec(g(x))sec(g(x)) · tan(g(x)) · g’(x)
csc(g(x))−csc(g(x)) · cot(g(x)) · g’(x)
cot(g(x))−csc²(g(x)) · g’(x)

Exponential Functions

Natural Exponential e^x

Pattern: d/dx[e^(g(x))] = e^(g(x)) · g’(x)

Expressiong(x)g’(x)Result
e^(3x)3x33e^(3x)
e^(x²)2x2x·e^(x²)
e^(sin x)sin xcos xcos(x)·e^(sin x)
e^(−x)−x−1−e^(−x)
e^(√x)√x1/(2√x)e^(√x) / (2√x)

General Base aˣ

Pattern: d/dx[a^(g(x))] = a^(g(x)) · ln(a) · g’(x)

ExpressionResult
2^(3x)2^(3x) · ln(2) · 3 = 3·ln(2)·2^(3x)
10^(x²)10^(x²) · ln(10) · 2x

Logarithmic Functions

Natural Logarithm

Pattern: d/dx[ln(g(x))] = g’(x) / g(x)

Expressiong(x)g’(x)Result
ln(x² + 1)x² + 12x2x / (x² + 1)
ln(sin x)sin xcos xcos(x) / sin(x) = cot(x)
ln(3x)3x33/(3x) = 1/x
ln(e^x + 1)e^x + 1e^xe^x / (e^x + 1)

Useful shortcut: d/dx[ln(ax)] = 1/x for any constant a (the constant cancels).

General Logarithm Base a

Pattern: d/dx[log_a(g(x))] = g’(x) / (g(x) · ln(a))

ExpressionResult
log₂(x²)2x / (x² · ln 2) = 2 / (x · ln 2)
log₁₀(3x + 1)3 / ((3x + 1) · ln 10)

Inverse Trigonometric Functions

Arcsine

Pattern: d/dx[arcsin(g(x))] = g’(x) / √(1 − g(x)²)

ExpressionResult
arcsin(2x)2 / √(1 − 4x²)
arcsin(x²)2x / √(1 − x⁴)

Arccosine

Pattern: d/dx[arccos(g(x))] = −g’(x) / √(1 − g(x)²)

Note: arccos derivative is the negative of arcsin.

Arctangent

Pattern: d/dx[arctan(g(x))] = g’(x) / (1 + g(x)²)

ExpressionResult
arctan(3x)3 / (1 + 9x²)
arctan(x²)2x / (1 + x⁴)
arctan(e^x)e^x / (1 + e^(2x))

Nested Compositions (Multiple Chain Rule)

When functions are nested three or more levels deep, apply the chain rule repeatedly from outside in.

Triple composition: d/dx[f(g(h(x)))] = f’(g(h(x))) · g’(h(x)) · h’(x)

ExpressionLayersResult
sin(e^(x²))sin → e → x²cos(e^(x²)) · e^(x²) · 2x
e^(sin(3x))e → sin → 3xe^(sin(3x)) · cos(3x) · 3
ln((x² + 1)^3)ln → power → x²+13·2x/(x²+1) = 6x/(x²+1)
√(sin(x²))sqrt → sin → x²cos(x²)·2x / (2√(sin(x²)))

For nested compositions, the Chain Rule Formula Reference covers the general multi-layer approach. To practice identifying which pattern applies, work through the Chain Rule Practice Problems.


Pattern Summary Table

Outer functiond/dx[outer(g(x))]
g(x)^nn·g(x)^(n−1)·g’(x)
√g(x)g’(x) / (2√g(x))
sin(g(x))cos(g(x))·g’(x)
cos(g(x))−sin(g(x))·g’(x)
tan(g(x))sec²(g(x))·g’(x)
e^(g(x))e^(g(x))·g’(x)
ln(g(x))g’(x)/g(x)
arcsin(g(x))g’(x)/√(1−g(x)²)
arctan(g(x))g’(x)/(1+g(x)²)

References & Sources

  1. [1] MIT OpenCourseWare — Single Variable Calculus (opens in new tab)
  2. [2] Khan Academy — Chain Rule Introduction (opens in new tab)
  3. [3] Paul's Online Math Notes — Chain Rule (opens in new tab)