Power series
Summing Power Series
A power series 
 has a radius of
convergence which is given by the formula:
This is obtained by comparison with the series for 
 which
has a radius of convergence 1.
Recall that for all 
 such that 
, the series
converges absolutely and uniformly; this works for any 
.
To make use of this to calculate the sum in a useful way we would like
to have a method that gives us a definite value for the number of bits of
accuracy when use a particular value of 
.
The series for 
We first explore this series since others are to be compared with it. It
is obvious. It is clear that 
 terms of this series give the
answer upto 
 bits if we take 
. Moreover, if we
take 
 then successive terms are not of the same order of
magnitude. Thus, if we add the terms in the right-to-left order, there
will be no loss of precision. as well.
In fact the error in summing 
 terms is of the order of
. Thus, if 
 then the number of
terms required to obtain 
-bit precision is larger and various
successive terms are also of the same size.
In summary, this series "works well" for 
 and that seems
to be an optimal value as well.
General Power Series
We now apply what we have learnt to the case of a general power series.
Suppose that 
.
By definition of the limit supremum, we have an 
 so that
 for all 
. It follows that
If 
 is large (for example, 
!), then 
 can
be very small and we can get a lot of accuracy with even a small number
of terms for a big interval/disk of values for 
. For example,
even 
, for some 
  may be a big
enough collection of 
 values for us and this would ensure
 bits of accuracy with 
 terms of the power series.
This gives us the initial strategy for computing with a power series. We need to carry out some "pre-computation" (steps 1 and 2 below) as well.
Note that choosing a smaller 
 (closer to 
) will
lead to a bigger value for 
. On the other hand, we may be able
to also increase 
 if 
 is smaller. Thus, an optimal
choice would need you to do so additional computation. Can this be
"automated"?
Extending beyond the limit
The given power series is already convergent in a bigger range than the one chose. How does one evaluate the function in this larger range. The mathematical approach goes through the method of analytic continuation. However, that theoretical method has the disadvantage of requiring the computation of the function and many of its derivatives at a new centre.
In the case of some "nice" functions like the sine, cosine, tangent, exponential and their inverses, one can use the additivity properties of these functions to provide such an extension.
As an example, let us consider the logarithm. We have the power series:
The methods of the previous section can be used to give accurate
approximations of the sums of this series for 
 in the range 0
to 
. In other words, we have good values for 
for 
 in the range 
. Now we have the identity:
Hence, if we can calculate the value of 
 accurately, then
this can be used to calculate the values of the logarithm for the entire
range of numbers upto 0. Note that we are not losing much to
rounding errors since 
 is larger in magnitude than the
numbers we are adding it to.
Another example is the series for sine:
We can take as small an 
 as we want since the radius of
convergence is infinite! Note that it is better to use the formula for
 to give more values for sine rather than subtracting
many multiples of 
. (Explain why!)
Calculation of Constants
In order to complete our calculation, we need to calculate constants
like 
 and 
. For this we use a method due to
Euler.
Euler gave a method to sum certain alternating series
. We have the formal identity.
Let us define 
. We can then
write the above as
\begin{equation*} \sum_{n=0}^{\infty} (-1)^n a_n = \frac{1}{2} \left( a_0 + \sum_{n=0}^{\infty} (-1)^n (\Delta a)_n \right) \end{equation*}
Iterating this procedure, (and taking  
), we
see that we have a formal identity
\begin{equation*} \sum_{n=0}^{\infty} (-1)^n a_n = \sum_{k=0}^N \frac{1}{2^{k+1}} (\Delta^k a)_0 + \frac{1}{2^{N+1}} \sum_{n=0}^{\infty} (-1)^n (\Delta^N a)_n \end{equation*}
Thus, in case  
 remains bounded for all
, we can choose to define the sum of the alternating series
as
\begin{equation*} E(\sum_{n=0}^{\infty} (-1)^n a_n) := \sum_{k=0}^{\infty} \frac{1}{2^{k+1}} (\Delta^k a)_0 \end{equation*}
Of course, there is no reason a priori why this should coincide with the limit of the partial sums of the original series if the latter exists!
We know that the partial sums of the alternating series converge if
 is a sequence of (positive) numbers monotonically decreasing
to 0. Thus, the above alternating sums actually converge if
 is a sequence of numbers monotonically decreasing
to 0.
In summary:
In case both these conditions are satisfied, the Euler sum will given
 bits of the sum if we take  
 terms and  
is a suitable constant depending on the uniform bound for
. This makes it a good method for summing
alternate series.
We can apply this to sum the alternating series for  
 and
the alternating series for  
 to get a 
 bits of
accuracy in as many terms. (Note that to get 
 bits of accuracy
by the usual partial sums we need 
 terms!)


