Alternating Series Convergence Guide
Alternating Series Convergence Guide
(Part-2)
P. Sam Johnson
May 7, 2023
P. Sam Johnson (NIT Karnataka)    Infinite Series (Part-2)   May 7, 2023   1 / 156
Alternating Series
Example 2.
             1       1       1       1(−1)n+1
  1. 1 −     2   +   3   −   4   +   5   − ··· +
                                         n       + ···
                                             n
  2.   −2 + 1 − 21 + 14 − 18 + · · · + (−1)
                                          2n
                                               4
                                                 + ···
  3.   1 − 2 + 3 − 4 + 5 − 6 + · · · + (−1) n +  n+1                      ···
 P. Sam Johnson (NIT Karnataka)                Infinite Series (Part-2)         May 7, 2023   2 / 156
Alternating Series
We see from these examples that the nth term of an alternating series is of
the form
                  an = (−1)n+1 un or an = (−1)n un
where un = |an | is a positive number.
 P. Sam Johnson (NIT Karnataka)         Infinite Series (Part-2)       May 7, 2023   4 / 156
Proof of Leibniz’s Theorem
If n is an even integer, say n = 2m, then the sum of the first n terms is
The first equality shows that s2m is the sum of m nonnegative terms, since
each term in parentheses is positive or zero.
                                  lim s2m = L.
                                 m→∞
P. Sam Johnson (NIT Karnataka)    Infinite Series (Part-2)       May 7, 2023   5 / 156
Proof of Leibniz’s Theorem (contd...)
                                     lim u2m+1 = 0
                                    m→∞
and, as m → ∞,
 P. Sam Johnson (NIT Karnataka)       Infinite Series (Part-2)   May 7, 2023   6 / 156
Eample
Example 4 (The alternating harmonic series).
                          ∞
                          X                1      1 1 1
                                 (−1)n+1     = 1 − + − + ···
                                           n      2 3 4
                          n=1
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   8 / 156
An Example of Nonincreasing Sequence
Example 5.
We show that the sequence un = 10n/(n2 + 16) is eventually
nonincreasing. Define f (x) = 10x/(x 2 + 16).
                                 10(16 − x 2 )
                    f 0 (x) =                  ≤ 0 whenever        x ≥ 4.
                                  (x 2 + 16)2
P. Sam Johnson (NIT Karnataka)          Infinite Series (Part-2)            May 7, 2023   9 / 156
Graphical Interpretation
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   10 / 156
Graphical Interpretation
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   11 / 156
Graphical Interpretation
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   12 / 156
The Alternating Series Estimation Theorem
Theorem 6 (The Alternating Series Estimation Theorem).
If the alternating series
                                          ∞
                                          X
                                                (−1)n+1 un
                                          n=1
sn = u1 − u2 + · · · + (−1)n+1 un .
approximates the sum L of the series with an error whose absolute value is
less than un+1 , the numerical value of the first unused term. Furthermore,
the remainder, L − sn , has the same sign as the first as the first unused
term.
P. Sam Johnson (NIT Karnataka)             Infinite Series (Part-2)    May 7, 2023   13 / 156
Example
Example 7.
Consider the following series
  ∞
  X              1      1 1 1  1   1   1   1   1
        (−1)n      n
                     =1− + − +   −   +   −   +   − ··· .
                 2      2 4 8 16 32 64 128 256
  n=0
                                           ∞
                                           X             1
                                                 (−1)n      ,
                                           n=0
                                                         2n
For an absolutely convergent series, changing infinitely many of the negative terms in the series
to positive values does not change its property of still being a convergent series. Other
convergent series may behave differently. The convergent alternating harmonic series has
infinitely many negative terms, but if we change its negative terms to positive values, the
resulting series is the divergent harmonic series. So the presence of infinitely many negative
terms is essential to the convergence of the alternating harmonic series. The following
terminology distinguishes these two types of convergent series.
 P. Sam Johnson (NIT Karnataka)          Infinite Series (Part-2)               May 7, 2023      15 / 156
Conditionally Convergent
Definition 8 (Conditionally Convergent).
A series that converges but does not converge absolutely is called a
conditionally convergent series.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   16 / 156
Alternating p-Series
Example 9.
If p is a positive constant, the sequence {1/np } is a decreasing sequence
with limit zero. Therefore the alternating p-series
                  ∞
                  X (−1)n−1                 1    1   1
                                  =1−          + p − p + ··· ,               p>0
                            np              2p  3   4
                  n=1
converges.
 P. Sam Johnson (NIT Karnataka)          Infinite Series (Part-2)              May 7, 2023   17 / 156
Summary of Facts about Alternating Series
     P
If       an is an alternating series, then exactly one of the following holds:
         P
            an is convergent P(can be concluded
                                          P      by absolute convergence test,
         in which case both     |an | and   an are convergent).
         P                                       P
         P an is conditionally convergent (i.e.,    an is convergent, while
            |an | is not).
         P                                       P          P
            an is divergent (in which case, both     an and    |an | are
         divergent. nth -term Test may be helpful most of the times.)
 P. Sam Johnson (NIT Karnataka)    Infinite Series (Part-2)        May 7, 2023   18 / 156
Rearranging Series
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   19 / 156
Rearranging Series
 P. Sam Johnson (NIT Karnataka)    Infinite Series (Part-2)       May 7, 2023   20 / 156
Rearranging Series
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)     May 7, 2023   21 / 156
Rearranging Series
Example 11.
We know that the alternating harmonic series ∞           n+1 /n converges to some number L.
                                                P
                                                 n=1 (−1)
Moreover, by Theorem 10, L lies between the successive partial sums s2 = 1/2 and s3 = 5/6, so
L 6= 0. If we multiply the series by 2 we obtain
               ∞
                  (−1)n+1
                                                             
              X                1 1 1 1 1 1 1 1   1   1
     2L = 2               =2 1− + − + − + − + −    +    − ···
              n=1
                     n         2 3 4 5 6 7 8 9  10   11
                                     2  1 2 1 2 1 2 1  2
                             =2−1+     − + − + − + − +    − ··· .
                                     3  2 5 3 7 4 9 5  11
Now we change the order of this last sum by grouping each pair of terms with the same odd
denominator, but leaving the negative terms with the even denominators as they are placed (so
the denominators are the positive integers in their natural order). This rearrangement gives
                                                               
                       1     2   1       1     2    1     1   2   1     1
           (2 − 1) −     +     −     −     +      −     − +     −     − + ···
                       2     3   3       4     5    5     6   7   7     8
                                                                                  
                                 1   1     1    1    1   1  1   1    1    1
                         = 1− +          − + − + − + −                 +     − ···
                                 2   3     4    5    6   7  8   9   10    11
                            ∞
                           X   (−1)n+1
                         =               = L.
                           n=1
                                   n
 P. Sam Johnson (NIT Karnataka)           Infinite Series (Part-2)          May 7, 2023   22 / 156
Rearranging Series
which is the alternating harmonic series itself. If the two series are the
same, it would imply that 2L = L, which is clearly false since L 6= 0.
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)       May 7, 2023   23 / 156
What is wrong here?
Exercise 12.
Multiplying both sides of the alternating harmonic series
                        1  1 1 1 1 1 1 1  1       1     1
              S =1−       + − + − + − + −    +        −    + ...
                        2  3 4 5 6 7 8 9  10   2 = 11   12
by 2 to get
                              2  1 2 1 1 2 1 2 1   2  1
              2S = 2 − 1 +      − + − + + − + − +    − + ....
                              3  2 5 3 3 7 4 9 5  11  6
Collect terms with the same denominator, as the arrows indicate, to arrive at
                                             1  1 1 1 1
                                  2S = 1 −     + − + − + ....
                                             2  3 4 5 6
The series on the right-hand side of this equation is the series we started with.
Therefore,2S = S. and dividing by S gives 2 = 1. (Source: “Riemann’s Rearrangement Theorem
“by Stewart Galanor, Mathematics Teacher,Vol.80,No.8,1987, pp. 675-681.)
 P. Sam Johnson (NIT Karnataka)              Infinite Series (Part-2)           May 7, 2023   24 / 156
Rearranging Series
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   25 / 156
Outline of the proof of the The Rearrangement Theorem
for Absolutely Convergent Series
Part (a)
≤ ∞
   P
     k=N1 |ak | + |sN2 − L| < ε.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)        May 7, 2023   26 / 156
