Skip to content

The Real Line — Worked Problems

Completeness, sequences, series and limits: eleven exam-style problems solved in full, a one-page reference, and a six-problem self-test.

To keep this as a PDF: press Ctrl+P (Cmd+P on a Mac) and choose “Save as PDF”. The page is styled to print cleanly, with the navigation removed.

What this book adds

The free chapters on this topic teach the ideas and the traps. This is the companion problem set: eleven questions at the length and difficulty CSIR NET actually sets, each solved completely rather than sketched — followed by a compressed reference sheet and six problems for you to check yourself against, answers only.

Work them in order. Several later solutions reuse a result from an earlier one, the way an exam paper itself rewards having done the easy part first.

Quick reference

Supremum. s=supAs = \sup A iff ss is an upper bound and, for every ε>0\varepsilon > 0, some aAa \in A has a>sεa > s - \varepsilon. Not necessarily attained.

Archimedean property. For every xRx \in \mathbb{R} there is nNn \in \mathbb{N} with n>xn > x.

The implication chain. convergent \Rightarrow Cauchy \Rightarrow bounded \Rightarrow has a convergent subsequence. Only Cauchy \Rightarrow convergent needs completeness; none of the arrows reverse without it.

Monotone convergence. Increasing and bounded above \Rightarrow converges, to the supremum. Prove monotone, prove bounded, then solve L=f(L)L = f(L) — never before.

limsup / liminf. lim supan=limnsupknak\limsup a_n = \lim_{n} \sup_{k \ge n} a_k, the largest subsequential limit. lim infanlim supan\liminf a_n \le \limsup a_n always; equality (and finite) iff the sequence converges. Subadditive only: lim sup(an+bn)lim supan+lim supbn\limsup(a_n+b_n) \le \limsup a_n + \limsup b_n, with equality restored the moment one of the two sequences converges.

Choosing a series test, in order: an↛0a_n \not\to 0 \Rightarrow diverges, free. Shape 1/np1/n^p or geometric \Rightarrow comparison (1/np\sum 1/n^p converges iff p>1p>1). Factorials or nnn^n \Rightarrow ratio. nn-th powers \Rightarrow root (strictly stronger than ratio). Ratio 1\to 1 \Rightarrow Raabe: R=limn(an/an+11)R = \lim n(a_n/a_{n+1} - 1), converges for R>1R>1, diverges for R<1R<1. Logs, terms decreasing \Rightarrow Cauchy condensation: an\sum a_n and 2ka2k\sum 2^k a_{2^k} share a fate. Alternating \Rightarrow Leibniz, then check an\sum |a_n| separately for absolute convergence.

Worked problems

1. A nested family of open intervals whose intersection is closed

Problem. For nNn \in \mathbb{N}, let An=(1n, 1+1n)A_n = \left(-\dfrac{1}{n},\ 1 + \dfrac{1}{n}\right). Find n=1An\bigcup_{n=1}^{\infty} A_n and n=1An\bigcap_{n=1}^{\infty} A_n.

Solution.

The family is nested and decreasing: 1/n-1/n increases toward 00 and 1+1/n1+1/n decreases toward 11 as nn grows, so A1A2A3A_1 \supseteq A_2 \supseteq A_3 \supseteq \cdots.

For a decreasing nested family the union is simply the first, largest set:

n=1An=A1=(1,2).\bigcup_{n=1}^{\infty} A_n = A_1 = (-1, 2).

The intersection needs more care. First, [0,1]nAn[0,1] \subseteq \bigcap_n A_n: for every nn, 0>1/n0 > -1/n and 1<1+1/n1 < 1+1/n, so both endpoints of [0,1][0,1] lie in every AnA_n, and so does everything between them.

Now take any x<0x < 0, say x=εx = -\varepsilon with ε>0\varepsilon > 0.

By the Archimedean property there is nn with n>1/εn > 1/\varepsilon, i.e. 1/n<ε1/n < \varepsilon, so 1/n>ε=x-1/n > -\varepsilon = x and xAnx \notin A_n.

So no point below 00 survives every AnA_n; the symmetric argument disposes of every x>1x > 1. Hence

n=1An=[0,1].\bigcap_{n=1}^{\infty} A_n = [0, 1].

Every AnA_n is open, and their intersection is closed. This is not a contradiction — only a finite intersection of open sets is guaranteed open; an infinite one need not be, and this is the standard example examiners reach for when a statement quietly drops the word "finite."

