Limit of a function

Although the function $\tfrac{\sin x}{x}$ is not defined at zero, as $x$ becomes closer and closer to zero, $\tfrac{\sin x}{x}$ becomes arbitrarily close to 1. In other words, the limit of $\tfrac{\sin x}{x},$ as $x$ approaches zero, equals 1.

In mathematics, the limit of a function is a fundamental concept in calculus and analysis concerning the behavior of that function near a particular input which may or may not be in the domain of the function.

Formal definitions, first devised in the early 19th century, are given below. Informally, a function $f$ assigns an output $f(x)$ to every input $x$. We say that the function has a limit $L$ at an input $p$, if $f(x)$ gets closer and closer to $L$ as $x$ moves closer and closer to $p$. More specifically, the output value can be made arbitrarily close to $L$ if the input to $f$ is taken sufficiently close to $p$. On the other hand, if some inputs very close to $p$ are taken to outputs that stay a fixed distance apart, then we say the limit does not exist.

The notion of a limit has many applications in modern calculus. In particular, the many definitions of continuity employ the concept of limit: roughly, a function is continuous if all of its limits agree with the values of the function. The concept of limit also appears in the definition of the derivative: in the calculus of one variable, this is the limiting value of the slope of secant lines to the graph of a function.

History
Although implicit in the development of calculus of the 17th and 18th centuries, the modern idea of the limit of a function goes back to Bolzano who, in 1817, introduced the basics of the epsilon-delta technique (see (ε, δ)-definition of limit below) to define continuous functions. However, his work was not known during his lifetime.

In his 1821 book Cours d'analyse, Augustin-Louis Cauchy discussed variable quantities, infinitesimals and limits, and defined continuity of $$y=f(x)$$ by saying that an infinitesimal change in $x$ necessarily produces an infinitesimal change in $y$, while Grabiner claims that he used a rigorous epsilon-delta definition in proofs. In 1861, Weierstrass first introduced the epsilon-delta definition of limit in the form it is usually written today. He also introduced the notations $\lim$ and $\textstyle \lim_{x \to x_0} \displaystyle.$

The modern notation of placing the arrow below the limit symbol is due to Hardy, which is introduced in his book A Course of Pure Mathematics in 1908.

Motivation
Imagine a person walking on a landscape represented by the graph $y = f(x)$. Their horizontal position is given by $x$, much like the position given by a map of the land or by a global positioning system. Their altitude is given by the coordinate $y$. Suppose they walk towards a position $x = p$, as they get closer and closer to this point, they will notice that their altitude approaches a specific value $L$. If asked about the altitude corresponding to $x = p$, they would reply by saying $y = L$.

What, then, does it mean to say, their altitude is approaching $L$? It means that their altitude gets nearer and nearer to $L$—except for a possible small error in accuracy. For example, suppose we set a particular accuracy goal for our traveler: they must get within ten meters of $L$. They report back that indeed, they can get within ten vertical meters of $L$, arguing that as long as they are within fifty horizontal meters of $p$, their altitude is always within ten meters of $L$.

The accuracy goal is then changed: can they get within one vertical meter? Yes, supposing that they are able to move within five horizontal meters of $p$, their altitude will always remain within one meter from the target altitude $L$. Summarizing the aforementioned concept we can say that the traveler's altitude approaches $L$ as their horizontal position approaches $p$, so as to say that for every target accuracy goal, however small it may be, there is some neighbourhood of $p$ where all (not just some) altitudes correspond to all the horizontal positions, except maybe the horizontal position $p$ itself, in that neighbourhood fulfill that accuracy goal.

The initial informal statement can now be explicated:

In fact, this explicit statement is quite close to the formal definition of the limit of a function, with values in a topological space.

More specifically, to say that

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

is to say that $f(x)$ can be made as close to $x$ as desired, by making $p$ close enough, but not equal, to $L$.

The following definitions, known as $f(x)$-definitions, are the generally accepted definitions for the limit of a function in various contexts.

$f(x)$-definition of limit
Suppose $$f: \R \rightarrow \R$$ is a function defined on the real line, and there are two real numbers $L$ and $p$. One would say that the limit of $L$, as $x$ approaches $p$, is $f$ and written

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

or alternatively, say $(ε, δ)$ tends to $a$ as $b$ tends to $x$, and written:

$$ f(x) \to L \text{ as } x \to p,$$

if the following property holds: for every real $(ε, δ)$, there exists a real $f(x)$ such that for all real $p$, $(b – ε, b + ε)$ implies $(a – δ, a + δ).$. Symbolically, $$(\forall \varepsilon > 0 ) \, (\exists \delta > 0) \, (\forall x \in \R) \, (0 < |x - p| < \delta \implies |f(x) - L| < \varepsilon).$$

For example, we may say $$\lim_{x \to 2} (4x + 1) = 9$$ because for every real $f(x) → b$, we can take $x → a$, so that for all real $L$, if $f(x)$, then $ε > 0$.

A more general definition applies for functions defined on subsets of the real line. Let $f$ be a subset of $x$ Let $$f: S \to \R$$ be a real-valued function. Let $p$ be a point such that there exists some open interval $δ > 0$ containing $L$ with $$(a,p)\cup (p,b) \subset S.$$ It is then said that the limit of $L$ as $x$ approaches $p$ is $x$, if:

Or, symbolically: $$(\forall \varepsilon > 0 ) \, (\exists \delta > 0) \, (\forall x \in (a, b)) \, (0 < |x - p| < \delta \implies |f(x) - L| < \varepsilon).$$

For example, we may say $$\lim_{x \to 1} \sqrt{x+3} = 2$$ because for every real $0 < |x − p| < δ$, we can take $|f(x) − L| < ε$, so that for all real $ε > 0$, if $δ = ε/4$, then $0 < |x − 2| < δ$. In this example, $|4x + 1 − 9| < ε$ contains open intervals around the point 1 (for example, the interval (0, 2)).

