residue
compute the algebraic residue of an expression
Calling Sequence
Parameters
Description
Examples
Compatibility
residue(f, x=a)
residue(f, x=a, n)
f
-
arbitrary algebraic expression
x
variable
a
algebraic value at which the residue is evaluated
n
(optional) positive integer
Computes the algebraic residue of the expression f for the variable x around the point a. The residue is defined as the coefficient of 1x−a in the Laurent series expansion of f.
Maple compute the residue by successively performing series expansions at x=a, by default of orders 2,3,6,11,18,27, and then extracts the coefficient of 1x−a. If this is unsuccessful, for example, because f does not have a Laurent expansion, or because order 27 is still too small, the residue command returns unevaluated.
The maximal order of series expansions being tried can be raised by providing a positive integer n as third argument.
residue⁡ζ⁡s,s=1
1
residue⁡Ψ⁡x⁢Γ⁡xx,x=0
π212+γ22
residue⁡exp⁡x,x=1
0
In the following example, there is no Laurent expansion.
residue⁡arcsin⁡x,x=1
series⁡arcsin⁡x,x=1,3
π2−I⁢2⁢csgn⁡I⁢x−1⁢x−1+I⁢2⁢csgn⁡I⁢x−1⁢x−13212−3⁢I⁢2⁢csgn⁡I⁢x−1⁢x−152160+O⁡x−172
In the next example, the default order is too small.
residue⁡1z27⁢1−z3,z=0
378
residue⁡1z28⁢1−z3,z=0
residue⁡1z28⁢1−z3,z=0,27
The reason is that the series expansion of order 27 does not have enough terms:
series⁡1z28⁢1−z3,z=0,27
z−28+3⁢z−27+6⁢z−26+10⁢z−25+15⁢z−24+21⁢z−23+28⁢z−22+36⁢z−21+45⁢z−20+55⁢z−19+66⁢z−18+78⁢z−17+91⁢z−16+105⁢z−15+120⁢z−14+136⁢z−13+153⁢z−12+171⁢z−11+190⁢z−10+210⁢z−9+231⁢z−8+253⁢z−7+276⁢z−6+300⁢z−5+325⁢z−4+351⁢z−3+378⁢z−2+O⁡z−1
Raising the order to 28 helps:
residue⁡1z28⁢1−z3,z=0,28
406
The residue command was updated in Maple 2019.
The n parameter was introduced in Maple 2019.
For more information on Maple 2019 changes, see Updates in Maple 2019.
See Also
numapprox[laurent]
series
singular
Download Help Document