5.3 Sigma Notation

Notation 5.3.1 (Sigma notation).

Given an ordered sequence of nn real numbers a1,a2,…,ana_{1},a_{2},\dots,a_{n}, we write

∑i=1nai≔a1+a2+⋯+an.\sum_{i=1}^{n}a_{i}\coloneqq a_{1}+a_{2}+\dots+a_{n}.

Here ii is the index of summation (also called the dummy variable), and aia_{i} is the ii-th term of the sum. The numbers 11 and nn are the lower and upper limits of summation.

Story (Euler’s Σ\Sigma).

The capital Greek letter Σ\Sigma (“S”, for summa) was introduced for sums by Leonhard Euler in his 1755 textbook Institutiones calculi differentialis. Euler invented or popularized much of the notation we now take for granted, including f⁢(x)f(x), e\mathrm{e}, π\pi, and ii. Notation like this lets us write down an idea in a line that would otherwise take a paragraph.

Example 5.3.2 (The name of the index does not matter).
∑k=199k=1+2+⋯+99=∑i=199i.\sum_{k=1}^{99}k=1+2+\dots+99=\sum_{i=1}^{99}i.

The letters ii and kk are dummy variables. Which letter we use does not matter, because it does not change the sum. This is the same reason why ∫t0tv⁢(τ)⁢dτ\int_{t_{0}}^{t}v(\tau)\,\mathrm{d}\tau and ∫t0tv⁢(s)⁢ds\int_{t_{0}}^{t}v(s)\,\mathrm{d}s mean the same thing.

Example 5.3.3 (Index shift).

The same sum can be written with different limits if we adjust the terms to match:

∑i=16i=1+2+3+4+5+6=21,∑k=05(k+1)=(0+1)+(1+1)+(2+1)+(3+1)+(4+1)+(5+1)=1+2+3+4+5+6=21.\begin{split}\sum_{i=1}^{6}i&{}=1+2+3+4+5+6=21,\\ \sum_{k=0}^{5}(k+1)&{}=(0+1)+(1+1)+(2+1)+(3+1)+(4+1)+(5+1)\\ &{}=1+2+3+4+5+6=21.\end{split}

Here are some more examples:

∑j=37j2=32+42+52+62+72,11+12+13+14+15=∑i=151i=∑k=261k−1,1⏟a1+4⏟a2+9⏟a3+16⏟a4+⋯+100⏟a10=∑i=110i2,∑k=1n1n⁢(k2+1)=1n⁢(12+1)+1n⁢(22+1)+⋯+1n⁢(n2+1).\begin{split}\sum_{j=3}^{7}j^{2}&{}=3^{2}+4^{2}+5^{2}+6^{2}+7^{2},\\ \frac{1}{\sqrt{1}}+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+\frac{1}{\sqrt{4}}+% \frac{1}{\sqrt{5}}&{}=\sum_{i=1}^{5}\frac{1}{\sqrt{i}}=\sum_{k=2}^{6}\frac{1}{% \sqrt{k-1}},\\ \underbrace{1}_{a_{1}}+\underbrace{4}_{a_{2}}+\underbrace{9}_{a_{3}}+% \underbrace{16}_{a_{4}}+\dots+\underbrace{100}_{a_{10}}&{}=\sum_{i=1}^{10}i^{2% },\\ \sum_{k=1}^{n}\frac{1}{n}\bigl{(}k^{2}+1\bigr{)}&{}=\frac{1}{n}\bigl{(}1^{2}+1% \bigr{)}+\frac{1}{n}\bigl{(}2^{2}+1\bigr{)}+\dots+\frac{1}{n}\bigl{(}n^{2}+1% \bigr{)}.\end{split}

In the last sum, nn appears both as the upper limit and inside every term. That is fine: kk is the index, and nn is a fixed number while we add.

Proposition 5.3.4 (Linearity of finite sums).

Let {ai}i=1n\{a_{i}\}_{i=1}^{n} and {bi}i=1n\{b_{i}\}_{i=1}^{n} be finite collections of real numbers, and let c∈ℝc\in\mathbb{R} be a scalar. Then:

  1. (i)
    ​

    Homogeneity: ∑i=1nc⁢ai=c⁢∑i=1nai\displaystyle\sum_{i=1}^{n}c\,a_{i}=c\sum_{i=1}^{n}a_{i};

  2. (ii)
    ​

    Additivity: ∑i=1n(ai±bi)=∑i=1nai±∑i=1nbi\displaystyle\sum_{i=1}^{n}(a_{i}\pm b_{i})=\sum_{i=1}^{n}a_{i}\pm\sum_{i=1}^{% n}b_{i}.

