SigmaField
Mathematical Foundations for Quant Finance
0 of 256 lessons
    1. PG5.1 A series is the limit of its partial sumsProof · 40 min
    2. PG5.2 The comparison and ratio tests, provedProof · 45 min
    3. PG5.3 Absolute and conditional convergenceProof · 40 min
    4. PG5.4 The series for eˣ converges for every xProof · 45 min
    5. PG5.5 Stage review: proving a series convergesProof · 40 min
Proof Gym overview →

Proof Gym PG5 Series and convergence Lesson 2 of 5

ProofLesson PG5.2 in the Proof Gym, stage PG5: Series and convergence. About 45 minutes.

The comparison and ratio tests, proved

Simulate

Check the claim with numbers

Lesson PG5.1 showed that a series needs more than shrinking terms. This lesson proves two tests that can decide. The first compares a series with one whose sum is known.

Take ak=∣sin⁡k∣2ka_k = \frac{|\sin k|}{2^k}, with kk in radians. Its terms are irregular, but never negative and never above bk=12kb_k = \frac{1}{2^k}, whose series adds up to 1 (lesson 1.5.3). The cell prints both partial sums.

⌘/Ctrl + Enter runs the cell

The partial sums of ∑ak\sum a_k only go up, and they stay below those of ∑bk\sum b_k. They settle: after 40 and after 60 terms the sum is 0.7584330388, the same to ten decimal places.

Conjecture

The comparison test. Suppose 0≤ak≤bk0 \le a_k \le b_k for every k≥1k \ge 1, and ∑bk\sum b_k converges. Then ∑ak\sum a_k converges, and

∑k=1∞ak≤∑k=1∞bk\sum_{k=1}^{\infty} a_k \le \sum_{k=1}^{\infty} b_k

One pair of series, sixty terms. The proof must work for every pair, with no formula for the sum of ∑ak\sum a_k.

Series with terms that are never negative

When every ak≥0a_k \ge 0, each new term can only raise the partial sum: Sn=Sn−1+an≥Sn−1S_n = S_{n-1} + a_n \ge S_{n-1}. So the partial sums form an increasing sequence, and two facts about limits apply.

  • Increasing and bounded. An increasing sequence that is bounded above converges (lesson PG4.5).
  • Limits keep inequalities. If xn→Lx_n \to L and xn≤cx_n \le c from some point on, then L≤cL \le c. Otherwise ε=L−c\varepsilon = L - c would put every xnx_n from some later point on within L−cL - c of LL, so above cc. The same holds with ≥\ge in place of ≤\le.

Rule: Nonnegative terms

ak≥0 for every k,Sn≤B for every n⟹∑k=1∞ak convergesand its sum is at most B\begin{gathered} a_k \ge 0 \text{ for every } k, \\ S_n \le B \text{ for every } n \\ \Longrightarrow \sum_{k=1}^{\infty} a_k \text{ converges} \\ \text{and its sum is at most } B \end{gathered}

The partial sums go up and never pass BB, so they converge, and their limit is at most BB. Here BB is any number that no partial sum exceeds.

Format 1

Reorder the steps

Here is the proof of the comparison test, with its lines shuffled. Put them in order with the arrows, or drag a line by its handle.

  1. Every bk≥0b_k \ge 0, so Bn≤BmB_n \le B_m whenever n≤mn \le m. Letting m→∞m \to \infty, limits keep the inequality: Bn≤BB_n \le B for every nn.
  2. Since ak≤bka_k \le b_k for every kk, adding the first nn of each gives An≤Bn≤BA_n \le B_n \le B.
  3. Since An≤BA_n \le B for every nn, the limit keeps the inequality: ∑ak=A≤B=∑bk\sum a_k = A \le B = \sum b_k.
  4. Write AnA_n and BnB_n for the partial sums of ∑ak\sum a_k and ∑bk\sum b_k, and BB for the sum of ∑bk\sum b_k.
  5. Every ak≥0a_k \ge 0 as well, so the AnA_n only go up, and the line before says they never pass BB.
  6. An increasing sequence that is bounded above converges (lesson PG4.5), so AnA_n tends to a limit AA.

Read backwards, the test also proves divergence. If 0≤ak≤bk0 \le a_k \le b_k and ∑ak\sum a_k diverges, then ∑bk\sum b_k diverges too, since otherwise the test would make ∑ak\sum a_k converge.

Simulate

A series to compare

Lesson 1.5.3 found the partial sums of 1+14+19+⋯1 + \frac{1}{4} + \frac{1}{9} + \cdots levelling off near 1.644934. To prove that they converge, compare each term from k=2k = 2 on with 1k(k−1)\frac{1}{k(k-1)}, which is a little larger.

⌘/Ctrl + Enter runs the cell

Each partial sum SnS_n stays below 2−1n2 - \frac{1}{n}: 1.549768 against 1.9 for n=10n = 10, and 1.644933 against 1.999999 for a million terms. The comparison holds exactly from k=2k = 2 to 999. The last line adds 1k−1−1k\frac{1}{k-1} - \frac{1}{k} from k=2k = 2 to 10: almost everything cancels, leaving 910\frac{9}{10}.

Conjecture

The series ∑k=1∞1k2\sum_{k=1}^{\infty} \frac{1}{k^2} converges, and its sum is at most 2.

Checked up to a million terms. The proof gives the bound 2−1n2 - \frac{1}{n} for every nn.

Format 2

Fill the gap

The proof, with its key steps left out. Type each missing piece as you would a quick answer, such as 1/(k+1) or 3-2/n, then check.