2. A supremum that is attained and an infimum that is not, in the same set

Problem. Let A={(1)n+1n:nN}A = \{(-1)^n + \tfrac{1}{n} : n \in \mathbb{N}\}. Find supA\sup A and infA\inf A, and say whether each is attained.

Solution.

Split on parity.

For even nn: (1)n+1/n=1+1/n(-1)^n + 1/n = 1 + 1/n, which is largest at the smallest even nn, namely n=2n=2, giving 3/23/2; it decreases toward 11 (never reaching it) as nn grows.

For odd nn: (1)n+1/n=1+1/n(-1)^n + 1/n = -1 + 1/n, largest at n=1n=1, giving 00; it decreases toward 1-1 (never reaching it) as nn grows.

Comparing the two tracks: the largest value overall is 3/23/2, attained at n=2n=2, so supA=3/2\sup A = 3/2, attained.

The smallest values come from the odd track, which descends toward 1-1 without ever reaching it (equality would need 1/n=01/n = 0), so infA=1\inf A = -1, not attained.

The point of pairing these in one set: there is no rule that a set's sup and inf are either both attained or both not — each is decided separately, by its own track.

3. Density of Q\mathbb{Q} in R\mathbb{R}, from the Archimedean property

Problem. Prove that for any reals a<ba < b, there is a rational number rr with a<r<ba < r < b.

Solution.

Since ba>0b - a > 0, the Archimedean property gives nNn \in \mathbb{N} with n>1ban > \dfrac{1}{b-a}, i.e. 1n<ba\dfrac{1}{n} < b - a.

Let mm be the smallest integer with m>nam > na. Such an mm exists: apply the Archimedean property to nana to get some integer above it, then take the least one — a non-empty set of integers bounded below has a least element.

Minimality of mm gives m1nam - 1 \le na, i.e. mna+1m \le na + 1.

Now put r=m/nr = m/n.

From m>nam > na: r=m/n>ar = m/n > a.

From mna+1m \le na+1: r=m/na+1/n<a+(ba)=br = m/n \le a + 1/n < a + (b-a) = b.

So a<r<ba < r < b with r=m/nQr = m/n \in \mathbb{Q} — the rationals are dense in R\mathbb{R} only because the reals fill every gap densely enough to make this construction land inside (a,b)(a,b) no matter how short it is.

4. A recursively defined sequence, proved monotone and bounded, limit found last

Problem. Define a1=2a_1 = 2 and an+1=12(an+2an)a_{n+1} = \dfrac{1}{2}\left(a_n + \dfrac{2}{a_n}\right) for n1n \ge 1. Show (an)(a_n) converges, and find its limit.

Solution.

First, an2a_n \ge \sqrt2 for every n1n \ge 1.

This is immediate from AM–GM: for any x>0x>0, 12(x+2/x)x2/x=2\dfrac{1}{2}(x + 2/x) \ge \sqrt{x \cdot 2/x} = \sqrt2, so an+12a_{n+1} \ge \sqrt2 for n1n \ge 1, and a1=22a_1 = 2 \ge \sqrt2 as well.

Next, (an)(a_n) is decreasing from n=1n=1 onward:

an+1an=12(2anan)=2an22an.a_{n+1} - a_n = \frac{1}{2}\left(\frac{2}{a_n} - a_n\right) = \frac{2 - a_n^2}{2a_n}.

Since an2a_n \ge \sqrt2, an22a_n^2 \ge 2, so the numerator is 0\le 0 and an+1ana_{n+1} \le a_n.

So (an)(a_n) is decreasing and bounded below by 2\sqrt2: by the monotone convergence theorem it converges. Call the limit LL.

Only now, with existence established, take the limit of both sides of the recursion:

L=12(L+2L)    2L2=L2+2    L2=2.L = \frac{1}{2}\left(L + \frac{2}{L}\right) \implies 2L^2 = L^2 + 2 \implies L^2 = 2.

Since every an2>0a_n \ge \sqrt2 > 0, L2>0L \ge \sqrt2 > 0, so L=2L = \sqrt2.

This is Newton's method for 2\sqrt2 starting from a1=2a_1=2; it is also why the sequence converges so fast — a4a_4 already agrees with 2\sqrt2 to five decimal places.

