Evanalysis
5.3Embedded interactionEstimated reading time: 14 min

5.3 Delta-epsilon limits, limit laws, and continuity

Move from sequence limits to function limits, learn the delta-epsilon definition, and organize the first toolkit of nonexistence tests, limit laws, sequential criteria, and continuity.

Course contents

MATH1090: Set theory

Rigorous course notes on logic, sets, number construction, the real numbers, limits, cardinality, and the first algebraic structures, written in linked sections with careful proofs and examples.

Chapter 7Sets with structure1 sections

Chapter 5 now shifts from sequences to functions. The new difficulty is that a sequence approaches its limit through the discrete parameter n, while a function argument x can move toward a point a through infinitely many nearby real values from both sides.

This is why the δ\delta-ε\varepsilon definition is needed.

From sequence limits to function limits

In the previous chapter, the definition of

limnxn=L\lim_{n\to\infty}x_n=L

said that every small tolerance around LL can be achieved by going far enough out in the sequence.

For functions, we want an analogous sentence:

as x approaches a, the function value f(x) approaches LL.

But now “going far enough out” no longer makes sense. We need a new way to say that x is close enough to a. That role is played by δ\delta.

Open intervals and punctured domains

First specify the kind of domains involved.

Definition

Open interval

An open interval is a subset of RR of one of the forms

(b,c)={xRb<x<c},(b,c)=\{x\in R\mid b<x<c\},(,c)={xRx<c},(-\infty,c)=\{x\in R\mid x<c\},(b,)={xRb<x},(b,\infty)=\{x\in R\mid b<x\},

where b,cRb,c\in R and b<cb<c.

To define a limit at a point a, consider functions defined on an open interval with the point a removed. That removal is important: a limit is about what happens near a, not necessarily what happens at a.

The formal delta-epsilon definition

Definition

Limit of a function at a point

Suppose II is an open interval containing aRa\in R, and let f:I{a}Rf:I\setminus\{a\}\to R. We say

limxaf(x)=L\lim_{x\to a}f(x)=L

if and only if for every ε>0\varepsilon>0, there exists δ>0\delta>0 such that

0<xa<δ    f(x)L<ε.0<|x-a|<\delta \implies |f(x)-L|<\varepsilon.

Read the implication carefully:

  • 0<xa<δ0<|x-a|<\delta means x is close to a, but not equal to a;
  • f(x)L<ε|f(x)-L|<\varepsilon means the function value lands inside the ε\varepsilon-band around LL.

So the definition says:

every requested output accuracy ε\varepsilon can be guaranteed by forcing the input x into a sufficiently small punctured neighborhood of a.

Common mistake

The limit definition ignores the value at a

The condition 0<xa0<|x-a| removes the point a itself. So f(a) may be undefined, or may differ from LL, while the limit still exists.

First example: limx3(2x+1)=7\lim_{x\to 3}(2x+1)=7

The basic linear test case is the function f(x)=2x+3f(x)=2x+3 at a=1a=1.

Worked example

Choosing \delta=\varepsilon/2

Let f(x)=2x+1f(x)=2x+1, a=3a=3, and L=7L=7. Then

f(x)7=(2x+1)7=2x6=2x3.|f(x)-7| = |(2x+1)-7| = |2x-6| = 2|x-3|.

So in order to force f(x)7<ε|f(x)-7|<\varepsilon, it is enough to make

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

Therefore choose

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

Then whenever 0<x3<δ0<|x-3|<\delta,

f(x)7=2x3<2δ=2ε2=ε.|f(x)-7|=2|x-3|<2\delta=2\cdot \frac{\varepsilon}{2}=\varepsilon.

Hence

limx3(2x+1)=7.\lim_{x\to 3}(2x+1)=7.

This example shows the standard proof pattern:

  1. start with f(x)L|f(x)-L|,
  2. simplify it into an expression involving xa|x-a|,
  3. choose δ\delta to make that expression smaller than ε\varepsilon.

Two more basic examples

Worked example

Constant functions

If f(x)=cf(x)=c for all x, then

f(x)c=cc=0<ε|f(x)-c|=|c-c|=0<\varepsilon

for every ε>0\varepsilon>0 and every x.

