Docsity

Taylor Series: Definition, Differentiation, and Integration - Prof. Harry W. Mclaughlin, Study notes of Calculus

Toggle sidebar
bg1
CALCULUS II
Spring 2011
LECTURE 23
revised 4/24/11
This lecture provides the following:
•a definition of a Taylor series
•a theorem dealing with term-by-term differentiation of a
power series
•a theorem dealing with term-by-term integration of a power
series
•intervals of convergence for the Taylor series corresponding
to
1
1−xcentered at x= 0
1
(1−x)2centered at x= 0
1
(1+x2)2centered at x= 0
ln (x)centered at x= 1
arctan (x)centered at x= 0.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download Taylor Series: Definition, Differentiation, and Integration - Prof. Harry W. Mclaughlin and more Study notes Calculus in PDF only on Docsity!

CALCULUS II

Spring 2011

LECTURE 23

revised 4/24/

This lecture provides the following:

  • a definition of a Taylor series
  • a theorem dealing with term-by-term differentiation of a power series
  • a theorem dealing with term-by-term integration of a power series
  • intervals of convergence for the Taylor series corresponding to 1 1 −x centered at^ x^ = 0 1 (1−x)^2 centered at^ x^ = 0 1 (1+x^2 )^2 centered at^ x^ = 0 ln (x) centered at x = 1 arctan (x) centered at x = 0.

Recall

We recall from Lecture 22:

  • the definition of a Taylor polynomial

∑^ n

k=

f k(0) k!

xk

  • Taylor polynomials can be used to approximate transcendental func- tions.

End of Recall

We show in fact that

∑^ ∞

k=

xk k! = ex, −∞ < x < ∞.

We recall that in the last lecture we assumed this result and were able to approximate the two numbers e (^12) and e itself by using the first five terms of the infinite series.

But the function ex, −∞ < x < ∞ can be changed to another function f (x), say f (x) = ln (x) or f (x) = (^1) −^1 x , x 6 = 1 or f (x) = sin (x), −∞ < x < ∞, etc. One then asks do these functions have infinite series representations? If so, where do they converge? To what do they converge?

In this and the next lecture we thread our way slowly through the study of such series.

Getting Started

Definition. Let {ak}∞ k=0 be a sequence of real numbers. A power series is a formal expression of the form

∑^ ∞

k=

akxk.

(It is just a formal expression; it has no meaning.)

The expression ∑∞

k=

xk

is a power series; here ak = 1 for all k.

Definition. Let {ak}∞ k=0 be a sequence of real numbers. The value of the power series ∑∞

k=

akxk

at the real number x 0 is given by

∑^ ∞

k=

akxk 0

provided that the infinite series converges.

The value of the power series

∑^ ∞

k=

xk

at x = 12 is given by ∑∞

k=

)k = 2.

  • think geometric series –

Every power series converges when x = 0 so the set of real numbers, x, for which the power series has a value is non-empty. In general a power series converges on a non-degenerate interval I, containing x = 0. In this regard one can think of a power series

∑^ ∞

k=

akxk

as a real-valued function, f , defined on I. For every x ∈ I the value of f at x is given by

f (x) =

∑^ ∞

k=

akxk.

The next theorem plays a key role in the study of power series. It says (roughly speaking) that a power series can be differentiated term-by-term.

Theorem. Term-by-Term Differentiation. Let {ak}∞ k=0 be a sequence of real numbers; let r > 0 and assume that the real-valued function f (x), |x| < r is defined by

f (x) =

∑^ ∞

k=

akxk, |x| < r.

Then for |x| < r one has

f ′(x) =

∑^ ∞

k=

kakxk−^1

that is

f ′(x) =

∑^ ∞

k=

(k + 1)ak+1xk.

This is called the derived series; it looks like

f ′(x) = 1a 1 + 2a 2 x + 3a 3 x^2 + 4a 4 x^3 + · · ·.

