✖

Limit of a function

The limit of a function is one of the most important ideas in mathematical analysis. It describes how a function behaves near a particular point, which lets us define, for example, the continuity of a function. Limits help us understand how a function behaves even at places where it is not defined at all.

Neighbourhood of a point

We begin with the definition of an epsilon neighbourhood of a point in the set of real numbers. Let r ∈ ℝ. Then for ϵ > 0 the epsilon neighbourhood of this point is the open interval (r − ϵ, r + ϵ). The punctured epsilon neighbourhood is the same, except that it does not contain the point r. The punctured neighbourhood is (r − ϵ, r) ∪ (r, r + ϵ). We write the epsilon neighbourhood of a point a as U(a, ϵ) and the punctured neighbourhood as R(a, ϵ).

As an example, take the number five and its 2-neighbourhood. We are working out U(5, 2), which is the interval (5 − 2, 5 + 2) = (3, 7). The punctured neighbourhood would be R(5, 2) = (3, 5) ∪ (5, 7). It is the same neighbourhood, just without the point five. Here is the 2-neighbourhood of the point 5 drawn on a number line:

2-neighbourhood of the point 5

The punctured 2-neighbourhood would look the same, but without the blue point 5.

Accumulation point

Next we need the definition of an accumulation point of a set. An element a ∈ ℝ is an accumulation point of a set M ⊆ ℝ if every punctured neighbourhood of it, however small, contains some point of M. More precisely:

∀ϵ>0:R(a,ϵ)∩M≠∅

Examples: every real number is an accumulation point of the set of real numbers. If we choose the number 10, then in any punctured neighbourhood of this point we can always find a real number. For ϵ=1100 we get the punctured neighbourhood (9.99, 10) ∪ (10, 10.01). Both intervals contain some real number – in fact they contain infinitely many real numbers. So however small an ϵ we take, we always get intervals containing infinitely many real numbers.

If we took the set of positive integers as M, we would not find any accumulation point. For example, the number 12 is not an accumulation point, because for ϵ=110 we get the intervals (0.4, 0.5) ∪ (0.5, 0.6), and neither of them contains a positive integer.

Motivation for limits

We start with the easiest definition – a finite limit at a finite point. First let’s see what we actually want to work out. Look at the following graph of the sign function:

Graph of the function sgn(x)

Take the point x1 = 3. The value of the function at this point is 1, so sgn(3) = 1. The function also has the value 1 at all “nearby” points, for example sgn(2.5) = 1 and sgn(3.5) = 1. If we approach the point x1 = 3 from the left or from the right, the function values are always equal to one.

But if we take the point x2 = 0, then sgn(0) = 0, yet all the surrounding points have a different function value! For example sgn(−12)=−1 and sgn(12)=1. The function values from the right get close to 1, while the function values from the left get close to −1. And at the point x2 = 0 itself we get the function value 0. Sneaky. The values that the function approaches near a point are called the limits of the function at that point.

Definition of a finite limit at a finite point

Let f be a function and let x0 ∈ ℝ be an accumulation point of its domain dom(f). Then we say that L ∈ ℝ is the limit of the function f at the point x0 if

(∀ϵ>0)(∃δ>0)(∀x∈dom(f))(0<|x−x0|<δ⇒|f(x)−L|<ϵ).

Now let’s see what this definition means. A finite point here means that the point is a real number. Later we will talk about limits at points at infinity. Let’s try to work out this limit:

limx→3x3=?.

For simple functions like this, the limit of the function at the point x0 is equal to the function value at that point, f(x0). Later we will define exactly what a “simple function” is. Now let’s draw everything in a picture:

Graph of the function f(x)=\frac{x}{3}

The black line is the graph of the function f(x)=x3, the red point x0 is the point where we are looking for the limit, and the green point L is the resulting limit. Notice that we show the limit on the y-axis.

