01 · Choose the layers
For y = (5x − 4)⁶, identify u, dy/du and du/dx, then differentiate.
Hint
The last operation is raising a bracket to power 6.
Worked solution
u = 5x − 4, dy/du = 6u⁵ and du/dx = 5. Thus dy/dx = 30(5x − 4)⁵.
Understand · explore · practise
Learn the chain rule for composite functions, including powers, roots, trigonometric functions, exponentials and logarithms. Choose each layer yourself, then practise with full worked solutions.
Before you startComposite functions; basic differentiation; exponential and trigonometric derivatives
01 / Connect two changing quantities
A composite function applies one operation after another. Write u = g(x), then y = f(u). A small change in x produces a change in u; that change in u produces a change in y.
dy/dx = (dy/du)(du/dx)
If y = f(g(x)), then y′ = f′(g(x))g′(x).
The inner function must be differentiable at x and the outer function differentiable at the corresponding u.
The derivative notation helps us remember how the rates connect. It is a derivative theorem, not permission to cancel arbitrary symbols. In the explorer, watch which stage makes a rate negative or zero.
u = 2x + 1; y = u³.
du/dx = 2; dy/du = 3; dy/dx = 2 × 3 = 6.
Both stages are increasing locally, so the composition is increasing here.
All three bars use the same numerical scale. These are instantaneous rates at the selected input, not exact multipliers for a large change. Angles are in radians.
02 / Identify the outside and the inside
u = 3x² − 2; y = u⁴
First form the bracket; then raise it to the fourth power.
du/dx = 6x; dy/du = 4u³
Differentiate with respect to each stage’s own input.
dy/dx = 4u³ × 6x = 24x(3x² − 2)³
Substitute back so the answer is in x.
Leave the bracket intact unless expanding makes a later step easier. The outside derivative is evaluated at the inside value, so 4x³ × 6x would be wrong.
For y = (5x − 4)⁶, identify u, dy/du and du/dx, then differentiate.
The last operation is raising a bracket to power 6.
u = 5x − 4, dy/du = 6u⁵ and du/dx = 5. Thus dy/dx = 30(5x − 4)⁵.
A student differentiates (x² + 7)³ as 3(x² + 7)². What is missing?
Has the inside x² + 7 been differentiated?
The missing factor is 2x. The correct derivative is 6x(x² + 7)².
03 / See why the rates multiply
Take u = 2x + 1 and y = u³ at x = 1. The point has u = 3, y = 27. The two local rates are du/dx = 2 and dy/du = 3u² = 27, giving dy/dx = 54.
Δu = 2h
Changing x from 1 to 1 + h changes u from 3 to 3 + 2h.
Δy = (3 + 2h)³ − 27
This is the exact output change.
Δy/h = 54 + 36h + 8h² → 54
As h tends to zero, the higher-order terms disappear.
For h = 0.1 the average rate is 57.68. That does not contradict the derivative 54: a finite step samples changing slopes. The chain rule gives the limiting rate.
Pause, replay or seek freely. The notes explain the same idea and stay in view.
For y = (x² + 1)³, explain why the derivative is zero at x = 0 even though dy/du = 3 there.
Look at the inner derivative.
u = x² + 1 has du/dx = 2x = 0. The product 3u² × 2x is therefore zero.
04 / Use positive and negative powers
d/dx[g(x)ⁿ] = n[g(x)]ⁿ⁻¹g′(x)
Use the rule only where the original function and the required derivatives exist.
dy/dx = −2(2x² + 3)⁻³ × 4x
Reduce the outside exponent by one.
dy/dx = −8x/(2x² + 3)³
A negative exponent belongs in the denominator.
Differentiate y = (4 − x)⁻³ and state its domain.
The inside derivative is −1.
dy/dx = 3(4 − x)⁻⁴ = 3/(4 − x)⁴, for x ≠ 4. The two negative factors cancel.
Differentiate y = (x³ − 2x)⁵.
Keep x³ − 2x as one inside function.
dy/dx = 5(x³ − 2x)⁴(3x² − 2).
05 / Separate a function’s domain from its derivative
y = (7 − 2x)¹ᐟ², with x ≤ 7/2
The root’s argument may equal zero in the original function.
dy/dx = (1/2)(7 − 2x)⁻¹ᐟ² × (−2)
Apply the power rule at interior points.
dy/dx = −1/√(7 − 2x), for x < 7/2
There is no finite derivative at the endpoint.
A more subtle case is √(x²) = |x|. Its domain is all real x, but its derivative is −1 for x < 0 and +1 for x > 0. At zero there is a corner. Substituting zero into an invalid derivative expression cannot repair this.
Differentiate √(9 + x²). Does its derivative have an excluded real input?
The argument is at least 9.
The derivative is x/√(9 + x²), valid for every real x.
Differentiate 1/√(3x − 2), giving the original real domain.
Write (3x − 2)⁻¹ᐟ².
The domain is x > 2/3. The derivative is −3/[2(3x − 2)³ᐟ²], valid on that same domain.
06 / Keep the angle inside the trig function
d/dx[sin g(x)] = cos(g(x))g′(x)
d/dx[cos g(x)] = −sin(g(x))g′(x)
Angles are in radians.
u = x² + 3; y = sin u
The outside operation is sine.
dy/du = cos u; du/dx = 2x
Use a derivative for each layer.
dy/dx = 2x cos(x² + 3)
The cosine keeps the entire original angle.
Differentiate cos(2x³ − 1).
Cosine contributes a minus sign.
The derivative is −6x² sin(2x³ − 1).
Differentiate sin²(3x).
Read this as [sin(3x)]², so there are three stages.
The derivative is 2sin(3x) × cos(3x) × 3 = 6sin(3x)cos(3x), also equal to 3sin(6x).
07 / Apply exponential and logarithm rules
d/dx[eᵍ⁽ˣ⁾] = eᵍ⁽ˣ⁾g′(x)
d/dx[ln g(x)] = g′(x)/g(x), where g(x) > 0
Domain: −√5 < x < √5
The logarithm argument must be strictly positive.
g′(x) = −2x
Differentiate the inside.
dy/dx = −2x/(5 − x²)
Retain the original domain although the rational expression exists elsewhere.
Differentiate e4x − x².
The exponent’s derivative is 4 − 2x.
The derivative is (4 − 2x)e4x − x².
Differentiate ln(x² − 9), with its domain.
Solve x² − 9 > 0 first.
The derivative is 2x/(x² − 9), valid only for x < −3 or x > 3. The interval between −3 and 3 is not in the original domain.
08 / Work from outside to inside
v = sin x; u = (1 + v)²; y = eᵘ
Name each changing intermediate quantity.
dy/du = eᵘ; du/dv = 2(1 + v); dv/dx = cos x
Each derivative uses its own input.
dy/dx = 2(1 + sin x)cos x · exp[(1 + sin x)²]
Substitute all layers back.
You can write a single line once the layers are clear. Naming them is a useful way to check that no factor has disappeared.
Differentiate ln(√(2x + 5)), and state the domain.
Either use three stages or simplify to (1/2)ln(2x + 5).
The domain is x > −5/2. The derivative is 1/(2x + 5). Using stages gives [1/√(2x + 5)] × [1/(2√(2x + 5))] × 2.
Differentiate sin(e²ˣ).
The outside derivative is cosine evaluated at e²ˣ.
The derivative is 2e²ˣ cos(e²ˣ).
09 / Use the derivative at a point
y = 3³ = 27
The contact point is (1, 27).
y′ = 6x(x² + 2)²; y′(1) = 54
Evaluate both inside and outside factors.
y − 27 = 54(x − 1)
Point and slope determine the tangent.
Find the normal to y = √(2x + 7) at x = 1.
The point is (1, 3), and the tangent slope is 1/3.
The normal slope is −3. Thus y − 3 = −3(x − 1), or y = 6 − 3x.
Find every stationary point of y = (x² − 4)².
Factor y′ as 4x(x² − 4); either factor can be zero.
x = −2, 0, 2. The points are (−2, 0), (0, 16), (2, 0). Since y″ = 12x² − 16, the outer two are minima and the middle one is a maximum.
10 / Check when a rule can be used
The standard chain rule requires differentiability of the outer function at the inside value. For y = (√x)² on x ≥ 0, the simplified function is y = x. At x = 0 the square-root derivative is undefined, so writing 2√x × 1/(2√x) and cancelling at zero is not justified.
The original function has right-hand derivative 1 at zero. It has no ordinary two-sided derivative there because its real domain does not extend to the left. Simplification makes the behaviour clearer but must keep the original domain.
For y = ln(ex²), simplify first and differentiate. Is there a domain exclusion?
The exponential is strictly positive for every real x.
y = x² for every real x, so y′ = 2x everywhere. Direct chaining gives [1/ex²]ex²·2x = 2x, with no zero denominator and no exclusions.
11 / Check every layer
Section 1 of 11 · Connect two changing quantities