Skip to content

Differentiability

Attempt these from memory before reading.

  • Define the derivative as a limit. What kind of limit is it?
  • State the mean value theorem. What are its hypotheses, and which one is load-bearing?
  • Is every continuous function differentiable? Is every differentiable function continuous?
  • Can a derivative be discontinuous?
  • State Taylor’s theorem with the Lagrange form of the remainder.

Check your answers against the text. Prompt 4 is the one most people answer wrongly, and Darboux’s theorem is the reason the right answer is surprising.

Motivation: the derivative is a linear map, not a slope

Section titled “Motivation: the derivative is a linear map, not a slope”

“Slope of the tangent line” is how differentiation is introduced, and it is a useful lie. The honest definition is:

ff is differentiable at aa if there is a number f′(a)f'(a) with f(a+h)=f(a)+f′(a)h+o(h)f(a + h) = f(a) + f'(a) h + o(h).

That is: ff is differentiable at aa exactly when it can be approximated near aa by an affine function, with error smaller than linear. The number f′(a)f'(a) is the slope of that affine approximation.

Reading it this way does three things the slope picture cannot:

  • It generalises to Rn\mathbb{R}^n, where the derivative is a linear map (the Jacobian) and there is no single slope.
  • It makes the mean value theorem obvious: if the function is affine on average, some point must have the affine slope.
  • It explains why differentiability is stronger than continuity. Continuity says f(a+h)−f(a)→0f(a+h) - f(a) \to 0; differentiability says the difference is linear in hh. Linear is much stronger.

The counterexamples on this page are the reason the distinction has to be made carefully rather than assumed.

Definition. f:(a,b)→Rf : (a,b) \to \mathbb{R} is differentiable at c∈(a,b)c \in (a,b) if the limit

f"(c)=lim⁡h→0f(c+h)−f(c)hf"(c) = \lim_{h \to 0} \frac{f(c+h) - f(c)}{h}

Exists (as a finite real number).

Proposition 5.1. If ff is differentiable at cc Then ff is continuous at cc.

Proof. lim⁡x→c(f(x)−f(c))=lim⁡x→cf(x)−f(c)x−c⋅(x−c)=f′(c)⋅0=0\lim_{x \to c} (f(x) - f(c)) = \lim_{x \to c} \frac{f(x) - f(c)}{x - c} \cdot (x - c) = f'(c) \cdot 0 = 0. ■\blacksquare

The converse is false: f(x)=∣x∣f(x) = |x| is continuous at 00 but not differentiable at 00.

Theorem 5.1. If ff and gg are differentiable at cc Then:

  1. (f+g)′(c)=f′(c)+g′(c)(f + g)'(c) = f'(c) + g'(c)
  2. (fg)′(c)=f′(c)g(c)+f(c)g′(c)(fg)'(c) = f'(c)g(c) + f(c)g'(c)
  3. (f/g)′(c)=f′(c)g(c)−f(c)g′(c)g(c)2(f/g)'(c) = \frac{f'(c)g(c) - f(c)g'(c)}{g(c)^2} (if g(c)≠0g(c) \neq 0)
  4. (f∘g)′(c)=f′(g(c))⋅g′(c)(f \circ g)'(c) = f'(g(c)) \cdot g'(c) (Chain Rule)

Theorem 5.2 (Rolle’s Theorem). If f:[a,b]→Rf : [a,b] \to \mathbb{R} is continuous on [a,b][a,b] Differentiable On (a,b)(a,b) And f(a)=f(b)f(a) = f(b) Then there exists c∈(a,b)c \in (a,b) such that f′(c)=0f'(c) = 0.

Proof. By the Extreme Value Theorem, ff attains its maximum MM and minimum mm on [a,b][a,b]. If M=mM = m Then ff is constant and f′(c)=0f'(c) = 0 for all c∈(a,b)c \in (a,b). Otherwise, at least one Of MM or mm is attained at some c∈(a,b)c \in (a,b) (since f(a)=f(b)f(a) = f(b)). By Fermat’s theorem, f′(c)=0f'(c) = 0. ■\blacksquare

