Chapter 11. Taylor Series. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27

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

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

Section Taylor and Maclaurin Series

Review of Power Series

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

Taylor and Maclaurin Series

11.10a Taylor and Maclaurin Series

JUST THE MATHS UNIT NUMBER DIFFERENTIATION APPLICATIONS 5 (Maclaurin s and Taylor s series) A.J.Hobson

Chapter 13. Convex and Concave. Josef Leydold Mathematical Methods WS 2018/19 13 Convex and Concave 1 / 44

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.

8.5 Taylor Polynomials and Taylor Series

Introduction and Review of Power Series

Monotone Function. Function f is called monotonically increasing, if. x 1 x 2 f (x 1 ) f (x 2 ) x 1 < x 2 f (x 1 ) < f (x 2 ) x 1 x 2

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

July 21 Math 2254 sec 001 Summer 2015

Ma 530 Power Series II

Study # 1 11, 15, 19

TAYLOR AND MACLAURIN SERIES

OR MSc Maths Revision Course

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

Taylor and Maclaurin Series. Approximating functions using Polynomials.

Chapter 8: Taylor s theorem and L Hospital s rule

Math 227 Sample Final Examination 1. Name (print) Name (sign) Bing ID number

First and Last Name: 2. Correct The Mistake Determine whether these equations are false, and if so write the correct answer.

Series Solutions. 8.1 Taylor Polynomials

Math Numerical Analysis

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

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

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

Making Models with Polynomials: Taylor Series

SUMMATION TECHNIQUES

Chapter 4 Sequences and Series

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

Taylor Series and Maclaurin Series

Power Series in Differential Equations

Power Series Solutions We use power series to solve second order differential equations

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

MTH4101 CALCULUS II REVISION NOTES. 1. COMPLEX NUMBERS (Thomas Appendix 7 + lecture notes) ax 2 + bx + c = 0. x = b ± b 2 4ac 2a. i = 1.

CALCULUS JIA-MING (FRANK) LIOU

and the compositional inverse when it exists is A.

, applyingl Hospital s Rule again x 0 2 cos(x) xsinx

Series Solutions of Differential Equations

Completion Date: Monday February 11, 2008

CALCULUS: Math 21C, Fall 2010 Final Exam: Solutions. 1. [25 pts] Do the following series converge or diverge? State clearly which test you use.

MATH 118, LECTURES 27 & 28: TAYLOR SERIES

1 Question related to polynomials

Analysis/Calculus Review Day 3

SERIES SOLUTION OF DIFFERENTIAL EQUATIONS

The polar coordinates

Taylor and Maclaurin Series. Approximating functions using Polynomials.

Section 10.7 Taylor series

Math 113 (Calculus 2) Exam 4

100 CHAPTER 4. SYSTEMS AND ADAPTIVE STEP SIZE METHODS APPENDIX

UNC Charlotte Super Competition Level 3 Test March 4, 2019 Test with Solutions for Sponsors

MAT137 Calculus! Lecture 45

Chapter 4: Partial differentiation

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

REVIEW OF DIFFERENTIAL CALCULUS

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 =

Equations and Inequalities

Sets. 1.2 Find the set of all x R satisfying > = > = > = - > 0 = [x- 3 (x -2)] > 0. = - (x 1) (x 2) (x 3) > 0. Test x = 0, 5

Chapter 4: More Applications of Differentiation

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

c n (x a) n c 0 c 1 (x a) c 2 (x a) 2...

Chapter 3a Topics in differentiation. Problems in differentiation. Problems in differentiation. LC Abueg: mathematical economics

Differentiation ( , 9.5)

Convergence of sequences and series

November 20, Interpolation, Extrapolation & Polynomial Approximation

Optimization using Calculus. Optimization of Functions of Multiple Variables subject to Equality Constraints

0, otherwise. Find each of the following limits, or explain that the limit does not exist.

PRACTICE PROBLEMS FOR MIDTERM I

Let s Get Series(ous)

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.

Infinite series, improper integrals, and Taylor series

Mathematical Economics: Lecture 2

Lecture 34: Recall Defn: The n-th Taylor polynomial for a function f at a is: n f j (a) j! + f n (a)

