The Chain Rule
Every rule in the previous lesson handles functions built by adding, multiplying or dividing. The chain rule handles the one remaining way to build a function: putting one inside another. That covers most of what you will actually meet, so this rule gets used more than all the others together. The rule itself is a single line; the skill is seeing that you are looking at a composite in the first place.
Calculus — differentiation
Graphing calculator- Chain ruleddx[f(g(x))] = f'(g(x)) · g'(x)
Differentiate the outside, leave the inside exactly as it was, then multiply by the derivative of the inside. That last factor is the part people drop.
- In Leibniz notationdydx = dydu · dudx
With u the inside. Written this way it looks like cancelling du, which is a useful memory hook and not a proof.
- Why there is a second factorddx[(3x)2] = 18x, not 6x
Expand and check: (3x)2 = 9x2, whose derivative is 18x. The inside runs three times as fast as x, so the whole thing does too. Dropping g' ignores that.
- The power caseddx[(g(x))n] = n(g(x))n−1 · g'(x)
The most common form by far. Power rule on the shell, then times the derivative of what is inside it.
- With the standard functionsddx[sin(g)] = cos(g) · g', ddx[eg] = eg · g'
And ddx[ln(g)] = g'g, which is the same rule with 1g as the outer derivative.
When the inside is just x, its derivative is 1 and the extra factor changes nothing — which is why the rules in the last lesson looked like they had no chain factor. They did; it was invisible.
- 1
Ask what you would do last. If you had to work out sin(x2) for x = 3 on a calculator, you would square first and take the sine last. The thing you do last is the outside; everything you did before it is the inside.
- 2
Look for a shell. A bracket raised to a power, or sin( ), cos( ), e( ), ln( ), √ with something more than a bare x in it. That is a composite and it needs the rule.
- 3
Watch the notation that hides it. cos3x means (cos x)3 — a cube on the outside, cosine inside. It is a composite even though nothing is visibly nested, and it is a different function from cos(x3).
- 4
Peel one layer at a time. There can be three. sin√x2+1 is sine of a root of a polynomial, and each layer contributes a factor. Take the outermost, then treat the rest as a new problem.
- 5
Check the answer contains g'. The derivative of the inside must appear as a factor somewhere. If your answer has no trace of it, you have dropped it — that is the single most common error in this topic.
- 6
Do not differentiate the inside in place. The inside stays exactly as it was inside the outer function. ddx[sin(x2)] starts cos(x2), never cos(2x).
- ddx[(3x + 1)5] = 5(3x + 1)4ddx[(3x + 1)5] = 15(3x + 1)4
The dropped chain factor — the single most common error in the topic. The power rule alone is only correct when the inside is a bare x, and here it runs three times as fast.
- ddx[sin(x2)] = cos(2x)ddx[sin(x2)] = 2x cos(x2)
The inside was differentiated where it stood instead of being left alone and multiplied on the outside. The inside never changes inside the outer function.
- cos3x = cos(x3)cos3x = (cos x)3
Different functions, and their derivatives are nothing alike: −3 cos2x sin x against −3x2 sin(x3). Test at x = 2 if it ever looks ambiguous.
- ddx[e4x] = 4xe4x − 1ddx[e4x] = 4e4x
The power rule applied to a constant base. An exponential never loses its exponent — it keeps it and picks up the derivative of it as a factor.
- ddx√g = 12√g'ddx√g = g'2√g
The inside stays inside the root; its derivative appears as a factor on top. Differentiating underneath the root is the same mistake as the sine one, wearing a different hat.
Type an answer and it gets marked. What you get right is kept on this device.
- 1.y = (5x − 2)7
- 2.y = cos(3x)
- 3.y = ex2
- 4.y = √4x + 9
- 5.y = ln(x3 + 5)
- 6.y = sin2x
- 7.y = x(3x + 2)5
- 8.y = 1(2x − 7)3