Aditya Makkar
Upper and Lower Limits

Most of what follows is taken from Rudin's book Principles of Mathematical Analysis.

Introduction

The concept of upper and lower limits (commonly denoted by lim sup⁡\limsup and lim inf⁡\liminf respectively) shows up routinely when discussing the limiting behaviour of a sequence. For example, consider the Big O notation, O\mathcal{O}, defined as f(n)=O(g(n))f(n) = \mathcal{O}(g(n)) iff there exists a positive real number cc and an integer NN such that for every n∈Zn \in \Z, n>Nn > N, we have ∣f(n)∣≤cg(n)|f(n)| \leq c g(n). This can be succinctly written as

lim sup⁡n→∞∣f(n)∣g(n)<∞.\begin{aligned} \limsup_{n \to \infty} \frac{|f(n)|}{g(n)} < \infty.\end{aligned}

In this post, I aim to expound on the concept of upper and lower limits so that the second formulation of Big O notation above becomes just as natural as the first one.

Definitions

I start with some definitions.

Definition 1: A sequence is a real-valued function defined on the set N\mathbb N of positive integers. If f(n)=xnf(n) = x_n, for n∈Nn \in \mathbb N, we denote the sequence ff by the symbol {xn}n∈N\{x_n\}_{n \in \mathbb N}, or simply {xn}\{x_n\}, or sometimes by x1,x2,…x_1, x_2, \ldots.
Definition 2: A sequence {pn}\{p_n\} in a metric space (X,d)(X, d) is said to converge if there is a point p∈Xp \in X with the following property: for every ε>0\varepsilon > 0 there is an integer NN such that n≥Nn \geq N implies that d(pn,p)<εd(p_n, p) < \varepsilon. We write this as lim⁡n→∞pn=p\lim_{n \to \infty} p_n = p or simply as pn→pp_n \to p.
Definition 3: Let {sn}\{s_n\} be a sequence of real numbers with the following property: For every real MM there is an integer NN such that n≥Nn \geq N implies sn≥Ms_n \geq M. We then write sn→+∞s_n \to +\infty. Similarly for sn→−∞s_n \to -\infty.

Note: The symbol →\to is now used for certain type of divergent sequences as well.

Definition 4: Given a sequence {pn}\{p_n\}, consider a sequence {nk}\{n_k\} of positive integers, such that n1<n2<⋯n_1 < n_2 < \cdots. Then the sequence {pnk}k∈N\{p_{n_k}\}_{k \in \mathbb N}, which is a composition of the functions {nk}k\{n_k\}_k and {pn}n\{p_n\}_n, is called a subsequence of the sequence {pn}\{p_n\}. If {pnk}\{p_{n_k}\} converges, its limit is called a subsequential limit of {pn}\{p_n\}.
Definition 5: Let {sn}\{s_n\} be a sequence of real numbers. Let EE be the set of numbers xx (in the extended real number system, i.e., x∈R‾:=R∪{+∞,−∞}x \in \overline{\mathbb R} := \mathbb R \cup \{+\infty, -\infty\}) such that snk→xs_{n_k} \to x for some subsequence {snk}\{s_{n_k}\}. Therefore, this set contains all the subsequential limits of {sn}\{s_n\} plus possibly the numbers +∞+\infty and −∞-\infty. We define
s∗=sup⁡Es∗=inf⁡E.\begin{aligned} s^* &= \sup E \\ s_* &= \inf E. \end{aligned}
The numbers s∗s^* and s∗s_* are called the upper and lower limits of {sn}\{s_n\} respectively. We use the notation
lim sup⁡n→∞sn=s∗lim inf⁡n→∞sn=s∗.\begin{aligned} \limsup_{n \to \infty} s_n &= s^* \\ \liminf_{n \to \infty} s_n &= s_*. \end{aligned}

It immediately follows that s∗≤s∗s_* \leq s^*.

The fact that EE is non-empty (and thus taking sup⁡\sup or inf⁡\inf makes sense) follows from the observation that either {sn}\{s_n\} is bounded or unbounded. If it is bounded then it must contain a convergent subsequence (by the Bolzano–Weierstrass theorem) and thus at least one element, or if it is unbounded then it must contain either +∞+\infty or −∞-\infty.

