Learn how to differentiate a function of a function using the chain rule, worked through many algebraic, exponential, logarithmic, and trigonometric examples.
This Class XII lesson is a practice run through the chain rule, differentiating one composite function after another. It starts with powers and roots like raising a linear expression to a power and the square root of a quadratic, moves through logarithms, an exponential times a logarithm using the product rule, and finishes with a set of trigonometric composites. Each example shows the outer derivative times the inner derivative, then simplifies the result.
What you'll learn
How to apply the chain rule to differentiate a function inside another function
Differentiating powers, square roots, logarithms, and exponentials of composite expressions
Combining the product rule with the chain rule in a single problem
Working through chained trigonometric derivatives and simplifying the answer
Lesson chapters
0:00What a function of a function means
0:13A linear expression raised to a power
0:56Square root and modulus examples
2:50A quadratic squared
3:41Log of a log, and exponential times log
7:13Trigonometric functions of a function
10:36Differentiating two root cot, then simplifying
Lesson notes
Lesson notes
This lesson is a tour of the chain rule, also called differentiating a function of a function. For a composite f(g(x)) the rule is dxdf(g(x))=f′(g(x))⋅g′(x): differentiate the outer function, keep the inner one unchanged, then multiply by the derivative of the inner function. Below we work through algebraic, logarithmic, exponential, and trigonometric examples in the order the teacher presents them.
A linear expression raised to a power
Differentiate (ax+b)4. Treat ax+b as the inner function. Differentiating the power gives 4(ax+b)3, and the inner derivative is dxd(ax+b)=a.
dxd(ax+b)4=4(ax+b)3⋅a=4a(ax+b)3
Modulus of a quadratic
Differentiate ∣x2−5∣. Using dxd∣x∣=∣x∣x with inner function x2−5:
dxd∣x2−5∣=∣x2−5∣x2−5⋅dxd(x2−5)=∣x2−5∣2x(x2−5)
Square root of a quadratic
Differentiate 4−x2. The outer derivative of u is 2u1, and the inner derivative is dxd(4−x2)=−2x.
dxd4−x2=24−x21⋅(−2x)=4−x2−x
A quadratic squared
Differentiate (3x2+6x+8)2. The outer derivative gives 2(3x2+6x+8), and the inner derivative is 6x+6=6(x+1).
Differentiate 2cotx2. The constant 2 stays outside; the square root gives 2cotx21, the derivative of cot is −csc2, and the inner derivative of x2 is 2x.
Writing csc2x2=sin2x21 and cotx2=sinx2cosx2, this simplifies to
sin2x2−2x⋅cosx2sinx2=sinx2sin2x2cosx2−2x
Using 2sinθcosθ=sin2θ and multiplying top and bottom by 2 gives the tidy form
sinx2sin2x2−22x
Key takeaways
The chain rule differentiates a composite as outer derivative times inner derivative: dxdf(g(x))=f′(g(x))g′(x).
It applies to powers, roots, modulus, logarithms, exponentials, and trigonometric functions alike, and you peel one layer at a time for deeply nested expressions.
The chain rule combines naturally with the product rule, and trigonometric identities such as 2sinθcosθ=sin2θ help simplify the final answer.