Lecture 9: Taylor Series

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

Ma 530 Power Series II

f (x) = k=0 f (0) = k=0 k=0 a k k(0) k 1 = a 1 a 1 = f (0). a k k(k 1)x k 2, k=2 a k k(k 1)(0) k 2 = 2a 2 a 2 = f (0) 2 a k k(k 1)(k 2)x k 3, k=3

8.7 MacLaurin Polynomials

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.

Section Taylor and Maclaurin Series

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

Lecture 1: Period Three Implies Chaos

Math 112 Rahman. Week Taylor Series Suppose the function f has the following power series:

MATH 1231 MATHEMATICS 1B CALCULUS. Section 5: - Power Series and Taylor Series.

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

X. Numerical Methods

1.4 Techniques of Integration

MAT137 - Term 2, Week 2

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

Math Lecture 4 Limit Laws

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

2t t dt.. So the distance is (t2 +6) 3/2

Math 113 (Calculus 2) Exam 4

Mathematical Economics: Lecture 2

Taylor and Maclaurin Series. Approximating functions using Polynomials.

1 Question related to polynomials

Lecture 6: Finite Fields

INFINITE SEQUENCES AND SERIES

n=0 ( 1)n /(n + 1) converges, but not

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

Main topics for the First Midterm Exam

Lecture 4: Constructing the Integers, Rationals and Reals

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

More on infinite series Antiderivatives and area

Section 5.8. Taylor Series

Sequences and Series

Lecture 10: Powers of Matrices, Difference Equations

Math 480 The Vector Space of Differentiable Functions

The First Derivative and Second Derivative Test

1 Antiderivatives graphically and numerically

The First Derivative and Second Derivative Test

Polynomial Approximations and Power Series

MATH 116, LECTURE 13, 14 & 15: Derivatives

MATH 118, LECTURES 27 & 28: TAYLOR SERIES

4.9 Anti-derivatives. Definition. An anti-derivative of a function f is a function F such that F (x) = f (x) for all x.

(c) Find the equation of the degree 3 polynomial that has the same y-value, slope, curvature, and third derivative as ln(x + 1) at x = 0.

LECTURE 10: REVIEW OF POWER SERIES. 1. Motivation

Lecture 2: Eigenvalues and their Uses

1. Pace yourself. Make sure you write something on every problem to get partial credit. 2. If you need more space, use the back of the previous page.

Lecture 3: Sizes of Infinity

Section 3.7. Rolle s Theorem and the Mean Value Theorem

Sequences and Series. 256 Chapter 11 Sequences and Series. and then lim 1 1 = 1 0 = 1.

Representation of Functions as Power Series.

Substitutions and by Parts, Area Between Curves. Goals: The Method of Substitution Areas Integration by Parts

Lecture 4: Applications of Orthogonality: QR Decompositions

TIPS FOR WRITING PROOFS IN HOMEWORK ASSIGNMENTS. 1. Simple rules

Math RE - Calculus II Antiderivatives and the Indefinite Integral Page 1 of 5

The polar coordinates

5.9 Representations of Functions as a Power Series

Math Final Exam Review

Puzzle 1 Puzzle 2 Puzzle 3 Puzzle 4 Puzzle 5 /10 /10 /10 /10 /10

1 + lim. n n+1. f(x) = x + 1, x 1. and we check that f is increasing, instead. Using the quotient rule, we easily find that. 1 (x + 1) 1 x (x + 1) 2 =

Taylor and Maclaurin Series. Approximating functions using Polynomials.

B553 Lecture 1: Calculus Review

Taylor and Maclaurin Series

1.10 Continuity Brian E. Veitch

Recitation 9: Probability Matrices and Real Symmetric Matrices. 3 Probability Matrices: Definitions and Examples

Section 4.8 Anti Derivative and Indefinite Integrals 2 Lectures. Dr. Abdulla Eid. College of Science. MATHS 101: Calculus I

(e) 2 (f) 2. (c) + (d). Limits at Infinity. 2.5) 9-14,25-34,41-43,46-47,56-57, (c) (d) 2

Derivatives and the Product Rule

Lecture 7: Differential Equations

Unit #10 : Graphs of Antiderivatives; Substitution Integrals

MATH 1A - FINAL EXAM DELUXE - SOLUTIONS. x x x x x 2. = lim = 1 =0. 2) Then ln(y) = x 2 ln(x) 3) ln(x)

MATH 1902: Mathematics for the Physical Sciences I

Review: Power series define functions. Functions define power series. Taylor series of a function. Taylor polynomials of a function.

Convergence of sequences and series

Constructing Taylor Series

Chapter 9: Infinite Series Part 2

Lecture 2: Mutually Orthogonal Latin Squares and Finite Fields

Learning Objectives for Math 165

