Let f:E→Rf:E\to\mathbb{R} (or C\mathbb{C}) with E⊆RE\subseteq\mathbb{R}. For a∈Ea\in E and x∈Ex\in E with x≠ax\ne a, the difference quotient of ff at (a,x)(a,x) is

f(x)−f(a)x−a.\frac{f(x)-f(a)}{x-a}.

Difference quotients are the finite approximations to the derivative. The derivative f′(a)f'(a), when it exists, is the limit of these quotients as x→ax\to a.

Examples
  • If f(x)=x2f(x)=x^2, then f(x)−f(a)x−a=x2−a2x−a=x+a\dfrac{f(x)-f(a)}{x-a}=\dfrac{x^2-a^2}{x-a}=x+a.
  • If f(x)=sin⁡xf(x)=\sin x, then sin⁡x−sin⁡ax−a\dfrac{\sin x-\sin a}{x-a} is an average rate of change that tends to cos⁡a\cos a as x→ax\to a.
  • For f(x)=∣x∣f(x)=|x| at a=0a=0, the quotient is ∣x∣x\dfrac{|x|}{x}, which equals 11 for x>0x>0 and −1-1 for x<0x<0.