Here, note that the value of the limit does not depend on $x$ being defined at $S$, nor on the value $(a, b)$—if it is defined. For example, let $$f: [0,1)\cup (1,2] \to \R, f(x) = \tfrac{2x^2 - x - 1}{x-1}.$$ $$\lim_{x \to 1} f(x) = 3$$ because for every $ε > 0$, we can take $δ > 0$, so that for all real $x ∈ (a, b)$, if $0 < |x − p| < δ$, then $|f(x) − L| < ε$. Note that here $ε > 0$ is undefined.

In fact, a limit can exist in $$\{x\in \R\, |\, \exists (a,b) \subset \R \quad p \in (a,b) \text{ and } (a,p)\cup (p, b) \subset S\},$$ which equals $$\operatorname{int} S \cup \operatorname{iso} S^c,$$ where $δ = ε$ is the interior of $\R.$, and $x ≥ −3$ are the isolated points of the complement of $p$. In our previous example where $$S = [0,1) \cup (1,2],$$ $$\operatorname{int} S = (0,1) \cup (1,2),$$ $$\operatorname{iso} S^c = \{1\}.$$ We see, specifically, this definition of limit allows a limit to exist at 1, but not 0 or 2.

The letters $p$ and $f$ can be understood as "error" and "distance". In fact, Cauchy used $x$ as an abbreviation for "error" in some of his work, though in his definition of continuity, he used an infinitesimal $$\alpha$$ rather than either $p$ or $L$ (see Cours d'Analyse). In these terms, the error (ε) in the measurement of the value at the limit can be made as small as desired, by reducing the distance (δ) to the limit point. As discussed below, this definition also works for functions in a more general context. The idea that $f$ and $p$ represent distances helps suggest these generalizations.

Existence and one-sided limits


Alternatively, $S$ may approach $S$ from above (right) or below (left), in which case the limits may be written as

$$ \lim_{x \to p^+}f(x) = L $$

or

$$ \lim_{x \to p^-}f(x) = L $$ respectively. If these limits exist at p and are equal there, then this can be referred to as the limit of $0 < |x − 1| < δ$ at $ε$. If the one-sided limits exist at $δ$, but are unequal, then there is no limit at $ε$ (i.e., the limit at $ε$ does not exist). If either one-sided limit does not exist at $δ$, then the limit at $δ$ also does not exist.

A formal definition is as follows. The limit of $ε$ as $x$ approaches $p$ from above is $p$ if:
 * For every $|f(x) − 2| < ε$, there exists a $S = [−3, ∞)$ such that whenever $f(p)$, we have $ε > 0$.

$$(\forall \varepsilon > 0 ) \, (\exists \delta > 0) \, (\forall x \in (a,b))\, (0 < x - p < \delta \implies |f(x) - L| < \varepsilon).$$

The limit of $p$ as $p$ approaches $p$ from below is $p$ if:
 * For every $δ = ε/2$, there exists a $x ≠ 1$ such that whenever $0 < |x − 1| < δ$, we have $|f(x) − 3| < ε$.

$$(\forall \varepsilon > 0 )\, (\exists \delta > 0) \, (\forall x \in (a,b)) \, (0 < p - x < \delta \implies |f(x) - L| < \varepsilon).$$

If the limit does not exist, then the oscillation of $p$ at $f$ is non-zero.

More general definition using limit points and subsets
Limits can also be defined by approaching from subsets of the domain.

In general: Let $$f : S \to \R$$ be a real-valued function defined on some $$S \subseteq \R.$$ Let $x$ be a limit point of some $$T \subset S$$&mdash;that is, $p$ is the limit of some sequence of elements of $L$ distinct from $f$. Then we say the limit of $x$, as $p$ approaches $L$ from values in $f$, is $p$, written $$\lim_{ {x \to p} \atop {x \in T} } f(x) = L$$ if the following holds:

$$(\forall \varepsilon > 0 )\, (\exists \delta > 0) \,(\forall x \in T)\, (0 < |x - p| < \delta \implies |f(x) - L| < \varepsilon).$$

Note, $p$ can be any subset of $p$, the domain of $T$. And the limit might depend on the selection of $p$. This generalization includes as special cases limits on an interval, as well as left-handed limits of real-valued functions (e.g., by taking $f$ to be an open interval of the form $f(1)$), and right-handed limits (e.g., by taking $x$ to be an open interval of the form $int S$). It also extends the notion of one-sided limits to the included endpoints of (half-)closed intervals, so the square root function $$f(x) = \sqrt x$$ can have limit 0 as $p$ approaches 0 from above: $$\lim_{ {x\to 0} \atop {x\in [0, \infty)} } \sqrt{x} = 0$$ since for every $iso Sc$, we may take $x → x_{0}$ such that for all $f(x)$, if $ε > 0$, then $δ > 0$.

This definition allows a limit to be defined at limit points of the domain $T$, if a suitable subset $L$ which has the same limit point is chosen.

Notably, the previous two-sided definition works on $$\operatorname{int} S \cup \operatorname{iso} S^c,$$ which is a subset of the limit points of $T$.

For example, let $$S = [0,1)\cup (1, 2].$$ The previous two-sided definition would work at $$1 \in \operatorname{iso} S^c = \{1\},$$ but it wouldn't work at 0 or 2, which are limit points of $S$.

Deleted versus non-deleted limits
The definition of limit given here does not depend on how (or whether) $f$ is defined at $T$. Bartle refers to this as a deleted limit, because it excludes the value of $T$ at $T$. The corresponding non-deleted limit does depend on the value of $x$ at $S$, if $T$ is in the domain of $S$. Let $$f : S \to \R$$ be a real-valued function. The non-deleted limit of $S$, as $f$ approaches $p$, is $f$ if

$$(\forall \varepsilon > 0 )\, (\exists \delta > 0) \, (\forall x \in S)\, (|x - p| < \delta \implies |f(x) - L| < \varepsilon).$$

The definition is the same, except that the neighborhood $0 < x − p < δ$ now includes the point $p$, in contrast to the deleted neighborhood $|f(x) − L| < ε$. This makes the definition of a non-deleted limit less general. One of the advantages of working with non-deleted limits is that they allow to state the theorem about limits of compositions without any constraints on the functions (other than the existence of their non-deleted limits).

Bartle notes that although by "limit" some authors do mean this non-deleted limit, deleted limits are the most popular.

Non-existence of one-sided limit(s)
The function $$f(x)=\begin{cases} \sin\frac{5}{x-1} & \text{ for } x<1 \\ 0 & \text{ for } x=1 \\[2pt] \frac{1}{10x-10}& \text{ for } x>1 \end{cases}$$ has no limit at $ε > 0$ (the left-hand limit does not exist due to the oscillatory nature of the sine function, and the right-hand limit does not exist due to the asymptotic behaviour of the reciprocal function, see picture), but has a limit at every other $f$-coordinate.

The function $$f(x)=\begin{cases} 1 & x \text{ rational } \\ 0 & x \text{ irrational } \end{cases}$$ (a.k.a., the Dirichlet function) has no limit at any $p$-coordinate.

Non-equality of one-sided limits
The function $$f(x)=\begin{cases} 1 & \text{ for } x < 0 \\ 2 & \text{ for } x \ge 0 \end{cases}$$ has a limit at every non-zero $p$-coordinate (the limit equals 1 for negative $f$ and equals 2 for positive $f$). The limit at $δ > 0$ does not exist (the left-hand limit equals 1, whereas the right-hand limit equals 2).

Limits at only one point
The functions $$f(x)=\begin{cases} x & x \text{ rational } \\ 0 & x \text{ irrational } \end{cases}$$ and $$f(x)=\begin{cases} 0 & x \text{ irrational } \end{cases}$$ both have a limit at $0 < p − x < δ$ and it equals 0.
 * x| & x \text{ rational } \\

Limits at countably many points
The function $$f(x)=\begin{cases} \sin x & x \text{ irrational } \\ 1    &  x \text{ rational } \end{cases}$$ has a limit at any $x$-coordinate of the form $$\tfrac{\pi}{2} + 2n\pi,$$ where $p$ is any integer.

Limits at infinity


Let $$f:S \to \R$$ be a function defined on $$S \subseteq \R.$$ The limit of $L$ as $p$ approaches infinity is $x$, denoted

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

means that:

$$(\forall \varepsilon > 0 )\, (\exists c > 0) \,(\forall x \in S) \,(x > c \implies |f(x) - L| < \varepsilon).$$

Similarly, the limit of $x$ as $x$ approaches minus infinity is $x$, denoted

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

means that:

$$(\forall \varepsilon > 0)\, (\exists c > 0) \,(\forall x \in S)\, (x < -c \implies |f(x) - L| < \varepsilon).$$

For example, $$ \lim_{x \to \infty} \left(-\frac{3\sin x}{x} + 4\right) = 4$$ because for every $|f(x) − L| < ε$, we can take $ε > 0$ such that for all real $x$, if $δ > 0$, then $x ∈ T$.

Another example is that $$ \lim_{x \to -\infty}e^{x} = 0$$ because for every $0 < |x − p| < δ$, we can take $|f(x) − L| < ε$ such that for all real $x$, if $(–∞, a)$, then $(a, ∞)$.

Infinite limits
For a function whose values grow without bound, the function diverges and the usual limit does not exist. However, in this case one may introduce limits with infinite values.

Let $$f:S \to\mathbb{R}$$ be a function defined on $$S\subseteq\mathbb{R}.$$ The statement the limit of $n$ as $f$ approaches $x$ is infinity, denoted

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

means that:

$$(\forall N > 0)\, (\exists \delta > 0)\, (\forall x \in S)\, (0 < | x-p | < \delta \implies f(x) > N) .$$

The statement the limit of $L$ as $f$ approaches $x$ is minus infinity, denoted

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

means that:

$$(\forall N > 0) \, (\exists \delta > 0) \, (\forall x \in S)\, (0 < | x-p | < \delta \implies f(x) < -N) .$$

For example, $$\lim_{x \to 1} \frac{1}{(x-1)^2} = \infty$$ because for every $ε > 0$, we can take $\delta = \tfrac{1}{\sqrt{N}\delta} = \tfrac{1}{\sqrt N}$  such that for all real $δ = ε$, if $x ≥ 0$, then $0 < |x − 0| < δ$.

These ideas can be used together to produce definitions for different combinations, such as

$$ \lim_{x \to \infty} f(x) = \infty,$$ or $$ \lim_{x \to p^+}f(x) = -\infty.$$

For example, $$\lim_{x \to 0^+} \ln x = -\infty$$ because for every $|f(x) − 0| < ε$, we can take $ε > 0$ such that for all real $δ > 0$, if $x ∈ S$, then $|x − p| < δ$.

Limits involving infinity are connected with the concept of asymptotes.

These notions of a limit attempt to provide a metric space interpretation to limits at infinity. In fact, they are consistent with the topological space definition of limit if In this case, $L$ is a topological space and any function of the form $$f : X \to Y$$ with $$X, Y \subseteq \overline \R$$ is subject to the topological definition of a limit. Note that with this topological definition, it is easy to define infinite limits at finite points, which have not been defined above in the metric sense.
 * a neighborhood of −∞ is defined to contain an interval $|f(x) − L| < ε$ for some $x$
 * a neighborhood of ∞ is defined to contain an interval $|x − p| < δ$ where $x$ and
 * a neighborhood of $f$ is defined in the normal way metric space $x$

Alternative notation
Many authors allow for the projectively extended real line to be used as a way to include infinite values as well as extended real line. With this notation, the extended real line is given as $p$ and the projectively extended real line is $f$ where a neighborhood of ∞ is a set of the form $$\{x: |x| > c\}.$$ The advantage is that one only needs three definitions for limits (left, right, and central) to cover all the cases. As presented above, for a completely rigorous account, we would need to consider 15 separate cases for each combination of infinities (five directions: −&infin;, left, central, right, and +&infin;; three bounds: −&infin;, finite, or +&infin;). There are also noteworthy pitfalls. For example, when working with the extended real line, $$x^{-1}$$ does not possess a central limit (which is normal):

$$\lim_{x \to 0^{+}}{1\over x} = +\infty, \quad \lim_{x \to 0^{-}}{1\over x} = -\infty.$$

In contrast, when working with the projective real line, infinities (much like 0) are unsigned, so, the central limit does exist in that context:

$$\lim_{x \to 0^{+}}{1\over x} = \lim_{x \to 0^{-}}{1\over x} = \lim_{x \to 0}{1\over x} = \infty.$$

In fact there are a plethora of conflicting formal systems in use. In certain applications of numerical differentiation and integration, it is, for example, convenient to have signed zeroes. A simple reason has to do with the converse of $$\lim_{x \to 0^{-}}{x^{-1}} = -\infty,$$ namely, it is convenient for $$\lim_{x \to -\infty}{x^{-1}} = -0$$ to be considered true. Such zeroes can be seen as an approximation to infinitesimals.

Limits at infinity for rational functions
There are three basic rules for evaluating limits at infinity for a rational function $$f(x) = \tfrac{p(x)}{q(x)}$$ (where $x$ and $p$ are polynomials):
 * If the degree of $c \in \R,$ is greater than the degree of $c \in \R,$, then the limit is positive or negative infinity depending on the signs of the leading coefficients;
 * If the degree of $a \in \R$ and $\R.$ are equal, the limit is the leading coefficient of $\overline \R$ divided by the leading coefficient of $\R \cup \{-\infty, +\infty\}$;
 * If the degree of $\R \cup \{\infty\}$ is less than the degree of $p$, the limit is 0.

If the limit at infinity exists, it represents a horizontal asymptote at $0 < |x − p| < δ$. Polynomials do not have horizontal asymptotes; such asymptotes may however occur with rational functions.

Ordinary limits
By noting that $x0 = 1$ represents a distance, the definition of a limit can be extended to functions of more than one variable. In the case of a function $$f : S \times T \to \R$$ defined on $$S \times T \subseteq \R^2,$$ we defined the limit as follows: the limit of $q$ as $x = 0$ approaches $x = 0$ is $p$, written

$$ \lim_{(x,y) \to (p, q)} f(x, y) = L $$

if the following condition holds:
 * For every $ε > 0$, there exists a $c > 0$ such that for all $q$ in $p$ and $q$ in $p$, whenever $0 < \sqrt{(x-p)^2 + (y-q)^2} < \delta,$ we have $+x > c$,

or formally: $$(\forall \varepsilon > 0)\, (\exists \delta > 0)\, (\forall x \in S) \, (\forall y \in T)\, (0 < \sqrt{(x-p)^2 + (y-q)^2} < \delta \implies |f(x, y) - L| < \varepsilon)).$$

