Lecture 5: Function Approximation: Taylor Series

Similar documents
Section 5.2 Series Solution Near Ordinary Point

(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.

Examples of the Fourier Theorem (Sect. 10.3). The Fourier Theorem: Continuous case.

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

11.10a Taylor and Maclaurin Series

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 =

Chapter 4 Sequences and Series

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

Sequences and Series

Math Numerical Analysis

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

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

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

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

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

Ma 530 Power Series II

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

MATH 118, LECTURES 27 & 28: TAYLOR SERIES

8.5 Taylor Polynomials and Taylor Series

MATH 31B: MIDTERM 2 REVIEW. sin 2 x = 1 cos(2x) dx = x 2 sin(2x) 4. + C = x 2. dx = x sin(2x) + C = x sin x cos x

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

LIMITS AT INFINITY MR. VELAZQUEZ AP CALCULUS

Chapter 2. Limits and Continuity 2.6 Limits Involving Infinity; Asymptotes of Graphs

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

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

Example. Evaluate. 3x 2 4 x dx.

The First Derivative and Second Derivative Test

SUMMATION TECHNIQUES

The First Derivative and Second Derivative Test

Mathematic 108, Fall 2015: Solutions to assignment #7

AP Calculus Chapter 9: Infinite Series

Computer Problems for Fourier Series and Transforms

MATHEMATICS Lecture. 4 Chapter.8 TECHNIQUES OF INTEGRATION By Dr. Mohammed Ramidh

Math 3150 HW 3 Solutions

Practice Problems: Integration by Parts

6.1 Polynomial Functions

July 21 Math 2254 sec 001 Summer 2015

Math 10850, Honors Calculus 1

10.7 Trigonometric Equations and Inequalities

Section 1.x: The Variety of Asymptotic Experiences

To get horizontal and slant asymptotes algebraically we need to know about end behaviour for rational functions.

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

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

10.7 Trigonometric Equations and Inequalities

Trig Identities. or (x + y)2 = x2 + 2xy + y 2. Dr. Ken W. Smith Other examples of identities are: (x + 3)2 = x2 + 6x + 9 and

1.4 Techniques of Integration

1 Question related to polynomials

Chapter 4: More Applications of Differentiation

8.7 MacLaurin Polynomials

MATH 105: PRACTICE PROBLEMS FOR CHAPTER 3: SPRING 2010

O.K. But what if the chicken didn t have access to a teleporter.

Math 115 Spring 11 Written Homework 10 Solutions

MA1131 Lecture 15 (2 & 3/12/2010) 77. dx dx v + udv dx. (uv) = v du dx dx + dx dx dx

Topics from Algebra and Pre-Calculus. (Key contains solved problems)

106 Chapter 5 Curve Sketching. If f(x) has a local extremum at x = a and. THEOREM Fermat s Theorem f is differentiable at a, then f (a) = 0.

Chapter REVIEW ANSWER KEY

Physics 6303 Lecture 22 November 7, There are numerous methods of calculating these residues, and I list them below. lim

b n x n + b n 1 x n b 1 x + b 0

Taylor and Maclaurin Series

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

Grade 11 or 12 Pre-Calculus

Taylor Series and Numerical Approximations

EQ: What are limits, and how do we find them? Finite limits as x ± Horizontal Asymptote. Example Horizontal Asymptote

Semester University of Sheffield. School of Mathematics and Statistics

Calculus II Lecture Notes

MORE APPLICATIONS OF DERIVATIVES. David Levermore. 17 October 2000

Chapter 11 - Sequences and Series

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.

MATH 115, SUMMER 2012 LECTURE 12

This Week. Professor Christopher Hoffman Math 124

Integration of Rational Functions by Partial Fractions

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

6 Lecture 6b: the Euler Maclaurin formula

Next, we ll use all of the tools we ve covered in our study of trigonometry to solve some equations.

Mathematics 3 Differential Calculus

Lecture 9: Taylor Series

MAT137 Calculus! Lecture 5

The definite integral gives the area under the curve. Simplest use of FTC1: derivative of integral is original function.

MAT137 Calculus! Lecture 45

Chapter 7: Techniques of Integration

Integration of Rational Functions by Partial Fractions

8.8 Applications of Taylor Polynomials

Solved Examples. (Highest power of x in numerator and denominator is ½. Dividing numerator and denominator by x)

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

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

TAYLOR POLYNOMIALS DARYL DEFORD

Infinite Series. Copyright Cengage Learning. All rights reserved.

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

Convergence of sequences and series

Properties of a Taylor Polynomial

MTH30 Review Sheet. y = g(x) BRONX COMMUNITY COLLEGE of the City University of New York DEPARTMENT OF MATHEMATICS & COMPUTER SCIENCE

Grade: The remainder of this page has been left blank for your workings. VERSION D. Midterm D: Page 1 of 12

1.10 Continuity Brian E. Veitch

Lecture 20/Lab 21: Systems of Nonlinear ODEs

1) The line has a slope of ) The line passes through (2, 11) and. 6) r(x) = x + 4. From memory match each equation with its graph.