Some Useful Lemmas

Now let us prove some lemmas that will be useful later.

Lemma 1: The subsequential limits of a sequence {pn}\{p_n\} in a metric space XX form a closed subset of XX.

As before, let EE be the set of all subsequential limits of {pn}\{p_n\} and let qq be a limit point of EE. We have to show that q∈Eq \in E. To show this we will construct a subsequence of {pn}\{p_n\} which converges to q.q.

Choose n1n_1 so that pn1≠qp_{n_1} \neq q. If no such n1n_1 exists, then EE has only one element, namely q=p1=p2=⋯q = p_1 = p_2 = \cdots, and there is nothing to prove. Define δ=d(q,pn1)\delta = d(q, p_{n_1}). Suppose n1,…,ni−1n_1, \ldots, n_{i-1} for some fixed i≥2i \ge 2 are chosen. Since qq is a limit point of EE, there is a point x∈Ex \in E with d(q,x)<δ/2id(q, x) < \delta /2^i. Since x∈Ex \in E, there is an ni>ni−1n_i > n_{i-1} such that d(x,pni)<δ/2id(x, p_{n_i}) < \delta/2^i. Thus

d(q,pni)≤d(q,x)+d(x,pni)<δ2i−1for i=1,2,….\begin{aligned} d(q, p_{n_i}) \leq d(q, x) + d(x, p_{n_i}) < \frac{\delta}{2^{i-1}} \quad \text{for } i = 1,2,\ldots.\end{aligned}
This implies pnk→qp_{n_k} \to q, showing q∈Eq \in E.

Lemma 2: Let FF be a nonempty closed set of real numbers which is bounded above. Let α=sup⁡F\alpha = \sup F. Then α∈F\alpha \in F.
Assume for the sake of the contradiction that α∉F\alpha \notin F. Then since FcF^\mathsf{c} is an open set (because FF is closed) there exists an ε>0\varepsilon > 0 such that (α−ε,α+ε)⊂Fc(\alpha - \varepsilon, \alpha + \varepsilon) \subset F^\mathsf{c}. But this implies α−ε2\alpha - \frac{\varepsilon}{2} is an upper bound for FF which is smaller than α\alpha. This gives us our required contradiction.

Properties

We now have all the tools to prove the highlight of this blog post, a very useful characterization of upper and lower limits.

Theorem 1: Let {sn}\{s_n\} be a sequence of real numbers. Let EE and s∗s^* have the same meaning as previously. Then s∗s^* has the following two properties:

  1. s∗∈Es^* \in E, and

  2. if x>s∗x > s^*, then there exists an integer NN such that n≥Nn \geq N implies sn<x.s_n < x.

Moreover, s∗s^* is the only number with these two properties.

Of course, an analogous result is true for s∗s_*.

We start by showing the two properties.

  1. We divide it into three cases depending on what value s∗s^* takes:

    1. If s∗=+∞s^* = +\infty, then EE is not bounded above, hence {sn}\{s_n\} is not bounded above, and thus there is a subsequence {snk}\{s_{n_k}\} such that snk→+∞.s_{n_k} \to +\infty. Therefore, +∞∈E+\infty \in E, or in other words s∗∈Es^* \in E.

    2. If s∗s^* is real, then EE is bounded above, and at least one subsequential limit exists by the definition of sup⁡\sup. **Therefore, s∗∈Es^* \in E follows from the Lemmas 1 and 2, and the fact that s∗=sup⁡E.s^* = \sup E.

    3. Lastly, if s∗=−∞s^* = -\infty, then EE contains only one element, namely −∞-\infty, and there is no subsequential limit. Thus, s∗∈Es^* \in E.

  2. Suppose for the sake of contradiction that there is a number x>s∗x > s^* such that sn≥xs_n \geq x for infinitely many values of nn. Let's denote this set of nn's with K\mathcal{K} and let {sk}k∈K\{s_k\}_{k \in \mathcal{K}} be this subsequence. If {sk}k∈K\{s_k\}_{k \in \mathcal{K}} is unbounded then s∗=+∞s^* = +\infty contradicting the fact that there exists an x>s∗.x > s^*. And if {sk}k∈K\{s_k\}_{k \in \mathcal{K}} is bounded that it contains a convergent subsequence (by the Bolzano–Weierstrass theorem). Suppose this convergent subsequence converges to yy. Then y≥x>s∗y \geq x > s^*. This contradicts the definition of s∗.s^*.