Computational Optimization. Mathematical Programming Fundamentals 1/25 (revised)

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

Math 115 HW #5 Solutions

Math 2233 Homework Set 7

Engg. Math. I. Unit-I. Differential Calculus

Partial Derivatives October 2013

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

Differentiation. Table of contents Definition Arithmetics Composite and inverse functions... 5

MA102: Multivariable Calculus

The First Derivative and Second Derivative Test

f (r) (a) r! (x a) r, r=0

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

Taylor Series. richard/math230 These notes are taken from Calculus Vol I, by Tom M. Apostol,

QF101: Quantitative Finance September 5, Week 3: Derivatives. Facilitator: Christopher Ting AY 2017/2018. f ( x + ) f(x) f(x) = lim

The First Derivative and Second Derivative Test

AP Calculus Chapter 9: Infinite Series

Math 221 Notes on Rolle s Theorem, The Mean Value Theorem, l Hôpital s rule, and the Taylor-Maclaurin formula. 1. Two theorems

You can learn more about the services offered by the teaching center by visiting

ALGEBRAIC GEOMETRY HOMEWORK 3

Math 113 Winter 2005 Key

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

TAYLOR SERIES [SST 8.8]

AS PURE MATHS REVISION NOTES

McGill University April Calculus 3. Tuesday April 29, 2014 Solutions

Transcription:

Chapter 11 Taylor Series Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27

First-Order Approximation We want to approximate function f by some simple function. Best possible approximation by a linear function: f (x). = f (x 0 ) + f (x 0 ) (x x 0 ). = means first-order approximation. If we use this approximation, we calculate with the tangent at x 0 instead of f. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 2 / 27

Polynomials We get a better approximation (i.e., with smaller approximation errors) if we use a polynomial P n (x) = n k=0 a kx k of higher degree. Ansatz: f (x) = a 0 + a 1 x + a 2 x 2 + + a n x n + R n (x) Term R n (x) gives the approximation error if we replace f by approximation P n (x) and is called the remainder term. Idea: Choose coefficients a i such that the derivatives of f and P n at x 0 = 0 coincide up to order n. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 3 / 27

Derivatives f (x) = a 0 + a 1 x + + a n x n = P n (x) f (0) = a 0 f (x) = a 1 + 2 a 2 x + + n a n x n 1 = P n(x) f (0) = a 1 f (x) = 2 a 2 + 3 2 a 3 x + + n (n 1) a n x n 2 = P n (x) f (0) = 2 a 2 f (x) = 3 2 a 3 + + n (n 1) (n 2) a n x n 3 = P n (x) f (0) = 3! a 3. f (n) (x) = n (n 1) (n 2)... 1 a n = P (n) n (x) f (n) (0) = n! a n Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 4 / 27

MacLaurin Polynomial Thus we find for the coefficients of the polynomial a k = f (k) (0) k! f (k) (x 0 ) denotes the k-th derivatives of f at x 0, f (0) (x 0 ) = f (x 0 ). f (x) = n k=0 f (k) (0) k! x k + R n (x) This polynomial is called the MacLaurin polynomial of degree n of f : f (0) + f (0) x + f (0) 2! x 2 + + f (n) (0) n! x n Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 5 / 27

Taylor Polynomial This idea can be generalized to arbitrary points x 0. We then get the Taylor polynomial of degree n of f around point x 0 : f (x) = n k=0 f (k) (x 0 ) k! (x x 0 ) k + R n (x) Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 6 / 27

Taylor Series The (infinite) series k=0 f (k) (x 0 ) k! is called the Taylor series of f around x 0. (x x 0 ) k If lim n R n (x) = 0, then the Taylor series converges to f (x). We then say that we expand f into a Taylor series around expansion point x 0. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 7 / 27

Example Exponential Function Taylor series expansion of f (x) = e x around x 0 = 0: f (x) = f (0) + f (0) x + f (0) 2! x 2 + f (0) 3! x 3 + + f (n) (0) n! x n + R n (x) f (x) = e x f (0) = 1 f (x) = e x f (0) = 1 f (x) = e x f (0) = 1 f (x) = e x f (0) = 1. f (n) (x) = e x f (n) (0) = 1 e x = 1 + x + x2 2! + x3 3! + + xn n! + The Taylor series converges for all x R. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 8 / 27

