Chain Rule Calculator — Step-by-Step Derivatives
Calculate derivatives of composite functions using the chain rule. Picks outer and inner function, shows u-substitution steps, dy/du, du/dx, and final answer.
Chain Rule — Step by Step
Function to differentiate:
y = sin(x^2)
Identify inner and outer functions
Let u = g(x) = x^2 (inner)
Then y = f(u) = sin(u) (outer)
Differentiate the outer function (with respect to u)
dy/du = cos(u)
Differentiate the inner function (with respect to x)
du/dx = g'(x) = 2x^1
Apply chain rule: dy/dx = (dy/du) × (du/dx)
Substitute g(x) back in for u:
Answer:
dy/dx = [cos(x^2)] · [2x^1]
Chain rule: if y = f(g(x)), then dy/dx = f'(g(x)) · g'(x)
How to Use This Calculator
- 1
Select the outer function f(u)
Choose the outermost function — the last operation applied to x. Options include power (uⁿ), sin, cos, tan, eᵘ, ln, √u, arcsin, and arctan. For y = sin(x²), select sin. For y = (3x+1)⁵, select power and set n=5.
- 2
Select the inner function g(x)
Choose the inner function — what's inside the outer function. Options include xⁿ, ax+b, sin(x), cos(x), eˣ, ln(x), and √x. Set any parameters (exponent n, coefficients a and b for linear functions).
- 3
Read the step-by-step solution
The calculator shows: (1) the composite function y = f(g(x)), (2) u-substitution: let u = g(x), (3) dy/du from the outer function, (4) du/dx from the inner function, (5) the final answer dy/dx = f'(g(x)) × g'(x).
What Each Value Means
- Outer Function f(u) (function)
- The function applied last in a composition. When you substitute g(x) for u, you get the full composite function f(g(x)). The chain rule requires differentiating this function with respect to u (not x), keeping the inner function g(x) as the argument.
- Inner Function g(x) (function)
- The function applied first in a composition — the argument of the outer function. Its derivative g'(x) is the multiplier in the chain rule: dy/dx = f'(g(x)) × g'(x). Correctly identifying g(x) is the key first step.
- dy/du (expression)
- The derivative of the outer function with respect to u, evaluated at u = g(x). This treats the inner function as if it were a simple variable u. For example, if the outer function is sin(u), then dy/du = cos(u) = cos(g(x)).