Proof.

Both statements are the familiar rules of arithmetic, applied nn times. For (i), the distributive law gives

c⁢a1+c⁢a2+⋯+c⁢an=c⁢(a1+a2+⋯+an).ca_{1}+ca_{2}+\dots+ca_{n}=c\,(a_{1}+a_{2}+\dots+a_{n}).

For (ii), since we may reorder and regroup a finite sum however we like, we get

(a1±b1)+(a2±b2)+⋯+(an±bn)=(a1+a2+⋯+an)±(b1+b2+⋯+bn).(a_{1}\pm b_{1})+(a_{2}\pm b_{2})+\dots+(a_{n}\pm b_{n})=(a_{1}+a_{2}+\dots+a_% {n})\pm(b_{1}+b_{2}+\dots+b_{n}).

With n=2n=2 these identities read c⁢a1+c⁢a2=c⁢(a1+a2)ca_{1}+ca_{2}=c\,(a_{1}+a_{2}) and (a1+b1)+(a2+b2)=(a1+a2)+(b1+b2)(a_{1}+b_{1})+(a_{2}+b_{2})=(a_{1}+a_{2})+(b_{1}+b_{2}). ∎

Caveat (Finite means finite).

The word finite in Proposition 5.3.4 matters. For infinite sums (series), we may no longer regroup and reorder terms freely. Riemann showed that the terms of some convergent series can be rearranged to add up to any real number you choose.

Theorem 5.3.5 (Power sum formulas for integers).

For every positive integer n∈ℕn\in\mathbb{N} and every constant c∈ℝc\in\mathbb{R}:

  1. (i)
    ​

    ∑k=1nc=c⁢n\displaystyle\sum_{k=1}^{n}c=cn;

  2. (ii)
    ​

    ∑k=1nk=n⁢(n+1)2\displaystyle\sum_{k=1}^{n}k=\frac{n(n+1)}{2};

  3. (iii)
    ​

    ∑k=1nk2=n⁢(n+1)⁢(2⁢n+1)6\displaystyle\sum_{k=1}^{n}k^{2}=\frac{n(n+1)(2n+1)}{6};

  4. (iv)
    ​

    ∑k=1nk3=n2⁢(n+1)24=(∑k=1nk)2\displaystyle\sum_{k=1}^{n}k^{3}=\frac{n^{2}(n+1)^{2}}{4}=\Bigl{(}\sum_{k=1}^{% n}k\Bigr{)}^{2}.

Proof.

