2.5 Formalizing the Limit, Rigorously

Story (The Ghosts of Departed Quantities).

When Isaac Newton and Gottfried Wilhelm Leibniz first invented the calculus in the late 17th century, they relied heavily on a dangerously intuitive notion of “infinitesimals”—quantities that were magically non-zero when you needed to divide by them, but vanished into thin air when you wanted to ignore them. The philosopher Bishop George Berkeley11 1 The University of California, Berkeley, the city of Berkeley, California, and Berkeley College at Yale University, were all named after him. famously skewered this logical sleight of hand in 1734, deriding these shifting variables as the “ghosts of departed quantities.”

For over a century, calculus worked magnificently in physics, yet rested on shifting mathematical sands. It wasn’t until the 19th century that giants like Augustin-Louis Cauchy and Karl Weierstrass stripped away the ghosts and replaced them with cold, hard inequalities. This is the story of how they did it: the δ\delta-ε\varepsilon definition of a limit. The limit allows us to ask a profound, nearly philosophical question: Where is this function going, even if it never physically arrives?

Before we write down the formalism, let us ground ourselves in the intuition. Consider a function f:ℝ→ℝf:\mathbb{R}\to\mathbb{R}. Informally, we write

limx→af⁢(x)=L\lim_{x\to a}f(x)=L

to mean that the value of f⁢(x)f(x) becomes arbitrarily close to LL as long as xx is sufficiently close to aa (but crucially, x≠ax\neq a).

Intuition (The Adversarial Game).

Think of the limit as a mathematical game played between two adversaries: the Skeptic and the Mathematician.

  • •
    ​

    The Skeptic challenges the Mathematician with an error tolerance, representing a “small positive number.” We traditionally call this ε\varepsilon (epsilon)22 2 Here is a mathematical joke: A mathematician nightmare would be an ε\varepsilon going toward infinity when nn goes toward zero.. The Skeptic says: “I demand that f⁢(x)f(x) be within a distance of ε\varepsilon from LL. That is, |f⁢(x)−L|<ε\left\lvert f(x)-L\right\rvert<\varepsilon.”

  • •
    ​

    The Mathematician must respond by finding a control dial, another small positive number, denoted δ\delta (delta). The Mathematician replies: “As long as you restrict your input xx to be within a distance of δ\delta from aa, your demand will be met.”

Importantly, δ\delta is allowed to depend on both aa and ε\varepsilon, which we can write explicitly as δ=δ⁢(a,ε)\delta=\delta(a,\varepsilon).

Let us carefully translate our English into inequalities:

  1. 1.
    ​

    “f⁢(x)f(x) is arbitrarily close to LL within tolerance ε\varepsilon” translates to: |f⁢(x)−L|<ε\left\lvert f(x)-L\right\rvert<\varepsilon.

  2. 2.
    ​

    “xx is sufficiently close to aa (but not equal to aa) within distance δ\delta” translates to: 0<|x−a|<δ0<\left\lvert x-a\right\rvert<\delta.

We are now ready to formalize this concept.

Definition 2.5.1 (Rigorous Definition of a Limit).

We say limx→af⁢(x)=L\lim_{x\to a}f(x)=L if for each ε>0\varepsilon>0, there exists δ>0\delta>0 depending on aa and ε\varepsilon such that

equation (2.19) (2.19)
|f⁢(x)−L|<εwhenever0<|x−a|<δ.\left\lvert f(x)-L\right\rvert<\varepsilon\quad\text{whenever}\quad 0<\left% \lvert x-a\right\rvert<\delta.
Caveat (The Punctured Neighborhood).

Notice the strict inequality 0<|x−a|0<\left\lvert x-a\right\rvert. This codifies the condition that x≠ax\neq a. The limit of a function at aa cares only about the behavior of the function strictly near aa, completely ignoring the value of f⁢(a)f(a) itself. The function ff does not even need to be defined at x=ax=a.

We illustrate Definition 2.5.1 in Figure 2.10.

A Cartesian coordinate graph showing a highly generalized epsilon-delta limit illustration. A smooth, asymmetric, strictly increasing blue curve y=f(x) starts below the line L-epsilon and ends above the line L+epsilon, demonstrating that the function is defined beyond the epsilon-band. Red dashed horizontal lines represent the boundaries L-epsilon and L+epsilon on the y-axis. Green dashed lines project the delta-neighborhood bounds c-delta and c+delta on the x-axis up to the curve and then horizontally to the y-axis. Because the function is asymmetric, f(c-delta) and f(c+delta) are at unequal distances from L, but both lie strictly and clearly nested inside the interval (L-epsilon, L+epsilon).
Figure 2.10: A geometric illustration of the ε\varepsilon-δ\delta limit definition

Definitions in mathematics are rarely absorbed by merely staring at them. One must get their hands dirty. Let us compute a simple limit using Definition 2.5.1.

Example 2.5.2.

