Understanding the Chain Rule in Calculus (With Step-by-Step Examples)
- Tyler Buffone

- Oct 30
- 2 min read
If you can recognize when one function is “inside” another, the chain rule becomes straightforward. This post explains the idea in plain language, then walks through carefully chosen examples with complete solutions you can follow line by line.

What the chain rule says
When a function is built by plugging one function f(x) into another function g(x), we have a composite function f(g(x)).
If y = f(g(x)), then
dy/dx = f'(g(x)) ⋅ g'(x)
Think of it as two moves:
Differentiate the outside function while keeping the inside untouched.
Multiply by the derivative of the inside function.
How to Spot a Composite Function Quickly
Look for an operation wrapped around an expression:
A power applied to an expression (Example A in the image below).
A trig, exponential, or log function applied to an expression (Example B in the image below).
A root over an expression (Example C in the image below).

The 4-Step Recipe
Name the inside and differentiate it: set u = inside(x) and determine du/dx
Differentiate the outside with respect to u: determine dy/du.
Multiply the outside derivative by the inside derivative: dy/dx = (dy/du) ⋅ (du/dx).
Substitute u back as the original inside.
Example 1: Power of a Polynomial
Differentiate y = (3x² + 5)⁴.
Solution
Inside: Set u = 3x² + 5 so du/dx = 6x.
Outside: y = u⁴ so dy/du = 4u³.
Chain rule: dy/dx = 4u³ ⋅ 6x.
Substitution: dy/dx = 4u³ ⋅ 6x = 4(3x² + 5)³ ⋅ 6x = 24x(3x² + 5).
Example 2: Natural Log of a Polynomial
Differentiate y = ln(4x² + 1) where 4x² + 1 > 0 for all x.
Solution
Inside: Set u = 4x² + 1 so du/dx = 8x.
Outside: y = ln(u) so dy/du = (1 / u).
Chain rule: dy/dx = (1 / u) ⋅ 8x = (8x / u).
Substitution: dy/dx = (8x / u) = (8x / (4x² + 1)).
Example 3: Exponential with an Expression Inside

Example 4: A Root Over an Expression

Need more help mastering the chain rule? If you’re in Winnipeg and looking for a tutor, Tutor Advance provides expert one-on-one support!