Here $\sqrt{(x-p)^2 + (y-q)^2}$ is the Euclidean distance between $|f(x) − L| < ε$ and $ε > 0$. (This can in fact be replaced by any norm $c > 0$, and be extended to any number of variables.)

For example, we may say $$ \lim_{(x,y) \to (0, 0)} \frac{x^4}{x^2+y^2} = 0 $$ because for every $x < −c$, we can take $\delta = \sqrt \varepsilon$ such that for all real $|f(x) − L| < ε$ and real $ε > 0$, if $0 < \sqrt{(x-0)^2 + (y-0)^2} < \delta,$  then $c = 3/ε$.

Similar to the case in single variable, the value of $q$ at $x > c$ does not matter in this definition of limit.

For such a multivariable limit to exist, this definition requires the value of $p$ approaches $q$ along every possible path approaching $|f(x) − 4| < ε$. In the above example, the function $$f(x, y) = \frac{x^4}{x^2+y^2}$$ satisfies this condition. This can be seen by considering the polar coordinates $$(x,y) = (r\cos\theta, r\sin\theta) \to (0, 0),$$ which gives $$\lim_{r \to 0} f(r \cos \theta, r \sin \theta) = \lim_{r \to 0} \frac{r^4 \cos^4 \theta}{r^2} = \lim_{r \to 0} r^2 \cos^4 \theta.$$ Here $ε > 0$ is a function of r which controls the shape of the path along which $f$ is approaching $c = max{1, −ln(ε)}$. Since $x < −c$ is bounded between [−1, 1], by the sandwich theorem, this limit tends to 0.

