Math Lab
Home/Class XII/Ch 5/Rules of differentiation

Rules of differentiation

A handful of rules, applied repeatedly, differentiate every elementary function. We list them here, prove the chain rule (the most powerful), and assemble a table of standard derivatives. Subsequent subtopics extend the rules to implicit, logarithmic, and parametric forms.

The four basic rules

For differentiable f,gf, g:

  1. Sum rule: (f±g)(x)=f(x)±g(x)(f \pm g)'(x) = f'(x) \pm g'(x).
  2. Constant multiple: (cf)(x)=cf(x)(cf)'(x) = c f'(x) for constant cc.
  3. Product rule: (fg)(x)=f(x)g(x)+f(x)g(x)(fg)'(x) = f'(x) g(x) + f(x) g'(x).
  4. Quotient rule: (fg)(x)=f(x)g(x)f(x)g(x)g(x)2\left(\dfrac{f}{g}\right)'(x) = \dfrac{f'(x) g(x) - f(x) g'(x)}{g(x)^2}, provided g(x)0g(x) \neq 0.

The sum rule and constant multiple are immediate from the limit definition. The product rule requires a small trick (add and subtract f(x+h)g(x)f(x + h) g(x)). The quotient rule follows from product + chain (differentiate f(1/g)f \cdot (1/g)).

The chain rule

For differentiable ff and gg, with fgf \circ g defined:

(fg)(x)=f(g(x))g(x).(f \circ g)'(x) = f'(g(x)) \cdot g'(x).

In Leibniz notation: dydx=dydududx\dfrac{dy}{dx} = \dfrac{dy}{du}\cdot \dfrac{du}{dx}, where u=g(x)u = g(x) and y=f(u)y = f(u).

Proof sketch. f(g(x+h))f(g(x))h=f(g(x+h))f(g(x))g(x+h)g(x)g(x+h)g(x)h\dfrac{f(g(x + h)) - f(g(x))}{h} = \dfrac{f(g(x + h)) - f(g(x))}{g(x + h) - g(x)} \cdot \dfrac{g(x + h) - g(x)}{h}. As h0h \to 0, g(x+h)g(x)g(x + h) \to g(x) (continuity); the first factor f(g(x))\to f'(g(x)), the second g(x)\to g'(x).

(A careful proof needs to handle the case g(x+h)=g(x)g(x + h) = g(x) separately.)

Table of standard derivatives