To show the uniqueness, suppose there are two distinct numbers, pp and qq, which satisfy the two properties, and suppose p<qp < q. Choose xx such that p<x<qp < x < q. Since pp satisfies the second property, there exists an integer NN such that sn<xs_n < x for n≥Nn \geq N. But then qq cannot satisfy the first property.

An intuitive theorem:

Theorem 2: If for two sequences {sn}\{s_n\} and {tn}\{t_n\} we have sn≤tns_n \leq t_n for n≥Nn \geq N, where N∈NN \in \mathbb N is fixed, then
lim inf⁡n→∞sn≤lim inf⁡n→∞tnlim sup⁡n→∞sn≤lim sup⁡n→∞tn.\begin{aligned} \liminf_{n \to \infty} s_n &\le \liminf_{n \to \infty} t_n \\ \limsup_{n \to \infty} s_n &\le \limsup_{n \to \infty} t_n. \end{aligned}

Let s∗=lim sup⁡n→∞sns^* = \limsup_{n \to \infty} s_n and t∗=lim sup⁡n→∞tnt^* = \limsup_{n \to \infty} t_n, as before. Suppose for the sake of contradiction t∗<s∗t^* < s^*. Choose xx such that t∗<x<s∗t^* < x < s^*. Then by the second property of Theorem 1 there is an integer N1N_1 such that n≥N1n \geq N_1 implies tn<xt_n < x. Also by the first property of Theorem 1 there exists a subsequence {snk}\{s_{n_k}\} such that snk→s∗s_{n_k} \to s^*. This implies that there exists an integer N2N_2 such that n≥N2n \geq N_2 implies x<snx < s_n. But then for n≥max⁡{N1,N2}n \geq \max\{N_1, N_2\} we have tn<x<snt_n < x < s_n. This gives us our required contradiction.

A similar argument can be made for the lim inf⁡\liminf case.

Next we give a necessary and sufficient condition for the convergence of a sequence in terms of its lim inf⁡\liminf and lim sup⁡\limsup.

Theorem 3: For a real-valued sequence {sn}\{s_n\}, sn→s∈R‾s_n \to s \in \overline{\mathbb R} if and only if
lim sup⁡n→∞sn=lim inf⁡n→∞sn=s.\begin{aligned} \limsup_{n \to \infty} s_n = \liminf_{n \to \infty} s_n = s.\end{aligned}

We divide the analysis into three cases.

  1. First, let s∈Rs \in \mathbb R. Then if s∗=s∗=ss^* = s_* = s, Theorem 1 implies that for any ε>0\varepsilon > 0 we have sn∈(s−ε,s+ε)s_n \in (s-\varepsilon, s+\varepsilon) for all but finitely many nn, which means sn→s.s_n \to s. On the other hand if sn→ss_n \to s then every subsequence {snk}\{s_{n_k}\} must converge to ss and hence s∗=s∗=ss^* = s_* = s.

  2. Now let s=+∞s = +\infty. Then sn→ss_n \to s means that for every M∈RM \in \mathbb R there is an integer NN such that n≥Nn \geq N implies sn≥M.s_n \geq M. This is same as saying s∗=+∞s_* = +\infty, which gives s∗=+∞s^* = +\infty curtsy of Theorem 2.

  3. Lastly, let s=−∞s = -\infty. Then sn→ss_n \to s means that for every M∈RM \in \mathbb R there is an integer NN such that n≥Nn \geq N implies sn≤M.s_n \leq M. This is same as saying s∗=−∞,s^* = -\infty, which gives s∗=−∞s_* = -\infty curtsy of Theorem 2.

Upper and Lower Limits — A Reprise

There is an equivalent and often useful way to express upper and lower limits.