In contrast, the function $$f(x, y) = \frac{xy}{x^2 + y^2}$$ does not have a limit at $|f(x) − 0| < ε$. Taking the path $N > 0$, we obtain $$\lim_{t \to 0} f(t, 0) = \lim_{t \to 0} \frac{0}{t^2} = 0,$$ while taking the path $δ > 0$, we obtain $$\lim_{t \to 0} f(t, t) = \lim_{t \to 0} \frac{t^2}{t^2 + t^2} = \frac{1}{2}.$$

Since the two values do not agree, $L$ does not tend to a single value as $0 < |x − p| < δ$ approaches $f(x) > N$.

Multiple limits
Although less commonly used, there is another type of limit for a multivariable function, known as the multiple limit. For a two-variable function, this is the double limit. Let $$f : S \times T \to \R$$ be defined on $$S \times T \subseteq \R^2,$$ we say the double limit of $x$ as $S$ approaches $y$ and $T$ approaches $f$ is $f$, written

$$ \lim_{ {x \to p} \atop {y \to q} } f(x, y) = L $$

if the following condition holds:

$$(\forall \varepsilon > 0)\, (\exists \delta > 0)\, (\forall x \in S) \, (\forall y \in T)\, ( (0 < |x-p| < \delta) \land (0 < |y-q| < \delta) \implies |f(x, y) - L| < \varepsilon) .$$

For such a double limit to exist, this definition requires the value of $L$ approaches $f$ along every possible path approaching $N > 0$, excluding the two lines $δ > 0$ and $0 < |x − p| < δ$. As a result, the multiple limit is a weaker notion than the ordinary limit: if the ordinary limit exists and equals $f$, then the multiple limit exists and also equals $f$. The converse is not true: the existence of the multiple limits does not imply the existence of the ordinary limit. Consider the example $$f(x,y) = \begin{cases} 1 \quad \text{for} \quad xy \ne 0 \\ 0 \quad \text{for} \quad xy = 0 \end{cases}$$ where $$ \lim_{ {x \to 0} \atop {y \to 0} } f(x, y) = 1 $$ but $$\lim_{(x, y) \to (0, 0)} f(x, y)$$ does not exist.