The theorem asserts that the radius of convergence of the de- rived series is as large as that of the original series. This leaves open the question: Can the radius of convergence of the derived series be greater than that of the original series? The answer is no. This is established by the term-by-term integration theorem given below.

We don’t prove the term-by-term differentiation theorem here, but instead investigate its implications.^1

To begin one makes the following table:

f (0)(x) =

∑^ ∞

k=

akxk, |x| < r

f (1)(x) =

∑^ ∞

k=

(k + 1)ak+1xk, |x| < r

(^1) There is a hidden subtlety in the theorem. It insists that |x| < r. Even though the series P∞ k=0 ak^ x k (^) converges at an end point of the interval [−r, r], the theorem does not allow x to take on the values x = ±r.

f (2)(x) =

∑^ ∞

k=

(k + 1)(k + 2)ak+2xk, |x| < r

f (3)(x) =

∑^ ∞

k=

(k + 1)(k + 2)(k + 3)ak+3xk, |x| < r

.. .

f (n)(x) =

∑^ ∞

k=

(k + 1)(k + 2) · · · (k + n)ak+nxk, |x| < r

..

..

Evaluating these derivatives at x = 0 yields

f (0)(0) = 1 a 0 f (1)(0) = 1 a 1 f (2)(0) = 1 · 2 a 2 f (3)(0) = 1 · 2 · 3 a 3 .. . f (n)(0) = 1 · 2 · 3 · · · nan ..

..

From this one concludes that

ak = f (k)(0) k!

, k = 0, 1 , 2 , · · ·.

This means that if for some sequence of real numbers {ak}∞ k=0 the real-valued function f (x) is modeled by

f (x) =

∑^ ∞

k=

akxk, 0 ≤ |x| < r

then

ak =

f (k)(0) k! , k = 0, 1 , 2 , · · ·

and hence

f (x) =

∑^ ∞

k=

f (k)(0) k! xk, |x| < r.

This answers the question:

(ii) It is also noted that every real-valued function defined on an interval containing x 0 and having all derivatives at x 0 has a Taylor series!

EXAMPLE. – TAYLOR SERIES CORRESPONDING TO

1 (1−x).

Find the Taylor series, centered at x = 0, corresponding to

f (x) =

1 − x , x 6 = 1

and find its interval of convergence.

We argued earlier that for all x ∈ R, x 6 = 1

∑^ ∞

k=

xk

converges to (^1) −^1 x if |x| < 1 diverges otherwise.

By the above analysis, it must be that

∑^ ∞

k=

xk

is the Taylor series, centered at x = 0, for the function

1 1 − x , x ∈ R, x 6 = 1.

Even though the function (^1) −^1 x is defined for all x such that x 6 = 1, the Taylor series only converges to the function on the interval − 1 < x < 1.

Thus its interval of convergence is (− 1 , 1) and

1 1 −x =^

k=0 x k, |x| < 1.

In the next example we use the term-by-term differentiation theorem to con- struct a Taylor series for a given function; additionally we find its interval of convergence.

EXAMPLE. – TAYLOR SERIES CORRESPONDING TO

1 (1−x)^2.

Find the Taylor series, centered at x = 0 corresponding to the function

f (x) =

(1 − x)^2

, x ∈ R, x 6 = 1.

For what values of x does it converge? (What is its interval of convergence?)

Solution. Before beginning we observe that d dx

1 − x

(1 − x)^2 , x ∈ R, x 6 = 1.

Applying the term-by-term differentiation theorem to the geo- metric series, 1 1 − x

∑^ ∞

k=

xk, |x| < 1

one obtains

f (x) = d dx

1 − x

∑^ ∞

k=

kxk−^1 , |x| < 1.

Changing variables, so that the sum begins with k = 0, the Taylor series corresponding to (^) (1−^1 x) 2 becomes

1 (1−x)^2 =^

