lesson

Limits · Foundational

The Formal Definition of a Limit

Replace the intuitive language of approaching with the epsilon-delta definition of a limit and use it to construct rigorous proofs.

Learning objectives

By the end of this lesson, you should be able to:

  • state the epsilon-delta definition of a finite limit;
  • explain the roles of ε\varepsilon and δ\delta;
  • interpret the quantifiers “for every” and “there exists”;
  • translate the absolute-value inequalities in the definition into intervals;
  • explain why the condition 0<xa0<|x-a| excludes the value x=ax=a;
  • determine a suitable δ\delta for a given ε\varepsilon;
  • distinguish the process of discovering a proof from the presentation of the proof; and
  • construct epsilon-delta proofs for elementary limits.

We developed the idea of a limit using tables, graphs, and formulas in the first lesson on limits. In the previous lesson, we made the direction of approach explicit and used one-sided limits to determine whether a two-sided limit exists.

Those ideas are useful, but phrases such as “approaches,” “gets closer to,” and “trends toward” are descriptions, not definitions.

We are now ready to replace that informal language with the formal mathematical definition of a limit.

The formal definition

In symbols,

ε>0, δ>0 such that 0<xa<δf(x)L<ε.\boxed{ \forall\varepsilon>0,\ \exists\delta>0 \text{ such that } 0<|x-a|<\delta \Longrightarrow |f(x)-L|<\varepsilon. }

Every part of this statement matters.

Understanding epsilon

The quantity

f(x)L|f(x)-L|

measures the distance between the output f(x)f(x) and the proposed limiting value LL.

Therefore, f(x)L<ε|f(x)-L|<\varepsilon

means that f(x)f(x) must lie within a distance ε\varepsilon of LL.

Equivalently,

Lε<f(x)<L+ε.L-\varepsilon<f(x)<L+\varepsilon.

The number ε\varepsilon specifies the required output tolerance.

The definition begins with

ε>0.\forall\varepsilon>0.

That means the requirement must work for every positive tolerance, no matter how small.

We do not get to choose a convenient ε\varepsilon. The definition requires us to respond successfully to any positive ε\varepsilon that is given.

Understanding delta

The quantity

xa|x-a|

measures the distance between the input xx and the target input aa.

Thus, xa<δ|x-a|<\delta

means

aδ<x<a+δ.a-\delta<x<a+\delta.

The number δ\delta specifies an input tolerance around aa.

The purpose of an epsilon-delta proof is to show that, for any requested output tolerance ε\varepsilon, we can choose an input tolerance δ\delta that guarantees the desired output condition.

The figure below shows this relationship. The vertical region represents inputs within δ\delta of aa, while the horizontal band represents outputs within ε\varepsilon of LL.

Graph illustrating an epsilon-delta limit, with a vertical delta-neighborhood around a and a horizontal epsilon-band around L.

The mathematical claim is that we can make the output band as narrow as we wish and still find a sufficiently narrow input interval that keeps the function inside it.

Why the target point is excluded

The definition does not say merely

xa<δ.|x-a|<\delta.

It says

0<xa<δ.0<|x-a|<\delta.

The inequality

0<xa0<|x-a|

means

xa.x\neq a.

This exclusion is deliberate. A limit describes the trend of a function near aa; it does not require the function to have any particular value at aa itself.

This is why a limit may exist even when f(a)f(a) is undefined, as we saw with removable discontinuities in the first lesson on limits.

The order of the quantifiers matters

The formal definition says

ε>0, δ>0.\forall\varepsilon>0,\ \exists\delta>0.

In words:

For every positive ε\varepsilon, there exists a positive δ\delta that works.

The choice of δ\delta may depend on ε\varepsilon.

That is not what the definition requires.

A useful way to think about the logical order is:

  1. An output tolerance ε>0\varepsilon>0 is specified.

  2. We choose a suitable input tolerance δ>0\delta>0.

  3. We assume an input satisfies

    0<xa<δ.0<|x-a|<\delta.
  4. We prove that this guarantees

    f(x)L<ε.|f(x)-L|<\varepsilon.