Outline of the proof of the The Rearrangement Theorem
for Absolutely Convergent Series (contd...)
Part (b)
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   27 / 156
Applying the Rearrangement Thoerem
Example 13 (Applying the Rearrangement Thoerem).
The series
                     1 1  1                   1
                      + −
                       1−   + · · · + (−1)n−1 2 + · · ·
                     4 9 16                  n
converges absolutely.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   28 / 156
Applying the Rearrangement Thoerem
The Rearrangement Theorem says that both series converge to the same
value.
P. Sam Johnson (NIT Karnataka)           Infinite Series (Part-2)   May 7, 2023   29 / 156
Applying the Rearrangement Thoerem
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   30 / 156
Rearranging the Alternating Harmonic Seires
                  ∞
                  X
                    (−1)n+1 /n to diverge. The series of terms
                                                               P 1
Rearranging                                                     2n−1
               n=1                          P −1
diverges to +∞ and the series of terms        2n diverges to −∞. No matter
how far out in the sequence of odd-numbered terms we begin, we can
always add enough positive terms to get an arbitrarily large sum. Similarly,
with the negative terms, no matter how far out we start, we can add
enough consecutive even-numbered terms to get a negative sum of
arbitrarily large absolute value. If we wished to do so, we could start
adding odd-numbered terms until we had a sum greater than +3, say, and
then follow that with enough consecutive negative terms to make the total
less than -4. We could then add enough positive terms to make the total
greater than +5 and follow with consecutive unused negative terms to
make a new total less than −6, and so on. In this way, we could make the
swings arbitrarily large in either direction.
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   31 / 156
Rearranging the Alternating Harmonic Seires
                  ∞
                  X
Rearranging         (−1)n+1 /n to converge to 1. Another possibility is to
                  n=1
focus on a particular limit. Suppose we try to get sums that converge to 1.
We start with the first term, 1/1, and then subtract 1/2. Next we add 1/3
and 1/5, which brings the total back to 1 or above. Then we add
consecutive negative terms until the total is less than 1. We continue in
this manner: When the sum is less than 1, add positive terms until the
total is 1 or more: then subtract (add negative) terms until the total is
again less than 1.
 P. Sam Johnson (NIT Karnataka)    Infinite Series (Part-2)      May 7, 2023   32 / 156
Rearranging the Alternating Harmonic Seires
The amount by which our partial sums exceed 1 or fall below it approaches
zero. So the new series converges to 1. The rearranged series starts like
this:
1       1       1       1       1       1       1       1       1        1        1       1        1        1        1        1        1        1        1        1        1        1
    −       +       +       −       +       +       −       +        +        −       +        +        −        +        +        −        +        +        −        +        −        +···
1       2       3       5       4       7       9       6       11       13       8       15       17       10       19       21       12       23       25       14       27       16
 The kind of behavior illustrated by the series the above example is typical
of what happen with any conditionally convergent series. Therefore we
must always add the terms of a conditionally convergent series in the order
given.
 P. Sam Johnson (NIT Karnataka)                                                   Infinite Series (Part-2)                                                    May 7, 2023                33 / 156
Summary
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)     May 7, 2023   34 / 156
Exercise
Exercise 15 (Determining Convergence or Divergence).
Which of the following alternating series converge, and which diverge?
Give reasons for your answers.
       ∞                                                    ∞
       X
                   n+1     1                                X
  1.         (−1)                                      6.         (−1)n+1 (0.1)n
       n=1
                         n3/2                               n=1
        ∞ h                       i
       P      (−1)n+1 sin nx                                 ∞
  2.               n3                                       X   (−1)n
       n=1                                             7.          √
        ∞                                                       1+ n
        (−1)n csch n
       P
  3.                                                        n=1
       n=1                                                  ∞
        ∞                                                 X               n!
       X
             n       1                                 8.         (−1)n+1
  4.     (−1) ln 1 +                                                        2n
                     n                                      n=1
     n=1
      ∞          √
     X          3 n+1                                  9. 1 + 14 − 19 − 16  1
                                                                              +    1
                                                                                        +   1
                                                                                                 −
  5.     (−1)n+1 √                                         1     1
                                                                                   25       36
     n=1
                   n+1                                    49 −  64 +  · · ·
 P. Sam Johnson (NIT Karnataka)       Infinite Series (Part-2)                   May 7, 2023     35 / 156
Determining Convergence or Divergence
Exercise 16.
      ∞                                                ∞
      X              √                                 X (−1)n+1 (n!)2
            (−1)n+1 ( 10)
                     n
 1.                                               7.
                                                                 (2n)!
      n=1                                              n=1
       ∞
      X                   1                            ∞
 2.         (−1)n+1                                    X             (2n)!
                       n ln n                     8.         (−1)n
      n=2
       ∞                                                             2n !n
                                                       n=1
      X              n
 3.         (−1)n                                      ∞
                    n+1                                X               p
      n=1
       ∞                                          9.         (−1)n (    n2 + n − n)
      X
 4.         (−5)−n                                     n=1
      n=1                                              ∞
                                                                       √   √
                                                                   q
     ∞
                                                       X
                                                                 n
    X     (−1)n−1                              10.           (−1) ( n + n − n)
 5.
        n2 + 2n + 1                                    n=1
    n=1
     ∞                                                 ∞
    X   cos nπ                                         X
 6.                                            11.           (−1)n sech n
           n
      n=1                                              n=1
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)                    May 7, 2023   36 / 156
Exercises
Exercise 17.
Determine how many terms should be used to estimate the sum of the
entire series with an error of less than 0.001.
      ∞
         (−1)n n21+3
      P
  1.
       n=1
        ∞
                       1
           (−1)n ln(ln(n+2))
       P
  2.
       n=1
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   37 / 156
Exercises
Exercise 18.
Use any method to determine whether the series converges or diverges.
Give reasons for your answer.
       ∞                                                               ∞
                 1           1                                                 ln n 3
       P                                                                 P         
  1.           2n+1    −   2n+2                                    7.           n
       n=1                                                              n=2
        ∞                                                                ∞
       P        3
  2.         10+n4/3                                               8.
                                                                        P          1
       n=2                                                                    1+2+22 +···+2n
        ∞                                                               n=2
                         2
                      2 n                                                ∞
       P
  3.          1−      n
                                                                        P     1+3+32 +···+3n−1
       n=1                                                         9.           1+2+3+···+n
        ∞                      n                                       n=2
              n−2
                        − 32
       P
  4.         n2 +3n                                                      ∞
                                                                                        en
                                                                             (−1)n
                                                                        P
       n=1                                                      10.
       1   1                                                                         e n +e n2
  5.   2 − 2    + 12 − 12 +         1
                                    2   −   1
                                            2   + ···                   n=0
        ∞                                                              ∞
                                                                              4·6·8···(2n)
             sin √1n
       P                                                                P
  6.                                                            11.           5n+1 (n+2)!
       n=3                                                              n=1
 P. Sam Johnson (NIT Karnataka)                   Infinite Series (Part-2)                       May 7, 2023   38 / 156
Error Estimation
Exercise 19.
Estimate the magnitude of the error involved in using the sum of the first
four terms to approximate the sum of the entire series.
      ∞
     X          1
  1.    (−1)n+1
                n
       n=1
        ∞
       X                (0.01)n
  2.         (−1)n+1
                           n
       n=1
                 ∞
                 X
  3.    1
       1+t   =         (−1)n t n , 0 < t < 1
                 n=1
 P. Sam Johnson (NIT Karnataka)         Infinite Series (Part-2)   May 7, 2023   39 / 156
Exercise
Exercise 20.
Approximate the sums in
                                  ∞
                                  X         1
                                    (−1)n
                                          (2n)!
                                  n=1
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   40 / 156
Exercise
Exercise 21.
(a) The series 13 − 12 + 19 − 14 + 27
                                   1
                                      − 18 + . . . + 31n − 21n + . . .
    Does not meet one of the conditions of Leibniz’s Theorem. Which
    one?
(b) Find the sum of the series in part (a).
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   41 / 156
Exercises
Exercise 22.
The limit L of an alternating series that satisfies the conditions of
Theorem 3 lies between the values of any two consecutive partial sums.
This suggests using the average
                                  sn + sn+1       1
                                            = sn + (−1)n+2 an+1
                                      2           2
