Truncation Errors and Taylor Series

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Copyright © Cengage Learning. All rights reserved.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
1 Chapter 40 - Physiology and Pathophysiology of Diuretic Action Copyright © 2013 Elsevier Inc. All rights reserved.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Chapters 1 & 2 Theorem & Postulate Review Answers
UNIT OUTCOME PART SLIDE
Summary of Convergence Tests for Series and Solved Problems
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
0 - 0.
2 pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt Time Money AdditionSubtraction.
ALGEBRAIC EXPRESSIONS
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLYING MONOMIALS TIMES POLYNOMIALS (DISTRIBUTIVE PROPERTY)
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
MULTIPLICATION EQUATIONS 1. SOLVE FOR X 3. WHAT EVER YOU DO TO ONE SIDE YOU HAVE TO DO TO THE OTHER 2. DIVIDE BY THE NUMBER IN FRONT OF THE VARIABLE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING Think Distributive property backwards Work down, Show all steps ax + ay = a(x + y)
Addition Facts
ABC Technology Project
Chapter 20 Complex variables Cauchy-Riemann relation A function f(z)=u(x,y)+iv(x,y) is differentiable and analytic, there must be particular.
© S Haughton more than 3?
Polynomial Factor Theorem Polynomial Factor Theorem
Energy & Green Urbanism Markku Lappalainen Aalto University.
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
Part 1 Chapter 4 Roundoff and Truncation Errors PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Properties of Exponents
Chapter 5 Test Review Sections 5-1 through 5-4.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
The Fundamental Theorem of Algebra
Test B, 100 Subtraction Facts
Week 1.
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Copyright © Cengage Learning. All rights reserved.
1 Unit 1 Kinematics Chapter 1 Day
How Cells Obtain Energy from Food
Week 10 Generalised functions, or distributions
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Computational Modeling for Engineering MECN 6040
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Approximations and Errors
Part 3 Truncation Errors Second Term 05/06.
Newton-Cotes Integration Formula
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 Approximations and Errors.
Part 3 Truncation Errors.
The Islamic University of Gaza Faculty of Engineering Numerical Analysis ECIV 3306 Introduction.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 5 Approximations, Errors and The Taylor Series.
NUMERICAL ERROR ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 23 Numerical Differentiation.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 1 Mathematical Modeling.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 21 Newton-Cotes Integration Formula.
ES 240: Scientific and Engineering Computation. Chapter 4 Chapter 4: Errors Uchechukwu Ofoegbu Temple University.
Truncation Error and the Taylor Series
MECN 3500 Lecture 4 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter.
NUMERICAL ERROR Student Notes ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Introduction Course Outline.
Finite Difference Methods Definitions. Finite Difference Methods Approximate derivatives ** difference between exact derivative and its approximation.
Numerical Analysis CC413 Propagation of Errors.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Truncation Errors and the Taylor Series Chapter 4.
Taylor Polynomials & Approximation (9.7)
Presentation transcript:

Truncation Errors and Taylor Series The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 4 Truncation Errors and Taylor Series

Introduction Truncation errors Result when approximations are used to represent exact mathematical procedure For example:

Taylor Series - Definition Mathematical Formulation used widely in numerical methods to express functions in an approximate fashion……. Taylor Series. It is of great value in the study of numerical methods. It provides means to predict a functional value at one point in terms of: - the function value - its derivatives at another point

Taylor’s Theorem General Expression Where: Rn is the remainder term to account for all terms from n+1 to infinity. And is a value of x that lies somewhere between xi and xi+1

Taylor’s Theorem Any smooth function can be approximated as a polynomial Zero- order approximation: only true if xi+1 and xi are very close to each other. First- order approximation: in form of a straight line Second- order approximation:

Taylor’s Theorem - Remainder Term Remainder Term: What is ξ ? If Zero- order approximation:

Taylor Series - Example Use zero-order to fourth-order Taylor series expansions to approximate the function. f(x)= -0.1x4 – 0.15x3 – 0.5x2 – 0.25x +1.2 From xi = 0 with h =1. Predict the function’s value at xi+1 =1. Solution f(xi)= f(0)= 1.2 , f(xi+1)= f(1) = 0.2 ………exact solution Zero- order approx. (n=0)  f(xi+1)=1.2 Et = 0.2 – 1.2 = -1.0 First- order approx. (n=1)  f(xi+1)= 0.95 f(x)= -0.4x3 – 0.45x2 – x – 0.25, f’(0)= -0.25 f( xi+1)= 1.2- 0.25h = 0.95 Et = 0.2 - 0.95 = -0.75

Taylor Series - Example Second- order approximation (n=2)  f(xi+1)= 0.45 f’’(x) = -1.2 x2 – 0.9x -1 , f’’(0)= -1 f( xi+1)= 1.2 - 0.25h - 0.5 h2 = 0.45 Et = 0.2 – 0.45 = -0.25 Third-order approximation (n=3)  f(xi+1)= 0.3 f( xi+1)= 1.2 - 0.25h - 0.5 h2 – 0.15h3 = 0.3 Et = 0.2 – 0.3 = -0.1

Taylor Series - Example Fourth-order approximation (n = 4)  f(xi+1)= 0.2 f( xi+1)= 1.2 - 0.25h - 0.5 h2 – 0.15h3 – 0.1h 4= 0.2 Et = 0.2 – 0.2 = 0 The remainder term (R4) = 0 because the fifth derivative of the fourth-order polynomial is zero.

Approximation using Taylor Series Expansion The nth-order Approximation

Taylor Series In General, the n-th order Taylor Series will be exact for n-th order polynomial. For other differentiable and continuous functions, such as exponentials and sinusoids, a finite number of terms will not yield an exact estimate. Each additional term will contribute some improvement. (see example 4.2)

Taylor Series Truncation error is decreased by addition of terms to the Taylor series. If h is sufficiently small, only a few terms may be required to obtain an approximation close enough to the actual value for practical purposes.