Use the ε\varepsilon-δ\delta definition of a limit to rigorously find limx→2(3⁢x−2)\lim_{x\to 2}(3x-2).

The Thinking Process

Before writing a formal proof, it is highly recommended to engage in some scratch work.

  1. 1.
    ​

    Educated guess: By looking at the graph or testing numeric values close to 22, we strongly suspect that limx→2(3⁢x−2)=4\lim_{x\to 2}(3x-2)=4. So, our target is L=4L=4 as a=2a=2.

  2. 2.
    ​

    Working backwards: Let the Skeptic choose an arbitrary ε>0\varepsilon>0. We must find a δ>0\delta>0 such that

    |f⁢(x)−L|<εwhenever0<|x−2|<δ.\left\lvert f(x)-L\right\rvert<\varepsilon\quad\text{whenever}\quad 0<\left% \lvert x-2\right\rvert<\delta.

    Let us unpack the target inequality to forge a connection with the control inequality:

    |(3⁢x−2)−4|<ε|3⁢x−6|<ε3⁢|x−2|<ε|x−2|<ε3.\begin{split}\left\lvert(3x-2)-4\right\rvert&{}<\varepsilon\\ \left\lvert 3x-6\right\rvert&{}<\varepsilon\\ 3\left\lvert x-2\right\rvert&{}<\varepsilon\\ \left\lvert x-2\right\rvert&{}<\frac{\varepsilon}{3}.\end{split}

    The systematic calculation has revealed the path forward: if we simply set our dial δ\delta to be ε/3\varepsilon/3, the chain of reasoning will hold in reverse. Let us crystallize this into a formal proof.

Rigorous Solution

Proof.

Fix an arbitrary ε>0\varepsilon>0. We choose δ≔ε3\delta\coloneqq\frac{\varepsilon}{3}. Because ε>0\varepsilon>0, it follows that δ>0\delta>0.

Suppose xx is a real number satisfying 0<|x−2|<δ0<\left\lvert x-2\right\rvert<\delta. Then, we have:

|(3⁢x−2)−4|=|3⁢x−6|=3⁢|x−2|<3⁢δ=3⁢(ε3)=ε.\begin{split}\left\lvert(3x-2)-4\right\rvert&{}=\left\lvert 3x-6\right\rvert\\ &{}=3\left\lvert x-2\right\rvert\\ &{}<3\delta\\ &{}=3\left(\frac{\varepsilon}{3}\right)\\ &{}=\varepsilon.\end{split}

Thus, by Definition 2.5.1, we conclude that limx→2(3⁢x−2)=4\lim_{x\to 2}(3x-2)=4. ∎

Moral.

A formal limit proof is often an exercise in reverse-engineering. You start with the inequality you want to prove (the target inequality |f⁢(x)−L|<ε\left\lvert f(x)-L\right\rvert<\varepsilon) and algebraically massage it until you isolate the term you can control (|x−a|\left\lvert x-a\right\rvert).

The linear case was rather tame because the factor relating |f⁢(x)−L|\left\lvert f(x)-L\right\rvert and |x−a|\left\lvert x-a\right\rvert was a constant (in our previous case, 3). In non-linear functions, this factor will depend on xx, which introduces a delightful complication.

Example 2.5.3.

Prove that limx→1x2=1\lim_{x\to 1}x^{2}=1 using the ε\varepsilon-δ\delta definition.

The Thinking Process

Once again, we proceed with our scratch work.

  1. 1.
    ​

    Guess: We want to show limx→1x2=1\lim_{x\to 1}x^{2}=1. Here a=1a=1 and L=1L=1.

  2. 2.
    ​

    Working backwards: Fix ε>0\varepsilon>0. We want to find δ⁢(1,ε)>0\delta(1,\varepsilon)>0 such that

    |x2−1|<εwhenever0<|x−1|<δ.\left\lvert x^{2}-1\right\rvert<\varepsilon\quad\text{whenever}\quad 0<\left% \lvert x-1\right\rvert<\delta.

    Recall the algebraic identity c2−d2=(c−d)⁢(c+d)c^{2}-d^{2}=(c-d)(c+d) and the absolute value property |a⁢b|=|a|⁢|b|\left\lvert ab\right\rvert=\left\lvert a\right\rvert\left\lvert b\right\rvert. We can factor the left-hand side:

    |x2−1|=|x−1|⁢|x+1|<ε.\left\lvert x^{2}-1\right\rvert=\left\lvert x-1\right\rvert\left\lvert x+1% \right\rvert<\varepsilon.

    We have successfully isolated our controllable term, |x−1|\left\lvert x-1\right\rvert. The temptation here is to simply declare |x−1|<ε|x+1|\left\lvert x-1\right\rvert<\frac{\varepsilon}{\left\lvert x+1\right\rvert}. However, δ\delta must be a constant that depends only on ε\varepsilon (and aa), and not on the variable xx. We must therefore place an upper bound on the pesky factor |x+1|\left\lvert x+1\right\rvert.

  3. 3.
    ​

    The Bounding Trick: Since we are taking the limit as x→1x\to 1, we only care about values of xx strictly near 11. We are the Mathematician; we have the power to restrict δ\delta as much as we please to make our lives easier. Let us demand that δ≤1\delta\leq 1.

    If we enforce |x−1|<δ≤1\left\lvert x-1\right\rvert<\delta\leq 1, then:

    −1<x−1<10<x<21<x+1<3.\begin{split}-1<x-1&{}<1\\ 0<x&{}<2\\ 1<x+1&{}<3.\end{split}

    By adding 2 to the middle inequality, we see that 2−δ<x+1<2+δ2-\delta<x+1<2+\delta. Because δ≤1\delta\leq 1, we safely deduce that |x+1|<3\left\lvert x+1\right\rvert<3.

    Returning to our original bound: if |x+1|<3\left\lvert x+1\right\rvert<3, then |x−1|⁢|x+1|<δ⋅(2+δ)<δ⋅3\left\lvert x-1\right\rvert\left\lvert x+1\right\rvert<\delta\cdot(2+\delta)<% \delta\cdot 3. To ensure this whole expression is less than ε\varepsilon, we simply require δ≤ε3\delta\leq\frac{\varepsilon}{3}.

    To satisfy both our arbitrary bounding restriction (δ≤1\delta\leq 1) and our error bound (δ≤ε3\delta\leq\frac{\varepsilon}{3}), we take the minimum of the two.