The proof must work for an arbitrary positive ε\varepsilon.

First proof: a linear function

Prove that

limx2(3x+1)=7.\boxed{ \lim_{x\to2}(3x+1)=7. }

Discovering the input tolerance

We want to guarantee

(3x+1)7<ε.|(3x+1)-7|<\varepsilon.

Simplify the left side:

(3x+1)7=3x6=3(x2)=3x2.\begin{aligned} |(3x+1)-7| &= |3x-6| \\ &= |3(x-2)| \\ &= 3|x-2|. \end{aligned}

Therefore, it is sufficient to require

3x2<ε.3|x-2|<\varepsilon.

Dividing by 33 gives

x2<ε3.|x-2|<\frac{\varepsilon}{3}.

This suggests the choice

δ=ε3.\boxed{ \delta=\frac{\varepsilon}{3}. }

That backward work discovers the value of δ\delta. It is not yet the formal proof.

Presenting the proof

Let ε>0\varepsilon>0 be arbitrary.

Choose

δ=ε3.\delta=\frac{\varepsilon}{3}.

Suppose

0<x2<δ.0<|x-2|<\delta.

Then

(3x+1)7=3x2<3δ=3(ε3)=ε.\begin{aligned} |(3x+1)-7| &= 3|x-2| \\ &< 3\delta \\ &= 3\left(\frac{\varepsilon}{3}\right) \\ &= \varepsilon. \end{aligned}

Therefore,

0<x2<δ(3x+1)7<ε.0<|x-2|<\delta \Longrightarrow |(3x+1)-7|<\varepsilon.

Since this works for every ε>0\varepsilon>0, the formal definition gives

limx2(3x+1)=7.\boxed{ \lim_{x\to2}(3x+1)=7. }

A general linear limit

The same reasoning proves a stronger result.

Suppose

f(x)=mx+b.f(x)=mx+b.

We claim

limxa(mx+b)=ma+b.\boxed{ \lim_{x\to a}(mx+b)=ma+b. }

For m0m\neq0,

(mx+b)(ma+b)=mxma=m(xa)=mxa.\begin{aligned} |(mx+b)-(ma+b)| &= |mx-ma| \\ &= |m(x-a)| \\ &= |m||x-a|. \end{aligned}

To make this less than ε\varepsilon, it is sufficient to require

xa<εm.|x-a|<\frac{\varepsilon}{|m|}.

So choose

δ=εm.\delta=\frac{\varepsilon}{|m|}.

Then 0<xa<δ0<|x-a|<\delta

implies

(mx+b)(ma+b)=mxa<mδ=mεm=ε.\begin{aligned} |(mx+b)-(ma+b)| &= |m||x-a| \\ &< |m|\delta \\ &= |m|\frac{\varepsilon}{|m|} \\ &= \varepsilon. \end{aligned}

Therefore,

limxa(mx+b)=ma+b.\boxed{ \lim_{x\to a}(mx+b)=ma+b. }

If m=0m=0, the function is constant and the result follows immediately.

This proof establishes an entire family of limits rather than calculating only one example.

A more difficult proof: a quadratic function

Linear functions are unusually convenient because

f(x)L|f(x)-L|

reduces directly to a constant multiple of xa|x-a|.

For nonlinear functions, another bound may be necessary.

We want to prove

limx2x2=4.\boxed{ \lim_{x\to2}x^2=4. }

Begin with the required output condition:

x24<ε.|x^2-4|<\varepsilon.

Factor:

x24=x2x+2.|x^2-4| = |x-2||x+2|.

We can control x2|x-2| using δ\delta, but x+2|x+2| also depends on xx.

We therefore need to bound x+2|x+2|.

A convenient way to do this is to restrict xx to a fixed neighborhood around 22. We choose the simple condition x2<1|x-2|<1. The number 11 is not mathematically special; any sufficiently small fixed positive bound could be used. Choosing 11 is convenient because it immediately places xx between two simple values and gives an easy numerical bound for x+2|x+2|.

