Derivatives of standard functions via chain rule

Most functions you differentiate in this course are not raw — they are built by feeding one function into another: sin⁡(3x2+2x)\sin(3x^2+2x), ecos⁡xe^{\cos x}, tan⁡−1 ⁣(2x1−x2)\tan^{-1}\!\left(\dfrac{2x}{1-x^2}\right). The chain rule is the single tool that lets you peel such a composite apart, layer by layer, and differentiate it using only the standard derivatives you already know from Class 11 — power, trigonometric, exponential, logarithmic — plus the six inverse-trigonometric derivatives obtained by substitution. It is the mechanism underneath implicit differentiation, parametric differentiation and logarithmic differentiation, so mastering it here pays off across the whole Calculus unit (Section A, 32/65 marks). This article collects the standard derivatives, states the chain rule precisely for nested compositions, and drills the two exam patterns that trip students most: multi-layer composites, and inverse-trig expressions that hide a compound-angle substitution.

The core insight

For a composite y=f(g(x))y=f(g(x)), differentiate the outer function while leaving the inner one untouched, then multiply by the derivative of the inner function: dydx=f′(g(x))⋅g′(x)\dfrac{dy}{dx}=f'(g(x))\cdot g'(x), and for a chain of several nested layers you multiply one such factor per layer.

The core idea

Before the chain rule can do any work, the standard derivatives must be automatic — they are the "atoms" that every composite decomposes into.

ddx(xn)=nxn−1,ddx(sin⁡x)=cos⁡x,ddx(cos⁡x)=−sin⁡x,ddx(tan⁡x)=sec⁡2x\frac{d}{dx}(x^n)=nx^{n-1}, \quad \frac{d}{dx}(\sin x)=\cos x, \quad \frac{d}{dx}(\cos x)=-\sin x, \quad \frac{d}{dx}(\tan x)=\sec^2x
ddx(cot⁡x)=−csc⁡2x,ddx(sec⁡x)=sec⁡xtan⁡x,ddx(csc⁡x)=−csc⁡xcot⁡x\frac{d}{dx}(\cot x)=-\csc^2x, \quad \frac{d}{dx}(\sec x)=\sec x\tan x, \quad \frac{d}{dx}(\csc x)=-\csc x\cot x
ddx(ex)=ex,ddx(ln⁡x)=1x,ddx(ax)=axln⁡a\frac{d}{dx}(e^x)=e^x, \qquad \frac{d}{dx}(\ln x)=\frac1x, \qquad \frac{d}{dx}(a^x)=a^x\ln a

where: each rule gives the derivative of the named function of the single variable xx itself, with a>0a>0, a≠1a\neq1 constant in the last case; these are used as building blocks, not re-derived here. Now the rule that combines them. If y=f(u)y=f(u) and u=g(x)u=g(x), so y=f(g(x))y=f(g(x)) is a composite of two layers, then

dydx=dydu⋅dudx=f′(g(x))⋅g′(x)\frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx} = f'(g(x))\cdot g'(x)

where: u=g(x)u=g(x) is the inner function, f(u)f(u) is the outer function, f′(g(x))f'(g(x)) is the outer derivative evaluated at the inner function (inner left untouched), and g′(x)g'(x) is the inner derivative. For a chain of three or more layers the same idea repeats: differentiate the outermost layer first, then multiply successively by the derivative of each layer moving inward, one multiplied factor per layer — for y=ln⁡(sin⁡(x2))y=\ln(\sin(x^2)) this gives three factors: the derivative of ln⁡\ln at sin⁡(x2)\sin(x^2), times the derivative of sin⁡\sin at x2x^2, times the derivative of x2x^2. The six inverse-trigonometric derivatives are obtained once, by substitution, and then reused as further standard building blocks:

ddx(sin⁡−1x)=11−x2,ddx(cos⁡−1x)=−11−x2,ddx(tan⁡−1x)=11+x2\frac{d}{dx}(\sin^{-1}x)=\frac{1}{\sqrt{1-x^2}}, \quad \frac{d}{dx}(\cos^{-1}x)=\frac{-1}{\sqrt{1-x^2}}, \quad \frac{d}{dx}(\tan^{-1}x)=\frac{1}{1+x^2}
ddx(cot⁡−1x)=−11+x2,ddx(sec⁡−1x)=1∣x∣x2−1,ddx(csc⁡−1x)=−1∣x∣x2−1\frac{d}{dx}(\cot^{-1}x)=\frac{-1}{1+x^2}, \quad \frac{d}{dx}(\sec^{-1}x)=\frac{1}{|x|\sqrt{x^2-1}}, \quad \frac{d}{dx}(\csc^{-1}x)=\frac{-1}{|x|\sqrt{x^2-1}}