Theorem 5.3 (Mean Value Theorem). If f:[a,b]→Rf : [a,b] \to \mathbb{R} is continuous on [a,b][a,b] and Differentiable on (a,b)(a,b) Then there exists c∈(a,b)c \in (a,b) such that

f′(c)=f(b)−f(a)b−af'(c) = \frac{f(b) - f(a)}{b - a}

Proof. Define g(x)=f(x)−f(b)−f(a)b−a(x−a)g(x) = f(x) - \frac{f(b)-f(a)}{b-a}(x - a). Then g(a)=g(b)g(a) = g(b) and gg satisfies the Hypotheses of Rolle’s theorem. So g′(c)=0g'(c) = 0 for some c∈(a,b)c \in (a,b) Which gives the result. ■\blacksquare

Corollary 5.4. If f′(x)=0f'(x) = 0 for all x∈(a,b)x \in (a,b) Then ff is constant on [a,b][a,b].

Corollary 5.5. If f′(x)>0f'(x) > 0 for all x∈(a,b)x \in (a,b) Then ff is strictly increasing on [a,b][a,b].

Theorem 5.3a (Cauchy’s Mean Value Theorem). If f,g:[a,b]→Rf, g : [a,b] \to \mathbb{R} are continuous on [a,b][a,b] and differentiable on (a,b)(a,b) Then there exists c∈(a,b)c \in (a,b) such that

(f(b)−f(a))g′(c)=(g(b)−g(a))f′(c)(f(b) - f(a))g'(c) = (g(b) - g(a))f'(c)

Proof. Define h(x)=(f(b)−f(a))g(x)−(g(b)−g(a))f(x)h(x) = (f(b) - f(a))g(x) - (g(b) - g(a))f(x). Then h(a)=h(b)h(a) = h(b) So by Rolle’s Theorem, h′(c)=0h'(c) = 0 for some c∈(a,b)c \in (a,b) Which gives the result. ■\blacksquare

Remark. When g(x)=xg(x) = x Cauchy’s MVT reduces to the standard MVT. Cauchy’s MVT is the key Ingredient in the …/1-number-and-algebra/3_proof-and-logic of L’Hôpital’s rule.

Corollary 5.6. If ff is differentiable on (a,b)(a,b) and ∣f′(x)∣≤M|f'(x)| \leq M for all x∈(a,b)x \in (a,b) Then ff is Lipschitz continuous with constant MM: ∣f(x)−f(y)∣≤M∣x−y∣|f(x) - f(y)| \leq M|x - y| for all x,y∈(a,b)x, y \in (a,b).

Proof. Apply the MVT to ff on the interval between xx and yy. ■\blacksquare

Theorem 5.6 (Taylor’s Theorem with Lagrange Remainder). If ff is (n+1)(n+1)-times differentiable on An open interval containing aa Then for each xx in that interval:

f(x)=∑k=0nf(k)(a)k!(x−a)k+Rn(x)f(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x - a)^k + R_n(x)

Where the remainder is

Rn(x)=f(n+1)(ξ)(n+1)!(x−a)n+1R_n(x) = \frac{f^{(n+1)}(\xi)}{(n+1)!}(x - a)^{n+1}

For some ξ\xi between aa and xx.

Proof. Fix x≠ax \neq a and define

g(t)=f(x)−∑k=0nf(k)(t)k!(x−t)kg(t) = f(x) - \sum_{k=0}^{n} \frac{f^{(k)}(t)}{k!}(x - t)^k

Then g(a)=Rn(x)g(a) = R_n(x) and g(x)=0g(x) = 0. By the generalized Rolle’s theorem (or direct computation Using the Cauchy mean value theorem), there exists ξ\xi between aa and xx with g′(ξ)=0g'( \xi ) = 0. Computing:

g′(t)=−f(n+1)(t)n!(x−t)ng'(t) = -\frac{f^{(n+1)}(t)}{n!}(x - t)^n

Setting g′(ξ)=0g'(\xi) = 0 yields the result after comparing g(a)=Rn(x)g(a) = R_n(x) with the integral form. A Cleaner approach uses the standard MVT applied to gg on [a,x][a, x]. ■\blacksquare

