Português

Formal Definition of a Limit — the ε-δ Game

In the lesson on limits, “f(x) approaches L” was seen on the graph and in tables of values. Here the same idea becomes an exact statement that can be checked and proved. It works like a challenge-and-response game: someone challenges you with a margin of error ε (epsilon) on the y-axis, and you answer with a distance δ (delta) on the x-axis that guarantees staying within the margin.

The definition

In words: the limit of f(x) as x approaches a is L if, for every number ε > 0, there is a number δ > 0 such that, for every x in the domain of f with 0 < |x − a| < δ, we have |f(x) − L| < ε. We assume f is defined near a (at a itself it need not be).

In symbols (∀ reads “for every”, ∃ reads “there exists”, ⇒ reads “then”, and Df is the domain of f):

|x − a| is the distance between x and a, and |f(x) − L| is the distance between f(x) and L. The margin ε is a horizontal band around L; the distance δ is a vertical band around a.

Anatomy of the formula

Tap (or hover over) each piece. The examples use f(x) = 3x − 1, near a = 2, with L = 5.

∀ ε > 0 — the challenge, whatever it is

The challenger picks the margin of error ε, as small as they like, and you must handle all of them. Beating ε = 0.3 is not enough; you must also beat ε = 0.01, ε = 0.000001 and any other positive number.

Example: with ε = 0.3, f(x) must stay between 5 − 0.3 = 4.7 and 5 + 0.3 = 5.3.

∃ δ > 0 — the response

For each ε, you answer with a positive distance δ. δ may depend on ε (it almost always does): a smaller margin usually needs a smaller δ. It is enough that some δ that works exists; it does not have to be the largest.

Example: for ε = 0.3, the answer δ = 0.1 works; for ε = 0.01, δ = 0.01/3 ≈ 0.0033 works (and so does any smaller δ).

∀ x ∈ Df — every x in the band, no exceptions

The guarantee must hold for every x in the domain that falls inside the band, not just for some. A single x outside the margin breaks the answer. The x where f does not exist are left out.

Example: with δ = 0.1, the guarantee must hold at 1.95, at 2.05, at 2.0999 and at every other number between 1.9 and 2.1 (except 2).

0 < |x − a| < δ — near a, but not at a

|x − a| < δ means that x is less than δ away from a: between a − δ and a + δ. The 0 < removes a itself, because |a − a| = 0, and 0 < 0 is false. That is why the value of f at a does not matter for the limit: f(a) may not even exist.

Example: with δ = 0.1, x = 2.05 is in (|2.05 − 2| = 0.05, and 0 < 0.05 < 0.1); x = 2 is out (|2 − 2| = 0); x = 2.1 is out too (|2.1 − 2| = 0.1, which is not less than 0.1).

⇒ |f(x) − L| < ε — then f(x) stays within the margin

The arrow says: if x is in the δ band, then f(x) is in the ε band, less than ε away from L. The inequality is strict: touching the edge (a distance equal to ε) does not count.

Example: with ε = 0.3 and δ = 0.1, at x = 2.05: f(2.05) = 3 · 2.05 − 1 = 6.15 − 1 = 5.15, and |5.15 − 5| = 0.15 < 0.3. At x = 2.09: f(2.09) = 6.27 − 1 = 5.27, and |5.27 − 5| = 0.27 < 0.3.

Simulator: pick the margin and the distance

The horizontal band is L ± ε; the vertical one is a ± δ. δ works when the curve, inside the vertical band (not counting a itself), stays entirely inside the horizontal band. When some piece gets out, it shows up in red.

The “ideal δ” is the largest δ that works. It comes from an exact calculation (the formulas are in the text above the graph), and the page was checked for every combination of ε and δ on the controls against thousands of points of the curve. The step function is H(x) = 0 for x < 0 and H(x) = 1 for x ≥ 0.

Step-by-step proof: the limit of the line

We will prove, from the definition, that

  1. 1. The goal

    Data: f(x) = 3x − 1, a = 2 and the candidate L = 5 (from the statement). By the definition, we must show: for any ε > 0, there is δ > 0 such that

    The work is finding which δ to use. The trick is to start from what we want, |f(x) − 5| < ε, and arrive at a condition on |x − 2|.

  2. 2. The algebra

    Simplify the expression inside the absolute value, one operation at a time:

    The absolute value of a product is the product of the absolute values (|pq| = |p| · |q|), and |3| = 3:

    So |f(x) − 5| < ε is the same as 3|x − 2| < ε. Dividing both sides by 3 (positive, so the inequality keeps its direction): |x − 2| < ε/3.

  3. 3. Choosing δ

    The calculation asks for |x − 2| < ε/3. So choose

    Since ε > 0, also ε/3 > 0: δ is positive, as the definition requires. Note that δ depends on ε: with ε = 0.3, δ = 0.3/3 = 0.1; with ε = 0.01, δ = 0.01/3 ≈ 0.0033.

  4. 4. The check

    Let ε > 0 be any number, δ = ε/3, and let x be any number with 0 < |x − 2| < δ. Then:

    The first “=” is the algebra of step 2; the “<” comes from |x − 2| < δ, multiplied by 3. Since ε was arbitrary, the definition is satisfied: the limit is 5. ∎

    Checking with numbers: with ε = 0.3 and δ = 0.1, the point x = 2.09 is in the band (|2.09 − 2| = 0.09 < 0.1) and gives |f(2.09) − 5| = 3 · 0.09 = 0.27 < 0.3.

    Interpretation. To guarantee f(x) within ε of 5, it is enough to take x within ε/3 of 2: since the line has slope 3, each distance on the x-axis becomes three times as large on the y-axis. δ = ε/3 is also the largest δ that works: with a larger δ, the point x = 2 + ε/3 enters the band and gives |f(x) − 5| = ε, which is not less than ε. But the definition only asks for some δ: ε/4, ε/10 or any smaller δ work too.