to estimate L. Compute
                                      1 1
                                       ·  s20 +
                                      2 21
as an approximation to the sum of the alternating harmonic series. The
exact sum is ln 2 = 0.69314718 . . ..
 P. Sam Johnson (NIT Karnataka)           Infinite Series (Part-2)   May 7, 2023   42 / 156
Exercise
Exercise 23 (The sign of an alternating series that satisfies
the conditions of the Leibniz’s Theorem).
Prove the assertion in the Alternating Series Estimation Theorem that
whenever an alternating series satisfying the conditions of Leibniz’s
Theorem is approximated with one of its partial sums, then the remainder
(sum of then unsaved terms) has the same sign as the first unused term.
(Hint: Group the remainder’s terms in consecutive pairs.)
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   43 / 156
Exercise
Exercise 24.
Show that the sum of the first 2n terms of the series
                         1 1 1 1 1 1 1 1 1
                   1−     + − + − + − + − + ...
                         2 2 3 3 4 4 5 5 6
Is the same as the sum of the first n terms of the series
                             1   1   1   1   1
                               +   +   +   +    + ....
                            1.2 2.3 3.4 4.5 5.6
Do these series converge? What is the sum of the first 2n + 1 terms of the
first series? If the series converge, what is their sum?
 P. Sam Johnson (NIT Karnataka)     Infinite Series (Part-2)   May 7, 2023   44 / 156
Exercise
Exercise 25.
Show that
                                        ∞
                                        X
                                               an
                                        n=1
diverges, then
                                       ∞
                                       X
                                              |an |
                                       n=1
diverges.
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   45 / 156
Exercise
Exercise 26.
Show that if
                                           ∞
                                           X
                                                  an
                                           n=1
 P. Sam Johnson (NIT Karnataka)      Infinite Series (Part-2)   May 7, 2023   46 / 156
Exercise
Exercise 27.
                   ∞
                   X              ∞
                                  X
Show that if             an and         bn both converge absolutely, then so does
                   n=1            n=1
      ∞
      X
(a)         (an + bn )
      n=1
      ∞
      X
(b)         (an − bn )
      n=1
      ∞
      X
(c)         kan (k any number)
      n=1
 P. Sam Johnson (NIT Karnataka)           Infinite Series (Part-2)     May 7, 2023   47 / 156
Exercise
Exercise 28.
Show by example that
                                                ∞
                                                X
                                                       an b n
                                                n=1
                             ∞
                             X              ∞
                                            X
may diverge even if                an and           bn both converge.
                             n=1             n=1
 P. Sam Johnson (NIT Karnataka)             Infinite Series (Part-2)    May 7, 2023   48 / 156
Exercises
Exercise 29.
                                                         an2 converges.
          P                                          P
  1. If       an converges absolutely, prove that
  2. Does the series
                                               ∞                     
                                               X   1             1
                                                             −
                                               n=1
                                                         n       n2
 P. Sam Johnson (NIT Karnataka)           Infinite Series (Part-2)           May 7, 2023   49 / 156
                                 Power Series
P. Sam Johnson (NIT Karnataka)     Infinite Series (Part-2)   May 7, 2023   50 / 156
Power Series
We have discussed so far some tests for convergence of infinite series. Now
we are going to see a special series and see that its sum looks like “infinite
polynomials.”
We call these sums “power series” because they are defined as infinite
series of powers of some variable, in our case x.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)      May 7, 2023   51 / 156
Power Series, Center, Coefficients
 P. Sam Johnson (NIT Karnataka)          Infinite Series (Part-2)              May 7, 2023   52 / 156
Power Series and Convergence
Example 30 (Geometric Series).
Taking all the coefficients to be 1 in Equation (7) gives the geometric
power series
                   X∞
                        xn = 1 + x + x2 + · · · + xn + . . . .
                          n=0
          1
             = 1 + x + x2 + · · · + xn + · · · ,            −1 < x < 1.           (3)
         1−x
Up to now, we have use Equation (3) as a formula for the sum of the
series on the right.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)           May 7, 2023   53 / 156
Power Series and Convergence
For values of x near zero, we need take only a few terms of the series to
get a good approximation. As we move toward a = 1, or −1, we must
take more terms.
The following figure show the graphs of f (x) = 1/(1 − x), and the
approximating polynomials yn = Pn (x) for n = 0, 1, 2 and 8. The function
f (x) = 1/(1/x) is not continuous on intervals containing x = 1. where it
has a vertical asymptote. The approximations do not apply when x ≥ 1.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   54 / 156
Power Series and Convergence
Example 31 (A Geometric Series).
The power series
                                       n
        1 1         1       2            1
         − (x − 2) + (x − 2) + · · · + −   (x − 2)n + . . .                     (4)
        4 2         4                    2
P. Sam Johnson (NIT Karnataka)     Infinite Series (Part-2)       May 7, 2023   55 / 156
Power Series and Convergence
                 1           1          2
The sum is      1−r    =   1+ x−2
                                    =   x   so
                               2
                                                                   n
                          (x − 2)2
                                                       
          2     (x − 2)                                        1
            =1−         +          − ··· +                 −            (x − 2)n + . . . ,   0 < x < 4.
          x        2         4                                 2
              P0 (x) = 1
                          1              x
              P1 (x) = 1 − (x − 2) = 2 −
                          2              x
                          1          1              3x   x2
              P2 (x) = 1 − (x − 2) + (x − 2)2 = 3 −    +
                          2          4               2   4
and so on.
P. Sam Johnson (NIT Karnataka)              Infinite Series (Part-2)                           May 7, 2023   56 / 156
Power Series and Convergence
Example 32 (Testing for Convergence Using the Ratio Test).
For what values of x does the following power series converge?
                          ∞
                          X                xn     x2 x3
                                 (−1)n−1      =x−   +   − ···
                                           n      2   3
                           n=1
                                      P
Apply the Ratio Test  to the series   |un |, where un is the nth term of the
                      un +1    n
series in question :  un  = n+1 |x| → |x|.
The series converges absolutely for |x| < 1. It diverges if |x| > 1 because
the nth term does not converge to zero. At x = 1, we get the alternating
harmonic series 1 − 1/2 + 1/3 − 1/4 + · · · , which converges. At x = −1
we get −1 − 1/2 − 1/3 − 1/4 − · · · , the negative of the harmonic series:
it diverges.
                                      P
Apply the Ratio Test  to the series   |un |, where un is the nth term of the
                      un +1  2n−1 2
series in question :  un  = 2n+1 x → x 2 . The series converges absolutely
for x 2 < 1. It diverges for x 2 < 1 becuase the nth term does not converge
to zero. At x = 1 the series becomes 1 − 1/3 + 1/5 − 1/7 + · · · , which
converges by the Alternating Series Theorem. It also converges at x = −1
because it is again an alternating series that satisfies the conditions for
convergence. The value at x = −1 is the negative of the value at x = 1.
Thus the given series converges for −1 ≤ x ≤ 1 and diverges elsewhere.
P. Sam Johnson (NIT Karnataka)          Infinite Series (Part-2)   May 7, 2023   58 / 156
Power Series and Convergence
Example 34 (Testing for Convergence Using the Ratio Test).
For what values of x does the following power series converge?
                                 ∞
                                 X                 x2 x3
                                       1+x +          +    + ···
                                                   2!   3!
                                 n=1
                                        P
Apply the Ratio Test  to the     n+1 |un|, where un is the nth term of the
                              series
                                                      |x|
series in question :  unu+1
                               x
                              =  (n+1)! · xn!n  = n+1 → 0 for every x.
                                                
                          n
P. Sam Johnson (NIT Karnataka)           Infinite Series (Part-2)   May 7, 2023   59 / 156
Power Series and Convergence
Example 35 (Testing for Convergence Using the Ratio Test).
For what values of x does the following power series converge?
                          ∞
                          X
                                 n!x n = 1 + x + 2!x 2 + 3!x 3 + · · ·
                          n=1
                                      P
Apply the Ratio Test  to the series n+1|un |, where un is the nth term of the
                      un +1    (n+1)!x