Theorem 5.7 (L’Hôpital’s Rule, 00\frac{0}{0} case). Suppose ff and gg are differentiable on An open interval containing cc (except possibly at cc itself), g′(x)≠0g'(x) \neq 0 near cc And lim⁡x→cf(x)=lim⁡x→cg(x)=0\lim_{x \to c} f(x) = \lim_{x \to c} g(x) = 0. If lim⁡x→cf′(x)/g′(x)=L\lim_{x \to c} f'(x)/g'(x) = L exists (as a finite Number or ±∞\pm\infty), then lim⁡x→cf(x)/g(x)=L\lim_{x \to c} f(x)/g(x) = L.

Proof. Extend ff and gg continuously to cc by setting f(c)=g(c)=0f(c) = g(c) = 0. For x≠cx \neq c By Cauchy’s Mean Value Theorem, there exists ξ\xi strictly between cc and xx such that

f(x)−f(c)g(x)−g(c)=f′(ξ)g′(ξ)\frac{f(x) - f(c)}{g(x) - g(c)} = \frac{f'(\xi)}{g'(\xi)}

I.e., f(x)g(x)=f′(ξ)g′(ξ)\frac{f(x)}{g(x)} = \frac{f'(\xi)}{g'(\xi)}. As x→cx \to c We have ξ→c\xi \to c (since ξ\xi is trapped between cc and xx). Therefore lim⁡x→cf(x)/g(x)=lim⁡ξ→cf′(ξ)/g′(ξ)=L\lim_{x \to c} f(x)/g(x) = \lim_{\xi \to c} f'(\xi)/g'(\xi) = L. ■\blacksquare

Theorem 5.7b (L’Hôpital’s Rule, ∞∞\frac{\infty}{\infty} case). Suppose ff and gg are Differentiable on (a,b)(a, b) (except possibly at cc), g′(x)≠0g'(x) \neq 0 near cc And lim⁡x→c∣f(x)∣=lim⁡x→c∣g(x)∣=∞\lim_{x \to c} |f(x)| = \lim_{x \to c} |g(x)| = \infty. If lim⁡x→cf′(x)/g′(x)=L\lim_{x \to c} f'(x)/g'(x) = L exists, Then lim⁡x→cf(x)/g(x)=L\lim_{x \to c} f(x)/g(x) = L.

Proof (sketch). Fix ε>0\varepsilon > 0. For x,yx, y near cc with x≠yx \neq y By Cauchy’s MVT:

f(x)−f(y)g(x)−g(y)=f′(ξ)g′(ξ)\frac{f(x) - f(y)}{g(x) - g(y)} = \frac{f'(\xi)}{g'(\xi)}

For some ξ\xi between xx and yy. Since f′(ξ)/g′(ξ)≈Lf'(\xi)/g'(\xi) \approx L for ξ\xi near cc We have:

f(x)g(x)=f(x)−f(y)g(x)−g(y)⋅1−f(y)/f(x)1−g(y)/g(x)\frac{f(x)}{g(x)} = \frac{f(x) - f(y)}{g(x) - g(y)} \cdot \frac{1 - f(y)/f(x)}{1 - g(y)/g(x)}

Since f(x),g(x)→∞f(x), g(x) \to \infty By fixing yy and letting x→cx \to c The fractions f(y)/f(x)f(y)/f(x) and g(y)/g(x)g(y)/g(x) tend to 00 So the second factor tends to 11. The first factor tends to LL by Cauchy’s MVT. Hence f(x)/g(x)→Lf(x)/g(x) \to L. ■\blacksquare

Worked Example: Compute $\lim_{x \to 0} \frac{e^x - 1 - x}{x^2}$

Solution. Both numerator and denominator approach 00 as x→0x \to 0. Applying L’Hôpital’s rule:

lim⁡x→0ex−1−xx2=lim⁡x→0ex−12x\lim_{x \to 0} \frac{e^x - 1 - x}{x^2} = \lim_{x \to 0} \frac{e^x - 1}{2x}

This is still 00\frac{0}{0} So apply L’Hôpital again:

=lim⁡x→0ex2=12= \lim_{x \to 0} \frac{e^x}{2} = \frac{1}{2}