k=0(k^ + 1)x k, |x| < 1.

It converges for the same values of x as does the geometric series, namely |x| < 1.

Writing out the first few terms of the Taylor series corresponding to f (x) one finds 1 (1 − x)^2 = 1 + 2x + 3x^2 + 4x^3 + 5x^4 + · · · , |x| < 1.

It converges for all values of x such that |x| < 1.^2

Term-by-Term Integration

In this section we are able to prove (roughly speaking) that a Taylor series can be integrated term-by-term. This allows us to find the Taylor series corresponding to ln (x) and for arctan (x).

We begin with a theorem.

Theorem. Term-by-Term Integration. Let {ak}∞ k=0 be a sequence of real numbers; let r > 0 and assume that the real-valued function g(x), |x| < r is defined by

g(x) =

∑^ ∞

k=

akxk, |x| < r.

Then for |x| < r one has that

∫ (^) x 0 g(t)^ dt^ exists

(^3) and

∫ (^) x

0

g(t) dt =

∑^ ∞

k=

ak

∫ (^) x

0

tk^ dt =

∑^ ∞

k=

ak xk+ k + 1

That is (^) ∫ (^) x

0

g(t) dt = a 0 x + a 1

x^2 2

  • a 2

x^3 3

  • a 3

x^4 4

Further, the radii of convergence of the two power series

∑^ ∞

k=

akxk^ and

∑^ ∞

k=

ak

xk+ k + 1 (^2) The reasoning used here is worth crystallizing. We found a power series representation corresponding to the function (^) (1+^1 x (^2) ) 2 , |x| < 1 and then claimed that it was the Taylor series corresponding to the function. We are permitted to do this since the coefficients in a power series representation of a function must be exactly those prescribed by the Taylor series –think term-by-term differentiation. (^3) It exists because g(t) is differentiable, hence continuous, thus integrable.

are the same.

The term-by-term integration theorem is powerful. It says that if a power series has a positive radius of convergence, r, then it represents a real-valued function defined for |x| < r; the function is integrable and further its integral can be computed term by term.

The proof of the theorem is not included here.

It is possible to prove that the Taylor series corresponding to ln (x) centered at x = 1 does indeed converge to ln (x) on the interval 0 < x ≤ 2. The argument uses the geometric series and term-by-term integration. The next example sorts this out.

EXAMPLE. – TAYLOR SERIES CORRESPONDING TO

ln (x).

Argue that

ln (x) =

∑^ ∞

k=

(1 − x)k k

, 0 < x ≤ 2.

That is

ln (x) = −

[

(1 − x) + (1 − x)^2 2

(1 − x)^3 3

]

, 0 < x ≤ 2.

Solution. We argue that

ln (x) =

∑^ ∞

k=

(1 − x)k k

, 0 < x < 2

and leave to another treatise the case, x = 2.

Using the fact that 1 1 − x

= 1 + x + x^2 + x^3 + · · · , |x| < 1

one obtains 1 x

1 − (1 − x)

= 1+(1−x)+(1−x)^2 +(1−x)^3 +· · · , | 1 −x| < 1.

Before continuing we list four equivalent power series expansions for ln (x)

ln (x) =

∑^ ∞

k=

(1 − x)k k

, 0 < x ≤ 2 (1)

ln (x) =

∑^ ∞

k=

(−1)k+^

(x − 1)k k , 0 < x ≤ 2 (2)

ln (x + 1) =

∑^ ∞

k=

(−1)k+^ xk k

, − 1 < x ≤ 1 (3)

ln (1 − x) =

∑^ ∞

k=

xk k , − 1 < x ≤ 1. (4)

The 2nd^ follows from the first by writing (1 − x)k^ = (−1)k(x − 1)k. The 3rd follows from the 2nd^ by replacing x by x + 1. The 4th^ follows from the 1st by replacing x by 1 − x.

All of these expansions can be found in the literature. The last three are easily recognized as Taylor series.