1 Lecture 24: Linearization

Math 115 HW #5 Solutions

A REVIEW OF RESIDUES AND INTEGRATION A PROCEDURAL APPROACH

Math 113 Winter 2005 Key

8.5 Taylor Polynomials and Taylor Series

Calculus II Lecture Notes

Math 10b Ch. 8 Reading 1: Introduction to Taylor Polynomials

Lecture 6: Lies, Inner Product Spaces, and Symmetric Matrices

Math Real Analysis II

Math Numerical Analysis

MATH 408N PRACTICE FINAL

WebAssign Lesson 6-3 Taylor Series (Homework)

The real voyage of discovery consists not in seeking new landscapes, but in having new eyes. Marcel Proust

MATH 13100/58 Class 6

THE INVERSE FUNCTION THEOREM

SYDE 112, LECTURE 7: Integration by Parts

Math 111: Calculus. David Perkinson

Chapter 5 Integrals. 5.1 Areas and Distances

Exam Question 10: Differential Equations. June 19, Applied Mathematics: Lecture 6. Brendan Williamson. Introduction.

Introduction Derivation General formula List of series Convergence Applications Test SERIES 4 INU0114/514 (MATHS 1)

Lecture 10. (2) Functions of two variables. Partial derivatives. Dan Nichols February 27, 2018

Lecture 20: Further graphing

Lecture 2: Change of Basis

Lecture 3 (Limits and Derivatives)

Transcription:

Math 8 Instructor: Padraic Bartlett Lecture 9: Taylor Series Week 9 Caltech 212 1 Taylor Polynomials and Series When we first introduced the idea of the derivative, one of the motivations we offered was the idea of the derivative f (x) as a sort of linear approximation to f(x): essentially, given a function f(x), the derivative f (x) was telling us the instantaneous slope of our function at the point x. Consequently, if we wanted to approximate our function at the point a, we could just use the function f(a) + x f (a); this linear approximation is often a decent replacement for the function itself, for values of x very close to a. As mathematicians, we love overkill. So: if one derivative was useful, why not use n derivatives? This, roughly, is the motivation for Taylor series and polynomials: Definition. Let f(x) be a n-times differentiable function on some neighborhood (a δ, a+δ) of some point a. We define the n-th Taylor polynomial of f(x) around a as the following degree-n polynomial: T n (f(x), a) := n n= (x a) n. Notice that this function s first n derivatives all agree with f(x) s derivatives: i.e. for any k n, k x k (T n(f(x), a)) = f (k) (a). a This motivates the idea of these Taylor polynomials as n-th order approximations at a of the function f(x): if you only look at the first n derivatives of this function at a, they agree with this function completely. We define the n-th order remainder function of f(x) around a as the difference between f(x) and its n-th order approximation T n (f(x), a): R n (f(x), a) = f(x) T n (f(x), a). If f is an infinitely-differentiable function, and lim n R n (f(x), a) = at some value of x, then we can say that these Taylor polynomials converge to f(x), and in fact write f(x) as its Taylor series: T (f(x)) = n= (x a) n. Often, we will assume that our Taylor series are being expanded around a =, and omit the a-part of the expressions above. If it is not specified, always assume that you re looking at a Taylor series expanded around. 1

One of the largest questions, given a function f(x), is the following: at which values of x is f(x) equal to its Taylor series? Equivalently, our question is the following: for what values of x is lim n R n (f(x)) =? Our only/most useful tool for answering this question is the following theorem of Taylor: Theorem. (Taylor s theorem:) If f(x) is a n + 1-times differentiable function on some neighborhood of a point a and x > a is within this neighborhood, then R n (f(x), a) = a f (n+1) (t) (x t) n dt. In other words, we can express the remainder (a quantity we will often not understand) as an integral involving the derivatives of f divided by (which is often easily bounded) and polynomials (which are also easy to deal with.) The main use of Taylor series is the following observation, which basically states that integration and differentiation of Taylor series is amazingly easy: Theorem. Suppose that f(x) is a function with Taylor series T (f(x)) = n= (x a) n, and furthermore suppose that f(x) = T (f(x)) on some interval ( a, a). Then we can integrate and differentiate f(x) by just termwise integrating and differentiating T (f(x)): i.e. d ( ) dx f(x) = d (x a) n = dx (n 1)! (x a)n 1, and n= n= ( ) f(x)dx = (x a) n dx = (n + 1)! (x a)n+1 + C. n= n= In the following section, we study several functions, find their Taylor series, and use these results to perform calculations that are otherwise remarkably difficult: 2 Taylor Series: Applications Proposition. The Taylor series for f(x) = e x about is n= x n. Furthermore, this series converges and is equal to e x on all of R. 2