series in question :  un  = | n!x n       = (n + 1)|x| → ∞ unless x = 0.
P. Sam Johnson (NIT Karnataka)            Infinite Series (Part-2)       May 7, 2023   60 / 156
The Convergence Theorem for Power Series
Theorem 36 (The Convergence Theorem for Power Series).
If the power series
                             ∞
                             X
                                   an x n = a0 + a1 x + a2 x 2 + · · ·
                             n=0
If the series diverges for x = d. then it diverges for all x with |x| > |d|.
P. Sam Johnson (NIT Karnataka)            Infinite Series (Part-2)       May 7, 2023   61 / 156
Proof of the Convergence Theorem for Power Series
                                              1
                                   |an | <                   for n ≥ N.                 (5)
                                             |c|n
Now take any x such that |x| < |c| and consider
|a0 | + |a1 x| + · · · + |aN−1 x N−1 | + |aN x N | + |aN+1 x N+1 | + · · ·
There are only a finite number of terms prior to |aN x N |, and their sum is
finite. Starting with |aN x N |, and beyond, the terms are less than
                                  x N  x N+1  x N+2
                                   +        +       + ···                         (6)
                                              
                                   c      c        c
because of Inequality (5).
P. Sam Johnson (NIT Karnataka)               Infinite Series (Part-2)     May 7, 2023   62 / 156
Proof of the Convergence Theorem for Power Series
(contd...)
But series (6) is a geometric series with ratio r = |x/c|, which is less than
1, since |x| < |c|. Hence series (6) converges, so the original series
converges absolutely. This proves the first half of the theorem.
The second half of the theorem follows from the first. If the diverges at
x = d and converges at a value x0 with |x0 | > |d|, we may tacke c = x0 in
the first half of the theorem and conclude that the series converges
absolutely at d. But the series cannot converge absolutely and diverge at
one and the same time. Hence, if it diverges at d, it diverges for all x with
|x| > |d|.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)      May 7, 2023   63 / 156
The Radius of Convergence of a Power Series
The theorem we have just proved andP  the examples we have studied lead
to the conclusion that a power series   cn (x − a)n behaves in one of three
possible ways.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   64 / 156
Corollary to Convergence Theorem for Power Series
 1. There is a positive number R such that the series diverges for x with
    |x − a| > R but converges absolutely for x with |x − a| < R. The
    series may or may not converge at either of the endpoints x = a − R
    and x = a + R.
 2. The series converges absolutely for every x (R = ∞).
 3. The series converges at x = a and diverges elsewhere (R = 0).
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)        May 7, 2023   65 / 156
Proof of Corollary
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   66 / 156
Proof of Corollary (contd...)
If |x| < R, then |x| is not an upper bound for S (because it’s smaller than
the least upper bound) soP there  is a number b ∈ S such that b > |x|.
Since b ∈ X , the series        n
                            cn b converges and therefore the series
    cn |x|n converges by Convergence Theorem for Power Series. This
P
proves the Corollary for power series centered at a = 0.
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)       May 7, 2023   67 / 156
Radius of Convergence
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)     May 7, 2023   68 / 156
How to Test a Power Series for Convergence
 1. Use the Ratio Test (or nth-Root Test) to find the interval where the
    series converges absolutely. Ordinarily, this is an open interval
    |x − a| < R or a − R < x < a + R.
 2. If the interval of absolute convergence is finite, test for convergence
    or divergence at each endpoint. Use a Comparison Test, the Integral
    Test, or the Alternating Series Test.
 3. If the Interval of absolute convergence is a a − R < x < a + R, the
    series diverges for |x − a| > R (it does not even converge
    conditionally), because the nth term does not approach zero for those
    values of x.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)     May 7, 2023   69 / 156
Term-by-Term Differentiation
and so on. Each of these derived series converges at every interior point of
the interval of convergence of the original series.
P. Sam Johnson (NIT Karnataka)         Infinite Series (Part-2)                    May 7, 2023   70 / 156
Example 38 (Applying Term-by-Term Differentiation).
Find series for f 0 (x) and f 00 (x)if
                                                                               ∞
             1                                                X
f (x) =         = 1 + x + x2 + x3 + x4 + · · · + xn + · · · =   x n , −1 < x < 1
            1−x
                                                                              n=0
                                                                                       ∞
                          1                                                         X
        f 0 (x)   =               = 1 + 2x + 3x 2 + 4x 3 + · · · + nx n−1 + · · · =     nx n−1 ,
                       (1 − x 2 )                                                   n=1
                                                                                   ∞
                     2                                                        X
   f ”(x)    =          3
                           = 2 + 6x + 12x 2 + · · · + n(n − 1)x n−2 + · · · =     n(n − 1)x n−2 ,
                  (1 − x )                                                    n=2
P. Sam Johnson (NIT Karnataka)            Infinite Series (Part-2)                     May 7, 2023   71 / 156
CAUTION
Term-by-Term differentiation might not work for other kinds of series. For
example, the trigonometric series
                                  ∞
                                  X sin(n!x)
                                              n2
                                  n=1
converges for all x. But if we differentiate term by term we get the series
                                 ∞
                                 X n!cos(n!x)
                                              n2
                                 n=1
which diverges for all x. This is not a power series, since it is not a sum of
positive integer powers of x.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)      May 7, 2023   72 / 156
Term-by-Term Integration
                                       x3 x5
                     f (x) = x −         +   − ··· ,                    −1 ≤ x ≤ 1.
                                       3   5
P. Sam Johnson (NIT Karnataka)               Infinite Series (Part-2)                 May 7, 2023   74 / 156
The series for f (x) is zero when x = 0, so C = 0. Hence
                            x3 x5 x7
          f (x) = x −         +   −   + · · · = tan−1 x,        −1 < x < 1.
                            3   5   7
We will see that the series also converges to tan−1 x at x = ±1.
                                             3         5
Notice that the original series x − x3 + x5 − · · · , −1 ≤ x ≤ 1 converges
at both endpoints of the original interval of convergence, but the
“Term-by-Term Integration Theorem” can guarantee the convergence of
the differentiated series only inside the interval.
P. Sam Johnson (NIT Karnataka)       Infinite Series (Part-2)        May 7, 2023   75 / 156
Example 41 (A series for ln(1 + x), −1 < x ≤ 1).
The series
                        1
                            = 1 + t + t2 − t3 + · · ·
                      1+t
converges on the open interval −1 < t < 1. Therefore,
                      Z x
                            1            t2 t3 t4            x
          ln(1 + x) =           dt = t −    +      −    + ··· 0
                       0 1+t              2    3      4
                      x2 x3 x4
                     =x− +     −      + · · · , −1 < x < 1.
                      2     3      4
It can also be shown that the series converges at x = 1 to the number in
2, but that was not guaranteed by the theorem.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   76 / 156
Multiplication of Power Series
Now take any x such that |x| < |c| and consider
There are only a finite number of terms prior to |aN x N |, and their sum is
finite. Starting with |aN x N |, and beyond, the terms are less than
                           x      x        x
                          | |N + | |N+1 + | |N+2 + · · ·              (6)
                           c      c        c
because of Inequality (5).
P. Sam Johnson (NIT Karnataka)       Infinite Series (Part-2)               May 7, 2023   78 / 156
Multiply the Geometric series
Example 43 (Multiply the Geometric series).
P∞         n                                             1
   n=0 x = 1 + x + x2 + · · · + xn + · · · =            1−x ,   for |x| < 1, by itself to get
a power series for 1/(1 − x)2 , for |x| < 1.
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)                   May 7, 2023   79 / 156
Multiply the Geometric series
Let
                      ∞
                      X
          A(x) =            an x n = 1 + x + x 2 + · · · + x n + · · · = 1/(1 − x)
                      n=0
                      ∞
                      X
          B(x) =            bn x n = 1 + x + x 2 + · · · + x n + · · · = 1/(1 − x)
                      n=0
and
                 cn = a0 bn + a1 bn−1 + · · · + ak bn−k + · · · + an b0
                       = 1 + 1 + · · · + 1(n + 1 times) = n + 1
 P. Sam Johnson (NIT Karnataka)          Infinite Series (Part-2)         May 7, 2023   80 / 156
Multiply the Geometric series
 P. Sam Johnson (NIT Karnataka)            Infinite Series (Part-2)      May 7, 2023   81 / 156
