Taylor polynomials. 1. Introduction. 2. Linear approximation.

Similar documents
6x 2 8x + 5 ) = 12x 8. f (x) ) = d (12x 8) = 12

6x 2 8x + 5 ) = 12x 8

Exponential and logarithm functions

Solving simple equations, a review/primer

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

8.5 Taylor Polynomials and Taylor Series

DIFFERENTIATION RULES

Marginal Functions and Approximation

AP Calculus Chapter 9: Infinite Series

Approximation, Taylor Polynomials, and Derivatives

6.2 Their Derivatives

Lesson 9 Exploring Graphs of Quadratic Functions

8.7 MacLaurin Polynomials

3 Polynomial and Rational Functions

Section 4.1: Polynomial Functions and Models

Announcements. Related Rates (last week), Linear approximations (today) l Hôpital s Rule (today) Newton s Method Curve sketching Optimization problems

Taylor and Maclaurin Series. Approximating functions using Polynomials.

5.6 Logarithmic and Exponential Equations

1 Question related to polynomials

Review of Power Series

Polynomial Approximations and Power Series

5. Polynomial Functions and Equations

The final is cumulative, but with more emphasis on chapters 3 and 4. There will be two parts.

Taylor and Maclaurin Series. Approximating functions using Polynomials.

Section 3.9. The Geometry of Graphs. Difference Equations to Differential Equations

1 Implicit Differentiation

Chapter 8: Taylor s theorem and L Hospital s rule

A Library of Functions

Taylor series. Chapter Introduction From geometric series to Taylor polynomials

80 Wyner PreCalculus Spring 2017

JUST THE MATHS UNIT NUMBER 1.6. ALGEBRA 6 (Formulae and algebraic equations) A.J.Hobson

Polynomial Review Problems

Essential Mathematics

Name (print): Question 4. exercise 1.24 (compute the union, then the intersection of two sets)

CHAPTER 2 POLYNOMIALS KEY POINTS

Final Exam A Name. 20 i C) Solve the equation by factoring. 4) x2 = x + 30 A) {-5, 6} B) {5, 6} C) {1, 30} D) {-5, -6} -9 ± i 3 14

Ex. Here's another one. We want to prove that the sum of the cubes of the first n natural numbers is. n = n 2 (n+1) 2 /4.

CHAPTER 4: Polynomial and Rational Functions

Example. Determine the inverse of the given function (if it exists). f(x) = 3

Marginal Functions and Approximation

Announcements. Topics: Homework: - sections , 6.1 (extreme values) * Read these sections and study solved examples in your textbook!

Infinite series, improper integrals, and Taylor series

MATH 118, LECTURES 27 & 28: TAYLOR SERIES

l Hǒpital s Rule and Limits of Riemann Sums (Textbook Supplement)

Solution of Algebric & Transcendental Equations

Intermediate Algebra Chapter 12 Review

CH 73 THE QUADRATIC FORMULA, PART II

Differentiation. 1. What is a Derivative? CHAPTER 5

f(x) = 2x + 5 3x 1. f 1 (x) = x + 5 3x 2. f(x) = 102x x

Mathematics 136 Calculus 2 Everything You Need Or Want To Know About Partial Fractions (and maybe more!) October 19 and 21, 2016

Semester Review Packet

Math Practice Exam 3 - solutions

Constrained optimization.

MA 1128: Lecture 19 4/20/2018. Quadratic Formula Solving Equations with Graphs

Solving Algebraic Equations in one variable

Calculus II Lecture Notes

2.2 THE DERIVATIVE 2.3 COMPUTATION OF DERIVATIVES: THE POWER RULE 2.4 THE PRODUCT AND QUOTIENT RULES 2.6 DERIVATIVES OF TRIGONOMETRIC FUNCTIONS

Chapter 11 - Sequences and Series

Final Exam C Name i D) 2. Solve the equation by factoring. 4) x2 = x + 72 A) {1, 72} B) {-8, 9} C) {-8, -9} D) {8, 9} 9 ± i

SYSTEMS OF NONLINEAR EQUATIONS

Rational Exponents. Polynomial function of degree n: with leading coefficient,, with maximum number of turning points is given by (n-1)

