Basic Rules of Differentiation

Basis
Last updated: Tags: Calculus, Differentiation

Prerequisites

Once you can compute a derivative from the limit definition, the goal is to avoid repeating that calculation for every new function. The three rules below — linearity, the product rule, and the quotient rule — let you differentiate any polynomial or rational function by inspection.

Linearity

Theorem. If ff and gg are differentiable at xx, and cRc \in \mathbb{R}, then

(cf+g)(x)  =  cf(x)+g(x).(cf + g)'(x) \;=\; c\,f'(x) + g'(x).

Proof. By definition,

limh0(cf+g)(x+h)(cf+g)(x)h  =  limh0[cf(x+h)f(x)h+g(x+h)g(x)h].\lim_{h\to 0}\frac{(cf+g)(x+h)-(cf+g)(x)}{h} \;=\; \lim_{h\to 0}\left[c\cdot\frac{f(x+h)-f(x)}{h} + \frac{g(x+h)-g(x)}{h}\right].

Both difference quotients converge, so the sum of limits equals the limit of the sum: cf(x)+g(x)c f'(x) + g'(x). \square

Product rule

Theorem. If ff and gg are differentiable at xx, then

(fg)(x)  =  f(x)g(x)+f(x)g(x).(fg)'(x) \;=\; f'(x)\,g(x) + f(x)\,g'(x).

Proof. Add and subtract f(x)g(x+h)f(x)g(x+h) in the numerator:

f(x+h)g(x+h)f(x)g(x)h  =  f(x+h)f(x)hg(x+h)  +  f(x)g(x+h)g(x)h.\frac{f(x+h)g(x+h) - f(x)g(x)}{h} \;=\; \frac{f(x+h)-f(x)}{h}\cdot g(x+h) \;+\; f(x)\cdot\frac{g(x+h)-g(x)}{h}.

As h0h \to 0: the first term converges to f(x)g(x)f'(x) \cdot g(x) (using continuity of gg at xx, which follows from differentiability), and the second to f(x)g(x)f(x) \cdot g'(x). \square

Quotient rule

Theorem. If ff and gg are differentiable at xx and g(x)0g(x) \neq 0, then

(fg)(x)  =  f(x)g(x)f(x)g(x)g(x)2.\left(\frac{f}{g}\right)'(x) \;=\; \frac{f'(x)\,g(x) - f(x)\,g'(x)}{g(x)^2}.

Proof. First derive the reciprocal rule for 1/g1/g. With δ\delta in place of hh:

1g(x+δ)1g(x)δ  =  g(x+δ)g(x)δ1g(x+δ)g(x).\frac{\tfrac{1}{g(x+\delta)}-\tfrac{1}{g(x)}}{\delta} \;=\; -\frac{g(x+\delta)-g(x)}{\delta}\cdot\frac{1}{g(x+\delta)\,g(x)}.

As δ0\delta \to 0, this converges to g(x)/g(x)2-g'(x)/g(x)^2 (since g(x+δ)g(x)0g(x+\delta) \to g(x) \neq 0). Then apply the product rule to f(1/g)f \cdot (1/g):

(fg)=f1g+f(gg2)=fgfgg2.  \left(\frac{f}{g}\right)' = f' \cdot \frac{1}{g} + f \cdot \left(-\frac{g'}{g^2}\right) = \frac{f'g - fg'}{g^2}. \;\square

Applications

Polynomials

From linearity and (xn)=nxn1(x^n)' = nx^{n-1}:

(anxn++a1x+a0)  =  nanxn1++a1.\left(a_n x^n + \cdots + a_1 x + a_0\right)' \;=\; n a_n x^{n-1} + \cdots + a_1.

Rational functions

ddx(x2+1x1)  =  2x(x1)(x2+1)(x1)2  =  x22x1(x1)2.\frac{d}{dx}\left(\frac{x^2+1}{x-1}\right) \;=\; \frac{2x(x-1)-(x^2+1)}{(x-1)^2} \;=\; \frac{x^2-2x-1}{(x-1)^2}.

Summary

  • Linearity: (cf+g)=cf+g(cf+g)' = cf' + g'.
  • Product rule: (fg)=fg+fg(fg)' = f'g + fg'.
  • Quotient rule: (f/g)=(fgfg)/g2(f/g)' = (f'g - fg')/g^2.
  • All three follow from the limit definition via elementary limit arithmetic.
  • Every polynomial and rational function is differentiable wherever defined.