We prove (i)–(iii). Part (iv) is left as 5.3.7.

  1. (i)
    ​

    The sum has nn terms, each equal to cc:

    ∑k=1nc=c+c+⋯+c⏟n⁢ terms=n⁢c.\sum_{k=1}^{n}c=\underbrace{c+c+\dots+c}_{n\text{ terms}}=nc.
  2. (ii)
    ​

    We want to show that ∑k=1nk=n⁢(n+1)2\sum_{k=1}^{n}k=\frac{n(n+1)}{2}. Write the sum twice, once forward and once backward, and add the two lines column by column:

    ∑k=1nk=1+  2+  3+⋯+n∑k=1nk=n+(n−1)+(n−2)+⋯+  12⁢∑k=1nk=(n+1)+(n+1)+(n+1)+⋯+(n+1)=n⁢(n+1).\begin{array}[]{r@{\;}c@{\;}*{5}{c@{\;}}c}\displaystyle\sum_{k=1}^{n}k&=&1&+\;% \;2&+\;\;3&+\;\;\cdots&+\;\;n&\\[4.0pt] \displaystyle\sum_{k=1}^{n}k&=&n&+\;(n-1)&+\;(n-2)&+\;\;\cdots&+\;\;1&\\[2.0pt% ] \hline\cr\displaystyle 2\sum_{k=1}^{n}k&=&(n+1)&+\;(n+1)&+\;(n+1)&+\;\;\cdots&% +\;(n+1)&=n(n+1).\end{array}

    Each column adds up to n+1n+1, and there are nn columns. Dividing by 22 gives

    ∑k=1nk=n⁢(n+1)2.\sum_{k=1}^{n}k=\frac{n(n+1)}{2}.
  3. (iii)
    ​

    We prove that

    equation (5.3) (5.3)
    ∑k=1nk2=n⁢(n+1)⁢(2⁢n+1)6\sum_{k=1}^{n}k^{2}=\frac{n(n+1)(2n+1)}{6}

    by induction on nn.

    Base step. For n=1n=1,

    LHS=∑k=11k2=12=1,RHS=1⁢(1+1)⁢(2⋅1+1)6=1⋅2⋅36=1,\text{LHS}=\sum_{k=1}^{1}k^{2}=1^{2}=1,\qquad\text{RHS}=\frac{1\,(1+1)\,(2% \cdot 1+1)}{6}=\frac{1\cdot 2\cdot 3}{6}=1,

    so (5.3) holds for n=1n=1.

    Induction step. Suppose (5.3) holds for some n≥1n\geq 1. We need to show that it also holds for n+1n+1. The idea is to split off the last term so that we can use the induction hypothesis on the rest:

    ∑k=1n+1k2=(12+22+⋯+n2)+(n+1)2=(∑k=1nk2)+(n+1)2=(⁢5.3⁢)⁢n⁢(n+1)⁢(2⁢n+1)6+(n+1)2=n⁢(n+1)⁢(2⁢n+1)+6⁢(n+1)26=(n+1)⁢(n⁢(2⁢n+1)+6⁢(n+1))6=(n+1)⁢(2⁢n2+7⁢n+6)6=(n+1)⁢(n+2)⁢(2⁢n+3)6=(n+1)⁢[(n+1)+1]⁢[2⁢(n+1)+1]6.\begin{split}\sum_{k=1}^{n+1}k^{2}&{}=\bigl{(}1^{2}+2^{2}+\dots+n^{2}\bigr{)}+% (n+1)^{2}=\Bigl{(}\sum_{k=1}^{n}k^{2}\Bigr{)}+(n+1)^{2}\\ &{}\overset{\eqref{eq:sum-squares}}{=}\frac{n(n+1)(2n+1)}{6}+(n+1)^{2}=\frac{n% (n+1)(2n+1)+6(n+1)^{2}}{6}\\ &{}=\frac{(n+1)\bigl{(}n(2n+1)+6(n+1)\bigr{)}}{6}=\frac{(n+1)\bigl{(}2n^{2}+7n% +6\bigr{)}}{6}\\ &{}=\frac{(n+1)(n+2)(2n+3)}{6}=\frac{(n+1)\bigl{[}(n+1)+1\bigr{]}\bigl{[}2(n+1% )+1\bigr{]}}{6}.\end{split}

    The last expression is the right-hand side of (5.3) with nn replaced by n+1n+1. So the identity holds for n+1n+1.

    By induction, (5.3) holds for every positive integer nn.∎

Story (The schoolboy and the hundred numbers).

A famous story says that the young Carl Friedrich Gauss was told to add the numbers from 11 to 100100 as a punishment. He gave the answer, 50505050, almost at once, by pairing 11 with 100100, 22 with 9999, and so on. That is exactly the forward–backward argument in part (ii). The story may well be embellished, but the trick is much older. Archimedes used a formula equivalent to part (iii) in On Spirals (around 225 BC) to compute areas, which is the same job we are preparing these sums for. The cube identity in part (iv) is often called Nicomachus’s theorem, after Nicomachus of Gerasa (around AD 100).

Remark 5.3.6 (Why we care).

Proposition 5.3.4 and Theorem 5.3.5 together let us compute sums like the last one in Example 5.3.3 exactly:

∑k=1n1n⁢(k2+1)=1n⁢(∑k=1nk2+∑k=1n1)=1n⁢(n⁢(n+1)⁢(2⁢n+1)6+n)=(n+1)⁢(2⁢n+1)6+1.\sum_{k=1}^{n}\frac{1}{n}\bigl{(}k^{2}+1\bigr{)}=\frac{1}{n}\Bigl{(}\sum_{k=1}% ^{n}k^{2}+\sum_{k=1}^{n}1\Bigr{)}=\frac{1}{n}\Bigl{(}\frac{n(n+1)(2n+1)}{6}+n% \Bigr{)}=\frac{(n+1)(2n+1)}{6}+1.

When we approximate areas under polynomial graphs by nn rectangles, we will get sums of exactly this kind. Then we will let n→∞n\to\infty.

Exercise 5.3.7 (Sum of cubes).

Prove part (iv) of Theorem 5.3.5:

∑k=1nk3=n2⁢(n+1)24=(∑k=1nk)2.\sum_{k=1}^{n}k^{3}=\frac{n^{2}(n+1)^{2}}{4}=\Bigl{(}\sum_{k=1}^{n}k\Bigr{)}^{% 2}.

Bonus: Can you provide a geometric interpretation of the summation? Hint: Use induction, following the proof of part (iii). In the induction step, factor out (n+1)2(n+1)^{2} from n2⁢(n+1)24+(n+1)3\frac{n^{2}(n+1)^{2}}{4}+(n+1)^{3}.