■\blacksquare

Theorem 5.8 (Darboux’s Theorem). If ff is differentiable on [a,b][a, b] Then f′f' has the Intermediate value property: for any yy between f′(a)f'(a) and f′(b)f'(b) There exists c∈(a,b)c \in (a, b) With f′(c)=yf'(c) = y.

Remark. This means derivatives satisfy the intermediate value property even though they need not be continuous. For example, f(x)=x2sin⁡(1/x)f(x) = x^2 \sin(1/x) (with f(0)=0f(0) = 0) is differentiable everywhere, But f′f' is not continuous at 00.

Proof. Assume without loss of generality that f′(a)<y<f′(b)f'(a) \lt y \lt f'(b). Define g(x)=f(x)−yxg(x) = f(x) - yx. Then gg is differentiable on [a,b][a, b] with

g′(a)=f′(a)−y<0andg′(b)=f′(b)−y>0g'(a) = f'(a) - y \lt 0 \quad \mathrm{and} \quad g'(b) = f'(b) - y > 0

Since g′(a)<0g'(a) \lt 0 There exists x1>ax_1 > a with g(x1)<g(a)g(x_1) \lt g(a) (otherwise g(x)≥g(a)g(x) \geq g(a) For xx near aa Contradicting g′(a)<0g'(a) \lt 0). Similarly, since g′(b)>0g'(b) > 0 There exists x2<bx_2 \lt b with g(x2)<g(b)g(x_2) \lt g(b).

Therefore gg attains its minimum at some c∈(a,b)c \in (a, b). By Fermat’s theorem on interior extrema, g′(c)=0g'(c) = 0 So f′(c)=yf'(c) = y. ■\blacksquare

Worked Example: Apply Darboux's theorem to $f(x) = x^2 \sin(1/x)$ ($f(0) = 0$)

Solution. For x≠0x \neq 0: f′(x)=2xsin⁡(1/x)−cos⁡(1/x)f'(x) = 2x \sin(1/x) - \cos(1/x). At x=0x = 0: f′(0)=lim⁡h→0h2sin⁡(1/h)h=lim⁡h→0hsin⁡(1/h)=0f'(0) = \lim_{h \to 0} \frac{h^2 \sin(1/h)}{h} = \lim_{h \to 0} h \sin(1/h) = 0.

So f′(0)=0f'(0) = 0. For any δ>0\delta > 0 The term −cos⁡(1/x)-\cos(1/x) oscillates between −1-1 and 11 on (0,δ)(0, \delta) So f′f' takes all values in [−1,1][-1, 1] infinitely often on (0,δ)(0, \delta).

But Darboux’s theorem says f′f' has the intermediate value property. Indeed, f′f' is not continuous at 00 (it oscillates wildly), yet it still satisfies the IVP. This shows that derivatives can be Highly discontinuous while retaining the intermediate value property. ■\blacksquare

Worked Example. Compute the third-order Taylor polynomial of f(x)=exf(x) = e^x about a=0a = 0.

f(0)=1f(0) = 1, f′(0)=1f'(0) = 1, f′′(0)=1f''(0) = 1, f′′′(0)=1f'''(0) = 1. So

T3(x)=1+x+x22+x36T_3(x) = 1 + x + \frac{x^2}{2} + \frac{x^3}{6}

The remainder is R3(x)=eξ24x4R_3(x) = \frac{e^\xi}{24} x^4 for some ξ\xi between 00 and xx.

Worked Example: Approximate $\sin(0.1)$ with error less than $10^{-10}$

Solution. For f(x)=sin⁡xf(x) = \sin x about a=0a = 0: f(k)(0)∈{0,1,−1}f^{(k)}(0) \in \{0, 1, -1\} and the Taylor Polynomial of degree nn has the form Tn(x)=x−x3/3!+x5/5!−⋯T_n(x) = x - x^3/3! + x^5/5! - \cdots (odd terms only).