Example Exponential Function exp(x) = 1 + x + x2 2! + x3 3! + x4 4! + x5 5! + x6 6! + exp(x) n = 4 n = 3 n = 2 n = 1 1 1 Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 9 / 27

Example Logarithm Taylor series expansion of f (x) = ln(1 + x) around x 0 = 0: f (x) = f (0) + f (0) x + f (0) 2! x 2 + f (0) 3! x 3 + + f (n) (0) n! x n + R n (x) f (x) = ln(1 + x) f (0) = 0 f (x) = (1 + x) 1 f (0) = 1 f (x) = 1 (1 + x) 2 f (0) = 1 f (x) = 2 1 (1 + x) 3 f (0) = 2!. f (n) (x) = ( 1) n 1 (n 1)!(1 + x) n+1 f (n) (0) = ( 1) n 1 (n 1)! ln(1 + x) = x x2 2 + x3 3 x4 4 The Taylor series converges for all x ( 1, 1). + + ( 1)n 1 xn n + Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 10 / 27

Example Logarithm ln(1 + x) = x x2 2 + x3 3 x4 4 + x5 5 x6 6 + n = 5 n = 1 1 ln(1 + x) 1 1 n = 2 n = 6 Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 11 / 27

Radius of Convergence Some Taylor series do not converge for all x R. For example: ln(1 + x) At least the following holds: If a Taylor series converges for some x 1 with x 1 x 0 = ρ, then it also converges for all x with x x 0 < ρ. The maximal value for ρ is called the radius of convergence of the Taylor series. ρ x 0 x 1 Taylor series converges Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 12 / 27

Example Radius of Convergence ln(1 + x) = x x2 2 + x3 3 x4 4 + x5 5 x6 6 + Radius of convergence: ρ = 1 Indication: ln(1 + x) is not defined for x 1. 1 n = 31 n = 11 n = 7 n = 5 n = 1 ln(1 + x) ρ 1 ρ 1 Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 13 / 27

Approximation Error The remainder term indicates the error of the approximation by a Taylor polynomial. It can be estimated by means of Lagrange s form of the remainder: R n (x) = f (n+1) (ξ) (n + 1)! (x x 0 ) n+1 for some point ξ (x, x 0 ). If the Taylor series converges we have R n (x) = O ( (x x 0 ) n+1) for x x 0 We say: the remainder is of big O of x n+1 as x tends to x 0. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 14 / 27

Big O Notation Let f (x) and g(x) be two functions. We write f (x) = O ( g(x) ) as x x 0 if there exist reals numbers C and ε such that f (x) < C g(x) C g(x) g(x) f (x) C g(x) for all x with x x 0 < ε. We say that f (x) is of big O of g(x) as x tends to x 0. Symbol O( ) is one of the so called Landau symbols. Some books use notation f (x) O ( g(x) ) as x x 0 Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 15 / 27

Impact of Order of Powers The higher the order of a monomial is, the smaller is its contribution to the summation. 0.2 x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 0.3 Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 16 / 27

Important Taylor Series f (x) MacLaurin Series ρ exp(x) = 1 + x + x2 2! + x3 3! + x4 4! + ln(1 + x) = x x2 2 + x3 3 x4 4 + 1 sin(x) = x x3 3! + x5 5! x7 7! + cos(x) = 1 x2 2! + x4 4! x6 6! + 1 1 x = 1 + x + x2 + x 3 + x 4 + 1 Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 17 / 27

Calculations with Taylor Series Taylor series can be conveniently added (term by term) differentiated (term by term) integrated (term by term) multiplied divided substituted Therefor Taylor series are also used for the Definition of some function. For example: exp(x) := 1 + x + x2 2! + x3 3! + Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 18 / 27

Example Derivative We get the first derivative of exp(x) by computing the derivative of its Taylor series: (exp(x)) = (1 + x + x2 2! + x3 3! + x4 4! + = 0 + 1 + 2 x 2! + 3 x2 3! + 4 x3 4! = 1 + x + x2 2! + x3 3! + = exp(x) ) + Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 19 / 27

