summation


Sigma notation

Sigma notation is often used to write complicated sums in a concise and compact way. One of the most common forms is

n=abf(n). (1)

The symbol (capital sigma) means sum and the expression (1) is equivalentMathworldPlanetmathPlanetmathPlanetmathPlanetmath to the sum

f(a)+f(a+1)+f(a+2)++f(b)

The starting and stopping values are written below and above the symbol respectively, and below we also specify which will be our running variable (or summation index) that will be changing values. So in the former expression, n is the running variable, taking values starting at a and stopping at b. Usually it’s assumed that ab in (1) since otherwise there would be no summands. However it is also customary to take the value of the sum as zero when a>b.

For instance, if we wanted to represent the sum of all integers between 1 and 100 we would write:

j=1100j.

here we are taking j as summation index, and we are adding f(j)=j where j runs over all the integers starting at 1 and ending at 100.

Now suppose we wanted to represent the sum 42+52+62++202. The straightforward way to convert it to sigma notation is

k=420k2.

However, it must be noted that such representation is not unique. For instance, here is another way to express the same summation:

k=016(k+4)2.

If we wanted to sum all positive even numbersMathworldPlanetmath not greater than 50 we would write

k=1252k

since if we substitute k=1,2,3,,25 into f(k)=2k we get 2,4,6,8,,50. Now, if we wanted to write all odd numbersMathworldPlanetmath not greater than 50 we would write

k=125(2k-1)  or  k=024(2k+1).

It must be noted that, although the running variable usually takes integer values, the summation function needs not, and it can lie on any algebraic structurePlanetmathPlanetmath where a sum is defined. So, we can write j=110j for representing 1+2++10 even though the summing terms aren’t integers. If we wanted to sum all the fifth roots of unityMathworldPlanetmath (complex numbersMathworldPlanetmathPlanetmath) we could write k=04e2πik/5.

There are several variations to the notation. Often the starting and ending values for the running parameter are ommited if the set of values it can take is not relevant or is understood from context. So on some contexts one could see the sum

k=112k

written as k12k where the summation is understood from context to be done over all positive integers.

Also notice another variation in the preceding example: the upper limit is , which means the sum doesn’t stop after some terms. In other words, the previous example represents the sum

12+14+18+

where there are an infiniteMathworldPlanetmathPlanetmath number of summands.

Another variation is to give further specifications for the allowed values of the running parameter. So, if we wanted to sum if we wanted to sum the reciprocals of all prime numbersMathworldPlanetmath we could simply write

pprime1p,

where we also use the previous variation where omitting the omiting starting and stopping values indicates summing over all possible values the context allows. Now, if we wanted to sum all prime numbers between 1 and 50 we have choices:

p=1pprime50p,pprimep50p.

Evaluating sums

Since we are working with sums, all the usual properties (commutativity, associativity, etc) hold. Two of the most useful formulasMathworldPlanetmathPlanetmath for dealing with summations are

k(ak+bk) =(ak)+(bk) (2)
k(cak) =cak. (3)

The first property allows us to split summations into simpler sums, and the second tells us we can factor out any constant termPlanetmathPlanetmath (actually, any expression not involving the summation index).

We have also a “changing limits” property, which we used to give two different expressions for 42+52+62++202:

k=abf(k)=k=a+rb+rf(k-r) (4)

where r is any integer.

As example, supose we wanted to sum all the values for x2+2x+1 when x runs from 3 to 7. That is, we wish to evaluate j=37j2+2j+1. By using the mentioneds properties we have

(j2+2j+1) =j2+2j+1
=j2+2j+1

where context indicates that in all previous sums, j runs from 3 to 7. The problem now is reduced to find formulas for the sums in the last expression.

Notice also that, since (x2+2x+1) is the same as (x+1)2 we could have also done the following changes:

j=37(j2+2j+1) =j=37(j+1)2
=j=48j2.

and again we are left with the task of evaluating a simpler summation.

Useful formulas

We now give formulas for evaluating many common summations, which can be combined using the mentioned properties to evaluate a wide range of sums.

Constants.  The simplest case is when the summation terms do not involve the running variable. Two examples are:

k=142,k=14x2,

which respectively represent the sums 2+2+2+2 and x2+x2+x2+x2. It’s obvious that if the summand does not depend on the running variable, all terms will be the same, and thus the sum will be the productPlanetmathPlanetmath of any summand by the nuber of summands.  In other words,

k=1nc=nc.

Remark: If a summand does not depend on the summation index, we say it is constant (with respect the summation). So in the previous example x2 was “constant” since it didn’t depend on the running variable k, and thus

k=14x2=4x2.

Small powers. Suppose we wanted to calculate 1+2+3++98+99+100. In other words, we want to calculate k=1100k. We can use the formula

k=1nk=n(n+1)2

