3.3 Differentiable Implies Continuous

Having explored how differentiability can spectacularly fail, let us now appreciate what differentiability guarantees.

Intuition (Newton’s Approximation).

Suppose ff is differentiable at cc. The geometric intuition is that at a tiny window about the point (c,f⁢(c))(c,f(c)), the graph of f⁢(x)f(x) behaves like its tangent line:

y=f⁢(c)+mtan⁢(x−c).y=f(c)+m_{\text{tan}}(x-c).

Equivalently,

f⁢(x)≈f⁢(c)+f′⁢(c)⁢(x−c)f(x)\approx f(c)+f^{\prime}(c)(x-c)

when xx is close to cc.

We can put this into formal ε−δ\varepsilon-\delta language.

Theorem 3.3.1 (Newton’s Approximation).

Let f:ℝ→ℝf:\mathbb{R}\to\mathbb{R} and x0∈dom⁡(f)x_{0}\in\operatorname{dom}(f). The following are equivalent:

  1. (i)
    ​

    ff is differentiable at x0x_{0} with derivative LL.

  2. (ii)
    ​

    For each ε>0\varepsilon>0, there exists δ=δ⁢(x0,ε)>0\delta=\delta(x_{0},\varepsilon)>0 such that

    |f⁢(x)−(f⁢(x0)+L⁢(x−x0))|<ε⁢|x−x0|\left\lvert f(x)-(f(x_{0})+L(x-x_{0}))\right\rvert<\varepsilon\left\lvert x-x_% {0}\right\rvert

    whenever 0<|x−x0|<δ0<\left\lvert x-x_{0}\right\rvert<\delta.

Proof.

The proof of this theorem is simply a rearrangement of the ε−δ\varepsilon-\delta definition of the limit:

f′⁢(x0)=limx→x0f⁢(x)−f⁢(x0)x−x0.f^{\prime}(x_{0})=\lim_{x\to x_{0}}\frac{f(x)-f(x_{0})}{x-x_{0}}.

∎

This theorem tells us an interesting thing: if ff is differentiable at x0x_{0}, then ff can be well-approximated by a linear function g⁢(x)=f⁢(x0)+L⁢(x−x0)g(x)=f(x_{0})+L(x-x_{0}) (the tangent line at x0x_{0}). But a linear function is fundamentally continuous. Do we have that ff is also continuous at x=x0x=x_{0}?

The answer is yes:

Corollary 3.3.2.

Suppose ff is differentiable at x0x_{0}. Then ff is continuous at x0x_{0}.

We offer two approaches to prove this fundamental fact.

Approach 1.

This approach relies directly on algebraic limit laws. We compute the limit of the difference:

limx→x0(f⁢(x)−f⁢(x0))=limx→x0[f⁢(x)−f⁢(x0)x−x0⋅(x−x0)]=limx→x0f⁢(x)−f⁢(x0)x−x0⋅limx→x0(x−x0)=f′⁢(x0)⋅0=0.\begin{split}\lim_{x\to x_{0}}\left(f(x)-f(x_{0})\right)&{}=\lim_{x\to x_{0}}% \left[\frac{f(x)-f(x_{0})}{x-x_{0}}\cdot(x-x_{0})\right]\\ &{}=\lim_{x\to x_{0}}\frac{f(x)-f(x_{0})}{x-x_{0}}\cdot\lim_{x\to x_{0}}(x-x_{% 0})\\ &{}=f^{\prime}(x_{0})\cdot 0\\ &{}=0.\end{split}

This immediately yields limx→x0f⁢(x)=f⁢(x0)\lim_{x\to x_{0}}f(x)=f(x_{0}). Thus, ff is continuous at x0x_{0}. ∎

Approach 2.

By Newton’s approximation, since the tangent line is a good approximation, the error term itself vanishes as x→x0x\to x_{0}. Thus, given ε>0\varepsilon>0, whenever |x−x0|<δ\left\lvert x-x_{0}\right\rvert<\delta is sufficiently small, we can certainly bound the raw error by:

|f⁢(x)−f⁢(x0)−L⁢(x−x0)|<ε⁢|x−x0|.\left\lvert f(x)-f(x_{0})-L(x-x_{0})\right\rvert<\varepsilon\left\lvert x-x_{0% }\right\rvert.

Using the triangle inequality, we can break apart the difference:

|f⁢(x)−f⁢(x0)|=|(f⁢(x)−f⁢(x0)−L⁢(x−x0))+L⁢(x−x0)|≤|f⁢(x)−f⁢(x0)−L⁢(x−x0)|+|L|⁢|x−x0|<ε⁢|x−x0|+|L|⁢|x−x0|.\begin{split}\left\lvert f(x)-f(x_{0})\right\rvert&{}=\left\lvert(f(x)-f(x_{0}% )-L(x-x_{0}))+L(x-x_{0})\right\rvert\\ &{}\leq\left\lvert f(x)-f(x_{0})-L(x-x_{0})\right\rvert+\left\lvert L\right% \rvert\left\lvert x-x_{0}\right\rvert\\ &{}<\varepsilon\left\lvert x-x_{0}\right\rvert+\left\lvert L\right\rvert\left% \lvert x-x_{0}\right\rvert.\end{split}

Taking the limit as x→x0x\to x_{0},

limx→x0|f⁢(x)−f⁢(x0)|=0.\lim_{x\to x_{0}}\left\lvert f(x)-f(x_{0})\right\rvert=0.

Thus, ff is continuous at x0x_{0}. ∎

Moral (The middle-man trick).

Adding and subtracting an intermediate term is sometimes known as the middle-man trick and is a closed friend of any mathematician. The middle-man is very helpful when you need to build a bridge between several estimates: in the proof above, the middle-man is the linear term L⁢(x−x0)L(x-x_{0}).

So if we know a function is differentiable, it is automatically continuous. At first glance, this theorem seems a bit useless—finding limx→x0f⁢(x)\lim_{x\to x_{0}}f(x) seems drastically easier than evaluating the thorny derivative limit limx→x0f⁢(x)−f⁢(x0)x−x0\lim_{x\to x_{0}}\frac{f(x)-f(x_{0})}{x-x_{0}}. Luckily, there are rules (like the Chain Rule and Product Rule) that allow us to tell immediately if a function is differentiable, bypassing the limit entirely and handing us continuity for free!