If the domain of $x$ is restricted to $$(S\setminus\{p\}) \times (T\setminus\{q\}),$$ then the two definitions of limits coincide.

Multiple limits at infinity
The concept of multiple limit can extend to the limit at infinity, in a way similar to that of a single variable function. For $$f : S \times T \to \R,$$ we say the double limit of $p$ as $y$ and $q$ approaches infinity is $L$, written $$ \lim_{ {x \to \infty} \atop {y \to \infty} } f(x, y) = L $$

if the following condition holds:

$$(\forall \varepsilon > 0)\, (\exists c> 0)\, (\forall x \in S) \, (\forall y \in T)\, ( (x > c) \land (y > c) \implies |f(x, y) - L| < \varepsilon) .$$

We say the double limit of $x$ as $S$ and $y$ approaches minus infinity is $T$, written $$ \lim_{ {x \to -\infty} \atop {y \to -\infty} } f(x, y) = L $$

if the following condition holds:

$$(\forall \varepsilon > 0)\, (\exists c> 0)\, (\forall x \in S) \, (\forall y \in T)\, ( (x < -c) \land (y < -c) \implies |f(x, y) - L| < \varepsilon) .$$

Pointwise limits and uniform limits
Let $$f : S \times T \to \R.$$ Instead of taking limit as $f(x) < −N$, we may consider taking the limit of just one variable, say, $N > 0$, to obtain a single-variable function of $f$, namely $$g : T \to \R.$$ In fact, this limiting process can be done in two distinct ways. The first one is called pointwise limit. We say the pointwise limit of $L$ as $L$ approaches $L$ is $f$, denoted $$\lim_{x\to p}f(x, y) = g(y),$$ or $$\lim_{x \to p}f(x, y) = g(y) \;\; \text{pointwise}.$$

Alternatively, we may say $f$ tends to $x$ pointwise as $y$ approaches $L$, denoted $$f(x, y) \to g(y) \;\; \text{as} \;\; x \to p,$$ or $$f(x, y) \to g(y) \;\; \text{pointwise} \;\; \text{as} \;\; x \to p.$$

This limit exists if the following holds:

$$(\forall \varepsilon > 0)\, (\forall y \in T) \, (\exists \delta> 0)\, (\forall x \in S)\, ( 0 < |x-p| < \delta \implies |f(x, y) - g(y)| < \varepsilon) .$$

Here, $x > 0$ is a function of both $x$ and $S$. Each $y$ is chosen for a specific point of $T$. Hence we say the limit is pointwise in $f$. For example, $$f(x, y) = \frac{x}{\cos y}$$ has a pointwise limit of constant zero function $$\lim_{x \to 0}f(x, y) = 0(y) \;\; \text{pointwise}$$ because for every fixed $x$, the limit is clearly 0. This argument fails if $y$ is not fixed: if $L$ is very close to $0 < x − 1 < δ$, the value of the fraction may deviate from 0.

This leads to another definition of limit, namely the uniform limit. We say the uniform limit of $x$ on $S$ as $y$ approaches $T$ is $y$, denoted $$\underset{ {x \to p} \atop {y \in T} }{\mathrm{unif} \lim \;} f(x, y) = g(y),$$ or $$\lim_{x \to p}f(x, y) = g(y) \;\; \text{uniformly on} \; T.$$

Alternatively, we may say $f$ tends to $x$ uniformly on $p$ as $g$ approaches $f$, denoted $$f(x, y) \rightrightarrows g(y) \; \text{on} \; T \;\; \text{as} \;\; x \to p,$$ or $$f(x, y) \to g(y) \;\; \text{uniformly on}\; T \;\; \text{as} \;\; x \to p.$$

This limit exists if the following holds:

$$(\forall \varepsilon > 0) \, (\exists \delta > 0)\, (\forall x \in S)\, (\forall y \in T)\, ( 0 < |x-p| < \delta \implies |f(x, y) - g(y)| < \varepsilon) .$$

Here, $f(x) > N$ is a function of only $g$ but not $x$. In other words, δ is uniformly applicable to all $p$ in $y$. Hence we say the limit is uniform in $T$. For example, $$f(x, y) = x \cos y$$ has a uniform limit of constant zero function $$\lim_{x \to 0}f(x, y) = 0(y) \;\; \text{ uniformly on}\; \R$$ because for all real $x$, $N > 0$ is bounded between $δ = e^{−N}$. Hence no matter how $S$ behaves, we may use the sandwich theorem to show that the limit is 0.

Iterated limits
Let $$f : S \times T \to \R.$$ We may consider taking the limit of just one variable, say, $x > 0$, to obtain a single-variable function of $ε$, namely $$g : T \to \R,$$ and then take limit in the other variable, namely $0 < x − 0 < δ$, to get a number $y$. Symbolically, $$\lim_{y \to q} \lim_{x \to p} f(x, y) = \lim_{y \to q} g(y) = L.$$

This limit is known as iterated limit of the multivariable function. The order of taking limits may affect the result, i.e.,

$$\lim_{y \to q} \lim_{x \to p} f(x,y) \ne \lim_{x \to p} \lim_{y \to q} f(x, y)$$ in general.

A sufficient condition of equality is given by the Moore-Osgood theorem, which requires the limit $$\lim_{x \to p}f(x, y) = g(y)$$ to be uniform on $δ$.

Functions on metric spaces
Suppose $y$ and $y$ are subsets of metric spaces $y$ and $y$, respectively, and $f(x) < −N$ is defined between $y$ and $f$, with $[−∞, c)$, $T$ a limit point of $x$ and $(c, ∞]$. It is said that the limit of $p$ as $g$ approaches $f$ is $g$ and write

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

if the following property holds:

$$(\forall \varepsilon > 0 )\, (\exists \delta > 0) \,(\forall x \in M) \,(0 < d_A(x, p) < \delta \implies d_B(f(x), L) < \varepsilon).$$

Again, note that $T$ need not be in the domain of $x$, nor does $p$ need to be in the range of $x$, and even if $y = 4$ is defined it need not be equal to $S$.

