Unit 6: Differentiability: Mean Value Theorems, Taylor's Theorem & L'Hôpital's Rule
Exhaustive treatment of single-variable differential calculus: difference quotients, differentiability and Carathéodory's formulation, Fermat's interior extremum lemma, Darboux's theorem on derivative intermediate values, Rolle's and Lagrange's Mean Value Theorems, Cauchy's Generalized Mean Value Theorem, rigorous proof of L'Hôpital's rules, and Taylor's theorem with Lagrange, Cauchy, and integral remainders.
§6.1 The Derivative: Difference Quotients & Carathéodory's Formulation
1. The Classical Definition of the Derivative
Definition 6.1 (Derivative at a Point): Let $I \subseteq \mathbb{R}$ be an open interval, $f: I \to \mathbb{R}$, and $c \in I$. The function $f$ is differentiable at $c$ if the limit of the difference quotient exists:
The real number $f'(c)$ is the derivative of $f$ at $c$.
2. Carathéodory's Equivalent Formulation
Constantin Carathéodory introduced a powerful reformulation that eliminates division by $x - c$, vastly simplifying proofs of the Chain Rule and multivariable extensions.
Theorem 6.1 (Carathéodory's Theorem): Let $f: I \to \mathbb{R}$ and $c \in I$. Then $f$ is differentiable at $c$ if and only if there exists a function $\phi: I \to \mathbb{R}$ that is continuous at $c$ such that:
In this case, $\phi(c) = f'(c)$.
Proof:
$(\implies)$ If $f'(c)$ exists, define:
Then $\lim_{x \to c} \phi(x) = f'(c) = \phi(c)$, so $\phi$ is continuous at $c$, and $f(x) - f(c) = \phi(x)(x - c)$ holds for all $x$. $(\impliedby)$ If such a continuous $\phi$ exists, then for $x \ne c$:
Taking limits as $x \to c$: $\lim_{x \to c} \frac{f(x) - f(c)}{x - c} = \lim_{x \to c} \phi(x) = \phi(c)$, so $f'(c) = \phi(c)$ exists. $\blacksquare$
3. Differentiability Implies Continuity
Theorem 6.2 (Differentiability Implies Continuity): If $f$ is differentiable at $c$, then $f$ is continuous at $c$.
Proof:
Using Carathéodory's formulation:
The Chain Rule via Carathéodory: Let $g$ be differentiable at $c$ and $f$ differentiable at $g(c)$. By Carathéodory: $g(x) - g(c) = \psi(x)(x - c)$ with $\psi(c) = g'(c)$, and $f(y) - f(g(c)) = \phi(y)(y - g(c))$ with $\phi(g(c)) = f'(g(c))$. Substituting $y = g(x)$:
Since composite continuous functions are continuous, $\lim_{x \to c} [\phi(g(x)) \psi(x)] = f'(g(c)) g'(c)$. Thus $(f \circ g)'(c) = f'(g(c)) g'(c)$ with zero division-by-zero complications! $\blacksquare$
§6.2 Local Extrema, Fermat's Lemma & Darboux's Theorem for Derivatives
1. Interior Local Extrema: Fermat's Theorem
Definition 6.2 (Local Extrema): Let $f: E \to \mathbb{R}$. A point $c \in E$ is a local maximum (resp. local minimum) if there exists $\delta > 0$ such that $f(x) \le f(c)$ (resp. $f(x) \ge f(c)$) for all $x \in (c - \delta, c + \delta) \cap E$.
Theorem 6.3 (Fermat's Interior Extremum Lemma): Let $f: (a, b) \to \mathbb{R}$ have a local extremum at an interior point $c \in (a, b)$. If $f$ is differentiable at $c$, then:
Line-by-Line Proof:
Assume without loss of generality that $c$ is a local maximum (the local minimum case is analogous). Then there exists $\delta > 0$ such that $f(x) \le f(c)$ for all $x \in (c - \delta, c + \delta) \subseteq (a, b)$.
1. Left-hand difference quotient ($x < c$):
For any $x \in (c - \delta, c)$, $x - c < 0$ and $f(x) - f(c) \le 0$. Therefore:
2. Right-hand difference quotient ($x > c$):
For any $x \in (c, c + \delta)$, $x - c > 0$ and $f(x) - f(c) \le 0$. Therefore:
Since $f$ is differentiable at $c$, both one-sided limits exist and equal $f'(c)$:
2. Darboux's Intermediate Value Theorem for Derivatives
Does the derivative of a function have to be continuous? No! For instance, $f(x) = x^2 \sin(1/x)$ for $x \ne 0$ with $f(0) = 0$ is everywhere differentiable, but its derivative oscillates wildly and is discontinuous at $x = 0$. However, Jean Gaston Darboux proved that every derivative still satisfies the Intermediate Value Property, even if it is completely discontinuous!
Theorem 6.4 (Darboux's Theorem): Let $f: [a, b] \to \mathbb{R}$ be differentiable on $[a, b]$. If $k$ is any real number strictly between $f'(a)$ and $f'(b)$, then there exists at least one $c \in (a, b)$ such that:
Proof:
Assume without loss of generality that $f'(a) < k < f'(b)$. Define the auxiliary function:
Since $f$ is differentiable on $[a, b]$, $g$ is continuous on $[a, b]$. By the Weierstrass Extreme Value Theorem (Theorem 5.4), $g$ attains its global minimum on $[a, b]$ at some point $c \in [a, b]$. We show that $c$ cannot be $a$ or $b$:
- At $a$: $g'(a) = f'(a) - k < 0$.
Since $g'(a) < 0$, $\lim_{x \to a^+} \frac{g(x) - g(a)}{x - a} < 0$, which means $g(x) < g(a)$ for all $x$ sufficiently close to $a$ on the right. Thus $a$ is not the minimum: $c \ne a$.
- At $b$: $g'(b) = f'(b) - k > 0$.
Since $g'(b) > 0$, $\lim_{x \to b^-} \frac{g(x) - g(b)}{x - b} > 0$, which means $g(x) < g(b)$ for all $x$ sufficiently close to $b$ on the left. Thus $b$ is not the minimum: $c \ne b$. Therefore, the minimum must occur at an interior point $c \in (a, b)$. By Fermat's Lemma (Theorem 6.3):
§6.3 Rolle's Theorem, Lagrange & Cauchy Mean Value Theorems
1. Rolle's Theorem
Theorem 6.5 (Rolle's Theorem): Let $f: [a, b] \to \mathbb{R}$ satisfy:
- $f$ is continuous on the closed interval $[a, b]$.
- $f$ is differentiable on the open interval $(a, b)$.
- $f(a) = f(b)$.
Then there exists at least one point $c \in (a, b)$ such that $f'(c) = 0$.
Proof:
By the Extreme Value Theorem, $f$ attains both a maximum $M$ and a minimum $m$ on $[a, b]$.
- If $M = m$, $f$ is constant on $[a, b]$, so $f'(c) = 0$ for all $c \in (a, b)$.
- If $M \ne m$, since $f(a) = f(b)$, at least one of the extrema (either $M$ or $m$) must occur at an interior point $c \in (a, b)$.
By Fermat's Lemma, at this interior extremum, $f'(c) = 0$. $\blacksquare$
2. Lagrange's Mean Value Theorem
Theorem 6.6 (Lagrange's Mean Value Theorem - MVT): Let $f: [a, b] \to \mathbb{R}$ be continuous on $[a, b]$ and differentiable on $(a, b)$. Then there exists at least one point $c \in (a, b)$ such that:
Proof:
The secant line connecting $(a, f(a))$ and $(b, f(b))$ has equation:
Define the vertical distance function $h: [a, b] \to \mathbb{R}$:
- $h$ is continuous on $[a, b]$ (linear combination of continuous functions).
- $h$ is differentiable on $(a, b)$ with $h'(x) = f'(x) - \frac{f(b) - f(a)}{b - a}$.
- $h(a) = f(a) - f(a) = 0$, and $h(b) = f(b) - f(b) = 0$.
Thus $h(a) = h(b) = 0$. By Rolle's Theorem, there exists $c \in (a, b)$ such that $h'(c) = 0$:
3. Cauchy's Generalized Mean Value Theorem
Theorem 6.7 (Cauchy's Mean Value Theorem): Let $f, g: [a, b] \to \mathbb{R}$ be continuous on $[a, b]$ and differentiable on $(a, b)$. Then there exists $c \in (a, b)$ such that:
If $g'(x) \ne 0$ on $(a, b)$, this is equivalently written as:
Proof:
Define the auxiliary function:
Notice that:
- $h(a) = f(b)g(a) - f(a)g(a) - g(b)f(a) + g(a)f(a) = f(b)g(a) - g(b)f(a)$.
- $h(b) = f(b)g(b) - f(a)g(b) - g(b)f(b) + g(a)f(b) = f(b)g(a) - g(b)f(a) = h(a)$.
$h$ satisfies Rolle's Theorem on $[a, b]$. Thus there exists $c \in (a, b)$ with $h'(c) = 0$:
§6.4 Indeterminate Forms & Rigorous Proof of L'Hôpital's Rule
1. The $0/0$ Indeterminate Form
Theorem 6.8 (L'Hôpital's Rule for $0/0$): Let $f$ and $g$ be differentiable on $(a, b) \setminus \{c\}$, where $c \in [a, b]$. Suppose:
- $\lim_{x \to c} f(x) = 0$ and $\lim_{x \to c} g(x) = 0$.
- $g'(x) \ne 0$ for all $x \in (a, b) \setminus \{c\}$.
- $\lim_{x \to c} \frac{f'(x)}{g'(x)} = L$ (where $L \in \mathbb{R}$ or $\pm \infty$).
Then:
Complete Line-by-Line Proof:
We extend $f$ and $g$ continuously to $c$ by defining $f(c) = 0$ and $g(c) = 0$. Since $\lim_{x \to c} f(x) = 0 = f(c)$ and $\lim_{x \to c} g(x) = 0 = g(c)$, both $f$ and $g$ are continuous at $c$. Let $x \in (c, b)$. Both $f$ and $g$ are continuous on $[c, x]$ and differentiable on $(c, x)$. By Cauchy's Generalized Mean Value Theorem (Theorem 6.7), there exists a point $\xi_x \in (c, x)$ such that:
Since $f(c) = 0$ and $g(c) = 0$:
As $x \to c^+$, the point $\xi_x \in (c, x)$ is squeezed towards $c$: $c < \xi_x < x \implies \lim_{x \to c^+} \xi_x = c$. Therefore:
An identical argument on $(a, c)$ establishes the left-hand limit $\lim_{x \to c^-} \frac{f(x)}{g(x)} = L$. Combining both one-sided limits proves the theorem. $\blacksquare$
2. The $\infty/\infty$ Indeterminate Form
Theorem 6.9 (L'Hôpital's Rule for $\infty/\infty$): If $\lim_{x \to c} |g(x)| = \infty$ and $\lim_{x \to c} \frac{f'(x)}{g'(x)} = L$, then:
Notice that we do not even need to assume that $\lim f(x) = \infty$!
§6.5 Taylor's Theorem with Lagrange, Cauchy & Integral Remainder Forms
1. Taylor Polynomials and Approximations
Definition 6.3 (Taylor Polynomial): Let $f$ be $n$-times differentiable at $x_0$. The $n$-th order Taylor polynomial of $f$ centered at $x_0$ is:
The remainder (error) is $R_n(x) = f(x) - P_n(x)$.
2. Taylor's Theorem with Lagrange Remainder
Theorem 6.10 (Taylor's Theorem with Lagrange Remainder): Let $f$ be $(n+1)$-times differentiable on an open interval $I$ containing $x_0$ and $x$. Then there exists some point $c$ strictly between $x_0$ and $x$ such that:
Complete Rigorous Proof:
Fix $x \ne x_0$. Define the constant $M$ such that:
Consider the auxiliary function $g: I \to \mathbb{R}$ defined for $t$ between $x_0$ and $x$:
Notice that:
- At $t = x$: $g(x) = f(x) - f(x) - 0 = 0$.
- At $t = x_0$: $g(x_0) = f(x) - P_n(x) - M(x - x_0)^{n+1} = 0$ (by definition of $M$).
Thus $g(t)$ is continuous on the closed interval between $x_0$ and $x$, and differentiable in between. Now we compute the derivative $g'(t)$ with respect to $t$. Differentiating the summation using the product rule:
Differentiating the $M$ term: $\frac{d}{dt}[-M(x - t)^{n+1}] = (n+1) M (x - t)^n$. Therefore:
By Rolle's Theorem (Theorem 6.5), there exists $c$ strictly between $x_0$ and $x$ such that $g'(c) = 0$:
Since $c \ne x$, $(x - c)^n \ne 0$. Dividing by $(x - c)^n$:
Substituting $M$ back into $R_n(x) = M(x - x_0)^{n+1}$ yields:
3. Cauchy and Integral Forms of the Remainder
- Cauchy Remainder Form:
- Integral Remainder Form (via integration by parts):
Step-by-step rigorous derivations with unskipped proofs, categorized into Foundational Concepts, Advanced Structural Analysis, and Honors / Proof Challenge tiers.
Consider the piecewise function:
- Prove directly from the limit definition that $f$ is differentiable at $x = 0$ and find $f'(0)$.
- Calculate $f'(x)$ for all $x \ne 0$.
- Prove that $f'(x)$ is discontinuous at $x = 0$, demonstrating that differentiability does not guarantee continuity of the derivative.
1. Derivative at $x = 0$ via Difference Quotient
By Definition 6.1:
Since $|\sin(1/h)| \le 1$ for all $h \ne 0$:
Since $\lim_{h \to 0} (-|h|) = 0$ and $\lim_{h \to 0} |h| = 0$, by the Squeeze Theorem:
Thus $f$ is differentiable at $x = 0$ with $f'(0) = 0$. $\blacksquare$
2. Derivative for $x \ne 0$
For $x \ne 0$, we apply standard differentiation rules (product rule and chain rule):
3. Discontinuity of $f'$ at $x = 0$
$f'(x)$ is continuous at $0$ if and only if $\lim_{x \to 0} f'(x) = f'(0) = 0$. Examine the limit:
As $x \to 0$, $2x \sin(1/x) \to 0$ by the Squeeze Theorem. However, consider the sequence $x_n = \frac{1}{2\pi n} \to 0$:
Now consider the sequence $y_n = \frac{1}{(2n+1)\pi} \to 0$:
Since different sequences give different limits, $\lim_{x \to 0} f'(x)$ does not exist! Therefore, $f'(x)$ is discontinuous at $x = 0$. $\blacksquare$
- State and prove Cauchy's Generalized Mean Value Theorem (Theorem 6.7).
- Use Cauchy's MVT to prove L'Hôpital's Rule for the one-sided limit:
where $\lim_{x \to a^+} f(x) = 0$ and $\lim_{x \to a^+} g(x) = 0$ with $g'(x) \ne 0$ on $(a, b)$.
- Evaluate the limit: $\lim_{x \to 0} \frac{e^x - 1 - x - \frac{x^2}{2}}{x^3}$.
1. Proof of Cauchy's Generalized MVT
Let $f, g: [a, b] \to \mathbb{R}$ be continuous on $[a, b]$ and differentiable on $(a, b)$. Define $h(x) = [f(b) - f(a)] g(x) - [g(b) - g(a)] f(x)$.
- $h$ is continuous on $[a, b]$ and differentiable on $(a, b)$.
- Evaluating at endpoints:
By Rolle's Theorem, there exists $c \in (a, b)$ such that $h'(c) = 0$:
2. Proof of L'Hôpital's Rule ($0/0$)
Extend $f$ and $g$ to $a$ by defining $f(a) = 0$ and $g(a) = 0$. Since $\lim_{x \to a^+} f(x) = 0 = f(a)$ and $\lim_{x \to a^+} g(x) = 0 = g(a)$, $f$ and $g$ are continuous on $[a, x]$ for any $x \in (a, b)$. By Cauchy's MVT on $[a, x]$, there exists $c_x \in (a, x)$ such that:
Since $f(a) = g(a) = 0$ and $g'(c_x) \ne 0$:
As $x \to a^+$, since $a < c_x < x$, by the Squeeze Theorem $c_x \to a^+$. Therefore:
3. Evaluating the Limit
Evaluate $\lim_{x \to 0} \frac{e^x - 1 - x - x^2/2}{x^3}$. As $x \to 0$, numerator $\to 1 - 1 - 0 - 0 = 0$, denominator $\to 0$. Form: $0/0$.
- Step 1 (L'Hôpital): $\lim_{x \to 0} \frac{e^x - 1 - x}{3x^2}$ ($0/0$).
- Step 2 (L'Hôpital): $\lim_{x \to 0} \frac{e^x - 1}{6x}$ ($0/0$).
- Step 3 (L'Hôpital): $\lim_{x \to 0} \frac{e^x}{6} = \frac{e^0}{6} = \frac{1}{6}$.
Thus, the limit is $\frac{1}{6}$. $\blacksquare$
- State Taylor's Theorem with the Lagrange remainder for $f(x) = e^x$ centered at $x_0 = 0$.
- Prove that the Maclaurin series for $e^x$ converges to $e^x$ for all $x \in \mathbb{R}$.
- Using the Taylor remainder estimate for $e = \sum_{k=0}^n \frac{1}{k!} + R_n(1)$, provide an unassailable proof that Euler's number $e$ is irrational.
1. Taylor Expansion with Lagrange Remainder for $e^x$
For $f(x) = e^x$, all derivatives are identical: $f^{(k)}(x) = e^x$ for all $k \ge 0$. Centering at $x_0 = 0$: $f^{(k)}(0) = e^0 = 1$. The $n$-th order Taylor polynomial is $P_n(x) = \sum_{k=0}^n \frac{x^k}{k!}$. By Taylor's Theorem (Theorem 6.10), for any $x \in \mathbb{R}$, there exists $c$ between 0 and $x$ such that:
2. Convergence of the Maclaurin Series for All $x \in \mathbb{R}$
Fix $x \in \mathbb{R}$. Since $c$ is between 0 and $x$, $e^c < e^{|x|}$. The Lagrange remainder satisfies:
For any fixed $x$, the ratio of consecutive terms in the series $\sum \frac{|x|^n}{n!}$ is $\frac{|x|}{n+1} \to 0 < 1$. By the Ratio Test, $\sum \frac{|x|^n}{n!}$ converges, which forces its general term to approach zero:
Therefore, $e^x = \sum_{k=0}^\infty \frac{x^k}{k!}$ converges for all $x \in \mathbb{R}$. $\blacksquare$
3. Rigorous Proof that $e$ is Irrational
Setting $x = 1$ in the Taylor expansion:
Since $0 < c < 1$, we have $1 < e^c < e < 3$. Thus:
Now assume for contradiction that $e$ is rational:
Choose $n = q$ in the Taylor remainder formula:
Multiply both sides by $q!$:
Notice:
- $p (q - 1)!$ is an integer.
- For each $k \in \{0, 1, \dots, q\}$, $\frac{q!}{k!} = q(q-1)\dots(k+1)$ is an integer.
Therefore, the difference is an integer:
Now we bound $\mathcal{Z} = q! R_q(1)$ using the remainder inequality:
Since $q \ge 2$, $q + 1 \ge 3$, which means:
(If $q \ge 3$, $\frac{3}{q+1} \le \frac{3}{4} < 1$; for $q = 2$, $e = p/2 \implies 2 < e < 3$, impossible). In all cases:
This asserts the existence of an integer $\mathcal{Z}$ strictly between 0 and 1, which is impossible! This contradiction refutes the assumption that $e$ is rational. Therefore, $e$ is irrational. $\blacksquare$