So any positive number can be chosen as δ\delta, and

limxac=c.\lim_{x\to a}c=c.

Worked example

A function with a hole

Consider

f:(0,){2}R,f(x)=x24x2.f:(0,\infty)\setminus\{2\}\to R,\qquad f(x)=\frac{x^2-4}{x-2}.

The formula is undefined at x=2x=2, but for x2x\ne 2 it simplifies to

f(x)=x+2.f(x)=x+2.

So near x=2x=2,

f(x)4=(x+2)4=x2.|f(x)-4|=|(x+2)-4|=|x-2|.

Therefore choosing δ=ε\delta=\varepsilon works. If 0<x2<δ0<|x-2|<\delta, then

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

Hence

limx2x24x2=4,\lim_{x\to 2}\frac{x^2-4}{x-2}=4,

even though f(2) is not defined.

A delta-neighbourhood mapped into an epsilon-band

Figure. The δ\delta-ε\varepsilon definition links an input neighborhood of a to an output band around LL. The proof task is to choose δ\delta so that this implication always succeeds.

Explore the definition interactively

The explorer below lets you choose one of the examples, select ε\varepsilon, and test sample inputs x. The point is to see the implication

0<xa<δ    f(x)L<ε0<|x-a|<\delta \implies |f(x)-L|<\varepsilon

as a relationship between an input strip and an output band.

Read and try

Check one delta-epsilon implication geometrically

The explorer links the x-side delta-condition and the y-side epsilon-condition so readers can see the formal implication as two coordinated geometric tests.

0 < |x - a| < δ, with δ = 0.25

3

x = 2.8

|f(x) - L| < ε, with ε = 0.5

7

f(x) = 6.6

0 < |x - a| < δ

|2.8 - 3| = 0.2

The chosen x really lies inside the delta-neighbourhood.

|f(x) - L| < ε

|6.6 - 7| = 0.4

The function value lands inside the epsilon-band around L.

How limits can fail to exist

Next, consider how to show that a proposed limit does not exist.

To prove limxaf(x)L\lim_{x\to a}f(x)\ne L, one must find a single ε>0\varepsilon>0 such that no matter how small δ\delta is chosen, some point x with 0<xa<δ0<|x-a|<\delta still satisfies

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

Example 22 uses

f(x)=xx,f(x)=\frac{|x|}{x},

which equals 1 for x>0x>0 and 1-1 for x<0x<0.

Worked example

Why |x|/x has no limit at 0

Take ε=1\varepsilon=1. For any δ>0\delta>0, choose

x1=δ2>0,x2=δ2<0.x_1=\frac{\delta}{2}>0, \qquad x_2=-\frac{\delta}{2}<0.

Then both satisfy xi<δ|x_i|<\delta, but

f(x1)=1,f(x2)=1.f(x_1)=1,\qquad f(x_2)=-1.

No single real number LL can lie within distance 1 of both 1 and 1-1. Therefore the function has no limit at 0.

This example captures a common failure mode: left-hand and right-hand behavior do not agree.

Algebra of limits

Once some basic limits are known, limit laws show how to build new ones from old ones.

Theorem

Limit laws

If limxaf(x)=L\lim_{x\to a}f(x)=L and limxag(x)=M\lim_{x\to a}g(x)=M, then:

  • limxa(f(x)+g(x))=L+M\lim_{x\to a}(f(x)+g(x))=L+M,
  • limxa(f(x)g(x))=LM\lim_{x\to a}(f(x)g(x))=LM,
  • if M0M\ne 0, then
limxaf(x)g(x)=LM.\lim_{x\to a}\frac{f(x)}{g(x)}=\frac{L}{M}.

The proof of the sum law is the cleanest illustration: split the allowed error ε\varepsilon into two halves and use the triangle inequality,

f(x)+g(x)(L+M)f(x)L+g(x)M.|f(x)+g(x)-(L+M)|\le |f(x)-L|+|g(x)-M|.

The product law needs one extra idea: before estimating the product error, one must first show that |f(x)| stays bounded near a.

Worked example

Using the sum law

Consider f(x)=2x+1f(x)=2x+1 and g(x)=xg(x)=\sqrt{x} near x=4x=4. Once the basic limits