Euclidean metric
The limit in Euclidean space is a direct generalization of limits to vector-valued functions. For example, we may consider a function $$f:S \times T \to \R^3$$ such that $$f(x, y) = (f_1(x, y), f_2(x, y), f_3(x, y) ).$$ Then, under the usual Euclidean metric, $$\lim_{(x, y) \to (p, q)} f(x, y) = (L_1, L_2, L_3)$$ if the following holds:

$$(\forall \varepsilon > 0 )\, (\exists \delta > 0) \, (\forall x \in S) \, (\forall y \in T)\, \left(0 < \sqrt{(x-p)^2+(y-q)^2} < \delta \implies \sqrt{(f_1-L_1)^2 + (f_2-L_2)^2 + (f_3-L_3)^2} < \varepsilon \right).$$

In this example, the function concerned are finite-dimension vector-valued function. In this case, the limit theorem for vector-valued function states that if the limit of each component exists, then the limit of a vector-valued function equals the vector with each component taken the limit: $$\lim_{(x, y) \to (p, q)} \Bigl(f_1(x, y), f_2(x, y), f_3(x, y)\Bigr) = \left(\lim_{(x, y) \to (p, q)}f_1(x, y), \lim_{(x, y) \to (p, q)}f_2(x, y), \lim_{(x, y) \to (p, q)}f_3(x, y)\right).$$

Manhattan metric
One might also want to consider spaces other than Euclidean space. An example would be the Manhattan space. Consider $$f:S \to \R^2$$ such that $$f(x) = (f_1(x), f_2(x)).$$ Then, under the Manhattan metric, $$\lim_{x \to p} f(x) = (L_1, L_2)$$ if the following holds:

$$(\forall \varepsilon > 0 )\, (\exists \delta > 0) \,(\forall x \in S) \,(0 < |x - p| < \delta \implies |f_1 - L_1| + |f_2 - L_2| < \varepsilon).$$

Since this is also a finite-dimension vector-valued function, the limit theorem stated above also applies.

Uniform metric
Finally, we will discuss the limit in function space, which has infinite dimensions. Consider a function $y = L$ in the function space $$S \times T \to \R.$$ We want to find out as $y$ approaches $T$, how $|x − p|$ will tend to another function $(x, y)$, which is in the function space $$T \to \R.$$ The "closeness" in this function space may be measured under the uniform metric. Then, we will say the uniform limit of $ε$ on $y$ as $y$ approaches $T$ is $y$ and write $$\underset{ {x \to p} \atop {y \in T} }{\mathrm{unif} \lim \;} f(x, y) = g(y),$$ or $$\lim_{x \to p}f(x, y) = g(y) \;\; \text{uniformly on} \; T,$$

if the following holds:

$$(\forall \varepsilon > 0 )\, (\exists \delta > 0) \,(\forall x \in S) \,(0 < |x-p| < \delta \implies \sup_{y \in T} | f(x, y) - g(y) | < \varepsilon).$$

In fact, one can see that this definition is equivalent to that of the uniform limit of a multivariable function introduced in the previous section.

Functions on topological spaces
Suppose $y$ and $y$ are topological spaces with $y$ a Hausdorff space. Let $L$ be a limit point of $(p, q)$, and $ε > 0$. For a function $δ > 0$, it is said that the limit of $T$ as $M$ approaches $N$ is $A$, written

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

if the following property holds:

This last part of the definition can also be phrased "there exists an open punctured neighbourhood $B$ of $M$ such that $|f(x, y) − L| < ε$".

The domain of $N$ does not need to contain $p$. If it does, then the value of $M$ at $f$ is irrelevant to the definition of the limit. In particular, if the domain of $x$ is $(x, y)$ (or all of $p$), then the limit of $L$ as $(p, q)$ exists and is equal to $p$ if, for all subsets $||(x, y) − (p, q)||$ of $f$ with limit point $L$, the limit of the restriction of $f$ to $ε > 0$ exists and is equal to $L$. Sometimes this criterion is used to establish the non-existence of the two-sided limit of a function on $x$ by showing that the one-sided limits either fail to exist or do not agree. Such a view is fundamental in the field of general topology, where limits and continuity at a point are defined in terms of special families of subsets, called filters, or generalized sequences known as nets.

Alternatively, the requirement that $S$ be a Hausdorff space can be relaxed to the assumption that $y$ be a general topological space, but then the limit of a function may not be unique. In particular, one can no longer talk about the limit of a function at a point, but rather a limit or the set of limits at a point.

A function is continuous at a limit point $T$ of and in its domain if and only if $x ≠ 0$ is the (or, in the general case, a) limit of $y ≠ 0$ as $x$ tends to $S$.

There is another type of limit of a function, namely the sequential limit. Let $|f(x, y) − 0| < ε$ be a mapping from a topological space $x$ into a Hausdorff space $p$, $(p, q)$ a limit point of $f$ and $(p, q)$. The sequential limit of $T$ as $x$ tends to $p$ is $g$ if


 * For every sequence ($x$) in $θ = θ(r)$ that converges to $S$, the sequence $(p, q)$ converges to $X$.

If $Y$ is the limit (in the sense above) of $Y$ as $p$ approaches $f$, then it is a sequential limit as well, however the converse need not hold in general. If in addition $x$ is metrizable, then $p$ is the sequential limit of $L$ as $V$ approaches $L$ if and only if it is the limit (in the sense above) of $U$ as $p$ approaches $U$.

In terms of sequences
For functions on the real line, one way to define the limit of a function is in terms of the limit of sequences. (This definition is usually attributed to Eduard Heine.) In this setting: $$\lim_{x\to a}f(x)=L$$ if, and only if, for all sequences $p$ (with $f$ not equal to $p$ for all $f$) converging to $p$ the sequence $cos θ$ converges to $f$. It was shown by Sierpiński in 1916 that proving the equivalence of this definition and the definition above, requires and is equivalent to a weak form of the axiom of choice. Note that defining what it means for a sequence $X$ to converge to $f$ requires the epsilon, delta method.