Exercise
Exercise 44 (Intervals of Convergence).
In the following exercies, (a) find the series’ radius and interval of
convergence. For what values of x does the series converge (b) absolutely
(c) conditoinally?
     P∞
  1.        (x + 5)n
     Pn=0
        ∞ nx n
  2.    n=0 n+2
     P∞ (−1)n (x+2)n
  3.    n=1       n
     P∞ (2x+3)2n+1
  4.    n=0      n!
     P∞ n(x+3)n
  5.    n=0    5n
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   82 / 156
Exercise
Exercise 45 (Intervals of Convergence).
In the following exercies, (a) find the series’ radius and interval of
convergence. For what values of x does the series converge (b) absolutely
(c) conditoinally?
     P∞         nx n
  1.    n=0 4n (n2 +1)
     P∞              1 n n
                      
  2.    n=1 1 + n        x
     P∞               n
  3.    n=1 (ln n)x
     P∞ (−1)n+1 (x+2)n
  4.    n=1         n2n
     P∞            n (n + 1)(x − 1)n
  5.        (−2)
     Pn=0
        ∞      xn
  6.    n=2 n(ln n)2
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   83 / 156
Exercise
Exercise 46 (Intervals of Convergence).
In the following exercies, (a) find the series’ radius and interval of
convergence. For what values of x does the series converge (b) absolutely
(c) conditoinally?
     P∞ (4x−5)2n+1
  1.    n=1     n3/2
     P∞ (x−√2)2n+1
  2.    n=0       2n     In the following exercises, find the series’ interval of
     convergence and, within this interval, the sum of the series as a
     function of x.
     P∞ (x+1)2n
  3.    n=0    9n
     P∞  √x          n
  4.    n=0    2   − 1
     P∞  x 2 −1 n
  5.    n=0     2
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)        May 7, 2023   84 / 156
Exercise
Exercise 47.
For what values of x does the series
                                            n
               1         1       2            1
            1 − (x − 3) + (x − 3) + · · · + −   (x − 3)n + · · ·
               2         4                    2
converge? What is its sum? What series do you get if you differentiate the
given series term by term? For what values of x does the new series
converge? What it its sum?
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   85 / 156
Exercise
Exercise 48.
If you integrate the series
                                            n
               1         1       2            1
            1 − (x − 3) + (x − 3) + · · · + −   (x − 3)n + · · ·
               2         4                    2
term by term, what new series do you get? For what values of x does the
new series converge, and what is another name for its sum?
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   86 / 156
Exercise
Exercise 49.
The series
                            x 3 x 5 x 7 x 9 x 11
                      sinx = x −+    −    +    −     + ···
                             3!   5!   7!   9!   11!
converges to sin x for all x.
(a) Find the first six terms of a seies for cos x. For what values of x
    should the series convege?
(b) By replacing x by 2x in the series for sin x, find a series that
    converges to sin 2x for all x.
(c) Using the result in part (a) and series multiplication, calculate the
    first six terms of a series for 2 sin x cos x. Compare your answer with
    the answer in part (b).
 P. Sam Johnson (NIT Karnataka)    Infinite Series (Part-2)    May 7, 2023   87 / 156
Exercise
Exercise 50.
The series
                                        x2 x3 x4 x5
                         ex = 1 + x +      +    +    +    + ···
                                        2!   3!   4!   5!
converges to e x for all x.
(a) Find a series for (d/dx)e x . Do you get the series for e x ?. Explain
    your answer.
(b) Find a series for e x dx. Do you get the series for e x ? Explain your
                      R
    answer.
(c) Replace x by −x in the series for e x to find a series that converges to
    e x for all x. Then multyiply the series for e x and e −x to find the six
    terms of a series for e −x · e x .
 P. Sam Johnson (NIT Karnataka)         Infinite Series (Part-2)   May 7, 2023   88 / 156
Exercise
Exercise 51.
The series
                          x 3 2x 5 17x 7 62x 9
                      tan x = x +
                             +     +       +      + ···
                           3    15     315   2835
converges to tan x for −π/2 < x < π/2.
(a) Find the first five terms of the series for ln | sec x|. For what values of
    x should the series converge?
(b) Find the first five terms of the series for sec3 . Fro what values of x
    should thies series converge?
(c) Check your result in part (b) by squaring the series given for sec x.
 P. Sam Johnson (NIT Karnataka)     Infinite Series (Part-2)    May 7, 2023   89 / 156
Exercise
Exercise 52.
The series
                                  x2  5     61 6    277 8
                  sec x = 1 +        + x4 +     x +      x + ···
                                  2   24    720     8064
converges to see x for −π/2 < x < π/2.
(a) Find the first five terms of a power series for the function in
    | sec x + tan x|. For what values of x should the series converge?
(b) Find the first four terms of a series for sec s tan x. For what values of
    x should the series converge?
(c) Check your result in part (b) by multiplying the series for sec x by the
    series given for tan x.
 P. Sam Johnson (NIT Karnataka)       Infinite Series (Part-2)   May 7, 2023   90 / 156