The Lagrange remainder is ∣Rn(x)∣=∣f(n+1)(ξ)∣(n+1)!∣x∣n+1≤∣x∣n+1(n+1)!|R_n(x)| = \frac{|f^{(n+1)}(\xi)|}{(n+1)!} |x|^{n+1} \leq \frac{|x|^{n+1}}{(n+1)!} (since ∣f(k)∣≤1|f^{(k)}| \leq 1 for all kk).

We need (0.1)n+1(n+1)!<10−10\frac{(0.1)^{n+1}}{(n+1)!} \lt 10^{-10}. Testing: for n=5n = 5 (0.1)66!=10−6720≈1.39×10−9>10−10\frac{(0.1)^6}{6!} = \frac{10^{-6}}{720} \approx 1.39 \times 10^{-9} \gt 10^{-10}. For n=7n = 7: (0.1)88!=10−840320≈2.48×10−13<10−10\frac{(0.1)^8}{8!} = \frac{10^{-8}}{40320} \approx 2.48 \times 10^{-13} \lt 10^{-10}.

So T7(0.1)=0.1−(0.1)36+(0.1)5120−(0.1)75040T_7(0.1) = 0.1 - \frac{(0.1)^3}{6} + \frac{(0.1)^5}{120} - \frac{(0.1)^7}{5040} =0.1−0.00016667+0.00000083−0.00000000≈0.09983342= 0.1 - 0.00016667 + 0.00000083 - 0.00000000 \approx 0.09983342.

The error is at most 2.48×10−13<10−102.48 \times 10^{-13} \lt 10^{-10}. ■\blacksquare

Worked Example: Find the Maclaurin series for $\ln(1 + x)$ and its radius of convergence

Solution. For f(x)=ln⁡(1+x)f(x) = \ln(1+x): f(0)=0f(0) = 0, f′(x)=1/(1+x)f'(x) = 1/(1+x), f′′(x)=−1/(1+x)2f''(x) = -1/(1+x)^2 f(k)(x)=(−1)k−1(k−1)!/(1+x)kf^{(k)}(x) = (-1)^{k-1}(k-1)!/(1+x)^k for k≥1k \geq 1. So f(k)(0)=(−1)k−1(k−1)!f^{(k)}(0) = (-1)^{k-1}(k-1)!.

ln⁡(1+x)=∑k=1∞(−1)k−1(k−1)!k!xk=∑k=1∞(−1)k−1kxk\ln(1+x) = \sum_{k=1}^{\infty} \frac{(-1)^{k-1}(k-1)!}{k!} x^k = \sum_{k=1}^{\infty} \frac{(-1)^{k-1}}{k} x^k

By the ratio test: lim⁡k→∞∣ak+1/ak∣=lim⁡k→∞kk+1∣x∣=∣x∣\lim_{k \to \infty} |a_{k+1}/a_k| = \lim_{k \to \infty} \frac{k}{k+1} |x| = |x|. The series converges for ∣x∣<1|x| \lt 1 and diverges for ∣x∣>1|x| > 1. At x=1x = 1 we get the alternating Harmonic series (converges to ln⁡2\ln 2). At x=−1x = -1 we get the negative harmonic series (diverges).

The radius of convergence is R=1R = 1 and the interval of convergence is (−1,1](-1, 1]. ■\blacksquare

Worked Example: Compute the Taylor expansion of $\cos x$ about $a = \pi/3$ with remainder bound

Solution. Compute derivatives: f(x)=cos⁡xf(x) = \cos x, f′(x)=−sin⁡xf'(x) = -\sin x, f′′(x)=−cos⁡xf''(x) = -\cos x, f′′′(x)=sin⁡xf'''(x) = \sin x f(4)(x)=cos⁡xf^{(4)}(x) = \cos x. Evaluated at a=π/3a = \pi/3:

f(π/3)=1/2f(\pi/3) = 1/2, f′(π/3)=−3/2f'(\pi/3) = -\sqrt{3}/2, f′′(π/3)=−1/2f''(\pi/3) = -1/2, f′′′(π/3)=3/2f'''(\pi/3) = \sqrt{3}/2.

The third-degree Taylor polynomial is:

