Math 1B, lecture 15: Taylor Series

Similar documents
Taylor and Maclaurin Series. Approximating functions using Polynomials.

Math 115 HW #5 Solutions

Taylor and Maclaurin Series. Approximating functions using Polynomials.

Section 9.7 and 9.10: Taylor Polynomials and Approximations/Taylor and Maclaurin Series

Completion Date: Monday February 11, 2008

Limits at Infinity. Horizontal Asymptotes. Definition (Limits at Infinity) Horizontal Asymptotes

Taylor and Maclaurin Series

Math 0230 Calculus 2 Lectures

Chapter 9: Infinite Series Part 2

MATLAB Laboratory 10/14/10 Lecture. Taylor Polynomials

Taylor approximation

SOLVED PROBLEMS ON TAYLOR AND MACLAURIN SERIES

e x = 1 + x + x2 2! + x3 If the function f(x) can be written as a power series on an interval I, then the power series is of the form

Math 115 Spring 11 Written Homework 10 Solutions

July 21 Math 2254 sec 001 Summer 2015

Introduction to Series and Sequences Math 121 Calculus II Spring 2015

AP Calculus Chapter 9: Infinite Series

MAT137 Calculus! Lecture 45

1 Question related to polynomials

Math 473: Practice Problems for Test 1, Fall 2011, SOLUTIONS

Section Example Determine the Maclaurin series of f (x) = e x and its the interval of convergence.

MAT137 Calculus! Lecture 48

Final exam (practice) UCLA: Math 31B, Spring 2017

Math 651 Introduction to Numerical Analysis I Fall SOLUTIONS: Homework Set 1

Holes in a function. Even though the function does not exist at that point, the limit can still obtain that value.

Math 162 Review of Series

LIMITS AT INFINITY MR. VELAZQUEZ AP CALCULUS

Introduction and Review of Power Series

TAYLOR SERIES [SST 8.8]

Review of Power Series

Chapter 11 - Sequences and Series

Math 106 Fall 2014 Exam 2.1 October 31, ln(x) x 3 dx = 1. 2 x 2 ln(x) + = 1 2 x 2 ln(x) + 1. = 1 2 x 2 ln(x) 1 4 x 2 + C

Math 113 (Calculus 2) Exam 4

10.1 Sequences. Example: A sequence is a function f(n) whose domain is a subset of the integers. Notation: *Note: n = 0 vs. n = 1.

Section 8.7. Taylor and MacLaurin Series. (1) Definitions, (2) Common Maclaurin Series, (3) Taylor Polynomials, (4) Applications.

Section Taylor and Maclaurin Series

Infinite series, improper integrals, and Taylor series

Taylor Series. Math114. March 1, Department of Mathematics, University of Kentucky. Math114 Lecture 18 1/ 13

Lecture 32: Taylor Series and McLaurin series We saw last day that some functions are equal to a power series on part of their domain.

Study # 1 11, 15, 19

Math 1b Sequences and series summary

n=1 ( 2 3 )n (a n ) converges by direct comparison to

MATH 1010E University Mathematics Lecture Notes (week 8) Martin Li