Similarly as it was the case of Weierstrass's definition, a more general Heine definition applies to functions defined on subsets of the real line. Let $L$ be a real-valued function with the domain $(0, 0)$. Let $X$ be the limit of a sequence of elements of $(x, y) = (t, 0) → (0, 0)$ Then the limit (in this sense) of $p$ is $f$ as $L$ approaches $\R$ if for every sequence $(x, y) = (t, t) → (0, 0)$ (so that for all $Y$, $Y$ is not equal to $p$) that converges to $x$, the sequence $(x, y)$ converges to $p$. This is the same as the definition of a sequential limit in the preceding section obtained by regarding the subset $(0, 0)$ of $X$ as a metric space with the induced metric.

In non-standard calculus
In non-standard calculus the limit of a function is defined by: $$\lim_{x\to a}f(x)=L$$ if and only if for all $$x\in \R^*,$$ $$f^*(x)-L$$ is infinitesimal whenever $ε > 0$ is infinitesimal. Here $$\R^*$$ are the hyperreal numbers and $Y$ is the natural extension of $X$ to the non-standard real numbers. Keisler proved that such a hyperreal definition of limit reduces the quantifier complexity by two quantifiers. On the other hand, Hrbacek writes that for the definitions to be valid for all hyperreal numbers they must implicitly be grounded in the ε-δ method, and claims that, from the pedagogical point of view, the hope that non-standard calculus could be done without ε-δ methods cannot be realized in full. Bŀaszczyk et al. detail the usefulness of microcontinuity in developing a transparent definition of uniform continuity, and characterize Hrbacek's criticism as a "dubious lament".

In terms of nearness
At the 1908 international congress of mathematics F. Riesz introduced an alternate way defining limits and continuity in concept called "nearness". A point $f$ is defined to be near a set $$A\subseteq \R$$ if for every $δ > 0$ there is a point $0 < |x − p| < δ$ so that $0 < |y − q| < δ$. In this setting the $$\lim_{x\to a} f(x)=L$$ if and only if for all $$A\subseteq \R,$$ $x$ is near $|f(x, y) − L| < ε$ whenever $p$ is near $L$. Here $(p, q)$ is the set $$\{f(x) | x \in A\}.$$ This definition can also be extended to metric and topological spaces.

Relationship to continuity
The notion of the limit of a function is very closely related to the concept of continuity. A function $x_{n}$ is said to be continuous at $p$ if it is both defined at $L$ and its value at $L$ equals the limit of $f$ as $x$ approaches $p$:

$$\lim_{x\to c} f(x) = f(c).$$ We have here assumed that $X$ is a limit point of the domain of $L$.

Properties
If a function $f$ is real-valued, then the limit of $x$ at $p$ is $f$ if and only if both the right-handed limit and left-handed limit of $x$ at $p$ exist and are equal to $xn$.

The function $xn$ is continuous at $a$ if and only if the limit of $x = p$ as $n$ approaches $a$ exists and is equal to $y = q$. If $ε > 0$ is a function between metric spaces $L$ and $xn$, then it is equivalent that $a$ transforms every sequence in $f$ which converges towards $a$ into a sequence in $f$ which converges towards $c > 0$.

If $L$ is a normed vector space, then the limit operation is linear in the following sense: if the limit of $x > c$ as $x$ approaches $p$ is $n$ and the limit of $y > c$ as $xn$ approaches $a$ is $a$, then the limit of $|f(x, y) − L| < ε$ as $L$ approaches $\R$ is $ε > 0$. If $f*$ is a scalar from the base field, then the limit of $c > 0$ as $f$ approaches $x$ is $L$.

If $a$ and $A$ are real-valued (or complex-valued) functions, then taking the limit of an operation on $x < −c$ and $y < −c$ (e.g., $|f(x, y) − L| < ε$, $(x, y) → (p, q)$, $x → p$, $ε > 0$, $f$) under certain conditions is compatible with the operation of limits of $δ(ε, y) > 0$ and $0 < |x − p| < δ$. This fact is often called the algebraic limit theorem. The main condition needed to apply the following rules is that the limits on the right-hand sides of the equations exist (in other words, these limits are finite values including 0). Additionally, the identity for division requires that the denominator on the right-hand side is non-zero (division by 0 is not defined), and the identity for exponentiation requires that the base is positive, or zero while the exponent is positive (finite).

$$\begin{array}{lcl} \displaystyle \lim_{x \to p} (f(x) + g(x)) & = & \displaystyle \lim_{x \to p} f(x) + \lim_{x \to p} g(x) \\ \displaystyle \lim_{x \to p} (f(x) - g(x)) & = & \displaystyle \lim_{x \to p} f(x) - \lim_{x \to p} g(x) \\ \displaystyle \lim_{x \to p} (f(x)\cdot g(x)) & = & \displaystyle \lim_{x \to p} f(x) \cdot \lim_{x \to p} g(x) \\ \displaystyle \lim_{x \to p} (f(x)/g(x)) & = & \displaystyle {\lim_{x \to p} f(x) / \lim_{x \to p} g(x)} \\ \displaystyle \lim_{x \to p} f(x)^{g(x)} & = & \displaystyle {\lim_{x \to p} f(x) ^ {\lim_{x \to p} g(x)}} \end{array}$$

These rules are also valid for one-sided limits, including when $c$ is ∞ or −∞. In each rule above, when one of the limits on the right is ∞ or −∞, the limit on the left may sometimes still be determined by the following rules.

$$\begin{array}{rcl} q + \infty & = & \infty \text{ if } q \neq -\infty \\[8pt] q \times \infty & = & \begin{cases} \infty & \text{if } q > 0 \\ -\infty & \text{if } q < 0 \end{cases} \\[6pt] \displaystyle \frac q \infty & = & 0 \text{ if } q \neq \infty \text{ and } q \neq -\infty \\[6pt] \infty^q & = & \begin{cases} 0 & \text{if } q < 0 \\ \infty & \text{if } q > 0 \end{cases} \\[4pt] q^\infty & = & \begin{cases} 0 & \text{if } 0 < q < 1 \\ \infty & \text{if } q > 1 \end{cases} \\[4pt] q^{-\infty} & = & \begin{cases} \infty & \text{if } 0 < q < 1 \\ 0 & \text{if } q > 1 \end{cases} \end{array}$$

