Summation of Series

Sum[expr,{n,nmin,nmax}]find the sum of expr as n goes from to

Evaluating sums.

Mathematica recognizes this as the power series expansion of .
In[1]:=
Click for copyable input
Out[1]=
This sum comes out in terms of a Bessel function.
In[2]:=
Click for copyable input
Out[2]=
Here is another sum that can be done in terms of common special functions.
In[3]:=
Click for copyable input
Out[3]=
Generalized hypergeometric functions are not uncommon in sums.
In[4]:=
Click for copyable input
Out[4]=

There are many analogies between sums and integrals. And just as it is possible to have indefinite integrals, so indefinite sums can be set up by using symbolic variables as upper limits.

This is effectively an indefinite sum.
In[5]:=
Click for copyable input
Out[5]=
This sum comes out in terms of incomplete gamma functions.
In[6]:=
Click for copyable input
Out[6]=
This sum involves polygamma functions.
In[7]:=
Click for copyable input
Out[7]=
Taking the difference between results for successive values of gives back the original summand.
In[8]:=
Click for copyable input
Out[8]=

Mathematica can do essentially all sums that are found in books of tables. Just as with indefinite integrals, indefinite sums of expressions involving simple functions tend to give answers that involve more complicated functions. Definite sums, like definite integrals, often, however, come out in terms of simpler functions.

This indefinite sum gives a quite complicated result.
In[9]:=
Click for copyable input
Out[9]=
The definite form is much simpler.
In[10]:=
Click for copyable input
Out[10]=
Here is a slightly more complicated definite sum.
In[11]:=
Click for copyable input
Out[11]=
New to Mathematica? Find your learning path »
Have a question? Ask support »