# Calculus/Formal Definition of the Limit

 ← Continuity Calculus Proofs of Some Basic Limit Rules → Formal Definition of the Limit

Whenever a point x is within δ units of c, f(x) is within ε units of L.

In preliminary calculus, the concept of a limit is probably the most difficult one to grasp (after all, it took mathematicians 150 years to arrive at it); it is also the most important and most useful.

The intuitive definition of a limit is inadequate to prove anything rigorously about it. The problem lies in the vague term "arbitrarily close". We discussed earlier that the meaning of this term is that the closer $x$ gets to the specified value, the closer the function must get to the limit, so that however close we want the function to the limit, we can accomplish this by making $x$ sufficiently close to our value. We can express this requirement technically as follows:

Definition: (Formal definition of a limit)

Let $f(x)$ be a function defined on an open interval $D$ that contains $c$, except possibly at $x=c$. Let $L$ be a number. Then we say that

$\lim_{x \to c} f(x) = L$

if, for every $\varepsilon>0$, there exists a $\delta>0$ such that for all $x\in D$ with

$0 < \left| x - c \right| < \delta,$

we have

$\left| f(x) - L \right| < \varepsilon$.

To further explain, earlier we said that "however close we want the function to the limit, we can find a corresponding $x$ close to our value." Using our new notation of epsilon ($\varepsilon$) and delta ($\delta$), we mean that if we want to make $f(x)$ within $\varepsilon$ of $L$, the limit, then we know that making $x$ within $\delta$ of $c$ puts it there.

Again, since this is tricky, let's resume our example from before: $f(x)=x^2$, at $x=2$. To start, let's say we want $f(x)$ to be within .01 of the limit. We know by now that the limit should be 4, so we say: for $\varepsilon=.01$, there is some $\delta$ so that as long as $0 < \left| x - c \right| < \delta$, then $\left| f(x) - L \right| < \varepsilon.$

To show this, we can pick any $\delta$ that is bigger than 0, so long as it works. For example, you might pick $.00000000000001$, because you are absolutely sure that if $x$ is within .00000000000001 of 2, then $f(x)$ will be within .01 of 4. This $\delta$ works for $\varepsilon=.01$. But we can't just pick a specific value for $\varepsilon$, like .01, because we said in our definition "for every $\varepsilon>0$." This means that we need to be able to show an infinite number of $\delta$s, one for each $\varepsilon$. We can't list an infinite number of $\delta$s!