Let’s follow the definition. At the beginning of the definition we have (∀ϵ > 0), and ϵ is used later in |f(x) − L|<ϵ – this is the mathematical way of saying that we want all the values f(x) to be less than ϵ away from L. So we are looking for the ϵ-neighbourhood of the point L on the y-axis. According to the definition we can choose any ϵ > 0; let’s choose ϵ=310. We find the points on the y-axis that are exactly ϵ away from the point L:

The highlighted \epsilon-neighbourhood of the point L

All the points on the y-axis between these green lines are in the ϵ-neighbourhood of the point L. These are the points the definition talks about.

The definition continues with (∃δ>0), which is then used in the expression 0<|x − x0|<δ. We are saying that the difference x − x0 should be less than δ. Since x, x0 lie on the x-axis, we will show the value of δ on the x-axis too. The expression 0<|x − x0|<δ again tells us to take all the x that are less than δ away from x0, but at the same time more than zero away, that is x ≠ x0. This means that this expression describes the punctured δ-neighbourhood of the point x0. So we can rewrite the definition equivalently using neighbourhoods of points:

(∀ϵ>0)(∃δ>0)(∀x∈dom(f))(x∈R(x0,δ)⇒f(x)∈U(L,ϵ))

Let’s go back to the previous definition and continue drawing the picture. To illustrate it, we need the next part of the definition:

0<|x−x0|<δ⇒|f(x)−L|<ϵ

So for all x in the punctured δ-neighbourhood of the point x0, some condition must hold. Let’s add the punctured δ-neighbourhood of the point x0 to the picture, for example for δ=32:

The highlighted \delta-neighbourhood of the point x_0

All the x between the red dashed lines belong to the δ-neighbourhood of x0, except the point x0 itself. Let’s look at the condition again:

0<|x−x0|<δ⇒|f(x)−L|<ϵ

For all x in the punctured δ-neighbourhood of the point x0, all the function values f(x) must lie in the ϵ-neighbourhood of the point L. So we take all the x from the punctured δ-neighbourhood of the point x0 and work out the function values. In the next picture these function values are shown as a blue line segment:

Function values from the punctured \delta-neighbourhood of the point x_0

The point x0 is not in the punctured neighbourhood, which is why there is a hollow circle at that place. The definition tells us that all these blue points must lie in the ϵ-neighbourhood of the point L. In terms of the colours in the picture: all the blue points must lie between the green lines, which show the ϵ-neighbourhood. Is that true?

Of course not: for example, for x=1610 we clearly get a blue point that is not between the green lines, that is, not in the ϵ-neighbourhood of the point L.

That doesn’t matter, though. The definition says that for every ϵ-neighbourhood of the point L there must exist some δ-neighbourhood such that … the rest of the condition holds. That means we only need one such δ-neighbourhood to exist. δ=32 was clearly not a good choice, but we can try a different δ, for example δ=12. The picture would change like this:

Changing the \delta-neighbourhood

Again we check whether all the function values for all x in the punctured δ-neighbourhood of the point x0 lie in the ϵ-neighbourhood of the point L. In short: are all the blue points between the green lines? Yes, now they are – hooray.

Does that mean that L is the limit of the function at the point x0? Not necessarily, because the definition says (∀ϵ > 0) …. So far we have checked the definition for one particular ϵ, and there are still … infinitely many left.

In other words, to really show that limx→3x3=1, we would have to find, for every ϵ-neighbourhood, some δ-neighbourhood for which the previous condition holds. From the picture we can see that we can always find such a δ-neighbourhood. For example, if we reduce ϵ to ϵ=110, then we can reduce δ to δ=210 and it will work:

Changing the \epsilon-neighbourhood and the corresponding change to the \delta-neighbourhood

However small we make ϵ, we must always be able to find a δ such that all the function values end up in the ϵ-neighbourhood of the limit L.

Proof of a finite limit at a finite point

Let’s try to actually prove the previous limit. From the picture we already know that probably

limx→3x3=1,