Exercise
Exercise 53 (Uniqueness of convergent power series).
  1. Show that if two power series ∞
                                     P         n
                                                      P∞         n
                                       n=0 an x and      n=0 bn x are
     convergent and equal for all values of x in an open interval (−c, c),
     then an P
             = bn for everyPn. (Hint: Let
               ∞
     f (x) = n=0 an x = ∞
                      n               n
                              n=0 bn x . Differentiate term by term to show
                                  (n)
     that an and bn both equal f (0)/(n!).)
  2. Show that if ∞         n
                  P
                    n=0 an x = 0 for all x in an open interval (−c, c),
     then an = 0 for every n.
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   91 / 156
Exercise
Exercise 54 (The sum of the series).
P∞          2 /2n )
   n=0 (n      To find the sum of this series, express 1/(1 − x) as
geometric series, differentiate both sides of the resulting equation with
respect ot x, multiply both sides of the result by x, differentiate again,
multiply by x again, and set x equal to 1/2. What do you get? (Source:
David E. Dobbs’ letter to the editor, Illinois Mathematics Teacher, Vol.33,
Issue 4, 1982,p.27.)
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   92 / 156
Exercise
Exercise 55 (Convergence at endpoints).
Show by examples that the convergence of a power series at an endpoint
of its interval of convergence, may be either conditional or absolute.
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   93 / 156
Exercise
Exercise 56.
Make up a power series whose interval of convergence is
(a) (-3,3)
(b) (-2,0)
(c) (1,5).
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   94 / 156
                  Taylor and Maclaurin Series
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   95 / 156
Taylor and Maclaurin Series
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   96 / 156
Series Representations
We know that within its interval of convergence the sum of a power series
is a continuous function with derivatives of all orders.
We can answer the last question readily if we assume that f (x) is the sum
of a power series
                       ∞
                       X
        f (x) =               an (x − a)n
                        n=0
                 = a0 + a1 (x − a) + a2 (x − a)2 + · · · + an (x − a)n + · · ·
with a positive radius of convergence.
 P. Sam Johnson (NIT Karnataka)             Infinite Series (Part-2)   May 7, 2023   97 / 156
Series Representations
By repeated term-by-term differentiation within the interval of
convergence I we obtain
                 f 0 (x)     =   a1 + 2a2 (x − a) + 3a3 (x − a)2 + · · · + nan (x − a)n−1 + · · ·
                 00
             f (x)           =   1.2a2 + 2.3a3 (x − a) + 3.4a4 (x − a)2 + · · ·
                 000
             f         (x)   =   1.2.3a3 + 2.3.4a4 (x − a) + 3.4.5a5 (x − a)2 + · · ·
 P. Sam Johnson (NIT Karnataka)    Infinite Series (Part-2)           May 7, 2023   99 / 156
Series Representations
The answer is maybe – for some functions it will but for other functions it
will not, as we will see.
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   100 / 156
Taylor and Maclaurin Series
Definition 57.
Let f be a function with derivatives of all orders throughout some interval
containing a as an interior point. Then the Taylor series generated by f at
x = a is
    ∞
   X   f (k) (a)                                     f 00 (a)                    f (n) (a)
                 (x − a)k = f (a) + f 0 (a)(x − a) +          (x − a)2 + · · · +           (x − a)n + · · ·
   k=0
          k!                                            2!                          n!
The Maclaurin series generated by f is often just called the Taylor series of
f.
 P. Sam Johnson (NIT Karnataka)              Infinite Series (Part-2)                    May 7, 2023    101 / 156
Finding a Taylor Series
Example 58.
Find the Taylor series generated by f (x) = 1/x at a = 2. Where, if
anywhere, does the series converge to 1/x?
                           f 00 (2)                  1
f 00 (x) = 2!x −3 ,           3!
                                      = 2−3 =        23
                                                        ,
                                f 000 (2)
f 000 (x) = −3!x −4 ,               3!
                                            = − 214 ,
     ..                                      ..
      .                                       .
This is a geometric series with first term 1/2 and ratio r = −(x − 2)/2. It
converges absolutely for |x − 2| < 2 and its sum is
                                  1/2             1       1
                                           =             = .
                             1 + (x − 2)/2   2 + (x − 2)  x
 P. Sam Johnson (NIT Karnataka)              Infinite Series (Part-2)                       May 7, 2023   103 / 156
Taylor Polynomials
P. Sam Johnson (NIT Karnataka)           Infinite Series (Part-2)   May 7, 2023   104 / 156
Taylor Polynomial of order n
Definition 59.
Let f be a function with derivatives of order k for k = 1, 2, . . . , N in some
interval containing a as an interior point. Then for any integer n from 0
through N, the Taylor polynomial of order n generated by f at x = a is
the polynomial
 P. Sam Johnson (NIT Karnataka)              Infinite Series (Part-2)                     May 7, 2023      105 / 156
Taylor Polynomial of order n
The first two Taylor polynomials of f (x) = cos x at x = 0, for example, are
P0 (x) = 1 and P1 (x) = 1.
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   106 / 156
Example 60 (Finding Taylor Polynomials for e x ).
Find the Taylor series the Taylor polynomials generated by f (x) = e x at
x = 0.
This is also the Maclaurin series for e x . We will later see that the series
converges to e x at every x.
P. Sam Johnson (NIT Karnataka)               Infinite Series (Part-2)                     May 7, 2023    107 / 156
The Taylor polynomial of order n at x = 0 is
                                                        x2        xn
                                 Pn (x) = 1 + x +          + ··· + .
                                                        2         n!
P. Sam Johnson (NIT Karnataka)            Infinite Series (Part-2)     May 7, 2023   108 / 156
Finding Taylor Polynomials for cos x
Example 61.
Find the Taylor series and Taylor polynomials generated by f (x) = cos x at
x = 0.
 P. Sam Johnson (NIT Karnataka)            Infinite Series (Part-2)      May 7, 2023   109 / 156
Finding Taylor Polynomials for cos x
This is also the Maclaurin series for cos x. We will see that the series
converges to cos x at every x.
 P. Sam Johnson (NIT Karnataka)                Infinite Series (Part-2)                    May 7, 2023   110 / 156
Finding Taylor Polynomials for cos x
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   111 / 156
A Function f Whose Taylor Series Converges at Every x
but Converges to f (x) Only at x = 0
The following example shows that there is a function f whose Taylor series
converges at every x but converges to f (x) only at x = 0.
Example 62.
It can be shown (though not easily) that
                               (
                                  0,         x =0
                       f (x) =      −1/x 2
                                  e        , x=6 0
has derivatives of all orders at x = 0 and that f (n) (0) = 0 for all n.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)       May 7, 2023   112 / 156
A function f whose Taylor series converges at every x but
converges to f (x) only at x = 0.
This means that the Taylor series generated by f at x = 0 is
                        f 00 (0) 2        f (n) (0) n
   f (0) + f 0 (0)x +           x + ··· +          x + · · · = 0 + 0.x + 0.x 2 + · · · + 0.x n + · · · = 0.
                           2!                n!
The series converges for every x (its sum is 0) but converges to f (x) only
at x = 0.
 P. Sam Johnson (NIT Karnataka)               Infinite Series (Part-2)                  May 7, 2023     113 / 156
Some questions
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   114 / 156
Finding Taylor Polynomials
Exercise 63.
In the following exercises, find the Taylor polynomials of orders 0, 1, 2, and
3 generated by f at a.
  1. f (x) = ln x.                a=1
  2. f (x) = 1/(x + 2), a = 0
  3. f (x) = sin x, a = π/4
             √
  4. f (x) = x,      a=4
             √
  5. f (x) = x + 4,   a=0
 P. Sam Johnson (NIT Karnataka)         Infinite Series (Part-2)   May 7, 2023   115 / 156
Finding Taylor Series at x=0 (Maclaurin Series)
Exercise 64.
Find the Maclaurin series for the function in the following exercises.
  1. e −x
         1
  2.   1−x
  3.   sin x2
  4. 7 cos(−x)
                    e x −e −x
  5. sinh x =            2
  6. x 4 − 2x 3 − 5x + 4
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   116 / 156
Finding Taylor Series
Exercise 65.
In the following exercises, find the Taylor series generated by f at x = 0.
  1. f (x) = x 3 − 2x + 4,                   a=2
  2. f (x) =      x4   +   x2   + 1,         a = −2
  3. f (x) =      3x 5   −   x4   +   2x 3   + x 2 − 2,           a = −1
  4. f (x) = x/(1 − x),                       a=0
  5. f (x) =      ex ,            a=2
  6. f (x) = 2x ,                 a=1
 P. Sam Johnson (NIT Karnataka)                Infinite Series (Part-2)    May 7, 2023   117 / 156
Exercise
Exercise 66.
(a) Use the Taylor series generated by e x at x = a to show that
                                      h              (x − a)2      i
                             e x = e a 1 + (x − a) +          + ··· .
                                                        2!
(b) Find the Taylor series generated by e x at x = 1. Compare your
    answer with the formula in the above exercise.
(c) Let f (x) have derivatives through order n at x = a. Show that the
    Taylor polynomial of order n and its first n derivatives have the same
    values that f and its first n derivatives have at x = a.
 P. Sam Johnson (NIT Karnataka)         Infinite Series (Part-2)        May 7, 2023   118 / 156
Of all polynomials of degree ≤ n, the Taylor polynomial of
order n gives the best approximation
Exercise 67.
Suppose that f (x) is differentiable on an interval centered at x = a and
that g (x) = b0 + b1 (x − a) + · · · + bn (x − a)n is a polynomial of degree n
with constant coefficient b0 , . . . , bn . Let E (x) = f (x) − g (x). Show that if
we impose on g conditions
(a) E (a) = 0 (the approximation error is zero at x = a )
                   E (x)
(b) limx→a        (x−a)n    = 0 (the error is negligible when compare to (x − a)n )
then
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   120 / 156
                 Convergence of Taylor Series
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   121 / 156
Convergence of Taylor Series
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   122 / 156
Taylor’s Theorem
 P. Sam Johnson (NIT Karnataka)              Infinite Series (Part-2)                  May 7, 2023     123 / 156
Taylor’s Formula
When we apply Taylor’s Theorem, we usually want to hold “a” fixed and
treat “b” as an independent variable. Taylor’s formula is easier to use in
circumstances like these if we change b to x. Here is a version of the
theorem with this change.
Theorem 70.
If f has derivatives of all orders in an open interval I containing a, then for
each positive integer n and for each x in I .
                                           f 00 (a)                    f (n) (a)
       f (x) = f (a) + f 0 (a) (x − a) +            (x − a)2 + · · · +           (x − a)n + Rn (x) ,     (8)
                                              2!                           n!
where
                                              f (n+1) (c)
                                  Rn (x) =                (x − a)n+1                                    (9)
                                               (n + 1)!
for some c between a and x.
 P. Sam Johnson (NIT Karnataka)              Infinite Series (Part-2)                 May 7, 2023      124 / 156
Taylor’s Formula
When we state Taylor’s theorem this way, it says that for each x ∈ I ,
 P. Sam Johnson (NIT Karnataka)        Infinite Series (Part-2)   May 7, 2023   125 / 156
Taylor’s Formula
Equation (8) is called Taylor’s formula. The function Rn (x) is called the
remainder of order n or the error term for the approximation of f by
Pn (x) over I .
 P. Sam Johnson (NIT Karnataka)             Infinite Series (Part-2)          May 7, 2023   126 / 156
Example
Example 71.
Show that the Taylor series generated by f (x) = e x at x = 0 converges to
f (x) for every real value of x.
Solution. The function has derivatives of all orders throughout the interval
I = (−∞, ∞). Equations (8) and (9) with f (x) = e x and a = 0 give
                                             x2         xn
                          ex = 1 + x +          + ··· +    + Rn (x)
                                             2!         n!
and
                               ec
              Rn (x) =               x n+1     for some c between 0 and x.
                            (n + 1)!
Since e x is an increasing function of x, e c lies between e 0 = 1 and e x .
When x is negative, so is c, and e c < 1. When x is zero, e x = 1 and
Rn (x) = 0. When x is positive, so is c, and e c < e x .
P. Sam Johnson (NIT Karnataka)         Infinite Series (Part-2)       May 7, 2023   127 / 156
Example
P. Sam Johnson (NIT Karnataka)             Infinite Series (Part-2)                May 7, 2023   128 / 156
Example
P. Sam Johnson (NIT Karnataka)            Infinite Series (Part-2)                 May 7, 2023   129 / 156
Estimating the Remainder
                                                   |x − a|n+1
                                 |Rn (x)| ≤ M                 .
                                                    (n + 1)!
If this inequality holds for every n and the other conditions of Taylor’s
Theorem are satisfied by f , then the series converges to f (x).
P. Sam Johnson (NIT Karnataka)        Infinite Series (Part-2)    May 7, 2023   130 / 156
Exercise
We are now ready to look at some examples of how the Remainder
Estimation Theorem and Taylor’s Theorem can be used together to settle
questions of convergence. As we will see, they can also be used to
determine the accuracy with which a function is approximated by one of
its Taylor polynomials.
Example 73.
Show that the Taylor series for sin x at x = 0 converges for all x.
 P. Sam Johnson (NIT Karnataka)              Infinite Series (Part-2)                              May 7, 2023   131 / 156
Solution (contd...)
The series has only odd-powered terms and, for n = 2k + 1, Taylor’s Theorem gives
                                     x3   x5         (−1)k x 2k+1
                       sin x = x −      +    − ··· +              + R2k+1 (x).
                                     3!   5!          (2k + 1)!
All the derivatives of sin x have absolute values less than or equal to 1, so we can apply the
Remainder Estimation Theorem with M = 1 to obtain
                                                            |x|2k+2
                                      |R2k+1 (x)| ≤ 1 ·              .
                                                           (2k + 2)!
Since (|x|2k+2 /(2k + 2)!) → 0 as k → ∞, whatever the value of x, so R2k+1 (x) → 0 and the
Maclaurin series for sin x converges to sin x for every x. Thus,
                                   ∞
                                  X   (−1)k x 2k+1     x3   x5   x7
                        sin x =                    =x−    +    −    + ··· .
                                  k=0
                                       (2k + 1)!       3!   5!   7!
 P. Sam Johnson (NIT Karnataka)            Infinite Series (Part-2)              May 7, 2023   132 / 156
Example 74.
Show that the Taylor series for cos x at x = 0 converges to cos x for every
value of x.
Solution. We add the remainder term to the Taylor polynomial for cos x
to obtain Taylor’s formula for cos x with n = 2k;
                                 x2 x4                    x 2k
            cos x = 1 −             +    − · · · + (−1)k       · · · + R2k (x) .
                                 2!   4!                 (2k)!
Because the derivatives of the cosine have absolute value less than or
equal to 1, the Remainder Estimation Theorem with M = 1 gives
                                                          |x|2k+1
                                    |R2k (x) | ≤ 1.                .
                                                         (2k + 1)!
For every value of x, R2k (x) → 0 as k → ∞. Therefore, the series
converges to cos x for every value of x. Thus,
                      ∞
                    X    (−1)k x 2k       x2 x4 x6
           cos x =                  =1−      +    −    + ··· .                         (11)
                            (2k)!         2!   4!   6!
                            k=0
P. Sam Johnson (NIT Karnataka)            Infinite Series (Part-2)       May 7, 2023   133 / 156
Using Taylor Series
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   134 / 156
Solution
                                                         x2   x4                  x 2k
                                                                                              
                 1                 2   1
         (a)       (2x + x cos x) = x + x           1−      +    − · · · + (−1)k       + ···
                 3                 3   3                 2!   4!                 (2k)!
                                   2  1   x3    x5              x3   x5
                                  = x+ x−    +      − ··· − x −    +    − ···
                                   3  3   3!   3.4!             6    72
                                   x2     x3   x4              x2    x4
                                                                           
       (b)     e x cos x = 1 + x +    +      +    + ···  . 1−     +     − ···
                                   2!     3!   4!              2!    4!
                                   x2     x3    x4
                                                          2
                                                                  x3     x4      x5
                                                                                        
                                                            x
                         = 1+x +      +       +    + ··· −     +     +       +       ···
                                   2!     3!    4!          2!    2!    2!2!    2!3!
                             4
                                   x5      x6
                                                    
                              x
                          +      +    +        + ··· + ···
                              4!   4!     2!4!
                                  x3   x4
                       =1 + x −      −    + ···
                                  3    6
 P. Sam Johnson (NIT Karnataka)           Infinite Series (Part-2)                  May 7, 2023    135 / 156
Using Taylor series
                         P∞             n
We recall that if            n=0 an x       converges absolutely for |x| < R, then
                                             ∞
                                             X
                                                   an (f (x))n
                                             n=0
We can use the Taylor series of the function f to find the Taylor series of
f (u (x)) where u (x) is any continuous function.
The Taylor series resulting from this substitution will converge for all x
such that u (x) lies within the interval of convergence of the Taylor series
of f .
 P. Sam Johnson (NIT Karnataka)              Infinite Series (Part-2)      May 7, 2023   136 / 156
Using Taylor series
For instance, we can find the Taylor series for cos 2x by substituting 2x
for x in the Taylor series for cos x :
                      ∞
                      X (−1)k (2x)2k                       (2x)2 (2x)4 (2x)6
       cos 2x =                               =1−               +     −      + ···
                                  (2k)!                      2!    4!    6!
                      k=0
                       22 x 2 24 x 4 26 x 6
                   =1 −      +         −    + ···
                        2!       4!      6!
                     ∞
                     X        22k x 2k
                   =   (−1)k           .
                               (2k)!
                      k=0
 P. Sam Johnson (NIT Karnataka)           Infinite Series (Part-2)        May 7, 2023   137 / 156
Example 76.
For what values of x can we replace sin x by x − x 3 /3! with an error of
                                                        
Solution. Here we can take advantage of the fact that the Taylor series
for sin x is an alternating series for every nonzero value of x. According to
the Alternating Series Estimation Theorem, the error in truncating
                                                 x3 x5
                                 sin x = x −        +    − ···
                                                 3!   5!
after x 3 /3! is no greater than
             
                                        5
                                        x  |x|5
                                        =
                                        5!  120 .
P. Sam Johnson (NIT Karnataka)         Infinite Series (Part-2)   May 7, 2023   138 / 156
Therefore the error will be less than or equal to 3 × 10−4 if
                |x|5                               p
                     < 3 × 10−4
                                                   5
                                  or    |x| <        306 × 10−4 ≈ 0.514.
                120
P. Sam Johnson (NIT Karnataka)    Infinite Series (Part-2)          May 7, 2023   139 / 156
The above figure shows the graph of sin x, along with the graphs of a
number of its approximating Taylor polynomials.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   140 / 156
Proof of Taylor’s Theorem
We prove Taylor’s theorem assuming a < b. The proof for a > b is nearly
the same. The Taylor polynomial
and its first n derivatives still agree with f and its first n derivatives at
x = a.
P. Sam Johnson (NIT Karnataka)           Infinite Series (Part-2)           May 7, 2023   141 / 156
Proof of Taylor’s Theorem (contd...)
We now choose the particular value of K that makes the curve y = φn (x)
agree with the original curve y = f (x) at x = b. In symbols,
                                                                      f (b) − Pn (b)
        f (b) = Pn (b) + K (b − a)n+1 ,               or         K=                    .      (12)
                                                                       (b − a)n+1
 P. Sam Johnson (NIT Karnataka)       Infinite Series (Part-2)                  May 7, 2023   142 / 156
Proof of Taylor’s Theorem (contd...)
We now use Rolle’s Theorem. First, because F (a) = F (b) = 0 and both
F and F 0 are continuous on [a, b] , we know that
                                                F 0 (c1 ) = 0
for some c1 in (a, b) . Next, because F 0 (a) = F 0 (c1 ) = 0 and both F 0 and
F 00 are continuous on [a, c1 ] we know that
                                               F 00 (c2 ) = 0
for some c2 in (a, c1 ) . Rolle’s Theorem, applied successively to
F 00 , F 000 , . . . , F (n−1) implies the existence of
                                   c3    in (a, c2 )      such that F 000 (c3 ) = 0,
                                    c4   in (a, c3 )      such that F (4) (c4 ) = 0,
                                  ..
                                   .
                                   cn    in (a, cn−1 )        such that F (n) (cn ) = 0.
 P. Sam Johnson (NIT Karnataka)               Infinite Series (Part-2)            May 7, 2023   143 / 156
Proof of Taylor’s Theorem (contd...)
 P. Sam Johnson (NIT Karnataka)        Infinite Series (Part-2)        May 7, 2023   144 / 156
Proof of Taylor’s Theorem (contd...)
                      f (n+1) (c)
              K=                    for some number c = cn+1 in (a, b) .               (15)
                       (n + 1)!
                                              f (n+1) (c)
                          f (b) = Pn (b) +                (b − a)n+1 .
                                               (n + 1)!
 P. Sam Johnson (NIT Karnataka)        Infinite Series (Part-2)          May 7, 2023   145 / 156
Finding Taylor Series
Exercises 77.
Use substitution to find the Taylor series at x = 0 of the functions in the
following exercises.
  1. sin πx
            
          2
                √ 
  2. cos x 2/3 / 2
  3. tan−1 (3x 4 )
         1
  4.   1+ 34 x 3
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   146 / 156
Exercises
Exercises 78.
Use power series operations to find the Taylor series at x = 0 for the
functions in the following exercises.
  1. xe x
       x2
  2.   2    − 1 + cos x
  3. x ln(1 + 2x)
  4. sin x · cos x
  5. cos x − sin x
  6. ln(1 + x) − ln(1 − x)
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   147 / 156
Exercises
Exercises 79.
Find the first four nonzero terms in the Maclaurin series for the functions
in the following exercises.
       ln(1+x)
  1.     1−x
  2.   (tan−1 x)2
  3. cos2 x · sin x
  4. sin(tan−1 x)
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)   May 7, 2023   148 / 156
Error Estimates
Exercises 80.
  1. Estimate the error if P3 (x) = x − (x 3 /6) is used to estimate the value
     of sin x at x = 0.1.
  2. Estimate the error if P4 (x) = 1 + x + (x 2 /2) + (x 3 /6) + (x 4 /24) is
     used to estimate the value of e x at x = 1/2.
  3. For approximately what values of x can you replace sin x by
     x − (x 3 /6) with an error of magnitude no greater than 5 × 10−4 ?
     Give reasons for your answer.
  4. If cos x is replaced by 1 − (x 2 /2) and |x| < 0.5, what estimate can be
     made of the error? Does 1 − (x 2 /2) tend to be too large, or too
     small? Give reasons for your answer.
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)      May 7, 2023   149 / 156
Exercises
Exercises 81.
  1. How close is the approximation sin x = x when |x| < 10−3 ? For
     which of these values of x is x < sin x?
                   √
  2. The estimate 1 + x = 1 + (x/2) is used when x is small. Estimate
     the error when |x| < 0.01.
  3. The approximation e x = 1 + x + (x 2 /2) is used when x is small. Use
     the Remainder Estimation Theorem to estimate the error when
     |x| < 0.1.
  4. (Continuation of the above exercise) When x < 0, the series for e x is
     an alternating series. Use the Alternating Series Estimation Theorem
     to estimate the error that results from replacing e x by 1 + x + (x 2 /2)
     when −0.1 < x < 0. Compare your estimate with the one you
     obtained in the above exercise.
 P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   150 / 156