Definition 6: Let {sn}\{s_n\} be a sequence of real numbers. We define the notation
sup⁡k≥nsk:=sup⁡{sk:k≥n}inf⁡k≥nsk:=inf⁡{sk:k≥n}.\begin{aligned} \sup_{k \ge n} s_k &:= \sup \{s_k : k \ge n\} \\ \inf_{k \ge n} s_k &:= \inf \{s_k : k \ge n\}. \end{aligned}

We note that the sequence {sup⁡k≥nsk}n∈N\{\sup_{k \ge n} s_k\}_{n \in \mathbb N} is monotonically decreasing and the sequence {inf⁡k≥nsk}n∈N\{\inf_{k \ge n} s_k\}_{n \in \mathbb N} is monotonically increasing, and thus their limits exist in R‾.\overline{\mathbb R}.

We now show the equivalence of the two ways of looking at upper and lower limits.

Theorem 4: Let {sn}\{s_n\} be a sequence of real numbers. Then
lim⁡n→∞sup⁡k≥nsk=lim sup⁡n→∞sn,lim⁡n→∞inf⁡k≥nsk=lim inf⁡n→∞sn.\begin{aligned} \lim_{n \to \infty} \sup_{k \ge n} s_k &= \limsup_{n \to \infty} s_n, \\ \lim_{n \to \infty} \inf_{k \ge n} s_k &= \liminf_{n \to \infty} s_n. \end{aligned}

We will prove the first equation. The proof for the second is similar. We prove the equation in two steps.

Let S={sn:n∈N}S = \{ s_n : n \in \mathbb N \}. Let's show that sup⁡S=+∞\sup S = +\infty if and only if s∗=+∞.s^* = + \infty. Suppose first that sup⁡S=+∞.\sup S = + \infty. Then we construct a subsequence {snk}\{s_{n_k}\} as follows. We let n1=1.n_1 = 1. Suppose n1,…,nkn_1, \ldots, n_{k} for some fixed k≥1k \ge 1 have been chosen and let

Sk={n∈N:sn≥max⁡{sn1,…,snk,k}+1}.\begin{aligned} S_k = \{ n \in \mathbb N : s_n \geq \max\{s_{n_1}, \ldots, s_{n_k}, k\} + 1 \}.\end{aligned}

Notice that SkS_k is infinite as otherwise we can find an M∈RM \in \mathbb R such that sn≤Ms_n \leq M for all n≥1n \geq 1, contradicting the fact that sup⁡S=+∞\sup S = + \infty. We pick nk+1n_{k+1} to be the smallest element of SkS_k which is bigger than nk.n_k. The resulting subsequence satisfies the condition that snk≥ks_{n_k} \geq k for k≥2k \geq 2 and thus we conclude that snk→+∞s_{n_k} \to +\infty which gives s∗=+∞.s^* = +\infty. Now suppose that s∗=+∞.s^* = +\infty. From Theorem 1 we can conclude that there exists a subsequence {snk}\{s_{n_k}\} such that snk→+∞.s_{n_k} \to +\infty. This immediately implies sup⁡S=+∞.\sup S = +\infty.

For the second step, suppose sup⁡S<+∞.\sup S < + \infty. Denote