5. Proving a sequence is Cauchy directly, without assuming a limit exists

Problem. Let sn=k=1n1k2s_n = \displaystyle\sum_{k=1}^{n} \frac{1}{k^2}. Prove (sn)(s_n) is Cauchy.

Solution.

Take m>nm > n. Then

smsn=k=n+1m1k2<k=n+1m1k(k1)=k=n+1m(1k11k)=1n1m<1n,|s_m - s_n| = \sum_{k=n+1}^{m} \frac{1}{k^2} < \sum_{k=n+1}^{m} \frac{1}{k(k-1)} = \sum_{k=n+1}^{m} \left(\frac{1}{k-1} - \frac{1}{k}\right) = \frac{1}{n} - \frac{1}{m} < \frac{1}{n},

the middle sum telescoping to just its first and last pieces, and the inequality 1/k2<1/(k(k1))1/k^2 < 1/(k(k-1)) holding for every k2k \ge 2.

Given ε>0\varepsilon > 0, the Archimedean property gives NN with 1/N<ε1/N < \varepsilon.

Then for all m>nNm > n \ge N: smsn<1/n1/N<ε|s_m - s_n| < 1/n \le 1/N < \varepsilon. So (sn)(s_n) is Cauchy.

This is where completeness earns its keep — Cauchy in R\mathbb{R} means convergent, with no need to name the limit. (It happens to be π2/6\pi^2/6, which is a separate, much harder fact.)

The technique — bound the tail by a telescoping sum — is the standard route to proving a sequence of partial sums is Cauchy directly, and it works whenever the terms are eventually dominated by 1/(k(k1))1/(k(k-1)) or 1/(k(k+1))1/(k(k+1)).

6. One sequence, four questions and both limits

Problem. Let an=(1)nnn+1a_n = \dfrac{(-1)^n n}{n+1}. Determine whether (an)(a_n) is (i) bounded, (ii) Cauchy, (iii) convergent, (iv) has a convergent subsequence — and compute lim supan\limsup a_n and lim infan\liminf a_n.

Solution.

Split on parity again, since (1)n(-1)^n is exactly the kind of factor that makes this the right move.

Even nn: an=nn+11a_n = \dfrac{n}{n+1} \to 1. Odd nn: an=nn+11a_n = -\dfrac{n}{n+1} \to -1.

(i) Bounded. an=n/(n+1)<1|a_n| = n/(n+1) < 1 for every nn, so yes.

(iv) Convergent subsequence. Yes — in fact two: the even-indexed terms converge to 11 and the odd-indexed terms converge to 1-1.

(iii) Convergent. No. A sequence with two distinct subsequential limits cannot converge — if it did, every subsequence would converge to that same limit.

(ii) Cauchy. No, for the same reason: in R\mathbb{R}, Cauchy and convergent coincide, and this sequence is not convergent.

limsup and liminf. The subsequential limits are exactly 11 and 1-1, and there are no others, so lim supan=1\limsup a_n = 1 and lim infan=1\liminf a_n = -1 — consistent with lim inf<lim sup\liminf < \limsup, which must hold given the sequence does not converge.

This is the shape almost every "decide everything about this sequence" question takes: find the tracks, read every answer off them, and the limsup/liminf question is not a fifth calculation but the same two numbers already found in part (iv).

7. limsup and liminf from residue-class tracks

Problem. Compute lim supan\limsup a_n and lim infan\liminf a_n for an=cos ⁣(nπ3)+1na_n = \cos\!\left(\dfrac{n\pi}{3}\right) + \dfrac{1}{n}.

Solution.

cos(nπ/3)\cos(n\pi/3) depends only on nmod6n \bmod 6, cycling through six values:

n0,1,2,3,4,5(mod6)  cosnπ3=1, 12, 12, 1, 12, 12.n \equiv 0,1,2,3,4,5 \pmod 6 \ \longmapsto\ \cos\frac{n\pi}{3} = 1,\ \tfrac12,\ -\tfrac12,\ -1,\ -\tfrac12,\ \tfrac12.

The added 1/n01/n \to 0 shifts every track down toward its limiting value without changing which values are largest and smallest.

Along n0(mod6)n \equiv 0 \pmod 6: an=1+1/n1a_n = 1 + 1/n \to 1.

Along n3(mod6)n \equiv 3 \pmod 6: an=1+1/n1a_n = -1 + 1/n \to -1.