Variations of the definition

By changing what is asked of x and of f(x), the same structure describes the other kinds of limit. In each card, what changes from the standard definition comes with an example.

Standard (two-sided)

∀ ε > 0 ∃ δ > 0: 0 < |x − a| < δ ⇒ |f(x) − L| < ε.

x approaches from both sides of a.

Right-hand limit

∀ ε > 0 ∃ δ > 0: 0 < x − a < δ ⇒ |f(x) − L| < ε.

Only x greater than a. E.g. lim √x = 0 as x → 0⁺, with δ = ε²: if 0 < x < ε², then √x < ε. With ε = 0.1, δ = 0.01.

Left-hand limit

∀ ε > 0 ∃ δ > 0: −δ < x − a < 0 ⇒ |f(x) − L| < ε.

Only x less than a. E.g. the step function has limit 0 as x → 0⁻ (any δ works, because left of 0 it is always 0) and limit 1 as x → 0⁺. The two-sided limit exists if and only if both one-sided limits exist and are equal; for the step function, they are not.

Limit at infinity

∀ ε > 0 ∃ N > 0: x > N ⇒ |f(x) − L| < ε.

δ becomes an N: “x near a” becomes “x large”. E.g. lim 1/x = 0 with N = 1/ε: if x > 1/ε, then 0 < 1/x < ε. With ε = 0.01, N = 100.

Infinite limit

∀ M > 0 ∃ δ > 0: 0 < |x − a| < δ ⇒ f(x) > M.

ε becomes a height M: the function goes past any height. E.g. lim 1/x² = +∞ as x → 0, with δ = 1/√M: if 0 < |x| < 1/√M, then x² < 1/M and 1/x² > M. With M = 10,000, δ = 0.01. Here the limit does not exist as a number; “= +∞” describes how it fails to exist.

What the definition says and what it does not

Quiz: three questions

1. For f(x) = 5x + 2, near a = 1, the limit is L = 7. With ε = 0.1, give a δ that works.

Show solution

|f(x) − 7| = |5x + 2 − 7| = |5x − 5| = 5|x − 1|. To stay below ε = 0.1, it is enough that |x − 1| < 0.1/5 = 0.02. Any δ with 0 < δ ≤ 0.02 works; the largest is 0.02.

2. Why can’t the order “∀ε ∃δ” be swapped for “∃δ ∀ε”?

3. Does f(a) need to exist for the limit at a to exist?

Exercises

1. Prove from the definition that lim (5 − 2x) = 3 as x → 1.

Show answer

Algebra: (5 − 2x) − 3 = 2 − 2x = −2(x − 1), so |(5 − 2x) − 3| = |−2| · |x − 1| = 2|x − 1|.

Choice: δ = ε/2, positive because ε > 0.

Check: if 0 < |x − 1| < ε/2, then |(5 − 2x) − 3| = 2|x − 1| < 2 · ε/2 = ε. ∎

2. For f(x) = x², near a = 2 (L = 4), what is the largest δ that works for ε = 0.41?

Show answer

The ideal δ is √(4 + ε) − 2 = √4.41 − 2 = 2.1 − 2 = 0.1 (2.1² = 4.41). Checking: the worse side is the right one, where x² − 4 gets close to δ² + 4δ = 0.01 + 0.4 = 0.41 = ε without reaching it, because x < 2 + δ. With δ larger than 0.1, x = 2.1 enters the band and gives |2.1² − 4| = 0.41, which is not less than ε.

In the simulator, the ideal δ for ε = 0.5 →

3. Using the definition of a limit at infinity, find an N for lim 1/x = 0 with ε = 0.001.

Show answer

For x > 0, |1/x − 0| = 1/x, and 1/x < ε when x > 1/ε. With ε = 0.001: N = 1/0.001 = 1,000 (any larger N works too). For example, x = 2,000 gives 1/x = 0.0005 < 0.001.

References

The limits and the general statements on this page, with the same hypotheses as the text, are proved in the Lean proof assistant (provas/Provas/LimiteFormal.lean, in the site’s repository): the definition on this page is equivalent to Mathlib’s; δ = ε/3 proves lim (3x − 1) = 5 and is the largest δ; the simulator’s criteria for x², for (x² − 4)/(x − 2) and for the step function; the step function has no limit at 0 for any L; a δ smaller than a valid one is also valid; the swapped version ∃δ ∀ε forces f to be constant on the band; the examples in the cards, the quiz and the exercises.