an=sup⁡k≥nsk.\begin{aligned} a_n = \sup_{k \ge n} s_k.\end{aligned}
Notice that a1<+∞a_1 < +\infty and {an}\{a_n\} is a monotonically decreasing sequence. Therefore, we have that either {an}\{a_n\} is lower bounded, in which case it converges to, say, a,a, or it is not, in which case an→−∞.a_n \to -\infty. Since sn≤an,s_n \leq a_n, by Theorem 2 we can conclude
s∗≤a∗=lim⁡n→∞an,\begin{aligned} s^* \le a^* = \lim_{n \to \infty} a_n,\end{aligned}
where the last equality follows from Theorem 3. We will now show that
s∗≥lim⁡n→∞an,\begin{aligned} s^* \ge \lim_{n \to \infty} a_n,\end{aligned}
which will give us our required equality. If lim⁡n→∞an=−∞\lim_{n \to \infty} a_n = -\infty, there is nothing to prove and so we assume that a>−∞.a > -\infty. Let ε>0\varepsilon > 0 be given and define
B:={n∈N:sn≥a−ε}.\begin{aligned} B := \{ n \in \mathbb N : s_n \ge a - \varepsilon \}.\end{aligned}
We claim that BB is infinite. Indeed, if BB were finite we could find N∈NN \in \mathbb N so that N≥max⁡B.N \geq \max B. This will imply that sn≤a−εs_n \le a - \varepsilon for all n≥Nn \geq N and so an≤a−εa_n \leq a - \varepsilon for n≥N.n \geq N. But then by Theorem 2 we would conclude a=lim⁡an≤a−ε.a = \lim a_n \leq a-\varepsilon. Thus BB is infinite and we let {snk}\{s_{n_k}\} be a subsequence of {sn}\{s_n\} with nk∈B.n_k \in B. Notice that lim sup⁡k→∞snk≤s∗,\limsup_{k \to \infty} s_{n_k} \leq s^*, since any subsequential limit of {snk}\{s_{n_k}\} is also a subsequential limit of {sn}.\{s_n\}. This along with Theorem 2 give
a−ε≤lim sup⁡k→∞snk≤s∗.\begin{aligned} a - \varepsilon \le \limsup_{k \to \infty} s_{n_k} \leq s^*.\end{aligned}
Since ε\varepsilon was arbitrary we conclude that s∗≥as^* \ge a, which is what we wanted.

More Properties

These theorems make it easier to discover more properties of upper and lower limits.

Theorem 5: Let {sn}\{s_n\} be a sequence of real numbers. Then
lim inf⁡n→∞sn=−lim sup⁡n→∞(−sn).\begin{aligned} \liminf_{n \to \infty} s_n = - \limsup_{n \to \infty} (-s_n).\end{aligned}
If for a set SS of real numbers, we denote by −S-S the set {−s:s∈S},\{-s : s \in S\}, then the theorem follows immediately from the simple observation that
inf⁡S=−sup⁡(−S)\begin{aligned} \inf S = - \sup (-S)\end{aligned}
and Theorem 4.
Theorem 6 [Subadditivity of lim sup⁡\limsup]: For any two real sequences {sn}\{s_n\} and {tn}\{t_n\}, we have
lim sup⁡n→∞(sn+tn)≤lim sup⁡n→∞sn+lim sup⁡n→∞tn,\begin{aligned} \limsup_{n \to \infty} (s_n + t_n) \le \limsup_{n \to \infty} s_n + \limsup_{n \to \infty} t_n,\end{aligned}
provided the sum on the right is not of the form ∞−∞.\infty - \infty.

If s∗=+∞s^* = +\infty or t∗=+∞t^* = +\infty or s∗=−∞s^* = -\infty or t∗=−∞t^* = -\infty, it is easily checked that the inequality is true, and so we may assume s∗,t∗∈R.s^*, t^* \in \mathbb R.

For two sets SS and TT of real numbers satisfying S⊆TS \subseteq T, we know that sup⁡S≤sup⁡T\sup S \le \sup T. This fact along with the observation

{(k,k):k≥n}⊆{k:k≥n}×{k:k≥n}\begin{aligned} \{(k,k) : k \ge n\} \subseteq \{k : k \ge n\} \times \{k : k \ge n\}\end{aligned}
for any n∈Nn \in \mathbb N, imply
sup⁡k≥n(sk+tk)≤sup⁡k≥nsk+sup⁡k≥ntk.\begin{aligned} \sup_{k \ge n} (s_k + t_k) \le \sup_{k \ge n} s_k + \sup_{k \ge n} t_k.\end{aligned}
Taking limit as n→∞n \to \infty now gives us our desired inequality.

Theorem 7 [Superadditivity of lim inf⁡\liminf]: For any two real sequences {sn}\{s_n\} and {tn}\{t_n\}, we have
lim inf⁡n→∞(sn+tn)≥lim inf⁡n→∞sn+lim inf⁡n→∞tn.\begin{aligned} \liminf_{n \to \infty} (s_n + t_n) \ge \liminf_{n \to \infty} s_n + \liminf_{n \to \infty} t_n.\end{aligned}
Similar to the proof of Theorem 6.

Back to top