5.1 Increasing and Decreasing Functions. A function f is decreasing on an interval I if and only if: for all x 1, x 2 I, x 1 < x 2 = f(x 1 ) > f(x 2 )

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

Quadratics and Other Polynomials

EC5555 Economics Masters Refresher Course in Mathematics September 2013

INTERNET MAT 117 Review Problems. (1) Let us consider the circle with equation. (b) Find the center and the radius of the circle given above.

Lecture # 1 - Introduction

Definition of a Logarithm

Day 6: 6.4 Solving Polynomial Equations Warm Up: Factor. 1. x 2-2x x 2-9x x 2 + 6x + 5

Aim: How do we prepare for AP Problems on limits, continuity and differentiability? f (x)

Section 2: Limits and Continuity

1. Algebra and Functions

Math 115 First Midterm February 12, 2013

Math Prep for College Physics

Final Exam Study Guide Mathematical Thinking, Fall 2003

Math 1101 Test 2 Practice Problems

Lines, parabolas, distances and inequalities an enrichment class

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

Infinite series, improper integrals, and Taylor series

Mock Final Exam Name. Solve and check the linear equation. 1) (-8x + 8) + 1 = -7(x + 3) A) {- 30} B) {- 6} C) {30} D) {- 28}

1.1 Lines & Function Notation AP Calculus

Taylor Series and Numerical Approximations

CCSS Math- Algebra. Domain: Algebra Seeing Structure in Expressions A-SSE. Pacing Guide. Standard: Interpret the structure of expressions.

CS1800: Sequences & Sums. Professor Kevin Gold

The Derivative of a Function Measuring Rates of Change of a function. Secant line. f(x) f(x 0 ) Average rate of change of with respect to over,

1 The distributive law

Beal City High School Algebra 2A Curriculum and Alignment

a factors The exponential 0 is a special case. If b is any nonzero real number, then

Function Junction: Homework Examples from ACE

Engg. Math. II (Unit-IV) Numerical Analysis

Partial Fractions. Combining fractions over a common denominator is a familiar operation from algebra: 2 x 3 + 3

Math 1311 Section 5.5 Polynomials and Rational Functions

B553 Lecture 1: Calculus Review

This Week. Professor Christopher Hoffman Math 124

Slope Fields: Graphing Solutions Without the Solutions

Tropical Polynomials

Find the slope of the curve at the given point P and an equation of the tangent line at P. 1) y = x2 + 11x - 15, P(1, -3)

Review for the Final Exam

Mathematics High School Algebra

Candidates are expected to have available a calculator. Only division by (x + a) or (x a) will be required.

Transcription:

ucsc supplementary notes ams/econ 11a Taylor polynomials c 01 Yonatan Katznelson 1. Introduction The most elementary functions are polynomials because they involve only the most basic arithmetic operations of addition and multiplication. Polynomials are also easy to differentiate, and their long term behavior is also very easy to understand. Mathematical modeling of economic phenomena, however, often leads to functions which are not polynomials, like exponential functions and logarithm functions, and combinations of functions that involve division, extracting roots, etc. Under certain conditions, it is possible to find polynomials that provide good approximations to more general functions. In the following sections I ll outline one of the most basic and important ways of doing this for functions that are differentiable. I ll focus on the first and second degree approximations (linear and quadratic), but for completeness sake, I ll briefly describe the general case as well.. Linear approximation. For a function f(x) that is differentiable at a point x = x 0, we deduced the following approximation formula from the definition of the derivative, f(x) f(x 0 ) f (x 0 )(x x 0 ). (.1) I mentioned that this approximation is accurate when the difference x x 0 is sufficiently small. Adding f(x 0 ) to both sides of (.1), gives a formula for approximating f(x) in the neighborhood of x 0 by a linear function, f(x) f(x 0 ) + f (x 0 )(x x 0 ). (.) The linear function, T (x) = f(x 0 ) + f (x 0 )(x x 0 ), should look familiar to you, because its graph is precisely the tangent line to the graph y = f(x) at the point (x 0, f(x 0 )), and the approximation (.) has a simple geometric interpretation. Namely, the tangent line y = T (x) is close to the graph y = f(x), when x is sufficiently close to x 0. By close, I mean that the vertical distance, T (x) f(x), is small. Example 1. The graph of the function f(x) = x + 4x + 5, and the graph of the linear approximation to this graph at the point (4, 3), T (x) = 3 0.4(x 4), are both displayed in Figure 1. A quick glance at the figure shows two things. First, the tangent line is very close to the graph when x is close to 4. Second, as x moves away from 4 (in either direction), the In mathematical terms, a neighborhood of x 0 is an interval around x 0 of the form (x 0 δ, x 0 + δ), where δ is a small, positive constant. 1

