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 f∘gf \circ g defined:

(f∘g)′(x)=f′(g(x))⋅g′(x).(f \circ g)'(x) = f'(g(x)) \cdot g'(x).

In Leibniz notation: dydx=dydu⋅dudx\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 h→0h \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^nnxn−1n x^{n-1}
exe^xexe^x
axa^x (a > 0)axln⁡aa^x \ln a
ln⁡x\ln x1/x1/x
log⁡ax\log_a x1/(xln⁡a)1/(x \ln a)
sin⁡x\sin xcos⁡x\cos x
cos⁡x\cos x−sin⁡x-\sin x
tan⁡x\tan xsec⁡2x\sec^2 x
cot⁡x\cot x−csc⁡2x-\csc^2 x
sec⁡x\sec xsec⁡xtan⁡x\sec x \tan x
csc⁡x\csc x−csc⁡xcot⁡x-\csc x \cot x
sin⁡−1x\sin^{-1} x1/1−x21/\sqrt{1 - x^2}
cos⁡−1x\cos^{-1} x−1/1−x2-1/\sqrt{1 - x^2}
tan⁡−1x\tan^{-1} x1/(1+x2)1/(1 + x^2)
cot⁡−1x\cot^{-1} x−1/(1+x2)-1/(1 + x^2)
sec⁡−1x\sec^{-1} x$1/(
csc⁡−1x\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)=exsin⁡xf(x) = e^{x} \sin x: product. f′(x)=exsin⁡x+excos⁡x=ex(sin⁡x+cos⁡x)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)4⋅3=15(3x+1)4f'(x) = 5(3x + 1)^4 \cdot 3 = 15(3x + 1)^4.

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

Chain: f′(x)=cos⁡(log⁡x)⋅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+1⋅2xf'(x) = e^{x^2 + 1} \cdot 2x.

Example 4. Differentiate f(x)=sin⁡x1+cos⁡xf(x) = \dfrac{\sin x}{1 + \cos x}.

Quotient: f′(x)=cos⁡x(1+cos⁡x)−sin⁡x(−sin⁡x)(1+cos⁡x)2=cos⁡x+cos⁡2x+sin⁡2x(1+cos⁡x)2=cos⁡x+1(1+cos⁡x)2=11+cos⁡xf'(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)=tan⁡−1(2x1−x2)f(x) = \tan^{-1}\left(\dfrac{2x}{1 - x^2}\right).

Use the identity tan⁡−1(2x1−x2)=2tan⁡−1x\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)=cos⁡2(x)f(x) = \cos^2(\sqrt{x}).

Outer: square. Inner: cos⁡\cos of x\sqrt{x}. f′(x)=2cos⁡(x)⋅(−sin⁡x)⋅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⁡θ=sin⁡2θ2 \sin \theta \cos \theta = \sin 2\theta).

Try it yourself

  1. Differentiate f(x)=x7+5x3−2xf(x) = x^7 + 5x^3 - 2x.
  2. Differentiate f(x)=sin⁡xcos⁡xf(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⁡(sin⁡x)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+1x−1f(x) = \dfrac{x + 1}{x - 1}.
  10. Differentiate f(x)=sin⁡−1(2x1−x2)f(x) = \sin^{-1}(2x \sqrt{1 - x^2}) for ∣x∣<1/2|x| < 1/\sqrt 2. (Hint: =2sin⁡−1x= 2 \sin^{-1} x.)
  11. Differentiate f(x)=xe−x2f(x) = x e^{-x^2}.
  12. Differentiate f(x)=log⁡(cos⁡(x2))f(x) = \log(\cos(x^2)).
  13. Differentiate f(x)=(sin⁡x)3⋅cos⁡xf(x) = (\sin x)^3 \cdot \cos x , use product rule.
  14. Differentiate f(x)=tan⁡x1+tan⁡2xf(x) = \dfrac{\tan x}{1 + \tan^2 x}, recognising it equals sin⁡xcos⁡x\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: f′g−fg′f' g - f g', not fg′−f′gf g' - f' g.
  • Trig identities can sometimes simplify before differentiating , but only do so when it's obvious.
  • ddx(ax)=axln⁡a\dfrac{d}{dx}(a^x) = a^x \ln a, not xax−1x 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.

Test Your Knowledge

Quick MCQ check on this chapter

Start Quiz →

AI Summary

Summarize this page in your favorite LLM