and now we will try to prove it mathematically. From the picture we might guess that if we always take δ to be the same value as ϵ, it could work. So let δ = ϵ. We now have to prove

L−ϵ<f(x)<L+ϵ,for allx∈(x0−δ,x0)∪(x0,x0+δ)

Since we set δ = ϵ, we change every δ to ϵ:

L−ϵ<f(x)<L+ϵ,for allx∈(x0−ϵ,x0)∪(x0,x0+ϵ)

We substitute 1 for L and 3 for x0:

1−ϵ<f(x)<1+ϵ,for allx∈(3−ϵ,3)∪(3,3+ϵ)

Now we should prove all the inequalities. Since the function x3 is increasing, it is enough to check the endpoints 3 − ϵ and 3 + ϵ. We start with 3 − ϵ – we substitute the value 3 − ϵ into the function x3 and show that this value always satisfies the inequalities 1 − ϵ < f(x) < 1 + ϵ:

1−ϵ<f(x)<1+ϵ1−ϵ<x3<1+ϵ1−ϵ<3−ϵ3<1+ϵ1−ϵ<33−ϵ3<1+ϵ1−ϵ<1−ϵ3<1+ϵ−ϵ<−ϵ3<ϵ

The same with 3 + ϵ:

1−ϵ<f(x)<1+ϵ1−ϵ<x3<1+ϵ1−ϵ<3+ϵ3<1+ϵ1−ϵ<33+ϵ3<1+ϵ1−ϵ<1+ϵ3<1+ϵ−ϵ<ϵ3<ϵ

A wrongly chosen limit

Now let’s sketch what would happen if we thought that the limit of the function as x tends to three was one half. We would choose some small epsilon neighbourhood:

A wrongly chosen limit

At this point we can no longer find a delta neighbourhood of the point x0 whose function values would all fit between these green lines. We can see that for the chosen δ-neighbourhood all the blue points are outside the green lines. If we made the δ-neighbourhood bigger, we would only increase the number of blue points that we cannot get between the green lines.

The limit of the sign function

The sign function is a beautiful function that will probably tie your head in knots. Here is the graph:

Graph of the function f(x)=sgn(x)

The graph is not entirely clear, so here it is in words: if x is negative, then the sign function is minus one; if it is positive, it is plus one; and if x is zero, then the sign function is zero too. We modify the graph using the absolute value, f(x) = |sgn(x)|, and we get |sgn(0)| = 0 and |sgn(x)| = 1 in all other cases. The graph:

Graph of the function f(x)=|sgn(x)|

The question is, what is this limit equal to?

limx→0|sgn(x)|=?

The function is defined at zero and the function value is also zero. However, that doesn’t tell us that the limit will also be zero. A limit can differ from the function value at that point.

The only way to choose the limit so that the definition works is to choose the limit to be one. We can also use intuition: what does the function value approach as x approaches zero from the left? It keeps approaching one. It doesn’t bother us that it finally jumps to zero. The same goes for x approaching zero from the right.

limx→0|sgn(x)|=1

If we left the function in its original form, f(x) = sgn(x), then the function would not have a limit at zero; it would have two different one-sided limits. From the left the function approaches minus one and from the right plus one. You can try to prove this from the definition.

Limits that do not exist

Let’s look at a few more examples where limits do not exist.

The simplest example of a limit not existing is working out a limit at a point that is not an accumulation point of the domain of f. So, for example, this limit does not exist:

limx→−1ln⁡x

The graph:

Graph of the function f(x)=\ln(x)

Periodic functions often have no limit at infinity (though not all of them!). Typical examples are trigonometric functions such as sine. The graph:

Graph of the function f(x)=\sin(x)

The limit at infinity simply does not exist: the value of sine keeps oscillating between one and minus one, so the limit cannot be worked out.

Chapters: Limit of a function, Infinite limit at a finite point, Finite limit at infinity, Infinite limit at infinity, One-sided limit, L’Hôpital’s rule