Suppose, then, that x2<1|x-2|<1. We obtain

x2<1,1<x2<1,1<x<3,3<x+2<5.\begin{aligned} |x-2| &< 1,\\ -1 &< x-2 < 1,\\ 1 &< x < 3,\\ 3 &< x+2 < 5. \end{aligned}

Thus x+2<5|x+2|<5. Therefore, under the restriction x2<1|x-2|<1,

x24=x2x+2<5x2.\begin{aligned} |x^2-4| &=|x-2||x+2|\\ &<5|x-2|. \end{aligned}

This bound is local: it has been established for inputs satisfying x2<1|x-2|<1. Under that restriction, to guarantee that x24<ε|x^2-4|<\varepsilon, it is sufficient to require x2<ε5|x-2|<\frac{\varepsilon}{5}. We therefore need both x2<1|x-2|<1 and x2<ε5|x-2|<\frac{\varepsilon}{5}, so choose

δ=min(1,ε5).\boxed{ \delta=\min\left(1,\frac{\varepsilon}{5}\right). }

Formal proof

Let ε>0\varepsilon>0 be arbitrary. Choose

δ=min(1,ε5).\delta=\min\left(1,\frac{\varepsilon}{5}\right).

Suppose

0<x2<δ.0<|x-2|<\delta.

Because δ1\delta\le1, we have

x2<1,|x-2|<1,

which implies

1<x<3,1<x<3,

and therefore

x+2<5.|x+2|<5.

Also, because δε5\delta\le\frac{\varepsilon}{5}, we have

x2<ε5.|x-2|<\frac{\varepsilon}{5}.

Because x2<1|x-2|<1 established the local bound x+2<5|x+2|<5, we may now write

x24=x2x+2<5x2<5(ε5)=ε.\begin{aligned} |x^2-4| &= |x-2||x+2| \\ &< 5|x-2| \\ &< 5\left(\frac{\varepsilon}{5}\right) \\ &= \varepsilon. \end{aligned}

Therefore,

0<x2<δx24<ε.0<|x-2|<\delta \Longrightarrow |x^2-4|<\varepsilon.

By the formal definition,

limx2x2=4.\boxed{ \lim_{x\to2}x^2=4. }

Choosing between multiple bounds

The previous proof required two restrictions. The condition

x2<1|x-2|<1

restricts xx to a neighborhood in which x+2<5|x+2|<5. Consequently, the estimate x24<5x2|x^2-4|<5|x-2| is valid within that neighborhood; it is not being asserted as a global inequality. Once this local bound is established, the condition

x2<ε5|x-2|<\frac{\varepsilon}{5}

is sufficient to guarantee

x24<ε,|x^2-4|<\varepsilon,

which places the function value within the specified output tolerance around the limit.

Choosing

δ=min(1,ε5)\delta=\min\left(1,\frac{\varepsilon}{5}\right)

guarantees both restrictions simultaneously.

This pattern occurs frequently in epsilon-delta proofs. One bound controls an inconvenient part of the expression, while another ensures that the function remains within the required ε\varepsilon-tolerance of the limit.

Proof development versus proof presentation

When constructing an epsilon-delta proof, it is often useful to begin with the desired inequality and work backward during scratch work to determine a suitable value of δ\delta.

During development, begin with the desired result:

f(x)L<ε|f(x)-L|<\varepsilon

and manipulate it until you determine what restriction on xa|x-a| would guarantee it.

That process suggests a suitable δ\delta.

Once a suitable δ\delta has been identified, the formal proof verifies that the choice satisfies the definition:

  1. Let ε>0\varepsilon>0.

  2. Choose the δ\delta discovered during the preliminary work.

  3. Assume

    0<xa<δ.0<|x-a|<\delta.
  4. Use that assumption to prove

    f(x)L<ε.|f(x)-L|<\varepsilon.
  5. Conclude that the limit follows from the formal definition.

Test Your Knowledge

For each proof problem, first perform enough scratch work to determine a suitable δ\delta. Then write a complete formal proof using the epsilon-delta definition.