where: each formula gives the derivative with respect to xx of the inverse trig function of xx itself; the derivation sets y=sin⁡−1xy=\sin^{-1}x so x=sin⁡yx=\sin y, differentiates implicitly to get 1=cos⁡y dydx1=\cos y\,\dfrac{dy}{dx}, then rewrites cos⁡y=1−sin⁡2y=1−x2\cos y=\sqrt{1-\sin^2y}=\sqrt{1-x^2} (positive root, since yy lies in the principal-value range). Once memorised, the chain rule applies to them exactly as to sin⁡x\sin x or exe^x whenever the argument is itself a function of xx: ddxsin⁡−1(3x)=31−9x2\dfrac{d}{dx}\sin^{-1}(3x)=\dfrac{3}{\sqrt{1-9x^2}}, the standard result multiplied by the derivative of the inner function 3x3x. An exam-level shortcut worth internalising: expressions like 2x1−x2\dfrac{2x}{1-x^2}, 1−x21+x2\dfrac{1-x^2}{1+x^2} or 3x−4x33x-4x^3 sitting inside an inverse-trig function often signal a substitution such as x=tan⁡θx=\tan\theta or x=sin⁡θx=\sin\theta that collapses the whole expression to a simple multiple of θ\theta before any differentiation happens, turning a messy quotient-rule-inside-chain-rule problem into a one-line derivative — demonstrated in the derivation and second worked example below. It also helps to notice which standard derivative each layer is drawn from, since exam questions mix families freely: a single composite may combine a trigonometric outer layer with a polynomial inner layer, or an exponential outer layer with a logarithmic inner layer, or an inverse-trig outer layer with a rational inner layer. In every case the identification step — write down explicitly what uu is and what ff is applied to it — is what prevents errors; students who skip straight to differentiating "by feel" are the ones who most often forget the inner-function factor.

Figure
Two nested boxes labelled outer function and inner function with an arrow showing the chain rule multiplies their derivatives
Chain rule — peel outer layer, then multiply by inner derivative outer function f, applied to u inner function u = g of x y = f(g(x)) dy/dx = f prime of g(x) times g prime of x one multiplied factor per nested layer
Derivation ADifferentiating a nested composite with the chain rule

The goal is to differentiate y=sin⁡(3x2+2x)y=\sin(3x^2+2x), a two-layer composite built from the standard derivative of sin⁡\sin and the power rule, and to show precisely how the chain rule's two factors — outer derivative and inner derivative — are identified and multiplied, since misidentifying the layers or forgetting the second factor is the most common error in this whole topic.

Step 1. Identify the layers. Write y=sin⁡(u)y=\sin(u) where u=3x2+2xu=3x^2+2x is the inner function; the outer function is sin⁡(⋅)\sin(\cdot), applied to whatever uu turns out to be.

Step 2. Differentiate the outer function, leaving the inner one untouched inside it. Since ddu(sin⁡u)=cos⁡u\dfrac{d}{du}(\sin u)=\cos u, this gives dydu=cos⁡u=cos⁡(3x2+2x)\dfrac{dy}{du}=\cos u=\cos(3x^2+2x) — the argument is copied across unchanged, not differentiated yet.

Step 3. Differentiate the inner function on its own, using the power rule term by term: dudx=ddx(3x2+2x)=6x+2\dfrac{du}{dx}=\dfrac{d}{dx}(3x^2+2x)=6x+2.

Step 4. Multiply the two factors from Steps 2 and 3, by the chain rule dydx=dydu⋅dudx\dfrac{dy}{dx}=\dfrac{dy}{du}\cdot\dfrac{du}{dx}:

dydx=cos⁡(3x2+2x)⋅(6x+2)\frac{dy}{dx} = \cos(3x^2+2x)\cdot(6x+2)

Step 5. Present the result in standard order, coefficient first:

dydx=(6x+2)cos⁡(3x2+2x)\boxed{\frac{dy}{dx} = (6x+2)\cos(3x^2+2x)}

Check. Every term of the inner function contributed to 6x+26x+2, and the outer derivative kept the original argument 3x2+2x3x^2+2x intact — both hallmarks of a correctly applied chain rule.

Worked example

Differentiate y=tan⁡−1 ⁣(2x1−x2)y = \tan^{-1}\!\left(\dfrac{2x}{1-x^2}\right) with respect to xx, for −1<x<1-1<x<1.

Step 1. Recognise the standard substitution. The form 2x1−x2\dfrac{2x}{1-x^2} matches the double-angle identity tan⁡2θ=2tan⁡θ1−tan⁡2θ\tan 2\theta = \dfrac{2\tan\theta}{1-\tan^2\theta}, so try x=tan⁡θx=\tan\theta.

Step 2. Substitute. Let x=tan⁡θx=\tan\theta, so θ=tan⁡−1x\theta=\tan^{-1}x. Then