f(x) = lim x 0 + x = lim f(x) =

MATH 1902: Mathematics for the Physical Sciences I

Chapter P: Preliminaries

SOLVED PROBLEMS ON TAYLOR AND MACLAURIN SERIES

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

Transcription:

1 / 10 Lecture 5: Function Approximation: Taylor Series MAR514 Geoffrey Cowles Department of Fisheries Oceanography School for Marine Science and Technology University of Massachusetts-Dartmouth

Better Approximations 2 / 10 Thinking about linearization, the goal in that case was to come up with a simpler function that matched the value and derivative of a function at a given point a. This is in fact an advanced step from an even simpler function approximation using simply the value. g(x) = f (a). Our linearization gives us no guarantee about the second derivative. We can construct a better approximation if we match that, and an even better if we match the third derivative. For the case of approximating a function near x = 0, the general form of the approximating function we will use is a polynomial: y = p(x) = a 0 + a 1 x + a 2 x 2 + a 3 x 3... (1)

Sequence of Better approximations 3 / 10

How to determine the coefficients 4 / 10 By matching derivatives of increasingly higher order at the point x = 0, we can pin down the coefficient of the polynomials a n as far as we want to go. We want p(0) = f (0) a 0 = f (0) We want p (0) = 0 + a 1 + 0 + 0... = f (0) a 1 = f (0) We want p (0) = 0 + 0 + 2a 2 + 0 +... = f (0) a 2 = f (0) 2 We want p (0) = 0 + 0 + 6a 3 + 0 +... = f (0) a 3 = f (0) 3 etc.

Taylor Series 5 / 10 This sequence of improved approximations by matching higher order derivatives can be described in an infinite series known as the Taylor series: p k (x) = f (0) + f (0)x + f (0)x 2 2! + f (0)x 3 3! +... + f k (0)x k k! What is that k!. The exclamation mark denotes a factorial. k! is the product of all positive number less than or equal to k. Example: 5! = 1 2 3 4 5 = 120 (3) Don t forget the denominator is a factorial when assembling your Taylor Series. (2)

Taylor Series: cosine! What is the Taylor series approximation of the cosine function near x = 0. Well, the first few derivatives are f (x) = cos(x), f (x) = sin(x), f (x) = cos(x), f (x) = sin(x),... Note three things, The sign of the derivative fluctuates every two derivatives odd derivatives are all sin functions and thus evaluate to 0 at x = 0. even derivatives are cosine functions and thus evaluate to 1 at x = 0 The final expansion: p k (x) = 1 x 2 2! + x 4 x 2k... + ( 1)k... (4) 4! (2k)! Very close to x = 0, we have cos(0) 1. This is a very common mathematics trick known as the small angle approximation. A different approx is used for sine. 6 / 10

What about approximations near x 0? 7 / 10 This is known as the Taylor Series generated by f at x = a. It simplifies to the expression already given when a = 0. p k (a) = f (a) + f (a)(x a) + f (a)(x a) 2... + f k (a)(x a) k k! 2! + f (a)(x a) 3 3! Immediately, you should recognize that if we only match the value (zeroth derivative) and first derivative, we get back our formula for linearization. +

Errors in the Taylor Series 8 / 10 What happens if I do compute all the terms to infinity? For many (not all) Taylor Series, the approximating polynomial p k (x) will converge to the real function f (x) for any value x as k. A longer study of convergence of power series would take too much time for the class but that is where you would be able to surmise the convergence/divergence as the number of terms in the approximation goes to. Errors in the Taylor Series approximations are known as Truncation Errors because they come from ignoring terms, or truncating an infinite series. Nobody wants to compute an infinite number of terms, not even a computer.

Truncation Errors 9 / 10 What is the error if I only match n derivatives (or keep n + 1 terms) f (x) = f (a) = f (a)(x a)+ f (a)(x a) 2 +..+ f n (a) (x a) n +R n (x) 2! n! (5) Here, R n (x) represent the terms containing derivatives of order higher than n extending to. If we kept them all, we would match f (x) exactly. If we don t use these terms (often called Higher Order Terms or H.O.T., then we are truncating the polynomial and we have: f (x) = p n (x) + H.O.T. (6) Thus, the error of our approximation is equal to the terms we through away, or H.O.T..

Bounding the Remainder: R n (x) The remainder is mathematically bounded (with some constraints we won t discuss) by: R n (x) M r n+1 x a n+1 (n + 1)! where R and M are constants. Thus the truncation error: (7) E x a n+1 (8) where x a is the distance from the point of interest x to the point around which we constructed the Taylor Series a. This step is often noted x or h. So, for example in a linearization, we keep only the n = 1 term and thus our error E ( x) 2. Thus for the linearization of a function we have: f (x) = f (a) + f (x)(x a) + C( x) 2 (9) This is what we found in our last lecture when evaluated the errors manually! 10 / 10