f(x)f(x)f(x)f'(x)
constant cc00
xnx^nnxn1n x^{n-1}
exe^xexe^x
axa^x (a > 0)axlnaa^x \ln a
lnx\ln x1/x1/x
logax\log_a x1/(xlna)1/(x \ln a)
sinx\sin xcosx\cos x
cosx\cos xsinx-\sin x
tanx\tan xsec2x\sec^2 x
cotx\cot xcsc2x-\csc^2 x
secx\sec xsecxtanx\sec x \tan x
cscx\csc xcscxcotx-\csc x \cot x
sin1x\sin^{-1} x1/1x21/\sqrt{1 - x^2}
cos1x\cos^{-1} x1/1x2-1/\sqrt{1 - x^2}
tan1x\tan^{-1} x1/(1+x2)1/(1 + x^2)
cot1x\cot^{-1} x1/(1+x2)-1/(1 + x^2)
sec1x\sec^{-1} x$1/(
csc1x\csc^{-1} x$-1/(

Combining the rules

Most school problems reduce to applying these in combination. Identify the outermost operation first, apply the corresponding rule, and chain through.

For f(x)=sin(x3)f(x) = \sin(x^3): outermost is sin\sin. Chain rule: f(x)=cos(x3)3x2f'(x) = \cos(x^3) \cdot 3x^2.

For f(x)=x21+xf(x) = \dfrac{x^2}{1 + x}: quotient rule. f(x)=2x(1+x)x2(1+x)2=x2+2x(1+x)2f'(x) = \dfrac{2x(1 + x) - x^2}{(1 + x)^2} = \dfrac{x^2 + 2x}{(1 + x)^2}.

For f(x)=exsinxf(x) = e^{x} \sin x: product. f(x)=exsinx+excosx=ex(sinx+cosx)f'(x) = e^x \sin x + e^x \cos x = e^x(\sin x + \cos x).

Worked examples

Example 1. Differentiate f(x)=(3x+1)5f(x) = (3x + 1)^5.

Chain: f(x)=5(3x+1)43=15(3x+1)4f'(x) = 5(3x + 1)^4 \cdot 3 = 15(3x + 1)^4.

Example 2. Differentiate f(x)=sin(logx)f(x) = \sin(\log x).

Chain: f(x)=cos(logx)1xf'(x) = \cos(\log x) \cdot \dfrac{1}{x}.

Example 3. Differentiate f(x)=ex2+1f(x) = e^{x^2 + 1}.

Chain: f(x)=ex2+12xf'(x) = e^{x^2 + 1} \cdot 2x.

Example 4. Differentiate f(x)=sinx1+cosxf(x) = \dfrac{\sin x}{1 + \cos x}.

Quotient: f(x)=cosx(1+cosx)sinx(sinx)(1+cosx)2=cosx+cos2x+sin2x(1+cosx)2=cosx+1(1+cosx)2=11+cosxf'(x) = \dfrac{\cos x (1 + \cos x) - \sin x (-\sin x)}{(1 + \cos x)^2} = \dfrac{\cos x + \cos^2 x + \sin^2 x}{(1 + \cos x)^2} = \dfrac{\cos x + 1}{(1 + \cos x)^2} = \dfrac{1}{1 + \cos x}.

Example 5. Differentiate f(x)=tan1(2x1x2)f(x) = \tan^{-1}\left(\dfrac{2x}{1 - x^2}\right).

Use the identity tan1(2x1x2)=2tan1x\tan^{-1}\left(\dfrac{2x}{1 - x^2}\right) = 2 \tan^{-1} x for x<1|x| < 1. So f(x)=21+x2f'(x) = \dfrac{2}{1 + x^2}. (Outside that range a ±π\pm \pi adjustment changes nothing for the derivative.)

Example 6. Differentiate f(x)=cos2(x)f(x) = \cos^2(\sqrt{x}).

Outer: square. Inner: cos\cos of x\sqrt{x}. f(x)=2cos(x)(sinx)12x=sin(2x)2xf'(x) = 2\cos(\sqrt{x}) \cdot (-\sin\sqrt{x}) \cdot \dfrac{1}{2\sqrt{x}} = -\dfrac{\sin(2\sqrt{x})}{2\sqrt{x}} (using 2sinθcosθ=sin2θ2 \sin \theta \cos \theta = \sin 2\theta).

Try it yourself

  1. Differentiate f(x)=x7+5x32xf(x) = x^7 + 5x^3 - 2x.
  2. Differentiate f(x)=sinxcosxf(x) = \sin x \cos x using both product rule and double-angle identity.
  3. Differentiate f(x)=1x2+1f(x) = \dfrac{1}{x^2 + 1}.
  4. Differentiate f(x)=tan(x2)f(x) = \tan(x^2).
  5. Differentiate f(x)=e3xcos(2x)f(x) = e^{3x} \cos(2x).
  6. Differentiate f(x)=ln(sinx)f(x) = \ln(\sin x).
  7. Differentiate f(x)=1+x2f(x) = \sqrt{1 + x^2}.
  8. Differentiate f(x)=(1+x)(1+x2)(1+x3)f(x) = (1 + x)(1 + x^2)(1 + x^3).
  9. Differentiate f(x)=x+1x1f(x) = \dfrac{x + 1}{x - 1}.
  10. Differentiate f(x)=sin1(2x1x2)f(x) = \sin^{-1}(2x \sqrt{1 - x^2}) for x<1/2|x| < 1/\sqrt 2. (Hint: =2sin1x= 2 \sin^{-1} x.)
  11. Differentiate f(x)=xex2f(x) = x e^{-x^2}.
  12. Differentiate f(x)=log(cos(x2))f(x) = \log(\cos(x^2)).
  13. Differentiate f(x)=(sinx)3cosxf(x) = (\sin x)^3 \cdot \cos x , use product rule.
  14. Differentiate f(x)=tanx1+tan2xf(x) = \dfrac{\tan x}{1 + \tan^2 x}, recognising it equals sinxcosx\sin x \cos x.

Pitfalls / Tricks

  • Chain rule first, simplify later. Many students try to simplify before differentiating and lose track.
  • For quotient rule, be careful with the sign in the numerator: fgfgf' g - f g', not fgfgf g' - f' g.
  • Trig identities can sometimes simplify before differentiating , but only do so when it's obvious.
  • ddx(ax)=axlna\dfrac{d}{dx}(a^x) = a^x \ln a, not xax1x a^{x - 1}. Mixing power-rule and exp-rule is a frequent error.
  • For inverse trig derivatives, watch the domain , the formula gives a real number only inside the natural domain.

Next, implicit and logarithmic differentiation.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Rules of differentiation
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6