limx4(2x+1)=9,limx4x=2\lim_{x\to 4}(2x+1)=9, \qquad \lim_{x\to 4}\sqrt{x}=2

are known, the sum law gives

limx4((2x+1)+x)=9+2=11.\lim_{x\to 4}\bigl((2x+1)+\sqrt{x}\bigr)=9+2=11.

The sequential characterization

The sequential criterion connects function limits back to sequence limits.

Theorem

Sequential characterization of function limits

Let f:I{a}Rf:I\setminus\{a\}\to R. Then

limxaf(x)=L\lim_{x\to a}f(x)=L

if and only if for every sequence (xn)(x_n) with xnI{a}x_n\in I\setminus\{a\} for all n and xnax_n\to a, we have

limnf(xn)=L.\lim_{n\to\infty}f(x_n)=L.

This theorem is extremely useful because it gives two complementary methods:

  1. to prove a limit exists, check every sequence approaching a;
  2. to prove a limit does not exist, find two sequences approaching a that give incompatible output behavior.

Example 25 applies this idea to f(x)=\sin(1/x) near 0.

Worked example

Two sequences proving that \sin(1/x) has no limit at 0

Take

xn=12πn,yn=12πn+π/2.x_n=\frac{1}{2\pi n}, \qquad y_n=\frac{1}{2\pi n+\pi/2}.

Then xn0x_n\to 0 and yn0y_n\to 0, but

f(xn)=sin(2πn)=00,f(x_n)=\sin(2\pi n)=0\to 0,

while

f(yn)=sin(2πn+π/2)=11.f(y_n)=\sin(2\pi n+\pi/2)=1\to 1.

Since two sequences approaching the same point produce different limiting function values, \lim_{x\to 0}\sin(1/x) does not exist.

Continuity

One of the main purposes of limits is to make the idea of continuity precise.

Definition

Continuity at a point

Let f:IRf:I\to R and aIa\in I. The function f is continuous at a if

limxaf(x)=f(a).\lim_{x\to a}f(x)=f(a).

Equivalently, in ε\varepsilon-δ\delta language:

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

Notice what changed: the condition 0<xa0<|x-a| disappeared. Continuity really does care about the function value at the point.

A standard discontinuous example is:

f(x)={0,x0,1,x=0.f(x)= \begin{cases} 0,& x\ne 0,\\ 1,& x=0. \end{cases}

Here the nearby values are all 0, so the limit near 0 is not f(0)=1f(0)=1. Therefore the function is discontinuous at 0.

Common mistake

A function can have a limit at a without being defined at a

The hole example shows this clearly. Limits are about nearby values. Continuity adds the extra requirement that the function is defined at the point and that its value agrees with the limit.

Quick checks

Quick check

Why does the function-limit definition use 0<xa<δ0 < |x-a| < \delta instead of only xa<δ|x-a| < \delta?

Think about whether the value at a should matter for the limit.

Solution

Answer

Quick check

For the proof that limx3(2x+1)=7\lim_{x\to 3}(2x+1)=7, what choice of delta works for a given epsilon?

Use the identity f(x)7=2x3|f(x)-7|=2|x-3|.

Solution

Answer

Quick check

Why can x24x2\frac{x^2-4}{x-2} have a limit at x=2x=2 even though the formula is undefined there?

Recall what the limit definition does and does not inspect.

Solution

Answer

Exercises

Quick check

Prove that limx4x=2\lim_{x\to 4}\sqrt{x}=2.

Rationalize x2|\sqrt{x}-2| and also keep x near 4 so the denominator stays away from zero.

Solution

Guided solution

Quick check

Use the sequential characterization to show again that \lim_{x\to 0}\sin(1/x) does not exist.

You only need two carefully chosen sequences.

Solution

Guided solution

Quick check

What extra condition must be added to ‘the limit of f(x) as x approaches a exists’ in order to conclude that f is continuous at a?

Compare the definitions of limit and continuity.

Solution

Guided solution

Read this after 5.1 Sequences and epsilon-N limits and 5.2 Cauchy sequences and another model of the reals. For the order-theoretic background behind completeness, see 4.3 Completeness and gaps in Q.

Key terms in this unit