Rigorous Solution

Proof.

Fix ε>0\varepsilon>0. We choose

δ≔min⁡{ε3,1}.\delta\coloneqq\min\left\{\frac{\varepsilon}{3},1\right\}.

(As an aside, one could conservatively choose δ=min⁡{ε1000,1}\delta=\min\left\{\frac{\varepsilon}{1000},1\right\}, and the logic would hold perfectly well!). Since ε>0\varepsilon>0, it follows that δ>0\delta>0.

Suppose 0<|x−1|<δ0<\left\lvert x-1\right\rvert<\delta. We bound the distance between f⁢(x)f(x) and LL:

|x2−1|=|x−1|⁢|x+1|.\begin{split}\left\lvert x^{2}-1\right\rvert&{}=\left\lvert x-1\right\rvert% \left\lvert x+1\right\rvert.\end{split}

Because δ≤1\delta\leq 1, we have |x−1|<1\left\lvert x-1\right\rvert<1, which implies −1<x−1<1-1<x-1<1, and therefore 1<x+1<31<x+1<3. This gives us the strict upper bound |x+1|<3\left\lvert x+1\right\rvert<3.

Furthermore, by our construction of δ\delta, we know that δ≤ε3\delta\leq\frac{\varepsilon}{3}. Combining these inequalities together:

|x2−1|=|x−1|⁢|x+1|<δ⋅3≤(ε3)⋅3=ε.\begin{split}\left\lvert x^{2}-1\right\rvert&{}=\left\lvert x-1\right\rvert% \left\lvert x+1\right\rvert\\ &{}<\delta\cdot 3\\ &{}\leq\left(\frac{\varepsilon}{3}\right)\cdot 3\\ &{}=\varepsilon.\end{split}

Therefore, by Definition 2.5.1, limx→1x2=1\lim_{x\to 1}x^{2}=1. ∎

Mathematics is not a spectator sport. To truly internalize the concept of limits, I strongly invite you to grapple with the following exercises.

Exercise 2.5.4.

Find limx→4x\lim_{x\to 4}\sqrt{x} by using the ε\varepsilon-δ\delta definition.
Hint: Multiply by the conjugate to factor out |x−4|\left\lvert x-4\right\rvert, and deploy a bounding trick similar to the one we used for the quadratic example.

Exercise 2.5.5.

State the formal ε\varepsilon-δ\delta definitions for 11-sided limits, namely limx→a+f⁢(x)=L\lim_{x\to a^{+}}f(x)=L and limx→a−f⁢(x)=L\lim_{x\to a^{-}}f(x)=L.

Exercise 2.5.6.

Consider the piecewise function

f⁢(x)={x+1if ⁢x>00if ⁢x≤0.f(x)=\begin{cases}x+1&\text{if }x>0\\ 0&\text{if }x\leq 0.\end{cases}

Use your ε\varepsilon-δ\delta definition from the previous exercise to rigorously evaluate the 1-sided limits limx→0+f⁢(x)\lim_{x\to 0^{+}}f(x) and limx→0−f⁢(x)\lim_{x\to 0^{-}}f(x).

Exercise 2.5.7 (The Pathological Case).

Use the ε\varepsilon-δ\delta definition (specifically, its logical negation) to rigorously show that

limx→0sin⁡(1x)does not exist.\lim_{x\to 0}\sin\left(\frac{1}{x}\right)\quad\text{does not exist.}

Intuition check: What happens to the frequency of oscillation as xx approaches zero? Can the Mathematician ever win the adversarial game against a sufficiently strict Skeptic?