T3(x)=12−32(x−π3)−14(x−π3)2+312(x−π3)3T_3(x) = \frac{1}{2} - \frac{\sqrt{3}}{2}\left(x - \frac{\pi}{3}\right) - \frac{1}{4}\left(x - \frac{\pi}{3}\right)^2 + \frac{\sqrt{3}}{12}\left(x - \frac{\pi}{3}\right)^3

The remainder satisfies ∣R3(x)∣≤∣x−π/3∣424|R_3(x)| \leq \frac{|x - \pi/3|^4}{24} (since ∣f(4)(ξ)∣=∣cos⁡ξ∣≤1|f^{(4)}(\xi)| = |\cos \xi| \leq 1).

For example, at x=1x = 1: ∣R3(1)∣≤∣1−π/3∣424≈0.0472424≈2.1×10−7|R_3(1)| \leq \frac{|1 - \pi/3|^4}{24} \approx \frac{0.0472^4}{24} \approx 2.1 \times 10^{-7}. ■\blacksquare

The derivative is most deeply understood not as a “slope” but as the best linear approximation to a function at a point. Near x=a, a differentiable function f(x) is well approximated by the tangent line f(a) + f’(a)(x-a). The error in this approximation vanishes faster than |x-a| as x approaches a. This is why differentiation is local: the derivative captures the linear part of how f behaves near a, discarding higher-order curvature.

This perspective explains why the chain rule works as it does. If f is locally linear near g(x) and g is locally linear near a, then their composition is locally linear near a, and the slopes multiply. It also explains why not every continuous function is differentiable: f(x)=|x| is continuous at 0 but has no single linear approximation there — the left and right slopes disagree. The Mean Value Theorem says that the instantaneous linear approximation (the derivative) must at some point match the average rate of change over an interval. Taylor’s theorem extends this: the derivative is the first-order term in a polynomial approximation, and the remainder controls how well that approximation works.

FunctionContinuous?Differentiable?What it shows
∥x∥\|x\| at 00yesnoa corner: left and right derivatives differ
x2sin⁡(1/x2)x^2 \sin(1/x^2), f(0)=0f(0)=0yesyes at 0, f′(0)=0f'(0)=0the derivative exists but is unbounded near 0
Weierstrass W(x)W(x)yes everywherenowherecontinuity does not imply differentiability, on an uncountable set
f(x)=x1/3f(x) = x^{1/3} at 00yesnoa vertical tangent is not a derivative
f(x)={x2x∈Q0elsef(x) = \begin{cases} x^2 & x \in \mathbb{Q} \\ 0 & \text{else} \end{cases}continuous only at 0differentiable at 0 with f′(0)=0f'(0)=0differentiability can hold at an isolated point of continuity

Darboux’s theorem says that even though derivatives need not be continuous, they satisfy the intermediate value property: if f′(a)<c<f′(b)f'(a) < c < f'(b) then f′(x)=cf'(x) = c for some xx between aa and bb. So a derivative cannot jump. It can, however, be discontinuous — x2sin⁡(1/x2)x^2\sin(1/x^2) is the standard example — which is why derivatives form a strictly smaller class than continuous functions, and why “the derivative of a differentiable function is continuous” is false.

Why Weierstrass matters beyond the puzzle. It shows that continuity alone gives no control over oscillation at the infinitesimal scale. Any argument that assumes a continuous function has a derivative “somewhere” on an interval needs more hypotheses — and the mean value theorem supplies exactly that.

Mix these with material from Sequences and Limits, Continuity and Riemann Integration.

  1. (Limits.) Show f(x)=∣x∣f(x) = |x| is not differentiable at 00, by computing the left and right limits of the difference quotient.
  2. (Continuity.) Show that if ff is differentiable on [a,b][a,b] with f′(a)=f′(b)f'(a) = f'(b), there is a point where f′(c)=0f'(c) = 0 — this is Rolle’s theorem, and the MVT is its generalisation.
  3. (Integration.) Use the MVT to show that if f′≥0f' \ge 0 on [a,b][a,b] then ff is increasing, and deduce that a function with f′=0f' = 0 everywhere is constant.
  4. (Taylor.) Show that sin⁡x=x−x3/6+o(x4)\sin x = x - x^3/6 + o(x^4) and use it to compute lim⁡x→0sin⁡x−xx3\lim_{x \to 0} \frac{\sin x - x}{x^3}.
  5. (Darboux.) Show that f′(x)=2xsin⁡(1/x)−cos⁡(1/x)f'(x) = 2x \sin(1/x) - \cos(1/x) for xe0x e 0, f′(0)=0f'(0) = 0 has the intermediate value property but is discontinuous at 00.

The Mean Value Theorem says: for a smooth curve connecting two points, there is a point on the curve where the tangent line is parallel to the chord (secant line) connecting the endpoints.

More precisely, if ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b), then there exists c∈(a,b)c \in (a, b) with

