Chain Rule for Trig, Exponential and Log Functions
Key Terms
- Chain rule
- d/dx[f(g(x))] = f′(g(x)) × g′(x); differentiate outside-in.
- For ef(x)
- d/dx[ef(x)] = f′(x) ef(x).
- For ln(f(x))
- d/dx[ln(f(x))] = f′(x) / f(x).
- For sin/cos with chain rule
- d/dx[sin(f(x))] = f′(x) cos(f(x)); d/dx[cos(f(x))] = −f′(x) sin(f(x)).
- Identify inner and outer
- The outer function is what is applied last; the inner function is its argument.
- Nested chain rule
- For f(g(h(x))): differentiate from outside in → f′(g(h(x))) × g′(h(x)) × h′(x).
For Trig:
d/dx[sin(f(x))] = f′(x) cos(f(x))
d/dx[cos(f(x))] = −f′(x) sin(f(x))
For Exponentials:
d/dx[ef(x)] = f′(x) ef(x)
For Logarithms:
d/dx[ln(f(x))] = f′(x) / f(x)
For Powers:
d/dx[(f(x))n] = n f′(x) (f(x))n−1
Outer function: sin( ); inner function: 3x + 2; inner derivative: 3.
dy/dx = 3 cos(3x + 2)
y = ex²: inner function x², inner derivative 2x.
dy/dx = 2x ex²
y = ln(cos x): inner function cos x, inner derivative −sin x.
dy/dx = −sin x / cos x = −tan x
The Chain Rule: Differentiating Composite Functions
The chain rule handles functions of the form y = f(g(x)) — a function applied to another function. The rule is: dy/dx = f′(g(x)) · g′(x). In words: differentiate the outer function (leaving the inner alone), then multiply by the derivative of the inner function.
The key to applying the chain rule successfully is identifying the composite structure: what is the “outer” function and what is the “inner” function? For y = sin(3x + 2), the outer function is sin( ) and the inner function is 3x + 2. For y = ex², the outer function is e( ) and the inner is x².
Chain Rule for Each Function Type
Trig functions: d/dx[sin(f(x))] = f′(x)cos(f(x)) and d/dx[cos(f(x))] = −f′(x)sin(f(x)). The inner derivative multiplies the outer derivative. For y = sin(x²), dy/dx = 2x cos(x²).
Exponential functions: d/dx[ef(x)] = f′(x)ef(x). The exponential “copies itself” and multiplies by the inner derivative. For y = esin x, dy/dx = cos x · esin x.
Logarithmic functions: d/dx[ln(f(x))] = f′(x)/f(x). For y = ln(tan x), dy/dx = sec²x / tan x = 1/(sin x cos x).
Powers: d/dx[(f(x))n] = n f′(x)(f(x))n−1. For y = sin3x = (sin x)3, dy/dx = 3(sin x)² · cos x = 3 sin²x cos x.
Recognising Composite Structure
The hardest part of the chain rule is recognising when you need it. Ask yourself: “Is there a function applied to something other than a plain x?” If yes, chain rule applies. Compare:
- d/dx[sin x] = cos x (no chain rule, inner function is just x)
- d/dx[sin(3x)] = 3 cos(3x) (chain rule, inner function 3x)
- d/dx[sin(x²)] = 2x cos(x²) (chain rule, inner function x²)
Multiple applications of the chain rule are possible but relatively rare at this level. For example, d/dx[esin(x²)] would require two applications.
Gradient and Tangent Problems
Once you have the derivative from the chain rule, gradient and tangent problems proceed as usual. Find dy/dx, substitute the x-value, use y − y1 = m(x − x1) for the tangent line. For example, to find the tangent to y = esin x at x = 0: y(0) = e0 = 1, dy/dx = cos x · esin x, at x = 0: gradient = 1 × 1 = 1. Tangent: y = x + 1.
Mastery Practice
- Differentiate y = cos(2x + 1).
- Differentiate y = sin(x²).
- Differentiate y = esin x.
- Differentiate y = ln(tan x).
- Differentiate y = sin3x.
- Differentiate y = cos4(3x).
- Find the gradient of y = e2x+1 at x = 0.
- Find the equation of the tangent to y = sin(2x) at x = π/4.
- Differentiate y = ln(sin²x). Simplify using log laws first.
- A particle’s displacement is given by x(t) = e−t sin(2t). Find the velocity v(t) and determine when the particle is first at rest for t > 0. (Note: this requires the product rule combined with the chain rule.)