4.8 4 y=t(x) 3..4 1.6 y=f(x) 0.8 0 0.5 1 1.5.5 3 3.5 4 4.5 5 5.5 6 6.5 7-0.8 Figure 1: Linear approximation to f(x) = x + 4x + 5, centered at (4, 3). vertical distance between the tangent line and the graph grows larger. The explanation for this first phenomenon has already been given, but we can also explain it as follows. The two functions, T (x) and f(x), have the same value and the same slope at x 0 = 4, i.e., T (4) = f(4) and T (4) = f (4). This means that their graphs emanate from the same point (4, 3) and they both move in the same direction (same slope). So for a while, the two graphs stay close to each other. The explanation for the second phenomenon is also relatively simple. The slope of the tangent line is constant (equal to f (4)), but the slope of the graph y = f(x) is not constant. As x moves away from 4, the derivative of f(x) changes. And, as the slope changes, the graph y = f(x) bends away from the tangent line y = T (x). 3. The second order Taylor approximation. The rate of change of the derivative f (x) is given by the second derivative, f (x). This fact suggests the following idea: To improve upon the linear approximation to the function f(x) near the point x 0, look for a function that has the same value at x 0 as f(x), the same derivative at x 0 as f(x), and the same second derivative at x 0 as f(x). Furthermore, the function we re looking for should be as simple as possible. In other words, we re looking for a (differentiable) function T (x) satisfying T (x 0 ) = f(x 0 ), T (x 0 ) = f (x 0 ) and T (x 0 ) = f (x 0 ). (3.1) And T (x) should be simple. The simplest functions are linear, but if T (x) = ax + b, then T (x) = a and T (x) = 0. If f (x 0 ) = 0, then the linear approximation fits the bill, but if f (x 0 ) 0, then the function that we re looking for cannot be a linear function. Earlier in the course.

The next simplest functions are quadratic functions. If T (x) = ax + bx + c, then T (x) = ax+b and T (x) = a. The conditions in (3.1) give us a system of three equations for a, b and c. Namely ax 0 + bx 0 + c = f(x 0 ) ax 0 + b = f (x 0 ) (3.) a = f (x 0 ). This system of linear equations is easy to solve, but by being a little clever, we can make our work even easier. The idea is to express the (as of yet unknown) function T (x) in terms of the difference (x x 0 ). We are still looking for a quadratic function, but we write it as T (x) = a 0 + a 1 (x x 0 ) + a (x x 0 ). The motivation for this idea comes from the linear approximation, which is naturally expressed in terms of (x x 0 ). The first and second derivatives of T (x), written in this way, are T (x) = a 1+a (x x 0 ) and T (x) = a. When we impose the conditions (3.1) on this version of T (x) and its derivatives, the simple system (3.) is replaced by the very simple system a 0 + a 1 (x 0 x 0 ) + a (x 0 x 0 ) = f(x 0 ) a 1 + a 0 (x 0 x 0 ) = f (x 0 ) a = f (x 0 ), (3.3) which is very simple because x 0 x 0 = 0, so the system (3.3) reduces to a 0 = f(x 0 ), a 1 = f (x 0 ) and a = f (x 0 ). Definition 1. The second degree Taylor polynomial for f(x) centered at x 0 is the quadratic function T (x) = f(x 0 ) + f (x 0 )(x x 0 ) + f (x 0 ) (x x 0 ). (3.4) This function satisfies the conditions T (x 0 ) = f(x 0 ), T (x 0 ) = f (x 0 ) and T (x 0 ) = f (x 0 ). The approximation f(x) T (x) = f(x 0 ) + f (x 0 )(x x 0 ) + f (x 0 ) (x x 0 ) (3.5) is called the second order Taylor approximation. The second order approximation is usually better than the linear (first order) approximation, as long as the difference x x 0 is small enough. Try it, starting with solving the third equation for a, then working backwards to solve for b and then c. 3

