# Limit (mathematics)

The concept of the limit is the cornerstone of calculus, analysis, and topology. For starters, the limit of a function at a point is, intuitively, the value that the function "approaches" as its argument "approaches" that point. That idea needs to be refined carefully to get a satisfactory definition.

## Limit of a Function

Here is an example. Suppose a function is
    $f(x)={\frac {x^{2}-x-6}{x^{2}-2x-3}}\,$
What is the limit of f(x) as x approaches 3? This could be written
    $\lim _{x\to 3}f(x)\,$
We can't just evaluate f(3), because the numerator and denominator are both zero. But there's a trick here—we can divide (x-3) into both numerator and denominator, getting
    $f(x)={\frac {x+2}{x+1}}\,$
so the limit is 5/4. (That does't actually prove that the limit is 5/4. Once we have defined the limit correctly, we will need a few theorems about limits and continuous functions to establish this result. It is nevertheless true.)
Now try an example that isn't trivial. Let
    $f(x)=x^{x}\,$
This function is well-defined for x>0, using the general definition that involves the exponential and natural logarithm functions. We can calculate f(x) for various values:
It got smaller, but now it's getting bigger. What's happening?
It looks as though it's approaching 1. Is it? And what does that mean?
Remember that f(0) doesn't exist. So we really have to be careful.
We are going to say that the limit of f(x), as x approaches 0, is 1. What that means is this:
We can get f(x) arbitrarily close to 1 if we choose an x sufficiently close to zero. If we want f(x) within one quadrillionth of 1, $x=10^{-17}\,$ will do. We never have to set x to zero exactly, and we never have to get f(x) = 1 exactly.
In the general case, for arbitrary functions, we might want to say something like
    $\lim _{x\to X}f(x)=Y\,$

### For Every Epsilon ...

Stated precisely, given any tolerance ε (by tradition, the letter ε is always used), x being sufficiently close to X will get f(x) within ε of Y. That condition is formally written:
    $|f(x)-Y|<\varepsilon \,$
In this example ($f(x)=x^{x}\,$, X=0, Y=1), when ε is $10^{-15}\,$ (one quadrillionth), $x<10^{-17}\,$ satisfies the condition.

### ... There Exists a Delta

The way we formalize the notion of x being very close to X is:
    "There is a number δ (by tradition it's always δ) such that, whenever x is within δ of X, f(x) is within ε of Y".
That is written:
    Whenever $0<|x-X|<\delta ,|f(x)-Y|<\varepsilon \,$
In our example, if ε is $10^{-15}\,$, δ = $10^{-17}\,$ works. That is, any $x<10^{-17}\,$ will guarantee $|f(x)-1|<10^{-15}\,$.

### The Full Definition

So here is the full definition:
    $\lim _{x\to X}f(x)=Y\,$ means
    For every ε > 0, there is a δ > 0 such that, whenever $0<|x-X|<\delta ,|f(x)-Y|<\varepsilon \,$
So the definition is sort of like a bet or a contract—"For any epsilon you can give me, I can come up with a delta."
A few things to note:
* We require ε > 0. Specifying a required tolerance of zero is not allowed. We only have to be able to get f(x) within an arbitrarily close but nonzero tolerance of Y. We don't ever have to get it exactly equal to Y.
* We have 0 < |x-X| < δ, not just |x-X| < δ. That is, we never have to calculate f(X) exactly. f(X) doesn't need to be defined. In the example we are considering, $0^{0}\,$ isn't defined.
This definition, and variations of it, are the central point of calculus, analysis, and topology. The phrase "For every ε there is a δ" is ingrained into the consciousness of every mathematics student. This notion of a "bet" could be considered to set the branches of mathematics that follow (calculus, topology, ...) apart from the earlier branches (arithmetic, algebra, geometry, ...) Students who have mastered the notion of "For every ε there is a δ" are ready for higher mathematics.
In our example of $f(x)=x^{x}\,$, we haven't actually satisfied the definition of the limit, because f(x) isn't defined for negative x. There are more restrictive notions of "limit from the left" and "limit from the right". We have the limit from the right of $x^{x}=1\,$, which means
    For every ε > 0, there is a δ > 0 such that, whenever 0 < x-X < δ, |f(x)-Y| < ε
We still haven't proved that the limit is actually 1. We just gave some accurate calculations strongly suggesting that it is. In fact it is, and the proof requires a few theorems about limits, continuous functions, and the exponential and natural logarithm functions.

## The Limit of f(x) is Infinity

With this precise (or, as mathematicians say, rigorous) definition of a limit, we can examine variations that involve "infinity". Remember, Infinity is not a number. It is only through the magic of the epsilon-delta formulation that we can make sense of it.
We might say something like "The limit of f(x), as x approaches X, is infinity." What that means is that we replace the
    $|f(x)-Y|<\varepsilon \,$
with
    $f(x)>M\,$
That is,
    For every M > 0, there is a δ > 0 such that, whenever $0<|x-X|<\delta ,f(x)>M\,$
Consider the function
    $f(x)={\frac {1}{(x-3)^{2}}}\,$
If you graph this, there is an "infinitely high" peak at x=3. We have:
    $\lim _{x\to 3}f(x)=\infty \,$
If we set $M=10^{20}\,$, $\delta =10^{-10}\,$ will win the bet.
For a limit of minus infinity, we set M to some huge negative number, so
    $\lim _{x\to X}f(x)=-\infty \,$
means
    For every M < 0, there is a δ > 0 such that, whenever $0<|x-X|<\delta ,f(x)<M\,$

## The limit of f(x) as x Goes to Infinity

Infinity can also make an appearance in the function's domain, as in "The limit of f(x), as x approaches infinity, is 3." What that means is that we replace the
    $0<|x-X|<\delta \,$
with
    $x>M\,$
That is,
    For every ε > 0, there is an M such that, whenever $x>M,|f(x)-Y|<\varepsilon \,$
Consider the function
    $f(x)={\frac {3x+5}{x}}\,$
If you graph this, it goes off to a value of 3 toward the right. We have:
    $\lim _{x\to \infty }f(x)=3\,$
If we set $\varepsilon =10^{-10}\,$, $M=10^{11}\,$ will win the bet.
We can do a similar thing for the limit as x goes to minus infinity.

## The limit of f(x) as x Goes to Infinity is Infinity

A function like $f(x)=e^{x}\,$ combines both inifinites. We write
    $\lim _{x\to \infty }e^{x}=\infty \,$
Here we replace both δ and ε:
    For every N > 0, there is an M such that, whenever $x>M,f(x)>N\,$

## Limit of a Sequence

An important type of limit is the limit of a sequence of numbers $(a_{n})_{n\in N}=(a_{1},a_{2},a_{3},...)$. When we say that this sequence has a limit A, we are essentially using the definition above for x going to infinity, but using n instead of x:
    $\lim _{n\to \infty }a_{n}=A,\,$
means that
    For every ε > 0, there is an M such that, whenever $n>M,|a_{n}-A|<\varepsilon \,$
When a sequence has a limit like that, we say that the sequence converges to that limit.

## Infinite Sums

It is important to distinguish between the limit of the sequence, as defined above, and the much more commonly used limit of the partial sums of the sequence. If we have a sequence $(a_{n})=(a_{1},a_{2},a_{3},...)$, we also have a sequence of "partial sums", the nth item of which is the sum of the first n items in the original sequence:
    $s_{n}=\sum _{i=1}^{n}a_{n}\,$
If $s_{n}\,$ converges to A, we say that the infinite sum $a_{n}\,$ converges to A, written like this:
    $\sum _{i=1}^{\infty }a_{n}=A\,$
For example, the sequence
    $a_{n}={\frac {1}{n!}}\,$
(where the exclamation point is the factorial operation) converges to the number known as "e":
    $\sum _{i=0}^{\infty }{\frac {1}{n!}}=e\,$
This is the only sense in which a summation going to infinity is meaningful.

## Subpages

Special:Prefixindex/Limit (mathematics)/