Copyright © Cengage Learning. All rights reserved. 11.11 Applications of Taylor Polynomials.

Slides:



Advertisements
Similar presentations
Section 11.6 – Taylor’s Formula with Remainder
Advertisements

Chapter 10 Infinite Series by: Anna Levina edited: Rhett Chien.
Taylor’s Theorem Section 9.3a. While it is beautiful that certain functions can be represented exactly by infinite Taylor series, it is the inexact Taylor.
Infinite Sequences and Series
Copyright © Cengage Learning. All rights reserved.
Infinite Sequences and Series
INFINITE SEQUENCES AND SERIES
Part 3 Truncation Errors.
Copyright © Cengage Learning. All rights reserved. 5 Integrals.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Copyright © Cengage Learning. All rights reserved. 2 Derivatives.
Additional Topics in Differential Equations
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
SECOND-ORDER DIFFERENTIAL EQUATIONS Series Solutions SECOND-ORDER DIFFERENTIAL EQUATIONS In this section, we will learn how to solve: Certain.
Infinite Series Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved. 17 Second-Order Differential Equations.
Taylor’s Polynomials & LaGrange Error Review
Consider the following: Now, use the reciprocal function and tangent line to get an approximation. Lecture 31 – Approximating Functions
11 INFINITE SEQUENCES AND SERIES Applications of Taylor Polynomials INFINITE SEQUENCES AND SERIES In this section, we will learn about: Two types.
Copyright © Cengage Learning. All rights reserved. 4 Applications of Differentiation.
9.3 Taylor’s Theorem: Error Analysis for Series
Copyright © Cengage Learning. All rights reserved. 11 Infinite Sequences and Series.
Now that you’ve found a polynomial to approximate your function, how good is your polynomial? Find the 6 th degree Maclaurin polynomial for For what values.
Integration Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved. 4 Integrals.
9.7 and 9.10 Taylor Polynomials and Taylor Series.
Remainder Estimation Theorem
Taylor’s Theorem: Error Analysis for Series. Taylor series are used to estimate the value of functions (at least theoretically - now days we can usually.
Infinite Sequences and Series 8. Taylor and Maclaurin Series 8.7.
In section 11.9, we were able to find power series representations for a certain restricted class of functions. Here, we investigate more general problems.
Limits and Derivatives 2. The Limit of a Function 2.2.
Copyright © Cengage Learning. All rights reserved. 2 Limits and Derivatives.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
The Convergence Problem Recall that the nth Taylor polynomial for a function f about x = x o has the property that its value and the values of its first.
In this section we develop general methods for finding power series representations. Suppose that f (x) is represented by a power series centered at.
Remainder Theorem. The n-th Talor polynomial The polynomial is called the n-th Taylor polynomial for f about c.
Copyright © Cengage Learning. All rights reserved.
Maclaurin and Taylor Polynomials Objective: Improve on the local linear approximation for higher order polynomials.
9.3 Taylor’s Theorem: Error Analysis yes no.
Taylor series are used to estimate the value of functions (at least theoretically - now days we can usually use the calculator or computer to calculate.
Copyright © Cengage Learning. All rights reserved. 4 Integrals.
Infinite Series 9 Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved The Integral Test and Estimates of Sums.
Convergence of Taylor Series Objective: To find where a Taylor Series converges to the original function; approximate trig, exponential and logarithmic.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
2.9 Linear Approximations and Differentials
The Taylor Polynomial Remainder (aka: the Lagrange Error Bound)
Copyright © Cengage Learning. All rights reserved.
The LaGrange Error Estimate
Copyright © Cengage Learning. All rights reserved.
Calculus BC AP/Dual, Revised © : Lagrange's Error Bound
Remainder of a Taylor Polynomial
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Section 11.6 – Taylor’s Formula with Remainder
Copyright © Cengage Learning. All rights reserved.
Taylor’s Theorem: Error Analysis for Series
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
9.3 Taylor’s Theorem: Error Analysis for Series
Copyright © Cengage Learning. All rights reserved.
9.7 Taylor Polynomials & Approximations
Copyright © Cengage Learning. All rights reserved.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

Copyright © Cengage Learning. All rights reserved Applications of Taylor Polynomials

2 Taylor series are used to estimate the value of functions (at least theoretically - now we can usually use the calculator or computer to calculate directly.) An estimate is only useful if we have an idea of how accurate the estimate is. When we use part of a Taylor series to estimate the value of a function, the end of the series that we do not use is called the remainder. If we know the size of the remainder, then we know how close our estimate is. Approximating Functions by Polynomials

3 Suppose that f (x) is equal to the sum of its Taylor series at a: The notation T n (x) is used to represent the nth partial sum of this series and we can call it the nth-degree Taylor polynomial of f at a. Thus

4 Approximating Functions by Polynomials Since f is the sum of its Taylor series, we know that T n (x) f (x) as n and so T n can be used as an approximation to f: f (x)  T n (x). Note: Notice that the first-degree Taylor polynomial T 1 (x) = f (a) + f (a)(x – a) is the same as the linearization of f at a.

5 Approximating Functions by Polynomials Notice also that T 1 and its derivative have the same values at a that f and f have. In general, it can be shown that the derivatives of T n at a agree with those of f up to and including derivatives of order n. To illustrate these ideas let’s take another look at the graphs of y = e x and its first few Taylor polynomials, as shown in Figure 1. Figure 1

6 Approximating Functions by Polynomials The graph of T 1 is the tangent line to y = e x at (0, 1); this tangent line is the best linear approximation to e x near (0, 1); The graph of T 2 is the parabola y = 1 + x + x 2 /2, and the graph of T 3 is the cubic curve y = 1 + x + x 2 /2 + x 3 /6, which is a closer fit to the exponential curve y = e x than T 2. The next Taylor polynomial T 4 would be an even better approximation, and so on.

7 Approximating Functions by Polynomials The values in the table give a numerical demonstration of the convergence of the Taylor polynomials T n (x) to the function y = e x. We see that when x = 0.2 the convergence is very rapid, but when x = 3 it is somewhat slower. The farther x is from 0, the more slowly T n (x) converges to e x. When using a Taylor polynomial T n to approximate a function f, we have to ask the questions: How good an approximation is it? How large should we take n to be in order to achieve a desired accuracy?

8 Approximating Functions by Polynomials How good an approximation is it? How large should we take n to be in order to achieve a desired accuracy? To answer these questions we need to look at the absolute value of the remainder: | R n (x) | = | f (x) – T n (x)| There are three possible methods for estimating the size of the error: The exact value of the function The value of the Taylor Series used to approximate the function

9 Approximating Functions by Polynomials Three possible methods for estimating the size of the error: 1. If a graphing device is available, we can use it to graph | R n (x) | and thereby estimate the error. 2. If the series happens to be an alternating series, we can use the Alternating Series Estimation Theorem. 3. In all cases we can use Taylor’s Inequality which says that if then

10 Taylor’s Inequality, AKA… Taylor’s Inequality is also known as… 1.Lagrange Error Bound, or… 2.Remainder Estimation Theorem for Taylor Series

11 We will call this the Remainder Estimation Theorem. Lagrange Form of the Remainder Remainder Estimation Theorem Note that this is the formula that is in our book. If M is the maximum value of on the interval between a and x, then: Taylor’s Inequality, AKA… Rn(x) is the remainder Aka: Error

12 If the Taylor series is a convergent alternating series, then the error can be found as in any other convergent alternating series. 1. Approximate sin(1) with three nonzero terms of the Maclaurin series for sin x. Then find the error. So the error is less than.0002 or the error is less than or the error is less than or the error is less than Alternating Series Review

13 2. Use 3 terms of the Maclaurin expansion for f(x)=ln(1+x). What are the possible values for x, if the error is less than 0.005? First, we need to assume that x>0, so we have an alternating series. Using 3 terms means the upper bound for the error will be less than the absolute value of the 4th term. Alternating Series Review

14 3. Use the following approximation for sin x: a) What is the maximum error possible when: The series for sin x is a convergent alternating series. Its error is less than the absolute value of its first neglected term. From problem #1

15 b) For what values of x is this approximation accurate to within ? From problem #1

