Skip to content
The site is in test mode. All features are free for now.
MathAgora

University Mathematics · Real analysis

The derivative

The precise definition of the derivative, Darboux's theorem (the intermediate value property of derivatives), the theorems of Rolle, Lagrange (MVT) and Cauchy, L'Hospital's rule, a continuous nowhere-differentiable function.

85 min 8 questions

01Are derivatives continuous?

Let g(x)=x2sin⁡1xg(x) = x^2\sin\frac1x (x≠0x \ne 0), g(0)=0g(0) = 0. By definition g′(0)=lim⁡x→0xsin⁡1x=0g'(0) = \lim_{x\to0}x\sin\frac1x = 0, while for x≠0x \ne 0, g′(x)=2xsin⁡1x−cos⁡1xg'(x) = 2x\sin\frac1x - \cos\frac1x. As x→0x \to 0, cos⁡1x\cos\frac1x oscillates between −1-1 and 11, so g′g' has no limit at 0.

Conclusion: gg is differentiable everywhere, but its derivative is discontinuous at 0. So "differentiable" and "continuously differentiable" (C1C^1) are different notions. Even so, we will see that a derivative cannot have just any discontinuity: jumps are impossible.

02The derivative and Darboux's theorem

The derivative of g:A→Rg : A \to \mathbb R at cc is g′(c)=lim⁡x→cg(x)−g(c)x−cg'(c) = \lim_{x\to c}\frac{g(x) - g(c)}{x - c}, provided the limit exists.

Theorem: if gg is differentiable at cc, it is continuous at cc. (The converse fails: ∣x∣|x| at 0.) The sum, product, quotient and chain rules follow from the limit theorems.

Interior Extremum Theorem (Fermat): if ff is differentiable on (a,b)(a,b) and attains a maximum or minimum at c∈(a,b)c \in (a,b), then f′(c)=0f'(c) = 0.

Darboux's Theorem: if ff is differentiable on [a,b][a,b] and α\alpha lies between f′(a)f'(a) and f′(b)f'(b), then f′(c)=αf'(c) = \alpha for some c∈(a,b)c \in (a,b). So derivatives have the intermediate value property even when they are not continuous. Consequently a function with a jump (e.g. sgn⁡x\operatorname{sgn}x) cannot be the derivative of any function.

03The mean value theorems

Rolle's Theorem: if ff is continuous on [a,b][a,b], differentiable on (a,b)(a,b), and f(a)=f(b)f(a) = f(b), then f′(c)=0f'(c) = 0 for some c∈(a,b)c \in (a,b). (Proof: Extreme Value Theorem + Fermat.)

Mean Value Theorem: under the same hypotheses but without f(a)=f(b)f(a) = f(b): f′(c)=f(b)−f(a)b−af'(c) = \frac{f(b) - f(a)}{b - a} for some c∈(a,b)c \in (a,b). Geometrically: somewhere the tangent is parallel to the chord.

Consequences: if f′=0f' = 0 on an interval, ff is constant; if f′=g′f' = g' then f=g+Cf = g + C; if f′>0f' > 0, ff is increasing. The interval matters: f′=0f' = 0 on (0,1)∪(2,3)(0,1) \cup (2,3) does not force ff to be constant.

Generalized (Cauchy) Mean Value Theorem: [f(b)−f(a)]g′(c)=[g(b)−g(a)]f′(c)[f(b) - f(a)]g'(c) = [g(b) - g(a)]f'(c) for some c∈(a,b)c \in (a,b).

04L'Hospital's rule

The $\frac00$ case: if f,gf, g are continuous on [a,b][a,b], differentiable except possibly at cc, f(c)=g(c)=0f(c) = g(c) = 0, g′(x)≠0g'(x) \ne 0 (x≠cx \ne c), and lim⁡x→cf′(x)g′(x)=L\lim_{x\to c}\frac{f'(x)}{g'(x)} = L, then lim⁡x→cf(x)g(x)=L\lim_{x\to c}\frac{f(x)}{g(x)} = L. The proof uses Cauchy's theorem.

The $\frac\infty\infty$ case works the same way. The direction matters: if the limit of f′g′\frac{f'}{g'} does not exist, that says nothing about fg\frac fg. E.g. x+sin⁡xx→1\frac{x + \sin x}{x} \to 1 as x→∞x \to \infty, although 1+cos⁡x1\frac{1 + \cos x}{1} has no limit.

05A continuous nowhere-differentiable function

Let h(x)=∣x∣h(x) = |x| on [−1,1][-1,1], extended periodically (h(x+2)=h(x)h(x + 2) = h(x)), a "sawtooth". Consider
g(x)=∑n=0∞(34)nh(4nx).g(x) = \sum_{n=0}^{\infty}\left(\frac34\right)^n h(4^nx).
Since ∣(34)nh(4nx)∣≤(34)n|(\tfrac34)^nh(4^nx)| \le (\tfrac34)^n and ∑(34)n\sum(\tfrac34)^n converges, the series converges uniformly and gg is continuous. But the nn-th term has slope 3n3^n with ever denser corners, and one proves that gg is differentiable at no point.

This example (a variant of Weierstrass's idea) shows that continuity is far weaker than differentiability. Baire's theorem says even more: a "typical" continuous function is nowhere differentiable.

Key formulas

  • Definition of the derivative

    g′(c)=lim⁡x→cg(x)−g(c)x−cg'(c)=\lim_{x\to c}\frac{g(x)-g(c)}{x-c}
  • Mean Value Theorem

    f′(c)=f(b)−f(a)b−af'(c)=\frac{f(b)-f(a)}{b-a}
  • Cauchy's Mean Value Theorem

    [f(b)−f(a)] g′(c)=[g(b)−g(a)] f′(c)[f(b)-f(a)]\,g'(c)=[g(b)-g(a)]\,f'(c)
  • L'Hospital (00\frac00 or ∞∞\frac\infty\infty, if the right-hand limit exists)

    lim⁡x→cf(x)g(x)=lim⁡x→cf′(x)g′(x)\lim_{x\to c}\frac{f(x)}{g(x)}=\lim_{x\to c}\frac{f'(x)}{g'(x)}
  • Continuous, nowhere differentiable

    g(x)=∑n=0∞(34)nh(4nx)g(x)=\sum_{n=0}^{\infty}\left(\tfrac34\right)^n h(4^nx)

Worked examples

Example 1

Prove that ∣sin⁡a−sin⁡b∣≤∣a−b∣|\sin a - \sin b| \le |a - b| for all a,ba, b.

Example 2

Prove that x5+2x−3=0x^5 + 2x - 3 = 0 has exactly one real root.