MathematicalFunctions
Series
compute a series expansion for a mathematical function
Calling Sequence
Parameters
Description
Examples
Series(math_function, eqn, n)
math_function
-
mathematical function call
eqn
equation or name; specifies variable for the expansion (for example, z) and, if an equation (for example, z = z0), the expansion point
n
(optional) non-negative integer; specifies the truncation order
The Series function computes a truncated series expansion of the function call math_function, with respect to the variable z indicated in eqn, about the point z0 (default is z = 0), up to order n (default is n = 6). So, the call Series(math_func, z) is equivalent to Series(math_func, z = 0, 6).
The series returned is computed (outside singularities/branch cuts) using a unified approach, based on the knowledge of the series expansion around the origin (herein called the Sum form).
The Series function is not a replacement for the Maple series command, nor does it have the generality of series. As a function of the MathematicalFunctions package, the goal of Series is to return valuable mathematical information not returned by series (see the examples). As such, Series can be seen as a complement to the series command.
Unlike the Maple series command, the first argument in a call to Series must be a known mathematical function call or a Sum. When the expansion is around z = 0, Series computes the requested series expansion directly from the Sum form of the mathematical function. In this case, the output may consist of a sequence of two objects: first the series, then any restrictions on the function parameters known to the FunctionAdvisor such that the Sum representation and so the series expansion is valid. If the series cannot be computed directly from this sum representation, Series returns FAIL.
If the expansion point is specified as z = z0 with z0≠0, Series first attempts to compute a Taylor series expansion. If that fails, it shifts the expansion variable z↦z+z0, then attempts to compute the series around the origin from the Sum form.
In cases that the series is computed from the expansion around the origin, when a call of the form Series( f(g(z)), z ) is processed (where f is a mathematical function and g an arbitrary mathematical expression), the series computation proceeds directly from the Sum form whenever g⁡0=0, and otherwise through a call to series with the Sum form.
For some mathematical functions, the series expansion can be computed only by first factoring out abstract powers of the expansion variable, z. In this case, the Series command attempts the factorization, and, if successful, returns a structure of the form p1⁡zk1⁢series_1+p2⁡zk2⁢series_2+..., where series_1, series_2, ... are of type/series and p1⁡zk1,p2⁡zk2, ... are abstract powers of polynomials p1, p2, ... in z.
with⁡MathematicalFunctions,Series
The series expansion around the origin may have restrictions on the function parameters.
Series⁡sin⁡z,z
z−16⁢z3+1120⁢z5+O⁡z7
Series⁡arcsin⁡z,z
z+16⁢z3+340⁢z5+O⁡z7,∧⁡z2<1
The information on the function parameters returned for the expansion of arcsin⁡z is not returned by the more general series command.
series⁡arcsin⁡z,z
z+16⁢z3+340⁢z5+O⁡z7
In general, in the case of entire functions, such as sin, the series does not have restrictions on the function parameters. The functions admitting a hypergeometric representation linear in 0F1 or 1F1 are typically entire functions, such as erf or BesselJ. For functions of these classes depending on more than one parameter, however, the expansion around z=0 may depend on conditions on the other function parameters (not the expansion variable).
Computing a series by first factoring out abstract powers of z:
Series⁡BesselJ⁡n,z,z
zn⁢12n⁢Γ⁡1+n−14⁢12n⁢Γ⁡n+2⁢z2+132⁢12n⁢Γ⁡3+n⁢z4+O⁡z6,∧⁡n::¬ℤ−
Series⁡BesselK⁡n,z,z,3
zn⁢−π2⁢Γ⁡1+n⁢sin⁡n⁢π⁢2n−18⁢πΓ⁡n+2⁢sin⁡n⁢π⁢2n⁢z2+O⁡z4+z−n⁢π⁢2n2⁢Γ⁡1−n⁢sin⁡n⁢π+18⁢π⁢2nΓ⁡2−n⁢sin⁡n⁢π⁢z2+O⁡z4,∧⁡n::¬ℤ
Series⁡KummerU⁡a,b,z,z,3
π⁢csc⁡π⁢bΓ⁡b⁢Γ⁡a−b+1+π⁢csc⁡π⁢b⁢aΓ⁡b+1⁢Γ⁡a−b+1⁢z+12⁢π⁢csc⁡π⁢b⁢a⁢a+1Γ⁡b+2⁢Γ⁡a−b+1⁢z2+O⁡z3+z−b⁢−π⁢csc⁡π⁢bΓ⁡2−b⁢Γ⁡a⁢z−π⁢csc⁡π⁢b⁢a−b+1Γ⁡3−b⁢Γ⁡a⁢z2+O⁡z3,a::¬ℤ0,−∧b−1::¬ℤ0,−∧1−b::¬ℤ0,−
Once the conditions on the parameters are known, in some cases, you can obtain expansions for the complementary conditions (see type/nonposint), for example:
Series⁡KummerU⁡a,b,z,z,3assuminga::nonposint
pochhammer⁡a−b+1,−a+pochhammer⁡a−b+1,−a⁢ab⁢z+12⁢pochhammer⁡a−b+1,−a⁢pochhammer⁡a,2pochhammer⁡b,2⁢z2+O⁡z3
Since the approach used to expand a function is to first express it as a Sum, Series can also directly expand the Sum. For example, for the Sum form of the elliptic integral of the first kind (trigonometric form), InverseJacobiAM:
convert⁡InverseJacobiAM⁡z,k,Sum
∑_m2=0∞⁡∑_m1=0∞⁡k2_m1⁢sin⁡z2⁢_m2+2⁢_m1+1⁢pochhammer⁡12,_m2⁢pochhammer⁡12,_m12⁢_m2+2⁢_m1+1⁢_m2!⁢_m1!
Series⁡,kassumingz::real
arcsin⁡sin⁡z+−cos⁡z⁢sin⁡z4+arcsin⁡sin⁡z4⁢k2+9⁢arcsin⁡sin⁡z64+3⁢cos⁡z⁢sin⁡z⁢cos⁡z232−15⁢cos⁡z⁢sin⁡z64⁢k4+O⁡k6
See Also
FunctionAdvisor
MathematicalFunctions[Get]
MathematicalFunctions[SearchFunction]
Order environment variable
series
Sum
Download Help Document