Chain rule
Recognise composite functions and differentiate them using the chain rule, including coefficients, nonlinear inside functions, and negative or fractional powers.
On this page
Composite functions
Some functions are built from one function applied to the output of another. In , the expression is worked out first, and the result is then raised to the power 4. A function built this way — a function of a function — is a composite function.
The chain rule
Worked example
Differentiate a bracket raised to a power
Differentiate with respect to .
Step 1
Differentiate the outside function
Bring down the power and reduce it by 1, keeping the bracket unchanged: .
Step 2
Multiply by the derivative of the inside function
The derivative of is , so multiply: .
Final answer
The outside power is differentiated first, and the constant factor 2 comes from differentiating the inside function .
Coefficients and nonlinear inside functions
An outer constant coefficient stays in place and is multiplied in at the end. The inside function does not have to be linear — it can be a quadratic or another expression in , and its own derivative is found in the usual way before multiplying.
Worked example
Coefficient with a nonlinear inside function
Differentiate with respect to .
Step 1
Differentiate the outside function
Keep the coefficient 3, bring down the power 4 and reduce it by 1: .
Step 2
Multiply by the derivative of the inside function
The derivative of is , so multiply: .
Step 3
Combine the constants
, giving .
Final answer
The coefficient 3 is carried through the whole calculation, and the inside function's own derivative () is what gets multiplied in — not just .
Dropping the outer coefficient 3, or multiplying by $x$ instead of the correct derivative $2x$.
Negative and fractional powers
The chain rule works the same way for negative and fractional outside powers. A square root can be rewritten as a power of before differentiating, and a reciprocal can be rewritten as a negative power — after that, the same two steps apply: differentiate the outside power, then multiply by the derivative of the inside function.
Worked example
Differentiate a negative power
Differentiate with respect to .
Step 1
Differentiate the outside function
Bring down the power and reduce it by 1, to : .
Step 2
Multiply by the derivative of the inside function
The derivative of is , so multiply: .
Final answer
Reducing by 1 gives , not — the power always reduces by exactly 1, whatever sign it starts with.
Reducing the power to $-1$ instead of $-3$.
Worked example
Differentiate a square root
Differentiate with respect to .
Step 1
Rewrite as a fractional power
.
Step 2
Differentiate the outside function
Bring down the power and reduce it by 1, to : .
Step 3
Multiply by the derivative of the inside function
The derivative of is , so multiply: .
Final answer
Rewriting the square root as a power of first turns this into an ordinary chain rule question.
Self-checkQuick self-check
Differentiate with respect to .
Answer
Keep the coefficient 2, bring down the power 3 and reduce it to 2, then multiply by the derivative of , which is : .