y=tan⁡−1(tan⁡2θ)=2θ=2tan⁡−1x(−1<x<1, principal branch valid)y = \tan^{-1}(\tan2\theta) = 2\theta = 2\tan^{-1}x \quad (-1<x<1,\text{ principal branch valid})

Step 3. Differentiate the simplified form using the standard inverse-trig derivative and the chain rule (here just a constant multiple, since the inner function is xx itself):

dydx=2⋅11+x2\frac{dy}{dx} = 2\cdot\frac{1}{1+x^2}

Step 4. State the final answer.

dydx=21+x2\boxed{\frac{dy}{dx} = \frac{2}{1+x^2}}

This is far faster than attempting the quotient rule inside an inverse-trig chain rule directly — spotting the compound-angle pattern first is a key exam skill.

Competitive stretch

For the triple composition y=ln⁡(sin⁡(x2))y=\ln\big(\sin(x^2)\big), the same layer-peeling gives three multiplied factors: dydx=1sin⁡(x2)⋅cos⁡(x2)⋅2x=2xcot⁡(x2)\dfrac{dy}{dx}=\dfrac{1}{\sin(x^2)}\cdot\cos(x^2)\cdot 2x=2x\cot(x^2) — outer ln⁡\ln, middle sin⁡\sin, inner x2x^2, each contributing exactly one factor.

Common traps

  • Forgetting to multiply by the derivative of the inner function — writing dydx=cos⁡(3x2+2x)\frac{dy}{dx}=\cos(3x^2+2x) and stopping is the single most common chain-rule error.
  • Misapplying inverse-trig derivative signs, especially confusing the negative signs of cos⁡−1x\cos^{-1}x and sec⁡−1x\sec^{-1}x with the positive signs of sin⁡−1x\sin^{-1}x and tan⁡−1x\tan^{-1}x.
  • Not restricting the domain when using a trigonometric substitution such as x=tan⁡θx=\tan\theta — the simplification tan⁡−1(tan⁡2θ)=2θ\tan^{-1}(\tan2\theta)=2\theta only holds within the correct principal-value range.
  • Applying the chain rule only once for a doubly- or triply-nested function instead of peeling off every layer in turn.
  • Forgetting that axa^x differentiates to axln⁡aa^x\ln a, not axa^x alone and not xax−1xa^{x-1} — a distinct rule easily blurred with the power rule or the exe^x rule.
  • Using a trigonometric substitution outside the range where the corresponding compound-angle identity actually holds, which can silently flip a sign in the simplified derivative without any warning in the algebra.
  • Trying to differentiate a quotient like 2x1−x2\dfrac{2x}{1-x^2} directly with the quotient rule inside an inverse-trig chain rule instead of first checking whether it matches a known compound-angle pattern — the direct route is correct but far slower and much more error-prone under exam time pressure.

Ask the tutor: stuck on identifying the layers in a nested function like y=esin⁡(x2)y=e^{\sin(x^2)}? Ask the AI tutor to break it down with you step by step.

How do I know how many factors to multiply when a function has several nested layers?

Count the layers by asking which function is applied last, reading outside in: the outermost operation is differentiated first while everything inside it is copied over unchanged, then you move one layer in and repeat, multiplying a new factor at each step, until you reach the innermost function of xx. A three-layer composite like ln⁡(sin⁡(x2))\ln(\sin(x^2)) therefore produces exactly three multiplied factors, one per layer, and stopping after the first factor is the classic mistake.

Why does an inverse-trig substitution like x equals tan theta sometimes make the problem trivial?

Because the argument of the inverse-trig function is often secretly a compound-angle identity in disguise. Once you substitute x=tan⁡θx=\tan\theta, an expression like 2x1−x2\dfrac{2x}{1-x^2} collapses to tan⁡2θ\tan2\theta, so the whole inverse-trig expression simplifies to 2θ=2tan⁡−1x2\theta=2\tan^{-1}x before you differentiate at all. Differentiating this simplified form takes one line, whereas attacking the original quotient with the chain and quotient rules together is slow and error-prone.

Why do the inverse-trig derivatives have those specific plus and minus signs?

The signs come directly from the principal-value ranges chosen for each inverse function. For sin⁡−1x\sin^{-1}x the range makes cos⁡y≥0\cos y\geq0, giving a positive derivative 11−x2\dfrac{1}{\sqrt{1-x^2}}, whereas for cos⁡−1x\cos^{-1}x the range makes the corresponding cosine-type expression enter with a negative sign, giving −11−x2\dfrac{-1}{\sqrt{1-x^2}}. The same logic fixes the signs for the tan⁡−1/cot⁡−1\tan^{-1}/\cot^{-1} and sec⁡−1/csc⁡−1\sec^{-1}/\csc^{-1} pairs — memorise them as pairs so the signs stay linked correctly.

Before this

Where this leads