Theory and Examples
Exercises 82.
 1. Use the identity sin2 x = (1 − cos 2x)/2 to obtain the Maclaurin series
    for sin2 x. Then differentiate this series to obtain the Maclaurin series
    for 2 sin x cos x. Check that this is the series for sin 2x.
 2. (Continuation of the above xercise.) Use the identity
    cos2 x = cos 2x + sin2 x to obtain a power series for cos2 x.
 3. Taylor’s Theorem and the Mean Value Theorem. Explain how the
    Mean Value Theorem is a special case of Taylor’s Theorem.
 4. Linearizations at inflection points. Show that if the graph of a
    twice-differentiable function f (x) has an inflection point at x = a,
    then the linearization of f at x = a is also the quadratic
    approximation of f at x = a. This explains why tangent lines fit so
    well at inflection points.
P. Sam Johnson (NIT Karnataka)   Infinite Series (Part-2)    May 7, 2023   151 / 156
Theory and Examples
Exercises 83.
 1. The (second) second derivative test. Use the equation
                                                                 f 00 (c2 )
                        f (x) = f (a) + f 0 (a)(x − a) +                    (x − a)2
                                                                      2
     to establish the following test:
     Let f have continuous first and second derivatives and suppose that
     f 0 (a) = 0. Then
        a. f has a local maximum at a if f 00 ≤ 0 throughout an interval whose
           interior contains a;
        b. f has a local maximum at a if f 00 ≥ 0 throughout an interval whose
           interior contains a.