16 Remainder: R n (x)

17 Example 1 (Not an Alternating Series) (a) Approximate the function by a Taylor polynomial of degree 2 at a = 8. (b) How accurate is this approximation when 7  x  9? Solution: (a)

18 If you want you may make a table:

19 Example 1 – Solution Thus the second-degree Taylor polynomial is The desired approximation is cont’d

20 Example 1 – Solution We know a = 8 & n = 2 We need to determine the maximum value of lx-8l (b) How accurate is this approximation when 7  x  9? Now to find M…

21 Example 1 – Solution What is the maximum value, M, of f (n+1) (x) on the given interval 7≤x≤9? Thus if 7≤x≤9, the approximation in part a is accurate to within

22 Example 1 – Solution (b) The Taylor series is not alternating when x < 8, so we can’t use the Alternating Series Estimation Theorem in this example. But we can use Taylor’s Inequality with n = 2 and a = 8: where | f  (x) |  M. Because x  7, we have x 8/3  7 8/3 and so cont’d

23 Example 1 – Solution Therefore we can take M = Also 7  x  9, so –1  x –8  1 and | x – 8 |  1. Then Taylor’s Inequality gives Thus, if 7  x  9, the approximation in part (a) is accurate to within cont’d

24 Approximating Functions by Polynomials Let’s use a graphing device to check the calculation in Example 1. Figure 2 shows that the graphs of and y = T 2 (x) are very close to each other when x is near 8. Figure 2