Example Product We get the MacLaurin series of f (x) = x 2 e x by multiplying the MacLaurin series of x 2 with the MacLaurin series of exp(x): ( ) x 2 e x = x 2 1 + x + x2 2! + x3 3! + x4 4! + = x 2 + x 3 + x4 2! + x5 3! + x6 4! + Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 20 / 27

Example Substitution We get the MacLaurin series of f (x) = exp( x 2 ) by substituting of x 2 into the MacLaurin series of exp(x): e u = 1 + u + u2 2! + u3 3! + u4 4! + e x2 = 1 + ( x 2 ) + ( x2 ) 2 2! + ( x2 ) 3 3! + ( x2 ) 4 4! + = 1 x 2 + x4 2! x6 3! + x8 4! Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 21 / 27

Polynomials The concept of Taylor series can be generalized to multivariate functions. A polynomial of degree n Grades in two variables has the form P n (x 1, x 2 ) = a 0 + a 10 x 1 + a 11 x 2 + a 20 x 2 1 + a 21 x 1 x 2 + a 22 x 2 2 + a 30 x 3 1 + a 31 x 2 1 x 2 + a 32 x 1 x 2 2 + a 33 x 3 2. + a n0 x n 1 + a n1 x n 1 1 x 2 + a n2 x n 2 1 x 2 2 + + a nn x n 2 We choose coefficients a kj such that all its partial derivatives in expansion point x 0 up to order n coincides with the respective derivatives of f. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 22 / 27

Taylor Polynomial of Degree 2 We obtain the coefficients as a kj = 1 ( ) k k! j k f (0) ( x 1 ) k j ( x 2 ) j k N, j = 0,, k In particular we find for the Taylor polynomial of degree 2 around x 0 = 0 f (x) = f (0) + f x1 (0) x 1 + f x2 (0) x 2 + 1 2 f x 1 x 1 (0) x 2 1 + f x 1 x 2 (0) x 1 x 2 + 1 2 f x 2 x 2 (0) x 2 2 + Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 23 / 27

Taylor Polynomial of Degree 2 Observe that the linear term can be written by means of the gradient: f x1 (0) x 1 + f x2 (0) x 2 = f (0) x The quadratic term can be written by means of the Hessian matrix: f x1 x 1 (0) x 2 1 + 2 f x 1 x 2 (0) x 1 x 2 + f x2 x 2 (0) x 2 2 = x t H f (0) x So we find for the Taylor polynomial of degree 2 around x 0 = 0 f (x) = f (0) + f (0) x + 1 2 xt H f (0) x + O( x 3 ) or in different notation f (x) = f (0) + f (0)x + 1 2 xt f (0)x + O( x 3 ) Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 24 / 27

Example Bivariate Function Compute the Taylor polynomial of degree 2 around x 0 = 0 f (x, y) = e x2 y 2 + x f (x, y) = e x2 y 2 + x f (0, 0) = 1 f x (x, y) = 2x e x2 y 2 + 1 f x (0, 0) = 1 f y (x, y) = 2y e x2 y 2 f y (0, 0) = 0 f xx (x, y) = 2 e x2 y 2 + 4x 2 e x2 y 2 f xx (0, 0) = 2 f xy (x, y) = 4xy e x2 y 2 f xy (0, 0) = 0 f yy (x, y) = 2 e x2 y 2 + 4y 2 e x2 y 2 f yy (0, 0) = 2 gradient: Hessian matrix: ( 2 0 f (0) = (1, 0) H f (0) = 0 2 ) Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 25 / 27

Example Bivariate Function Thus we find for the Taylor polynomial f (x, y) f (0) + f (0) x + 1 2 xt H f (0) x ( ) ( ) x = 1 + (1, 0) + 12 y (x, y) 2 0 0 2 = 1 + x + x 2 y 2 ( ) x y Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 26 / 27

Summary MacLaurin and Taylor polynomial Taylor series expansion Radius of convergence Calculations with Taylor series Taylor series of multivariate functions Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 27 / 27