DefiniteSummation - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


SumTools

  

Summation

  

compute closed forms of definite and indefinite sums

  

DefiniteSummation

  

compute closed forms of definite sums

  

IndefiniteSummation

  

compute closed forms of indefinite sums

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

Summation(f, k)

Summation(f, k=m..n, parametric)

Summation(f, k=alpha)

Summation(f, expr)

DefiniteSummation(f, k=m..n, parametric)

DefiniteSummation(f, k=alpha)

DefiniteSummation(f, k=expr)

IndefiniteSummation(f, k)

Parameters

f

-

expression; specified summand

k

-

name; summation index

m, n

-

integers or expressions

parametric

-

(optional) literal name

alpha

-

RootOf expression

expr

-

expression not containing k

Options

• 

If the option parametric is specified for a definite sum, then a result is returned that is valid for all possible integer values of any parameters occurring in the summand or the summation bounds. In general, the result is expressed in terms of piecewise functions.

Description

• 

The IndefiniteSummation(f, k) command computes a closed form of the indefinite sum of f with respect to k, that is, it finds a function gk such that gk+1gk=fk.

• 

The DefiniteSummation(f, k=m..n) command computes a closed form of the definite sum of fk over the specified range m..n.

  

For notational convenience, there are two special cases:

  

- The DefiniteSummation(f, k=alpha) command, where alpha is a RootOf structure, computes the definite sum of fk over the index of the specified RootOf

  

- The DefiniteSummation(f, k=expr) command is used for function evaluation at a specified point. This is an equivalence of eval(f, k=expr).

• 

The Summation(f, ...) command is the combination of DefiniteSummation and IndefiniteSummation commands.

  

For a specified summation problem give to Summation, there is a preprocess that classifies whether the summation is a definite or indefinite sum.  It then calls either IndefiniteSummation or DefiniteSummation as appropriate.

• 

If Summation, IndefiniteSummation, or DefiniteSummation fails to compute a closed form, the unevaluated sum returns.

  

Note: The sum routine recognizes various resummation methods and thus is able to give the 'correct' value for various classes of divergent sums. If the environment variable _EnvFormal is set to true, sum uses this technique.

  

If _EnvFormal is set to false, then Maple tries harder to determine whether the given definite sum is divergent and returns infinity, -infinity, or unevaluated in that case. Note that this may slow down the computation.

  

In that case, Maple also tries to recognize removable singularities in the summation interval.

  

By default, _EnvFormal is unassigned.

• 

For more information, see sum,details.

Examples

withSumTools:

Two examples of indefinite sums.

Example 1.

Fbinomialn2+k,k2k

Fn2+kk2k

(1)

SumF,k=IndefiniteSummationF,n

kn2+kk2k=nn2+kk2k2k+1+n+1n2+12+kk2k2k+1

(2)

Example 2.

Fn2binomial2n,nn2+3n+2

Fn22nnn2+3n+2

(3)

SumF,n=IndefiniteSummationF,n

nn22nnn2+3n+2=42n1_i=1n1_i+122_i+1n+1n+nn214n+8_i=1n1_i4_i+22n+2

(4)

Examples of definite sums:

Example 1.

Fbinomial2n+1,2k2

F2n+12k2

(5)

SumF,k=0..n=DefiniteSummationF,k=0..n

k=0n2n+12k2=4n+12n

(6)

Example 2.

F22kΓknΓk+nzksqrtπΓ2k+1

F22kΓn+kΓk+nzkπΓ2k+1

(7)

DefiniteSummationF,k=0..

k=022kΓn+kΓk+nzkπΓ2k+1

(8)

It is necessary to specify the domain of convergence:

SumF,k=0..=DefiniteSummationF,k=0..assumingabsz1

k=022kΓn+kΓk+nzkπΓ2k+1=πcos2narcsinzcscπnn

(9)

Summationk32,k=1..

(10)

Summation1k,k=1..

k=1−1k

(11)

Parametric case discussions may be returned:

Fbinomial2k3,k4k

F2k3k4k

(12)

SumF,k=0..n=SummationF,k=0..n,parametric

k=0n2k3k4k=2n1n2n+44n+1n034n=12n1n2n+44n+1+382n

(13)

Summation1k,k=a..b

k=ab1k

(14)

Summation1k,k=a..b,parametric

0a=b+1Ψb+1Ψa1aand0bΨbΨ1aa0andb−1FAILotherwise

(15)

If _EnvFormal is set to true, the Summation command returns the class for recognized divergent sums.

_EnvFormaltrue

_EnvFormaltrue

(16)

F22kΓknΓk+nzksqrtπΓ2k+1:

SumF,k=0..=SummationF,k=0..

k=022kΓn+kΓk+nzkπΓ2k+1=πcos2narcsinzcscπnn

(17)

Summationk32,k=1..

ζ32

(18)

Summation1k,k=1..

12

(19)

See Also

product

RootOf

sum

SumTools