Math 181, Exam 2, Study Guide 2 Problem 1 Solution. 1 + dx. 1 + (cos x)2 dx. 1 + cos2 xdx. = π ( 1 + cos π 2

Math 113 Winter 2005 Key

Series Solutions. 8.1 Taylor Polynomials

8.5 Taylor Polynomials and Taylor Series

8.7 Taylor s Inequality Math 2300 Section 005 Calculus II. f(x) = ln(1 + x) f(0) = 0

A sequence { a n } converges if a n = finite number. Otherwise, { a n }

Chapter 4 Sequences and Series

Taylor series. Chapter Introduction From geometric series to Taylor polynomials

2 = = 0 Thus, the number which is largest in magnitude is equal to the number which is smallest in magnitude.

Constructing Taylor Series

MATH 1231 MATHEMATICS 1B Calculus Section 4.4: Taylor & Power series.

Section x7 +

Semester University of Sheffield. School of Mathematics and Statistics

Power series and Taylor series

AP Calculus Testbank (Chapter 9) (Mr. Surowski)

3.4 Introduction to power series

INFINITE SEQUENCES AND SERIES

CHALLENGE! (0) = 5. Construct a polynomial with the following behavior at x = 0:

Quantum Mechanics for Scientists and Engineers. David Miller

Lecture 20: Further graphing

Let s Get Series(ous)

1 Implicit Differentiation

Chapter 8 Indeterminate Forms and Improper Integrals Math Class Notes

Example 9 Algebraic Evaluation for Example 1

Convergence of sequences and series

X. Numerical Methods

Unit 2: Solving Scalar Equations. Notes prepared by: Amos Ron, Yunpeng Li, Mark Cowlishaw, Steve Wright Instructor: Steve Wright

APPLICATIONS OF DIFFERENTIATION

WebAssign Lesson 6-3 Taylor Series (Homework)

CALCULUS JIA-MING (FRANK) LIOU

MORE APPLICATIONS OF DERIVATIVES. David Levermore. 17 October 2000

Ma 530 Power Series II

Analysis II: Basic knowledge of real analysis: Part V, Power Series, Differentiation, and Taylor Series

Section 3.1. Best Affine Approximations. Difference Equations to Differential Equations

Math Real Analysis II

Integration of Rational Functions by Partial Fractions

TAYLOR AND MACLAURIN SERIES

LECTURE 10: REVIEW OF POWER SERIES. 1. Motivation

Taylor and Maclaurin Series. Copyright Cengage Learning. All rights reserved.

Math 113 Winter 2005 Departmental Final Exam

Integration of Rational Functions by Partial Fractions

ter. on Can we get a still better result? Yes, by making the rectangles still smaller. As we make the rectangles smaller and smaller, the

MATH 163 HOMEWORK Week 13, due Monday April 26 TOPICS. c n (x a) n then c n = f(n) (a) n!

Section 10.7 Taylor series

AP Calculus (BC) Chapter 9 Test No Calculator Section Name: Date: Period:

Section 3.7. Rolle s Theorem and the Mean Value Theorem

Math Final Exam Review

56 CHAPTER 3. POLYNOMIAL FUNCTIONS

Series Handout A. 1. Determine which of the following sums are geometric. If the sum is geometric, express the sum in closed form.

Finding Limits Analytically

APPLICATIONS OF DIFFERENTIATION

MATH 118, LECTURES 27 & 28: TAYLOR SERIES

Math From Scratch Lesson 24: The Rational Numbers

Power series solutions for 2nd order linear ODE s (not necessarily with constant coefficients) a n z n. n=0

Properties of a Taylor Polynomial

Without fully opening the exam, check that you have pages 1 through 13.

A Dissection Proof of Leibniz s Series for π/4

Transcription:

Math B, lecture 5: Taylor Series Nathan Pflueger October 0 Introduction Taylor s theorem shows, in many cases, that the error associated with a Taylor approximation will eventually approach 0 as the degree of the approximation gets larger and larger. In other words, as more and more terms are added to the summation, the result becomes closer and closer to the value of the function. Under the assumption that the error approaches 0 as n grows, Taylor series sidestep the need for error bounds by simply including infinitely many terms in the sum. Intuitively, the Taylor series of a function is the Taylor polynomial of infinite degree. Formally, a Taylor series is a notational device which specifies each derivative of a function at a single point. In many cases, the infinite sum has a well-defined value, equal to the function itself. Thus Taylor series demonstrate, for well-behaved functions at least, that the data of all of the derivatives of a function at one point completely determine the values of the function at nearby points. In this class, we will define Taylor series and give some examples. Questions of convergence are not as important for the time being. In subsequent classes we will begin a systematic study of convergence of infinite series, with Taylor series being the main example of interest. The reading for today is Gottlieb 8.4 (on summation notation) and 30.3 up to page 944 (on Taylor Series). The homework is problem set 4. You should begin working on weekly problem 5. Definition of a Taylor Series Recall once more that the nth order Taylor approximation of a function f(x), with center c, is a polynomial function defined as follows. P n (x) f(c) + f (c)(x c) + f (c) (x c) + f (c) (x c) 3 + + f (n) (c) (x c) n n! In the special case c 0, this takes the particularly simple form below. P n (x) f(0) + f (0)x + f (0) These approximations are chosen so that they: Are polynomials of degree n, and x + f (0) Match the function f(x) and its first n derivatives at x c. x 3 + + f (n) (0) x n n! A Taylor series can be thought of as a Taylor polynomial of infinite degree. The definition is as follows. Almost all functions we consider in this course are well-behaved in this sense. In higher mathematics, such functions are called analytic functions.

Definition.. The Taylor series of a function f(x) around a center c is the infinite sum: f(c) + f (c)(x c) + f (c) Alternatively, in summation notation: (x c) + f (c) (x c) 3 +. f (k) (c) (x c) k. k! Note. In the notation above, I am using the following conventions. f (0) (x) f(x) 0! This is done simply so that the k 0 term of the sum will make sense. Intuitively, the 0 th derivative of a function is the function itself (it has been differentiated 0 times), and the number 0! should be! divided by (just like 4! (5!)/5). Notice that at the moment, the Taylor series is merely an infinite sum, which may or may not converge to a meaningful value. Much of the work of the rest of this unit will be studying when it does converge to a meaningful value. Notice that the information of a Taylor series is precisely equivalent to the value of a function and all of its derivatives at a single point. Therefore whenever we study Taylor series, we are essentially studying the influence of the derivatives of a function at one point on the function at other points. The most common center to use for Taylor series is, naturally, c 0. These are common enough that they commonly have their own name, which you should be aware of. Definition.. The Maclaurin series of a function f(x) is the Taylor series at center c 0. 3 Examples f(0) + f (0)x + f (0) or x + f (0) x 3 + f (k) (0) x k k! Consider four standard functions: e x, sin x, cos x, and log( + x). Let us compute the Maclaurin series (i.e. Taylor series around 0) for each of these functions. First, notice that all four functions have derivatives following a fairly simple pattern. f(x) f (x) f (x) f (x) f (4) (x) f (5) (x) e x e x e x e x e x e x sin x cos x sin x cos x sin x cos x cos x sin x cos x sin x cos x sin x log( + x) ( + x) ( + x) ( + x) 3 ( + x) 4 4! ( + x) 5 Putting in the value x 0 gives the necessary values for the Maclaurin series. f(x) f(0) f (0) f (0) f (0) f (4) (0) f (5) (0) e x sin x 0 0 0 cos x 0 0 0 log( + x) 0 4!

Now, putting these coefficients into the definition, we obtain the Maclaurin series for these four functions. e x + x + x + x3 + 4! x4 + 5! x5 + sin x x x3 + 5! x5 cos x x + 4! x4 log( + x) x x + 3 x3 4 x4 + 5 x5 Note that the denominators in the series for log( + x) are of the form k, rather than k!, since the value f (k) (0) is (k )! and cancels all but the k. 4 Convergence of Taylor series A Taylor series is a sum of an infinite number of terms. As such, it may or may not converge. The next lecture will begin a careful study of the convergence of series, but for now we just mention a simple criterion. The Taylor series of f around a center c converges to the value f(x) at a particular value of x if and only if the remainder R n (x) goes to 0 as n goes to infinity. Here, R n (x) is the remainder term discussed in the previous lecture; it is equal to f(x) P n (x). Observe that since we have an upper bound Mn+ (n+)! x c n+ for R n (x), we can use this upper bound to show that a Taylor series actually converges to the function that it is meant to approximate. Example 4.. Consider the function f(x) e x, whose Maclaurin series is + x + x + 3 x3 +. Suppose that x is some fixed value greater than. Then for any n, the n th derivative of e x is also e x, and the maximum value of this on [0, x] is e x. Therefore M n+ e x in this context. From the Taylor remainder theorem, it follows that for each n, R n (x) e x (n + )! xn+. Now, as n grows very large, the value (n+)! grows much faster that the value x n+, so this upper bound goes to 0 (a more precise argument can be given by comparing these error terms to a geometric sequence, which we will discuss later). Therefore the function e x is precisely equal to its Maclaurin series for all positive values of x. A similar argument shows equality for negative values of x as well. e x + x + x + x3 + k! xk Example 4.. Consider the function f(x) sin x. The derivatives at x 0 of sin x follow the regular pattern: 0,, 0,, 0,, 0,,.... Therefore the Taylor series is easy to write down. x x3 + 5! x5 7! x7 +... Now, all derivates of sin x are either ± sin x or ± cos x; in particular, the values of all derivatives are bounded by at all places. It follows that for all n, the remainder of the Taylor approximation around 0 is bounded as follows. 3

R n (x) (n + )! x n+ By reasoning similarly to before, this upper bound goes to 0 as n goes to infinity, so in fact the Taylor series converges to sin x for all value of x. sin x x x3 + 5! x5 7! x7 + ( ) k (k + )! xk+ x. In fact the exact same reasoning will apply to cos x; it is also equal to its Maclauring series at all points cos x x + 4! x4 6! x6 + ( ) k (k)! xk 5 A series expression for π Notice that since we know that the function e x is exactly equal to its Maclaurin series, it is possible to calculate it to arbitrary accuracy by summing rational numbers. e + + 6 + 4 + + n! + Indeed, this infinite sum is sometimes even used as a definition for the number e. There are other transcendental numbers that can be calculated using rather simply infinite series. For example, suppose that we want to know the value of π. One way to access it (by no means the best way, but a way nonetheless) is using the fact that: π 4 tan (). How is this useful? Well, given that we understand the function tan fairly well at the value x 0, we can use this knowledge in order to calculate other values of the function, using its Maclaurin series. There is actually a clever way to find this series. For the rest of this section, we will not justify each step (e.g. verify that everything converges), but merely press forward to the goal. We will see, moving forward, how to justify some steps like these. Consider the fact that: d dx tan x + x. Combine this with the following Taylor series (which could be computed separately, or which follows from differentiating the Maclaurin series for ln( + x) computed earlier). + x x + x x 3 +, Substituting x in for x in the second series and integrating: 4

+ x x + (x ) (x 3 ) 3 + x + x 4 x 6 + ( tan x + C x + x 4 x 6 + ) dx x 3 x3 + 5 x5 7 x7 + Now, by considering the value x 0, we can conclude that this constant C should be 0, so in fact the Maclaurin series for tan x is simply: tan x x 3 x3 + 5 x5 7 x7 + In particular, putting in the value x, we obtain the following. π 4 3 + 5 7 + This gives one way to calculate π by hand, if necessary. However, there are certainly only ways which converge much more rapidly, but we will not discuss them. 5