(see also Extended real number line).

In other cases the limit on the left may still exist, although the right-hand side, called an indeterminate form, does not allow one to determine the result. This depends on the functions $c$ and $c$. These indeterminate forms are:

$$\begin{array}{cc} \displaystyle \frac{0}{0} & \displaystyle \frac{\pm \infty}{\pm \infty} \\[6pt] 0 \times \pm \infty & \infty + -\infty \\[8pt] \qquad 0^0 \qquad & \qquad \infty^0 \qquad \\[8pt] 1^{\pm \infty} \end{array}$$

See further L'Hôpital's rule below and Indeterminate form.

Limits of compositions of functions
In general, from knowing that $$\lim_{y \to b} f(y) = c$$ and $$\lim_{x \to a} g(x) = b,$$ it does not follow that $$\lim_{x \to a} f(g(x)) = c.$$ However, this "chain rule" does hold if one of the following additional conditions holds:
 * $|f(x, y) − g(y)| < ε$ (that is, $f$ is continuous at $x$), or
 * $c$ does not take the value $c$ near  $f$ (that is, there exists a $δ = δ(ε, y)$ such that if $π/2$ then $ε > 0$).

As an example of this phenomenon, consider the following function that violates both additional restrictions:

$$f(x) = g(x) = \begin{cases} 0 & \text{if } x\neq 0 \\ 1 & \text{if } x=0 \end{cases}$$

Since the value at $δ(ε) > 0$ is a removable discontinuity, $$\lim_{x \to a} f(x) = 0$$ for all $f$. Thus, the naïve chain rule would suggest that the limit of $0 < |x − p| < δ$ is 0. However, it is the case that $$f(f(x))=\begin{cases} 1 & \text{if } x\neq 0 \\ 0 & \text{if } x = 0 \end{cases}$$ and so $$\lim_{x \to a} f(f(x)) = 1$$ for all $f$.

Rational functions
For $p$ a nonnegative integer and constants $$a_1, a_2, a_3,\ldots, a_n$$ and $$b_1, b_2, b_3,\ldots, b_n,$$

$$\lim_{x \to \infty} \frac{a_1 x^n + a_2 x^{n-1} + a_3 x^{n-2} + \dots + a_n}{b_1 x^n + b_2 x^{n-1} + b_3 x^{n-2} + \dots + b_n} = \frac{a_1}{b_1}$$

This can be proven by dividing both the numerator and denominator by $L$. If the numerator is a polynomial of higher degree, the limit does not exist. If the denominator is of higher degree, the limit is 0.

Trigonometric functions
$$\begin{array}{lcl} \displaystyle \lim_{x \to 0} \frac{\sin x}{x} & = & 1 \\[4pt] \displaystyle \lim_{x \to 0} \frac{1 - \cos x}{x} & = & 0 \end{array}$$

Exponential functions
$$\begin{array}{lcl} \displaystyle \lim_{x \to 0} (1+x)^{\frac{1}{x}} & = & \displaystyle \lim_{r \to \infty} \left(1+\frac{1}{r}\right)^r = e \\[4pt] \displaystyle \lim_{x \to 0} \frac{e^{x}-1}{x} & = & 1 \\[4pt] \displaystyle \lim_{x \to 0} \frac{e^{ax}-1}{bx} & = & \displaystyle \frac{a}{b} \\[4pt] \displaystyle \lim_{x \to 0} \frac{c^{ax}-1}{bx} & = & \displaystyle \frac{a}{b}\ln c \\[4pt] \displaystyle \lim_{x \to 0^+} x^x & = & 1 \end{array}$$

Logarithmic functions
$$\begin{array}{lcl} \displaystyle \lim_{x \to 0} \frac{\ln(1+x)}{x} & = & 1 \\[4pt] \displaystyle \lim_{x \to 0} \frac{\ln(1+ax)}{bx} & = & \displaystyle \frac{a}{b} \\[4pt] \displaystyle \lim_{x \to 0} \frac{\log_c(1+ax)}{bx} & = & \displaystyle \frac{a}{b\ln c} \end{array}$$

L'Hôpital's rule
This rule uses derivatives to find limits of indeterminate forms $|f(x, y) − g(y)| < ε$ or $δ = δ(ε)$, and only applies to such cases. Other indeterminate forms may be manipulated into this form. Given two functions $cos y$ and $[−1, 1]$, defined over an open interval $f$ containing the desired limit point $p$, then if: then: $$\lim_{x \to c} \frac{f(x)}{g(x)} = \lim_{x \to c} \frac{f'(x)}{g'(x)}.$$
 * 1) $$\lim_{x \to c}f(x)=\lim_{x \to c}g(x)=0,$$  or $$\lim_{x \to c}f(x)=\pm\lim_{x \to c}g(x) = \pm\infty,$$ and
 * 2) $$f$$ and $$g$$ are differentiable over $$I \setminus \{c\},$$ and
 * 3) $$g'(x)\neq 0$$ for all $$ x \in I \setminus \{c\},$$ and
 * 4) $$\lim_{x\to c}\tfrac{f'(x)}{g'(x)}$$  exists,

Normally, the first condition is the most important one.

For example: $$\lim_{x \to 0} \frac{\sin (2x)}{\sin (3x)} = \lim_{x \to 0} \frac{2 \cos (2x)}{3 \cos (3x)} = \frac{2 \sdot 1}{3 \sdot 1} = \frac{2}{3}.$$

Summations and integrals
Specifying an infinite bound on a summation or integral is a common shorthand for specifying a limit.

A short way to write the limit $$\lim_{n \to \infty} \sum_{i=s}^n f(i) $$ is $$\sum_{i=s}^\infty f(i).$$ An important example of limits of sums such as these are series.

A short way to write the limit $$\lim_{x \to \infty} \int_a^x f(t) \; dt $$ is $$\int_a^\infty f(t) \; dt.$$

A short way to write the limit $$\lim_{x \to -\infty} \int_x^b f(t) \; dt $$ is $$\int_{-\infty}^b f(t) \; dt.$$