Proof. So: first, notice that and therefore that T (e x ) = n= f (n) () d n dx (ex ) = e x, x n = n= e xn = Furthermore, by using Taylor s theorem, we know that the remainder term R n (e x ) is just R n (e x ) = f (n+1) (t) (x t) n dt = n= x n. e t (x t)n dt. Integrating this directly seems... painful. However, we don t need to know exactly what this integral is: we just need to know that it gets really small as n goes to infinity! So, instead of calculating this integral directly, we can just come up with some upper bounds on its magnitude. Specifically: on the interval [, x], the function e t takes on its maximum at t = x, where it s e x, and the function (x t) n takes on its maximum at t =, where it s x n. Therefore, we have that e t (x x t)n dt e x xn dt. But the function being integrated at the right is just a constant with respect to t: there aren t any t s in it! This makes integration a lot easier: e x ( ) e x x xn dt = xn t = e x x xn+1. Again: to show that e x is equal to its Taylor series on all of R, we just need to show that the remainder terms R n (e x ) always go to as n goes to infinity. So, to finish our proof, it suffices to show that lim n ex x xn =. This is not hard to see. Specifically, pick any k 3 N, and let n > kx. Then we have that x n = x 2x ( 2x )! x n 2x ( 2x + 1)... n x 2x x x... x 2x 2x... 2x = x 2x 1 2 n 2x Because 2x is a fixed constant, letting n go to infinity in the above bound clearly goes to : therefore, we ve proven that the remainder terms R n (e x ) go to as n goes to infinity, and therefore that e x is equal to its Taylor series everywhere. 3

Using similar techniques, you can prove that the functions below have the following Taylor series, and furthermore converge to their Taylor series on the claimed sets: Proposition. T (cos(x)) = T (sin(x)) = T (ln(1 x)) = T ( ) 1 = 1 x For f(x) = k= k=1 ( 1) n x2n, and T (cos(x)) = cos(x) whenever x R. (2n)! ( 1) n x2n+1, and T (sin(x)) = sin(x) whenever x R. (2n + 1)! k= xn, and T (ln(1 x)) = ln(1 x) whenever x [ 1, 1). n x n, and T k= { e 1/, x, x = ( ) 1 = 1 1 x 1 x whenever x ( 1, 1)., T (f(x)) =, and T (f(x)) = f(x) only at x =. In addition, by substituting terms like into the above Taylor series, we can derive Taylor series for other functions: Proposition. T (e x2 ) = T k= ( 1 ) 1 + = ( 1) n x2n, and T (e x2 ) = e x2 whenever x R. ( 1) n n, and T k= ( ) 1 1 + = 1 whenever x ( 1, 1). 1 + x2 Using Taylor series, we can approximate integrals that we could otherwise not calculate. For example, consider the Gaussian integral: e x2 dx. Frustratingly, there is no elementary antiderivative for e x2 : in other words, there is no finite combination of functions like sin(x), e x, x n that will give an antiderivative of e x2. This makes directly working with this integral, as you may have guessed, quite hard. Using Taylor series, however, we can approximate this integral, to any level of precision we desire! We outline the method here, in the following example: Question. Approximate to within ±.1 of its actual value. e x2 dx 4

Proof. Above, we proved that T n (e x ) = n k= x k k!. Using this, we can write e x2 = T n (e x ) + R n (e x ), and therefore write e x2 dx = T n (e x ) dx + R n (e x ) Why is this nice? Well: the T n part is just a polynomial: specifically, we have T n (e x n ( 1) k k ) =, k! k= which is quite easy to integrate! As well, the R n -thing is something that should be rather small for large values of n: so in theory we should be able to make its integral small, as well! Specifically: using Taylor s theorem, we have that R n (e x ) = R n (e x ) = e t e t (x t) n dt ( t) n dt Just like before, this is an integral we don t want to calculate: however, just like before, we don t have to! In particular, notice that on the interval [, ], the maximum value of e t is at t =, where it s e = 1, and the maximum value of ( t) n is at t =, where it s n. Therefore, we can bound the absolute value R n (e x ) of our remainder terms by dx. n dt = ( ) x 2n = x2n+2. Using this, we can finally bound the integral of our remainder terms: R n (e x 2 ) dx n+2 2 dx = x2n+3 = 22n+3 (2n + 3) (2n + 3). This quantity is.1 at n = 11. Therefore, we ve proven that 5

e x2 dx = T 11 (e x ) up to ±.1. So: to find this integral, it suffices to integrate T n (e x ) calculationally awkward: So our integral is.9 ±.1. T 11 (e x ) dx, 1 ( 1) k k dx = 1k= dx k! 1 ( 1) k k = 1k= dx k! 1 ( ( 1) k k+1 ) = 1k= (2k + 1)k!.9.. This is pretty easy, if 2 6