which is credited to Gauss. Applying such formula we find that the sought answer is 100(101)/2=5050. Notice that we can use the formula to evaluate sums of consecutive integers not necessarily at 1. For instance, if we wanted 50+51+52++77 we could proceed as following:

k=5077k=50+51+52++77 =(1+2++77)-(1+2++49)
=k=177k-k=149k
=77782-49502
=3003-225=1778

Similar formulas exist for evaluating sums of small powers of consecutive integers:

k=1nk2 =n(n+1)(2n+1)6
k=1nk3 =n2(n+1)24
k=1nk4 =n(n+1)(2n+1)(3n2+3n-1)30
k=1nk5 =n2(n+1)2(2n2+2n-1)12
k=1nk6 =n(n+1)(2n+1)(3n4+6n3-3n+1)42
k=1nk7 =n2(n+1)2(3n4+6n3-n2-4n+2)24
k=1nk8 =n(n+1)(2n+1)(5n6+15n5+5n4-15n3-n2+9n-3)90
k=1nk9 =n2(n+1)2(n2+n-1)(2n4+4n3-n2-3n+3)20
k=1nk10 =n(n+1)(2n+1)(n2+n-1)(3n6+9n5+2n4-11n3+3n2+10n-5)66

Arithmetic progressionsMathworldPlanetmath. The arithmetic progression is a sequenceMathworldPlanetmath where the differencePlanetmathPlanetmath of each term and the previous is always the same. In other words, is of the form

a,a+d,a+2d,,a+nd

(notice that the previous example has n+1 terms).

The corresponding sum a+(a+d)+(a+2d)++(a+nd) can be written with sigma notation as k=0n(a+kd). We can use all formulas we have so far to calculate it:

k=0n(a+kd) =k=0na+k=0nkd
=(n+1)a+dk=0nk
=(n+1)a+dn(n+1)2=(n+1)(dn+2a)2

If a0,a1,a2,,an represent the terms of the progression, then we can also rewrite the last result as

k=0n(a+kd)=(n+1)(dn+2a)2=(n+1)(a0+an)2

A particular case of arithmetic sequence is summing consecutive odd (or consecutive even ) numbers, since the common difference is always 2.

k=1n2k=2k=1n=n(n+1) even numbers
k=1n(2k-1)=2k=1nk-k=1n1=n(n+1)-n=n2 odd numbers

Geometric progressions.The geometric progression is a sequence where the quotientPlanetmathPlanetmathPlanetmath between each term and the previous is always the same. in other words, has the form:

a,ar,ar2,ar3,,arn.

The corresponding sum a+ar+ar2+ar3++arn can be reduced to calculating 1+r+r2++rn by factoring a out of the summation. The corresponding formula is

k=0nrk=1+r+r2++rn=rn+1-1r-1

A particularly nice formula is obtained when r=2:

k=0n2k=2n+1-1.

So, in the old story about a chess board where the board is filled doubling the number of seeds on the previous position, the answer would be

k=0632k=264-1=18446744073709551615.

When the common quotient r has absolute valueMathworldPlanetmathPlanetmathPlanetmath smaller than 1, we can actually calculate the infinite series:

k=0rk=1+r+r2+r3+=11-r  for|r|<1.

Other formulas. Many other formulas can be found to evaluate sums. Here is a small miscellanea of remarkable formulas.

k=1nk(k+1)=n(n+1)(n+2)3
k=1nk(k+1)(k+2)=n(n+1)(n+2)(n+3)4
k=1nk(k+1)(k+2)(k+3)=n(n+1)(n+2)(n+3)(n+4)5
k=0n(nk)=2n
k=0n(-1)k(nk)=0
k=0nk(nk)=n2n-1
k=0nk2(nk)=n(n+1)2n-2
k=0nk3(nk)=n2(n+3)2n-3
k=0(nk)2=(2nn)

If fn denotes the n-th Fibonacci numberMathworldPlanetmath, then

k=0nfk=fn+2-1
k=0nfk2=fnfn+1
k=0n/2(n-k-1k)=fn

Notes

The sigma notation was introduced by the French mathematician Joseph Fourier in 1820 [1].

References

  • 1 N. Higham. Handbook of writing for the mathematical sciences. Society for Industrial and Applied Mathematics, 1998. (pp. 25)
  • 2 Graham, Knuth, Patashnik. Concrete mathematics. Addison-Wesley, 1994
Title summation
Canonical name Summation
Date of creation 2013-03-22 14:43:47
Last modified on 2013-03-22 14:43:47
Owner drini (3)
Last modified by drini (3)
Numerical id 21
Author drini (3)
Entry type Topic
Classification msc 11B25
Classification msc 00A05
Synonym sum
Synonym summing
Synonym sigma notation
Synonym
Related topic EinsteinSummationConvention
Related topic Series
Related topic Addition
Related topic PlusSign
Defines running