 Sum - Maple Help

sum

definite and indefinite symbolic summation Calling Sequence

 sum(f, k) $\sum _{k}f$ sum(f, k=m..n) $\sum _{k=m}^{n}f$ Parameters

 f - expression k - name; summation index m, n - integers or arbitrary expressions Basic Information Description

 • The sum command (sum) is for symbolic summation.
 • You can enter the command sum using either the 1-D or 2-D calling sequence.  For example, sum(k^2,k) is equivalent to $\sum _{k}{k}^{2}$. Output

 • Computes a closed form for a sum.
 • Maple returns the call unevaluated if it cannot find a closed form. Note

 • To add a finite sequence of values, rather than compute a formula, use the add command.  For example, add(k, k=0..9) returns 45.  Although the sum command can often be used to compute explicit sums, it is strongly recommended that the add command be used in programs if an explicit sum is needed, in particular, when summing over all elements of a list, Array, Matrix, or similar data structure. Examples

Typical Examples

 > $\mathrm{sum}\left({k}^{2},k\right)$
 $\frac{{1}}{{3}}{}{{k}}^{{3}}{-}\frac{{1}}{{2}}{}{{k}}^{{2}}{+}\frac{{1}}{{6}}{}{k}$ (1)
 > $\mathrm{sum}\left(k,k=0..n-1\right)$
 $\frac{{1}}{{2}}{}{{n}}^{{2}}{-}\frac{{1}}{{2}}{}{n}$ (2)
 > $\mathrm{sum}\left(k+1,k=0..n\right)$
 $\frac{{\left({n}{+}{1}\right)}^{{2}}}{{2}}{+}\frac{{n}}{{2}}{+}\frac{{1}}{{2}}$ (3)
 > $\mathrm{sum}\left(\frac{1}{k!},k=0..\mathrm{\infty }\right)$
 ${ⅇ}$ (4)

To add a finite sequence of values, the add command can be used.

 > $\mathrm{sum}\left(k+1,k=0..6\right)$
 ${28}$ (5)
 > $\mathrm{add}\left(k+1,k=0..6\right)$
 ${28}$ (6)

Classical Telescoping

 > $\mathrm{sum}\left(\mathrm{binomial}\left(2n-2k,n-k\right){2}^{4k}{\left(2k\left(2k+1\right)\mathrm{binomial}\left(2k,k\right)\right)}^{-1},k=1..n\right)$
 ${-}\frac{\left(\genfrac{}{}{0}{}{{2}{}{n}{-}{2}}{{n}{-}{1}}\right){}\left({8}{-}{16}{}{n}\right)}{{2}{}\left({2}{}{n}{+}{1}\right)}$ (7) Details

 For detailed information including:
 • Complete description of all parameters
 • Complete description of functionality including indefinite summation and the inert form, Sum
 • Details and examples comparing sum and add commands
 see the sum/details help page. Compatibility

 • The sum command was updated in Maple 15; see Enhancements to Computational Algorithms in Maple 15.
 • The sum command was updated in Maple 2016; see Advanced Math.