1. Interpret the definition

Suppose

limx3f(x)=8.\lim_{x\to3}f(x)=8.

Explain in words what the statement

ε=0.1\varepsilon=0.1

requires the formal definition to guarantee.

Solution

The output must satisfy

f(x)8<0.1.|f(x)-8|<0.1.

Equivalently,

7.9<f(x)<8.1.7.9<f(x)<8.1.

The formal definition guarantees that there is some δ>0\delta>0 such that every domain value satisfying

0<x3<δ0<|x-3|<\delta

also satisfies

7.9<f(x)<8.1.7.9<f(x)<8.1.

2. Find an input tolerance for a specified output tolerance

For f(x)=3x+1f(x)=3x+1 and limx2f(x)=7\lim_{x\to2}f(x)=7, find a suitable δ\delta when ε=0.06\varepsilon=0.06.

Solution

We found earlier that

δ=ε3\delta=\frac{\varepsilon}{3}

works.

Therefore, δ=0.063=0.02.\delta=\frac{0.06}{3}=0.02.

If

0<x2<0.02,0<|x-2|<0.02,

then

(3x+1)7=3x2<3(0.02)=0.06.\begin{aligned} |(3x+1)-7| &=3|x-2|\\ &<3(0.02)\\ &=0.06. \end{aligned}

Thus, δ=0.02\boxed{\delta=0.02} is a suitable choice.

3. Prove a linear limit

Use the formal definition to prove

limx4(2x3)=5.\lim_{x\to4}(2x-3)=5.
Solution

Let ε>0\varepsilon>0.

We want

(2x3)5<ε.|(2x-3)-5|<\varepsilon.

Since

(2x3)5=2x8=2x4,|(2x-3)-5| = |2x-8| = 2|x-4|,

choose

δ=ε2.\delta=\frac{\varepsilon}{2}.

Suppose

0<x4<δ.0<|x-4|<\delta.

Then

(2x3)5=2x4<2δ=2(ε2)=ε.\begin{aligned} |(2x-3)-5| &= 2|x-4| \\ &< 2\delta \\ &= 2\left(\frac{\varepsilon}{2}\right) \\ &= \varepsilon. \end{aligned}

Therefore, by the formal definition,

limx4(2x3)=5.\boxed{ \lim_{x\to4}(2x-3)=5. }

4. Determine whether a proposed input tolerance works

A student wants to prove

limx1(5x+2)=7\lim_{x\to1}(5x+2)=7

and chooses

δ=ε.\delta=\varepsilon.

Does this choice guarantee the epsilon condition for every ε>0\varepsilon>0?

Solution

No.

We have

(5x+2)7=5x1.|(5x+2)-7| = 5|x-1|.

If we know only that

x1<ε,|x-1|<\varepsilon,

then we can conclude only that

(5x+2)7<5ε,|(5x+2)-7|<5\varepsilon,

not that it is less than ε\varepsilon.

A suitable choice is

δ=ε5.\boxed{ \delta=\frac{\varepsilon}{5}. }

Then x1<δ|x-1|<\delta

guarantees

(5x+2)7<5ε5=ε.|(5x+2)-7| < 5\frac{\varepsilon}{5} = \varepsilon.

5. Construct a quadratic proof

Use the formal definition to prove

limx1x2=1.\lim_{x\to1}x^2=1.
Solution

We need to control

x21=x1x+1.|x^2-1| = |x-1||x+1|.

We need a fixed bound on x+1|x+1|. Choose the convenient restriction x1<1|x-1|<1. The choice of 11 is not unique; it is used because it gives simple bounds on xx and therefore on x+1|x+1|.

From x1<1|x-1|<1, we have 0<x<20<x<2, so 1<x+1<31<x+1<3 and therefore x+1<3|x+1|<3.

Thus, under the restriction x1<1|x-1|<1,

x21<3x1.|x^2-1| < 3|x-1|.

Choose

δ=min(1,ε3).\delta=\min\left(1,\frac{\varepsilon}{3}\right).

Now suppose