Of course, we know of a very good way to do this; we simply create a function, so that for every $\varepsilon$, it can give us a $\delta$. In this case, one definition of $\delta$ that works is $\delta(\varepsilon)=\left\{\begin{matrix}2\sqrt2-2,&\mbox{if }\epsilon\geq4\\\sqrt{\epsilon+4}-2,&\mbox{if }\epsilon<4\end{matrix}\right.$ (see example 5 in choosing delta for an explanation of how this delta was chosen.)

So, in general, how do you show that $f(x)$ tends to $L$ as $x$ tends to $c$? Well imagine somebody gave you a small number $\varepsilon$ (e.g., say $\varepsilon=0.03$). Then you have to find a $\delta>0$ and show that whenever $0<\left|x-c\right|<\delta$ we have $|f(x)-L|<0.03$. Now if that person gave you a smaller $\varepsilon$ (say $\varepsilon=0.002$) then you would have to find another $\delta$, but this time with 0.03 replaced by 0.002. If you can do this for any choice of $\varepsilon$ then you have shown that $f(x)$ tends to $L$ as $x$ tends to $c$. Of course, the way you would do this in general would be to create a function giving you a $\delta$ for every $\varepsilon$, just as in the example above.

## Formal Definition of the Limit at Infinity

Definition: (Limit of a function at infinity)

We call $L$ the limit of $f(x)$ as $x$ approaches $\infty$ if for every number $\varepsilon>0$ there exists a $\delta$ such that whenever $x>\delta$ we have

$\left| f(x) - L \right| < \varepsilon$

When this holds we write

$\lim_{x \to \infty} f(x) = L$

or

$f(x) \to L$ as $x \to \infty.$

Similarly, we call $L$ the limit of $f(x)$ as $x$ approaches $-\infty$ if for every number $\varepsilon>0$, there exists a number $\delta$ such that whenever $x<\delta$ we have

$\left| f(x) - L \right| < \varepsilon$

When this holds we write

$\lim_{x \to -\infty} f(x) = L$

or

$f(x) \to L$ as $x\to -\infty.$

Notice the difference in these two definitions. For the limit of $f(x)$ as $x$ approaches $\infty$ we are interested in those $x$ such that $x>\delta$. For the limit of $f(x)$ as $x$ approaches $-\infty$ we are interested in those $x$ such that $x<\delta$.

## Examples

Here are some examples of the formal definition.

Example 1

We know from earlier in the chapter that

$\lim_{x \to 8} \frac {x} {4}=2$.

What is $\delta$ when $\varepsilon=0.01$ for this limit?

We start with the desired conclusion and substitute the given values for $f(x)$ and $\varepsilon$:

$\left| \frac {x} {4} - 2 \right| < 0.01$.

Then we solve the inequality for $x$:

$7.96

This is the same as saying

$-0.04.

(We want the thing in the middle of the inequality to be $x-8$ because that's where we're taking the limit.) We normally choose the smaller of $\left|-0.04\right|$ and $0.04$ for $\delta$, so $\delta=0.04$, but any smaller number will also work.

Example 2

What is the limit of $f(x) = x + 7$ as $x$ approaches 4?

There are two steps to answering such a question; first we must determine the answer — this is where intuition and guessing is useful, as well as the informal definition of a limit — and then we must prove that the answer is right.

In this case, 11 is the limit because we know $f(x) = x + 7$ is a continuous function whose domain is all real numbers. Thus, we can find the limit by just substituting 4 in for $x$, so the answer is $4+7=11$.

We're not done, though, because we never proved any of the limit laws rigorously; we just stated them. In fact, we couldn't have proved them, because we didn't have the formal definition of the limit yet, Therefore, in order to be sure that 11 is the right answer, we need to prove that no matter what value of $\varepsilon$ is given to us, we can find a value of $\delta$ such that

$\left| f(x) - 11 \right| < \varepsilon$

whenever

$\left| x - 4 \right| < \delta.$

For this particular problem, letting $\delta=\varepsilon$ works (see choosing delta for help in determining the value of $\delta$ to use in other problems). Now, we have to prove

$\left| f(x) - 11 \right| < \varepsilon$

given that

$\left| x - 4 \right| < \delta = \varepsilon$.

Since $\left| x - 4 \right| < \varepsilon$, we know

$\left| f(x) - 11 \right| = \left| x + 7 - 11 \right| = \left| x - 4 \right| < \varepsilon$

which is what we wished to prove.

Example 3

What is the limit of $f(x) = x^2$ as $x$ approaches 4?

As before, we use what we learned earlier in this chapter to guess that the limit is $4^2=16$. Also as before, we pull out of thin air that

$\delta = \sqrt{\varepsilon+16}-4$.

Note that, since $\varepsilon$ is always positive, so is $\delta$, as required. Now, we have to prove

$\left| x^2 - 16 \right| < \varepsilon$

given that

$\left| x - 4 \right| < \delta = \sqrt{\varepsilon + 16} - 4$.

We know that

$\left|x + 4\right| = \left|(x - 4) + 8\right| \le \left|x - 4\right| + 8<\delta+8$

(because of the triangle inequality), so

$\begin{matrix} \left| x^2 - 16 \right| & = & \left| x - 4 \right| \cdot \left| x + 4 \right| \\ \\ \ & < & \delta \cdot (\delta + 8) \\ \\ \ & < & (\sqrt{16 + \varepsilon} - 4) \cdot (\sqrt{16 + \varepsilon} + 4) \\ \\ \ & < & (\sqrt{16 + \varepsilon})^2 - 4^2 \\ \\ \ & = & \varepsilon+16-16 \\ \\ \ & < & \varepsilon. \end{matrix}$

Example 4

Show that the limit of $\sin(1/x)$ as $x$ approaches 0 does not exist.

We will proceed by contradiction. Suppose the limit exists; call it $L$. For simplicity, we'll assume that $L\neq 1$; the case for $L=1$ is similar. Choose $\varepsilon = |1-L|$. Then if the limit were $L$ there would be some $\delta>0$ such that $\left|\sin(1/x)-L\right|<\varepsilon=|1-L|$ for every $x$ with $0<\left|x\right|<\delta$. But, for every $\delta > 0$, there exists some (possibly very large) $n$ such that $0 < x_0 = \frac{1}{\pi /2 + 2\pi n} < \delta$, but $|\sin(1/x_0) - L|=|1-L|$, a contradiction.

Example 5

What is the limit of $x \sin(1/x)$ as $x$ approaches 0?

By the Squeeze Theorem, we know the answer should be 0. To prove this, we let $\delta = \varepsilon$. Then for all $x$, if $0 < |x| < \delta$, then $|x \sin(1/x) - 0| \leq | x | < \varepsilon$ as required.

Example 6

Suppose that $\lim_{x\to a}f(x)=L$ and $\lim_{x\to a}g(x)=M$. What is $\lim_{x\to a}(f(x)+g(x))$?

Of course, we know the answer should be $L+M$, but now we can prove this rigorously. Given some $\varepsilon$, we know there's a $\delta_1$ such that, for any $x$ with $0<\left|x-a\right|<\delta_1$, $\left|f(x)-L\right|<\varepsilon/2$ (since the definition of limit says "for any $\varepsilon$", so it must be true for $\varepsilon/2$ as well). Similarly, there's a $\delta_2$ such that, for any $x$ with $0<\left|x-a\right|<\delta_2$, $\left|g(x)-M\right|<\varepsilon/2$. We can set $\delta$ to be the lesser of $\delta_1$ and $\delta_2$. Then, for any $x$ with $0<\left|x-a\right|<\delta$, $\left|(f(x)+g(x))-(L+M)\right|\le\left|f(x)-L\right|+\left|g(x)-M\right|<\varepsilon/2+\varepsilon/2 =\varepsilon$, as required.

If you like, you can prove the other limit rules too using the new definition. Mathematicians have already done this, which is how we know the rules work. Therefore, when computing a limit from now on, we can go back to just using the rules and still be confident that our limit is correct according to the rigorous definition.

## Formal Definition of a Limit Being Infinity

Definition: (Formal definition of a limit being infinity)

Let $f(x)$ be a function defined on an open interval $D$ that contains $c$, except possibly at $x=c$. Then we say that

$\lim_{x \to c} f(x) = \infty$

if, for every $\varepsilon$, there exists a $\delta>0$ such that for all $x\in D$ with

$0 < \left| x - c \right| < \delta,$

we have

$f(x) > \varepsilon$.

When this holds we write

$\lim_{x\to c}f(x)=\infty$

or

$f(x)\to\infty$ as $x\to c$.

Similarly, we say that

$\lim_{x \to c} f(x) = -\infty$

if, for every $\varepsilon$, there exists a $\delta>0$ such that for all $x\in D$ with

$0 < \left| x - c \right| < \delta,$

we have

$f(x) < \varepsilon$.

When this holds we write

$\lim_{x\to c}f(x)=-\infty$

or

$f(x)\to-\infty$ as $x\to c$.
 ← Continuity Calculus Proofs of Some Basic Limit Rules → Formal Definition of the Limit