P. Sam Johnson (NIT Karnataka)        Infinite Series (Part-2)                   May 7, 2023   152 / 156
Exercises
Exercises 84.
  1. A cubic approximation. Use Taylor’s formula with a = 0 and n = 3 to
     find the standard cubic approximation of f (x) = 1/(1 − x) at x = 0.
     Give an upper bound for the magnitude of the error in the
     approximation when |x| ≤ 0.1.
  2. a. Use Taylor’s formula with n = 2 to find the quadratic approximation of
            f (x) = (1 + x)k at x = 0 (k a constant).
         b. If k = 3, for approximately what values of x in the interval [0, 1] will
            the error in the quadratic approximation be less than 1/100?
  3. Improving approximations of π:
         a. Let P be an approximation of π accurate to n decimals. Show that
            P + sin P gives an approximation correct to 3n decimals. (Hint : Let
            P = π + x.)
         b. Try it with a calculator.
 P. Sam Johnson (NIT Karnataka)     Infinite Series (Part-2)          May 7, 2023   153 / 156
                                                                    P∞          n
The Taylor series generated by f (x) =                               n=0 an x       .
Exercise 85.
A function defined by a power series ∞            n
                                        P
                                          n=0 an x with a radius of
convergence R > 0 has a Taylor series that converges to the function at
every point of (−R, R).
                     P Show this      by showingPthat the Taylor series
generated by f (x) = ∞  n=0 an x n is the series   ∞       n
                                                   n=0 an x itself.
An immediate consequence of this is that series like
                                                x4 x6 x8
                             x sin x = x 2 −       +    −    + ...
                                                3!   5!   7!
and
                                        x4 x5
                              x 2e x = x 2 + x 3 +
                                           +     + ...,
                                        2!    3!
obtained by multiplying Taylor series by powers of x, as well as series
obtained by integration and differentiation of convergent power series, are
themselves the Taylor series generated by the functions they represent.
 P. Sam Johnson (NIT Karnataka)          Infinite Series (Part-2)          May 7, 2023   154 / 156
Exercises
Exercises 86.
  1. Taylor series
             P for even      functions and odd functions. Suppose that
     f (x) = ∞  n=0 an x n converges for all x in an open interval (−R, R).
     Show that
         a. If f is   even, then a1 = a3 = a5 = · · · = 0, i.e., the Taylor series for f at
            x =0      contains only even powers of x.
         b. If f is   odd, then a0 = a2 = a4 = · · · = 0, i.e., the Taylor series for f at
            x =0      contains only odd powers of x.
 P. Sam Johnson (NIT Karnataka)        Infinite Series (Part-2)           May 7, 2023   155 / 156
References
P. Sam Johnson (NIT Karnataka) Infinite Series (Part-2) May 7, 2023 156 / 156