No other residue class reaches outside [1/2,1/2][-1/2, 1/2] in the limit, so these two are the extreme subsequential limits:

lim supan=1,lim infan=1.\limsup a_n = 1, \qquad \liminf a_n = -1.

This is the general method for any sequence built from a periodic piece plus a term tending to 00: reduce to residue classes mod the period, take each track to its limit, and read off the largest and smallest.

8. When does subadditivity become equality?

Problem. Prove: if anLa_n \to L (a genuine limit, not just bounded) and (bn)(b_n) is any bounded sequence, then lim sup(an+bn)=L+lim supbn\limsup(a_n + b_n) = L + \limsup b_n.

Solution.

Let M=lim supbnM = \limsup b_n and fix ε>0\varepsilon > 0. Since anLa_n \to L, there is NN with anL<ε/2|a_n - L| < \varepsilon/2 for all nNn \ge N.

Upper bound. For nNn \ge N:

supkn(ak+bk)supkn((L+ε/2)+bk)=L+ε/2+supknbk.\sup_{k \ge n}(a_k+b_k) \le \sup_{k\ge n}\big((L+\varepsilon/2)+b_k\big) = L + \varepsilon/2 + \sup_{k \ge n} b_k.

Letting nn \to \infty on both sides gives lim sup(an+bn)L+ε/2+M\limsup(a_n+b_n) \le L + \varepsilon/2 + M.

Lower bound. Symmetrically, ak>Lε/2a_k > L - \varepsilon/2 for kNk \ge N gives supkn(ak+bk)Lε/2+supknbk\sup_{k\ge n}(a_k+b_k) \ge L - \varepsilon/2 + \sup_{k\ge n} b_k for nNn \ge N, so lim sup(an+bn)Lε/2+M\limsup(a_n+b_n) \ge L - \varepsilon/2 + M.

Both bounds hold for every ε>0\varepsilon > 0, so lim sup(an+bn)=L+M\limsup(a_n+b_n) = L + M.

Why this does not contradict lim sup(an+bn)lim supan+lim supbn\limsup(a_n{+}b_n) \le \limsup a_n + \limsup b_n sometimes being strict, as in (1)n(-1)^n against (1)n+1(-1)^{n+1}: that example has neither sequence converging.

The moment one side is forced to a genuine limit, it can no longer be out of phase with the other, and the inequality tightens to equality. Strictness is entirely a phase effect between two oscillating sequences — remove the oscillation from one side and it is gone.

9. Raabe's test, on a series the ratio test cannot settle

Problem. Determine whether n=1(2n)!4n(n!)2\displaystyle\sum_{n=1}^{\infty} \frac{(2n)!}{4^n (n!)^2} converges.

Solution.

Let an=(2n)!4n(n!)2a_n = \dfrac{(2n)!}{4^n(n!)^2}. The ratio:

an+1an=(2n+2)!4n+1((n+1)!)24n(n!)2(2n)!=(2n+1)(2n+2)4(n+1)2=2n+12n+21.\frac{a_{n+1}}{a_n} = \frac{(2n+2)!}{4^{n+1}((n+1)!)^2} \cdot \frac{4^n(n!)^2}{(2n)!} = \frac{(2n+1)(2n+2)}{4(n+1)^2} = \frac{2n+1}{2n+2} \longrightarrow 1.

Inconclusive — exactly the signal to reach for Raabe. Its reciprocal:

anan+1=2n+22n+1=1+12n+1.\frac{a_n}{a_{n+1}} = \frac{2n+2}{2n+1} = 1 + \frac{1}{2n+1}.

So

R=limnn(anan+11)=limnn2n+1=12.R = \lim_{n\to\infty} n\left(\frac{a_n}{a_{n+1}} - 1\right) = \lim_{n\to\infty} \frac{n}{2n+1} = \frac12.

R=1/2<1R = 1/2 < 1, so the series diverges.

This matches the asymptotic an1/πna_n \sim 1/\sqrt{\pi n} from Stirling's formula — a p=1/2p=1/2 comparison, well under the p>1p>1 threshold — but Raabe reaches the same conclusion without needing Stirling at all, which is the actual point of having the test.

10. Cauchy condensation, worked in general rather than by example

Problem. For n2n \ge 2 and p>0p > 0, decide for which pp the series n=21n(logn)p\displaystyle\sum_{n=2}^{\infty} \frac{1}{n(\log n)^p} converges.