f′(c)=f(b)−f(a)b−af'(c) = \frac{f(b) - f(a)}{b - a}

Physical interpretation: If you drive 100 miles in 2 hours, your average speed is 50 mph. The MVT says that at some instant, your speedometer must have read exactly 50 mph.

Why this fails without differentiability: For f(x)=∣x∣f(x) = |x| on [−1,1][-1, 1], f(1)−f(−1)=0f(1) - f(-1) = 0, so the average rate of change is 0. But f′(x)f'(x) is never 0: it equals 11 for x>0x > 0 and −1-1 for x<0x < 0. The MVT fails because ff is not differentiable at x=0x = 0, where the chord from (−1,1)(-1, 1) to (1,1)(1, 1) is horizontal, but no tangent line is horizontal.

Problem. Prove that ∣sin⁡x−sin⁡y∣≤∣x−y∣|\sin x - \sin y| \leq |x - y| for all x,y∈Rx, y \in \mathbb{R}.

Solution

Apply the MVT to f(t)=sin⁡tf(t) = \sin t on the interval between xx and yy. There exists ξ\xi between xx and yy such that

sin⁡x−sin⁡y=cos⁡(ξ)⋅(x−y)\sin x - \sin y = \cos(\xi) \cdot (x - y)

Taking absolute values:

∣sin⁡x−sin⁡y∣=∣cos⁡(ξ)∣⋅∣x−y∣≤1⋅∣x−y∣=∣x−y∣|\sin x - \sin y| = |\cos(\xi)| \cdot |x - y| \leq 1 \cdot |x - y| = |x - y|

since ∣cos⁡(ξ)∣≤1|\cos(\xi)| \leq 1 for all ξ\xi.

This inequality implies that sin⁡x\sin x is Lipschitz continuous with constant 1, hence uniformly continuous on R\mathbb{R}. The same argument works for cos⁡x\cos x.

■\blacksquare

  • L’Hopital’s rule only applies to indeterminate forms 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}. Applying it to forms like 10\frac{1}{0} or ∞1\frac{\infty}{1} will give incorrect results. Always verify the indeterminate form before applying the rule.
  • L’Hopital’s rule requires that the limit of f′/g′f'/g' exists. If f′/g′f'/g' oscillates (e.g., f(x)=x+sin⁡xf(x) = x + \sin x, g(x)=xg(x) = x, then f′/g′=1+cos⁡(x)/1f'/g' = 1 + \cos(x)/1 which oscillates), the original limit may still exist. In such cases, use algebraic manipulation instead.
  • The MVT requires continuity on [a,b][a, b] and differentiability on (a,b)(a, b). If ff is not differentiable at some points, the MVT conclusion may fail.
  • Taylor’s theorem gives the remainder for a specific ξ\xi between aa and xx. To bound the error, use ∣Rn(x)∣≤M(n+1)!∣x−a∣n+1|R_n(x)| \leq \frac{M}{(n+1)!}|x - a|^{n+1} where M=sup⁡ξ∣f(n+1)(ξ)∣M = \sup_{\xi}|f^{(n+1)}(\xi)|.

  • Continuity: Differentiability implies continuity, and the mean value theorem connects local derivative behaviour to global function properties.
  • Riemann Integration: The fundamental theorem of calculus links differentiation and integration, with the Riemann integral defined via limits of Riemann sums.
  • Lebesgue Integration: Lebesgue integration generalises the Riemann integral and handles a broader class of functions with discontinuities.
  • Classical Mechanics
  • Electromagnetism