0<x1<δ.0<|x-1|<\delta.

Because δ1\delta\le1, we have x1<1|x-1|<1, so the local bound x+1<3|x+1|<3 applies. Because δε3\delta\le\frac{\varepsilon}{3}, we also have x1<ε3|x-1|<\frac{\varepsilon}{3}. Therefore,

x21=x1x+1<3x1<3(ε3)=ε.\begin{aligned} |x^2-1| &= |x-1||x+1| \\ &< 3|x-1| \\ &< 3\left(\frac{\varepsilon}{3}\right) \\ &= \varepsilon. \end{aligned}

Hence,

limx1x2=1.\boxed{ \lim_{x\to1}x^2=1. }

6. Find the flaw in a proof

A student claims to have proved

limx2x2=4\lim_{x\to2}x^2=4

as follows:

Let ε>0\varepsilon>0. Choose δ=ε\delta=\varepsilon. If 0<x2<δ0<|x-2|<\delta, then

x24=x2x+2<ε.|x^2-4|=|x-2||x+2|<\varepsilon.

Therefore the limit is 44.

Identify the error.

Solution

The student correctly factors

x24=x2x+2,|x^2-4| = |x-2||x+2|,

but controls only the factor x2|x-2|.

From

x2<ε|x-2|<\varepsilon

we cannot conclude

x2x+2<ε|x-2||x+2|<\varepsilon

unless we also control x+2|x+2|.

For example, requiring

x2<1|x-2|<1

gives

x+2<5.|x+2|<5.

We can then choose

δ=min(1,ε5),\delta=\min\left(1,\frac{\varepsilon}{5}\right),

which controls both factors sufficiently to complete the proof.

7. Build the proof yourself

Use the formal definition to prove

limx3x2=9.\lim_{x\to3}x^2=9.

Determine a suitable δ\delta and write a complete epsilon-delta proof.

Solution

We begin with

x29=x3x+3.|x^2-9| = |x-3||x+3|.

We first need a fixed bound on x+3|x+3|. Choose the convenient restriction x3<1|x-3|<1. Again, the value 11 is not required; it is a simple choice that gives useful bounds on xx.

From x3<1|x-3|<1, we have 2<x<42<x<4, so 5<x+3<75<x+3<7 and therefore x+3<7|x+3|<7.

Thus, under the restriction x3<1|x-3|<1,

x29=x3x+3<7x3.|x^2-9| = |x-3||x+3| < 7|x-3|.

Under this restriction, to guarantee

x29<ε,|x^2-9|<\varepsilon,

it is sufficient to require

x3<ε7.|x-3|<\frac{\varepsilon}{7}.

Choose

δ=min(1,ε7).\delta=\min\left(1,\frac{\varepsilon}{7}\right).

Let ε>0\varepsilon>0 and suppose

0<x3<δ.0<|x-3|<\delta.

Because δ1\delta\le1, we have x3<1|x-3|<1, so the local bound x+3<7|x+3|<7 applies. Because δε7\delta\le\frac{\varepsilon}{7}, we also have x3<ε7|x-3|<\frac{\varepsilon}{7}. Therefore,

x29=x3x+3<7x3<7(ε7)=ε.\begin{aligned} |x^2-9| &= |x-3||x+3| \\ &< 7|x-3| \\ &< 7\left(\frac{\varepsilon}{7}\right) \\ &= \varepsilon. \end{aligned}

Therefore,

limx3x2=9.\boxed{ \lim_{x\to3}x^2=9. }

Knowledge Map

Where this lesson fits

Prerequisites

LimitsOne-Sided Limits and the Existence of a Limit

Next lessons

LimitsLimit Laws and Algebraic TechniquesLimitsThe Squeeze Theorem

Continue exploring

Connections

Related lessons

LimitsLimit Laws and Algebraic TechniquesLimitsEstimating Limits from Graphs, Tables, and FormulasOne-Sided LimitsOne-Sided Limits and the Existence of a Limit

Applications

  • rigorous limit proofs
  • continuity
  • limit laws