Solution.

The terms an=1/(n(logn)p)a_n = 1/(n(\log n)^p) are positive and decreasing, since both nn and logn\log n increase — so Cauchy condensation applies: an\sum a_n converges iff 2ka2k\sum 2^k a_{2^k} converges.

Compute:

2ka2k=2k2k(log2k)p=1(klog2)p=1(log2)p1kp.2^k a_{2^k} = \frac{2^k}{2^k(\log 2^k)^p} = \frac{1}{(k \log 2)^p} = \frac{1}{(\log 2)^p}\cdot\frac{1}{k^p}.

Dropping the constant 1/(log2)p1/(\log2)^p, this is a pp-series in kk, which converges iff p>1p>1. So

n=21n(logn)p converges    p>1.\sum_{n=2}^{\infty} \frac{1}{n(\log n)^p} \text{ converges} \iff p > 1.

In particular 1/(nlogn)\sum 1/(n\log n) (p=1p=1) diverges and 1/(nlog2n)\sum 1/(n\log^2 n) (p=2p=2) converges — the specific pair the exam likes to set side by side is just this general result at two values of pp, not two facts to memorise separately.

11. Absolute versus conditional, reusing Problem 10

Problem. Determine whether n=2(1)nnlogn\displaystyle\sum_{n=2}^{\infty} \frac{(-1)^n}{n\log n} converges absolutely, converges conditionally, or diverges.

Solution.

Absolute values give 1/(nlogn)\sum 1/(n \log n), which is exactly Problem 10 at p=1p=1 — divergent. So the series is not absolutely convergent.

For convergence itself, apply Leibniz to an=1/(nlogn)a_n = 1/(n\log n): it is positive, decreasing for n2n \ge 2 (as argued in Problem 10), and an0a_n \to 0. So the alternating series converges.

Convergent, not absolutely convergent: conditionally convergent.

And because it is only conditionally convergent, Riemann's rearrangement theorem applies to it — reordering its terms can be made to sum to any real number at all, or to diverge, which is not true of Problem 5's series (that one converges absolutely, so every rearrangement sums to the same value).

Practice — check yourself

Answers only — the point is to test whether the methods above transfer, not to read another eleven solutions.

  1. Find supB\sup B and infB\inf B, and say whether each is attained, for B={11/n:nN}{2}B = \{1 - 1/n : n \in \mathbb{N}\} \cup \{2\}.
  2. Is an=(1)n(1+1n2)a_n = (-1)^n\left(1 + \dfrac{1}{n^2}\right) Cauchy?
  3. Compute lim supan\limsup a_n and lim infan\liminf a_n for an=(1)n+1nsinnπ2a_n = (-1)^n + \dfrac{1}{n}\sin\dfrac{n\pi}{2}.
  4. Does n=1n!nn\displaystyle\sum_{n=1}^\infty \frac{n!}{n^n} converge? (Ratio test.)
  5. Is n=1(1)nn\displaystyle\sum_{n=1}^\infty \frac{(-1)^n}{\sqrt n} absolutely convergent, conditionally convergent, or divergent?
  6. For cn=sup{1/k:kn}c_n = \sup\{1/k : k \ge n\}, find limncn\lim_n c_n.

Work them before reading on — the answers are right below.

Answers

  1. supB=2\sup B = 2 (attained, it is the isolated point); infB=0\inf B = 0 (attained, at n=1n=1).
  2. No — the even and odd subsequences converge to 11 and 1-1 respectively, so the sequence does not converge, hence is not Cauchy.
  3. lim supan=1\limsup a_n = 1, lim infan=1\liminf a_n = -1 (the 1nsin(nπ/2)\frac1n\sin(n\pi/2) term is squeezed to 00 and does not move either extreme).
  4. Converges: an+1/an=(n/(n+1))n1/e<1a_{n+1}/a_n = (n/(n+1))^n \to 1/e < 1.
  5. Conditionally convergent: 1/n\sum 1/\sqrt n is a p=1/2p=1/2 series and diverges, but the alternating series itself converges by Leibniz.
  6. 00 — the tail supremum of a decreasing sequence is its first term, so cn=1/n0c_n = 1/n \to 0.
ShareWhatsAppTelegram

Back to The Real Line · Read the free chapters