25 Approximating Functions by Polynomials Figure 3 shows the graph of |R 2 (x)|computed from the expression We see from the graph that |R 2 (x)| < when 7  x  9. Thus the error estimate from graphical methods is slightly better than the error estimate from Taylor’s Inequality in this case. Figure 3

26 Video Examples: Taylor’s inequality: Approximations :

27 Homework: Page 820 # even, 24,26,28 You do not need to graph!

28 Additional Info: Applications to Physics Taylor polynomials are also used frequently in physics. In order to gain insight into an equation, a physicist often simplifies a function by considering only the first two or three terms in its Taylor series. In other words, the physicist uses a Taylor polynomial as an approximation to the function. Taylor’s Inequality can then be used to gauge the accuracy of the approximation. The next example shows one way in which this idea is used in special relativity.

29 Example 3 In Einstein’s theory of special relativity the mass of an object moving with velocity v is where m 0 is the mass of the object when at rest and c is the speed of light. The kinetic energy of the object is the difference between its total energy and its energy at rest: K = mc 2 – m 0 c 2

30 Example 3 (a) Show that when v is very small compared with c, this expression for K agrees with classical Newtonian physics: K = m 0 v 2. (b) Use Taylor’s Inequality to estimate the difference in these expressions for K when | v |  100 m/s. Solution: (a) Using the expressions given for K and m, we get cont’d

31 Example 3 – Solution With x = –v 2 /c 2, the Maclaurin series for (1 + x) –1/2 is most easily computed as a binomial series with k = (Notice that | x | < 1 because v < c.) Therefore we have and cont’d

32 Example 3 – Solution If v is much smaller than c, then all terms after the first are very small when compared with the first term. If we omit them, we get (b) If x = –v 2 /c 2, f (x) = m 0 c 2 [(1 + x) –1/2 – 1], and M is a number such that | f  (x) |  M, then we can use Taylor’s Inequality to write cont’d

33 Example 3 – Solution We have f  (x) = m 0 c 2 (1 + x) –5/2 and we are given that | v |  100 m/s, so Thus, with c = 3  10 8 m/s, So when |v |  100 m/s, the magnitude of the error in using the Newtonian expression for kinetic energy is at most (4.2  10 –10 ) m 0. cont’d