Example. Returning to the function f(x) = x + 4x + 5 from Example 1, we find that it s second degree Taylor polynomial, centered at (4, 3), is given by T (x) = 3 0.4(x 4) 0.116(x 4), as you can (and should!) verify by direct computation. The graphs of f(x), its linear approximation and its quadratic approximation are all displayed in Figure, with the quadratic approximation in red. 4.8 4 y=t(x) 3. y=t (x).4 1.6 y=f(x) 0.8 0 0.5 1 1.5.5 3 3.5 4 4.5 5 5.5 6 6.5 7-0.8 Figure : Linear and quadratic approximations to f(x) = x + 4x + 5. As you can see, the quadratic approximation is better than the linear approximation in two ways. First, the quadratic approximation is closer to the graph of the original function than the tangent line. Second, it stays closer to the original graph for longer. This second phenomenon can be explained by the fact that the quadratic approximation is bending in the same way as the original graph around the point (4, 3). More properly said, T (x) and f(x) have the same concavity at the point (4, 3). To get a numerical view of how the second order approximation improves on the linear approximation, consider the next example. Example 3. Let f(x) = x = x 1/, and let x 0 = 16. The first and second derivatives of this function are f (x) = 1 x 1/ and f (x) = 1 4 x 3/. Thus, f(16) = 4, f (16) = 1 8 and f (16) = 1 56. The first degree (linear) Taylor polynomial for f(x) = x 1/, centered at x = 16 is therefore given by T (x) = 4 + 1 (x 16) 8 4

and the second degree Taylor polynomial (centered at the same point) is given by T (x) = 4 + 1 1 (x 16) 8 51 (x 16). I ll test the accuracy of the linear and quadratic approximations for x = 16.81, for which we have 16.81 = 4.1. The linear approximation gives and the quadratic approximation gives T (16.81) = 4 + 1 (16.81 16) = 4.1015, 8 T (16.81) = 4 + 1 1 (16.81 16) 8 51 (16.81 16) = 4.0999685546875. The linear approximation is off by 4.1015 4.1 = 0.0015, while the quadratic approximation is off by 4.0999685546875 4.1 = 0.000031445315. The quadratic approximation, in this case, is more than 30 times closer to the truth than the linear approximation. 4. The Taylor polynomial of a function. In general, there is no reason to stop at two derivatives. Assume that the function f(x) has derivatives of order up to and including n, defined at the point x 0. The system of equations (3.3), that we solved to find the coefficients of the quadratic Taylor polynomial, generalizes easily to find a polynomial T n (x) satisfying the n + 1 conditions T n (x 0 ) = f(x 0 ), T n(x 0 ) = f (x 0 ), T n (x 0 ) = f (x 0 ), T n (x 0 ) = f (x 0 ), (4.1). T n (n) (x 0 ) = f (n) (x 0 ). Generalizing what we did in the quadratic case, we write T n (x) = a 0 + a 1 (x x 0 ) + a (x x 0 ) + + a n (x x 0 ) n, and use the conditions in (4.1) to obtain a very simple system of equations for the coefficients a 0, a 1,..., a n. Indeed, the first condition gives f(x 0 ) = T n (x 0 ) = a 0 + a 1 (x 0 x 0 ) + a (x 0 x 0 ) + + a n (x 0 x 0 ) n = a 0, which implies that a 0 = f(x 0 ). Differentiating once gives T (x) = a 1 + a (x x 0 ) + 3a 3 (x x 0 ) + + na n (x x 0 ) n 1, so T (x 0 ) = a 1 and the second condition, T (x 0 ) = f (x 0 ), implies that a 1 = f (x 0 ). Differentiating again gives T (x) = a + 6a 3 (x x 0 ) + + n(n 1)a n (x x 0 ) n, 5