Each term. For k≥2k \ge 2, write 1k−1−1k\frac{1}{k-1} - \frac{1}{k} over a common denominator. It equals .

Since k2−k(k−1)=k^2 - k(k - 1) = is positive, k2>k(k−1)k^2 > k(k - 1). So 1k2<1k(k−1)=1k−1−1k\frac{1}{k^2} < \frac{1}{k(k-1)} = \frac{1}{k-1} - \frac{1}{k} for every k≥2k \ge 2.

The partial sums. Add 1k−1−1k\frac{1}{k-1} - \frac{1}{k} for k=2k = 2 to nn. Each −1k-\frac{1}{k} cancels the +1k+\frac{1}{k} of the next term, so only the first and last pieces remain: the total is .

So Sn=1+∑k=2n1k2≤2−1n<S_n = 1 + \sum_{k=2}^{n} \frac{1}{k^2} \le 2 - \frac{1}{n} < for every n≥1n \ge 1.

The conclusion. The terms 1k2\frac{1}{k^2} are positive and the partial sums never reach 2. By the rule for nonnegative terms, the series converges, and its sum is at most 2.

How to type answers
  • Powers with ^, brackets round a power that is a sum: r^k, r^(k+1).
  • Fractions with / and brackets: (1-r)/(1+r). Multiply with * or side by side: 2k+1.
  • Press Enter in any box to check them all.

Lesson 1.5.3 gave the sum: π26≈1.644934\frac{\pi^2}{6} \approx 1.644934. The proof shows only that a sum exists, below 2. That is often all a proof of convergence gives.

Simulate

The ratio of one term to the next

The second test needs no partner series. For positive terms, it looks at the ratio ak+1ak\frac{a_{k+1}}{a_k} of each term to the one before. The cell prints the ratio at k=1k = 1, 10 and 100, then the partial sums after 100 and 1,000 terms.

⌘/Ctrl + Enter runs the cell

For k2k\frac{k}{2^k} the ratios close in on 0.5, and the partial sums settle on 2.0. For 3kk!\frac{3^k}{k!} they close in on 0, and the sums settle on 19.0855. Ratios that end up below 1 behave like a geometric series.

The last line shows a detail that matters below. The ratios of k2k\frac{k}{2^k} are k+12k\frac{k+1}{2k}, and all of them are above 0.5, up to k=105k = 10^5.

Both 1k\frac{1}{k} and 1k2\frac{1}{k^2} have ratios that close in on 1. The first series diverges (lesson PG5.1) and the second converges, so a limit of 1 decides nothing.

Conjecture

The ratio test. Suppose every ak>0a_k > 0 and the ratios tend to a limit:

ak+1ak→L\frac{a_{k+1}}{a_k} \to L

If L<1L < 1, the series ∑ak\sum a_k converges.

Four series, three ratios each, and the ratios of k2k\frac{k}{2^k} up to k=105k = 10^5. The proof compares the series with a geometric series, which lesson 1.5.3 summed.

The proof uses one more fact. Leaving out the first NN terms of a series moves every partial sum by the same amount, a1+⋯+aNa_1 + \cdots + a_N. So it does not change whether the series converges.

Format 3

Find the error

A proof of the ratio test, with one line that does not follow from what comes before it. Select it.

Simulate

Ratios above 1

Take ak=2kk3a_k = \frac{2^k}{k^3}. Its ratios tend to 2, above 1. The cell prints kk, the term aka_k and the ratio ak+1ak\frac{a_{k+1}}{a_k}.

⌘/Ctrl + Enter runs the cell

The terms fall at first, to 0.25 at k=4k = 4, while the ratios are below 1. In the rows from k=4k = 4 on, the ratios are above 1 and the terms grow: 1.024 at k=10k = 10, 131.072 at k=20k = 20.

Conjecture

If every ak>0a_k > 0 and ak+1ak→L\frac{a_{k+1}}{a_k} \to L with L>1L > 1, then the series ∑ak\sum a_k diverges.

Nine terms. The proof turns a ratio above 1 into terms that cannot shrink to 0.

Format 4

Write it

Prove that if every ak>0a_k > 0 and ak+1ak→L\frac{a_{k+1}}{a_k} \to L with L>1L > 1, then ∑ak\sum a_k diverges. Choose an ε\varepsilon, then use the term test of lesson PG5.1.

Saved in this browser as you type.

Write your own first: a proof you have tried to write teaches far more than one you only read.

Lesson PG5.4 uses the ratio test on the series for exe^x. For every x≠0x \ne 0, the ratios of the sizes of its terms tend to 0.

Summary card

  • Nonnegative terms give increasing partial sums. If they stay at most BB, the series converges, with sum at most BB.
  • Comparison test: if 0≤ak≤bk0 \le a_k \le b_k and ∑bk\sum b_k converges, so does ∑ak\sum a_k, with ∑ak≤∑bk\sum a_k \le \sum b_k. If ∑ak\sum a_k diverges, so does ∑bk\sum b_k.
  • ∑1k2\sum \frac{1}{k^2} converges: 1k2<1k−1−1k\frac{1}{k^2} < \frac{1}{k-1} - \frac{1}{k} for k≥2k \ge 2, so every partial sum is below 2.
  • Ratio test, for positive terms with ak+1ak→L\frac{a_{k+1}}{a_k} \to L: L<1L < 1 converges, L>1L > 1 diverges, L=1L = 1 decides nothing.
  • In the proof, compare with a ratio qq strictly between LL and 1. The ratios need not ever fall to LL itself.

Free further reading

Optional. This lesson covers what you need; these add more examples and practice. All are free to read.