雖然今天我們還是可以像歐拉一樣自由的操作生成函數︰
-
A power series is a series of the form
-
The Taylor series at a point c of a function is a power series that, in many cases, converges to the function in a neighborhood of c. For example, the series
-
is the Taylor series of at the origin and converges to it for every x.
Unless it converges only at x=c, such a series converges on a certain open disc of convergence centered at the point c in the complex plane, and may also converge at some of the points of the boundary of the disc. The radius of this disc is known as the radius of convergence, and can in principle be determined from the asymptotics of the coefficients an. The convergence is uniform on closed and bounded (that is, compact) subsets of the interior of the disc of convergence: to wit, it is uniformly convergent on compact sets.
Historically, mathematicians such as Leonhard Euler operated liberally with infinite series, even if they were not convergent. When calculus was put on a sound and correct foundation in the nineteenth century, rigorous proofs of the convergence of series were always required. However, the formal operation with non-convergent series has been retained in rings of formal power series which are studied in abstract algebra. Formal power series are also used in combinatorics to describe and study sequences that are otherwise difficult to handle; this is the method of generating functions.
不管它是收斂與否︰
A formal power series can be loosely thought of as an object that is like a polynomial, but with infinitely many terms. Alternatively, for those familiar with power series (or Taylor series), one may think of a formal power series as a power series in which we ignore questions of convergence by not assuming that the variable X denotes any numerical value (not even an unknown value). For example, consider the series
If we studied this as a power series, its properties would include, for example, that its radius of convergence is 1. However, as a formal power series, we may ignore this completely; all that is relevant is the sequence of coefficients [1, −3, 5, −7, 9, −11, …]. In other words, a formal power series is an object that just records a sequence of coefficients. It is perfectly acceptable to consider a formal power series with the factorials [1, 1, 2, 6, 24, 120, 720, 5040, … ] as coefficients, even though the corresponding power series diverges for any nonzero value of X.
Arithmetic on formal power series is carried out by simply pretending that the series are polynomials. For example, if
then we add A and B term by term:
We can multiply formal power series, again just by treating them as polynomials (see in particular Cauchy product):
Notice that each coefficient in the product AB only depends on a finite number of coefficients of A and B. For example, the X5 term is given by
For this reason, one may multiply formal power series without worrying about the usual questions of absolute, conditional and uniform convergence which arise in dealing with power series in the setting of analysis.
Once we have defined multiplication for formal power series, we can define multiplicative inverses as follows. The multiplicative inverse of a formal power series A is a formal power series C such that AC = 1, provided that such a formal power series exists. It turns out that if A has a multiplicative inverse, it is unique, and we denote it by A−1. Now we can define division of formal power series by defining B/A to be the product BA−1, provided that the inverse of A exists. For example, one can use the definition of multiplication above to verify the familiar formula
An important operation on formal power series is coefficient extraction. In its most basic form, the coefficient extraction operator for a formal power series in one variable extracts the coefficient of , and is written e.g. , so that and . Other examples include
-
Similarly, many other operations that are carried out on polynomials can be extended to the formal power series setting, as explained below.
就算如波例亞所說,它是個裝序列的『袋子』,知道這個『袋子』的『抽象構造』也有很多的好處︰
The ring of formal power series
The set of all formal power series in X with coefficients in a commutative ring R form another ring that is written R[[X]], and called the ring of formal power series in the variable X over R.
Definition of the formal power series ring
One can characterize abstractly as the completion of the polynomial ring equipped with a particular metric. This automatically gives the structure of a topological ring (and even of a complete metric space). But the general construction of a completion of a metric space is more involved than what is needed here, and would make formal power series seem more complicated than they are. It is possible to describe more explicitly, and define the ring structure and topological structure separately, as follows.
Ring structure
As a set, can be constructed as the set of all infinite sequences of elements of , indexed by the natural numbers (taken to include 0). Designating a sequence whose term at index is by , one defines addition of two such sequences by
-
and multiplication by
-
This type of product is called the Cauchy product of the two sequences of coefficients, and is a sort of discrete convolution. With these operations, becomes a commutative ring with zero element and multiplicative identity .
The product is in fact the same one used to define the product of polynomials in one indeterminate, which suggests using a similar notation. One embeds by sending any (constant) to the sequence and designates the sequence by ; then using the above definitions every sequence with only finitely many nonzero terms can be expressed in terms of these special elements as
these are precisely the polynomials in . Given this, it is quite natural and convenient to designate a general sequence by the formal expression , even though the latter is not an expression formed by the operations of addition and multiplication defined above (from which only finite sums can be constructed). This notational convention allows reformulation the above definitions as
-
and
which is quite convenient, but one must be aware of the distinction between formal summation (a mere convention) and actual addition.
Topological structure
Having stipulated conventionally that
-
one would like to interpret the right hand side as a well-defined infinite summation. To that end, a notion of convergence in is defined and a topology on is constructed. There are several equivalent ways to define the desired topology.
- We may give the product topology, where each copy of is given the discrete topology.
- We may give the I-adic topology, where is the ideal generated by , which consists of all sequences whose first term is zero.
- The desired topology could also be derived from the following metric. The distance between distinct sequences (an) and (bn) in RN, is defined to be
-
- ,
- where is the smallest natural number such that ; the distance between two equal sequences is of course zero.
Informally, two sequences and become closer and closer if and only if more and more of their terms agree exactly. Formally, the sequence of partial sums of some infinite summation converges if for every fixed power of the coefficient stabilizes: there is a point beyond which all further partial sums have the same coefficient. This is clearly the case for the right hand side of (1), regardless of the values , since inclusion of the term for gives the last (and in fact only) change to the coefficient of . It is also obvious that the limit of the sequence of partial sums is equal to the left hand side.
This topological structure, together with the ring operations described above, form a topological ring. This is called the ring of formal power series over and is denoted by . The topology has the useful property that an infinite summation converges if and only if the sequence of its terms converges to 0, which just means that any fixed power of occurs in only finitely many terms.
The topological structure allows much more flexible use of infinite summations. For instance the rule for multiplication can be restated simply as
-
since only finitely many terms on the right affect any fixed . Infinite products are also defined by the topological structure; it can be seen that an infinite product converges if and only if the sequence of its factors converges to 1.
………
不單祇為了邏輯上之嚴謹,還為著明確合理的『代數運算』法則︰
Operations on formal power series
One can perform algebraic operations on power series to generate new power series.[1][2] Besides the ring structure operations defined above, we have the following.
Power series raised to powers
If n is a natural number we have
-
where
-
for m ≥ 1. (This formula can only be used if m and a0 are invertible in the ring of scalars.)
In the case of formal power series with complex coefficients, the complex powers are well defined at least for series f with constant term equal to 1. In this case, fα can be defined either by composition with the binomial series (1+x)α, or by composition with the exponential and the logarithmic series, fα := exp(αlog(f)), or as the solution of the differential equation f(fα)′ = αfαf′ with constant term 1, the three definitions being equivalent. The rules of calculus (fα)β = fαβ and fαgα = (fg)α easily follow.
Inverting series
The series
-
in is invertible in if and only if its constant coefficient is invertible in . This condition is necessary, for the following reason: if we suppose that has an inverse then the constant term of is the constant term of the identity series, i.e., it is 1. This condition is also sufficient; we may compute the coefficients of the inverse series via the explicit recursive formula
-
An important special case is that the geometric series formula is valid in :
-
If is a field, then a series is invertible if and only if the constant term is non-zero, i.e., if and only if the series is not divisible by . This says that is a discrete valuation ring with uniformizing parameter .
Dividing series
The computation of a quotient
-
assuming the denominator is invertible (that is, is invertible in the ring of scalars), can be performed as a product and the inverse of , or directly equating the coefficients in :
The coefficient extraction operator applied to a formal power series
-
in X is written
-
and extracts the coefficient of Xm, so that
-
Composition of series
Given formal power series
-
-
one may form the composition
-
where the coefficients cn are determined by “expanding out” the powers of f(X):
-
Here the sum is extended over all (k, j) with k in N and with
A more explicit description of these coefficients is provided by Faà di Bruno’s formula, at least in the case where the coefficient ring is a field of characteristic 0.
A point here is that this operation is only valid when has no constant term, so that each depends on only a finite number of coefficients of and . In other word the series for converges in the topology of .
Example
Assume that the ring has characteristic 0. If we denote by the formal power series
-
then the expression
makes perfect sense as a formal power series. However, the statement
is not a valid application of the composition operation for formal power series. Rather, it is confusing the notions of convergence in and convergence in ; indeed, the ring may not even contain any number with the appropriate properties.
Composition inverse
Whenever a formal series has f0 = 0 and f1 being an invertible element of R, there exists a series that is the composition inverse of , meaning that composing with gives the series representing the identity function (whose first coefficient is 1 and all other coefficients are zero). The coefficients of may be found recursively by using the above formula for the coefficients of a composition, equating them with those of the composition identity X (that is 1 at degree 1 and 0 at every degree greater than 1) . In the case when the coefficient ring is a field of characteristic 0, the Lagrange inversion formula provides a powerful tool to compute the coefficients of g, as well as the coefficients of the (multiplicative) powers of g.
Formal differentiation of series
Given a formal power series
in R[[X]], we define its formal derivative, denoted Df or f′, by
-
The symbol D is called the formal differentiation operator. The motivation behind this definition is that it simply mimics term-by-term differentiation of a polynomial.
This operation is R–linear:
-
for any a, b in R and any f, g in R[[X]]. Additionally, the formal derivative has many of the properties of the usual derivative of calculus. For example, the product rule is valid:
-
and the chain rule works as well:
-
whenever the appropriate compositions of series are defined (see above under composition of series).
Thus, in these respects formal power series behave like Taylor series. Indeed, for the f defined above, we find that
where Dk denotes the kth formal derivative (that is, the result of formally differentiating k times).
當然最好親自動手紙筆練習,熟練後何仿看看 Sympy 之
Methods for computing and manipulating Formal Power Series.
- class
sympy.series.formal.
FormalPowerSeries
- Represents Formal Power Series of a function.
No computation is performed. This class should only to be used to represent a series. No checks are performed.
For computing a series use fps()
.
,讓電腦代勞的吧!