so T (x 0 ) = a and the condition T (x 0 ) = f (x 0 ) implies that a = f (x 0 )/. Continuing, we have T (x) = 6a 3 + 4a 4 (x x 0 ) + + n(n 1)(n )a n (x x 0 ) n 3, so T n (x 0 ) = 6a 3, and the condition T (x 0 ) = f (x 0 ) implies that a 3 = f (x 0 )/6. In general, Differentiating k times (k n) and evaluating at x = x 0, gives T (k) (x 0 ) = (1 3 k) a k, and the condition T n (k) (x 0 ) = f (k) (x 0 ) implies that a k = f (k) (x 0 ), k! where k!, pronounced k factorial is shorthand for the product 1 3 k. Definition. The polynomial T n (x) = f(x 0 ) + f (x 0 )(x x 0 ) + f (x 0 ) (x x 0 ) + + f (n) (x 0 ) (x x 0 ) n (4.) n! is called the n th degree Taylor polynomial of f(x), centered at x = x 0. This is the unique polynomial of degree n that satisfies the n + 1 conditions in (4.1). Example 4. Let s find the 4 th degree Taylor polynomial of f(x) = ln x, centered at x = 1. First, we compute the derivatives up to and including order 4: f (x) = x 1, f (x) = x, f (x) = x 3 and f (4) (x) = 6x 4. Evaluating ln x and its derivatives at x = 1, and using the definition of T 4 (x), above, we find that T 4 (x) = ln 1 + 1 1 (x 1) + 1 (x 1) + 1 3 (x 1) 3 + 6 = (x 1) 1 (x 1) + 1 3 (x 1)3 1 4 (x 1)4. 6 1 4 (x 1) 4 4 The graphs of y = ln x and y = T 4 (x) (red) appear in Figure 3. These graphs highlight two important features of the Taylor polynomial and how well it may or may not approximate the function from which it was derived. First of all, looking at the whole picture shows that the Taylor polynomial T 4 (x) behaves completely differently than ln x. For example, as we can easily see in the figure, if x > 3, then T 4 (x) < 1 (and T 4 (x) is decreasing), while ln x > 1 (and ln x is increasing). On the other hand, if we only look in the vicinity of the point x = 1, the two functions are almost identical. In Figure 3, the two graphs are indistinguishable when x 1 < 1/. This function grows very rapidly, e.g., 1! = 1,! =, 3! = 6, 4! = 4, 5! = 10, 10! = 368800 and 15! = 1307674368000. In fact, when n is very large, n! (n/e) n πn. This approximation is called Stirling s formula. The graphing utility that I use rounds plot positions to 4 decimal places, so points on the two graphs that are less than 0.0005 apart may appear to coincide. 6

1.6 1. y=ln x 0.8 0.4-0.5 0 0.5 1 1.5.5 3 3.5 4-0.4-0.8 y=t 4 (x) -1. -1.6 Figure 3: The graphs of ln x and T 4 (x). If you prefer numerical evidence, you can evaluate ln x and T 4 (x) on your favorite calculator, at points close to 1, and see how far apart the values are. According to my TI-30XA ln 1.5 T 4 (1.5) 0.004434, ln 1.5 T 4 (1.5) 0.0001618 and ln 1.1 T 4 (1.1) 0.0000018. The errors of approximation have all been rounded to 7 decimal places, and as you can see, the closer the argument is to 1, the better the approximation. Exercises. 1. Compute the nd degree Taylor polynomial for the function R(x) = x3 + x + 1 centered x + 3 at the point (1, 1). Use the quadratic Taylor approximation to estimate R(1.). What is the error of the approximation?. Find the 3 rd degree Taylor polynomial for the function f(x) = x, centered at x 0 = 100. Use this to compute an approximate value for 110. 3. Find the 4 th degree Taylor polynomial for the function g(x) = e x, centered at x 0 = 0. Use this to compute an approximate value for 4 e = e 1/4. 4. a. Find the 7 th degree Taylor polynomial for f(x) = ln x, centered at x 0 = 1. b. Use your answer to a. to find approximate values for ln(/3) and ln(3/4). c. Use your answers to b. to find an approximate value for ln(3). Do not use your answer to part a. (Hint: 3 = (4/3) (3/) (3/), 3/ = 1/(/3) and 4/3 = 1/(3/4). Use properties of the logarithm function.) 7