It is possible to prove that the Taylor series corresponding to arctan (x) cen- tered at x = 0 does indeed converge to arctan (x) on the interval |x| ≤ 1. The argument uses the geometric series and term-by-term integration. The next example deals with this.

EXAMPLE. – TAYLOR SERIES CORRESPONDING TO

arctan (x).

Argue that

arctan (x) =

∑^ ∞

k=

(−1)k^ x^2 k+ 2 k + 1

, |x| ≤ 1.

That is,

arctan (x) = x − x^3 3

x^5 5 − · · · , |x| ≤ 1.

Solution. We argue that

arctan (x) =

∑^ ∞

k=

(−1)k^ x^2 k+ 2 k + 1

, |x| < 1

and leave the cases |x| = 1 to another treatise.

We seek to find the Taylor series, centered at x = 0, correspond- ing to f (x) = arctan (x), −∞ < x < ∞. There is a bit hindsight involved in our analysis. We find the Taylor series correspond- ing to f ′(x) and then integrate it term-by term to get the Taylor series corresponding to f (x).

Since f ′(x) = (^) 1+^1 x 2 , −∞ < x < ∞, one uses the geometric series to write, for |x| < 1

1 1 + x^2

1 − (−x^2 ) = 1 + (−x^2 ) + (−x^2 )^2 + (−x^2 )^3 + (−x^2 )^4 + · · ·.

Now using the term-by-term integration theorem, one writes

arctan (x) − arctan (0) =

∫ (^) x

0

1 + t^2

dt

arctan (x) =

∫ (^) x

0

(1 + (−t^2 ) + (−t^2 )^2 + (−t^2 )^3

+(−t^2 )^4 + · · ·) dt

arctan (x) =

∫ (^) x

0

1 dt −

∫ (^) x

0

t^2 dt +

∫ (^) x

0

t^4 dt

∫ (^) x

0

t^6 dt +

∫ (^) x

0

t^8 dt − · · ·

= x − x^3 3

x^5 5

x^7 7

x^9 9

for |x| < 1.

Using constructs not available in this treatise one can show that the Taylor series corresponding to arctan (x) also converges to arctan (x) for x = ±1.

Thus, the Taylor series corresponding to arctan (x), −∞ < x < ∞, converges to arctan (x) for |x| ≤ 1 and is given by

arctan (x) =

k=0(−1) k x^2 k+ 2 k+1 ,^ |x| ≤^1.

From that we were able to determine that the Taylor series, centered at x = 0, corresponding to the function

1 (1 + x^2 )^2

converges to (^) (1+^1 x (^2) ) 2 for |x| < 1. In particular we found that

(1 + x^2 )^2

∑^ ∞

k=

(−1)k(k + 1)x^2 k, |x| < 1.

(2) We assumed that ∑∞

k=

akxk

converges on some open interval I (containing x = 0) and wrote its sum, for each x ∈ I, as f (x). We stated that

∫ (^) x

0

f (t) dt =

∑^ ∞

k=

∫ (^) x

0

aktk^ dt =

∑^ ∞

k=

ak xk+ k + 1

, x ∈ I.

Using this and changing x to x − 1, we were able to determine that

ln (x) =

∑^ ∞

k=

(1 − x)k k

, 0 < x ≤ 2

and that

arctan (x) =

∑^ ∞

k=

(−1)k^ x^2 k+ 2 k + 1

, |x| < 1.

In particular, we found the interesting formulas

ln(2) = 1 −

(that is, the alternating harmonic series converges to ln (2))

and π 4

Looking Forward. We note that using only the geometric series, we have been able to prove that the Taylor series corresponding to ln (x) and the Tay- lor series corresponding to arctan (x) converge to their respective functions on suitable intervals. However our hands are tied with regard to ex, sin (x), etc. We untie the knot in the next lecture where one finds Taylor’s Theorem.