SlideShare a Scribd company logo
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 4
Truncation Errors and the Taylor Series
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
n
n
i
i
n
i
i
i
i
i
i
i
R
x
x
n
f
x
x
f
x
x
x
f
x
f
x
f
















)
(
!
)
(
!
2
)
)(
(
)
(
)
(
1
)
(
2
1
1
1 
(xi+1-xi)= h step size (define first)
)
1
(
)
1
(
)!
1
(
)
( 


 n
n
n h
n
f
R

• Reminder term, Rn, accounts for all terms
from (n+1) to infinity.
nth order approximation
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Fig 4.1
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
•  is not known exactly, lies somewhere between
xi+1> >xi .
• Need to determine f n+1(x), to do this you need
f'(x).
• If we knew f(x), there wouldn’t be any need to
perform the Taylor series expansion.
• However, R=O(hn+1), (n+1)th order, the order of
truncation error is hn+1.
• O(h), halving the step size will halve the error.
• O(h2), halving the step size will quarter the
error.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Fig 4.2
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Fig 4.3
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Page 97
problem 4.5.
Determine truncation
errors…
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Fig 4.6
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Page 87- Example 4.4
problem 4.5.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
• Suppose that we have a function f(x) that is
dependent on a single independent variable x. fl(x) is
an approximation of x and we would like to estimate
the effect of discrepancy between x and fl(x) on the
value of the function:
)
)(
(
)
(
)
(
s
order term
higher
and
second
the
dropping
),
f(x
near
f(x)
compute
to
series
Taylor
Employ
unknown
are
and
f(x)
both
)
(
)
(
)
(
fl
fl
fl
fl
fl
fl
fl
x
x
x
f
x
f
x
f
x
x
f
x
f
x
f







Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Fig 4.7
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Page 90
example 4.5
Derive formula for
more than one
variable…
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
• Addition of x1 and x2 with associated errors t1 and t2
yields the following result:
fl(x1)=x1(1+t1)
fl(x2)=x2(1+t2)
fl(x1)+fl(x2)=t1 x1+t2 x2+x1+x2
2
1
2
2
1
1
2
1
2
1
2
1 )
(
)
(
)
(
%
100 x
x
x
x
x
x
x
x
x
fl
x
fl t
t
t











•A large error could result from addition if x1 and x2 are
almost equal magnitude but opposite sign, therefore one
should avoid subtracting nearly equal numbers.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
• Multiplication of x1 and x2 with associated errors et1
and et2 results in:
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
2
1
1
2
1
)
(
)
(
%
100
)
1
(
)
(
)
(
)
1
(
)
1
(
)
(
)
(
t
t
t
t
t
t
t
t
t
t
t
x
x
x
x
x
fl
x
fl
x
x
x
fl
x
fl
x
x
x
fl
x
fl























Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Page 91: example 4.6
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Page 97:
problem 4-6
problem 4-8
problem 4-15

More Related Content

Similar to ch04-lecture.ppt

1.9 Inverse Functions.ppt
1.9 Inverse Functions.ppt1.9 Inverse Functions.ppt
1.9 Inverse Functions.ppt
RACHELPAQUITCAADA
 
Exponents)
Exponents)Exponents)
Exponents)
ME MALULEKE
 
Wiki Powerpoint
Wiki PowerpointWiki Powerpoint
Wiki Powerpoint
mdrieseberg
 
Wiki Powerpoint
Wiki PowerpointWiki Powerpoint
Wiki Powerpoint
mdrieseberg
 
Wiki Powerpoint
Wiki PowerpointWiki Powerpoint
Wiki Powerpoint
mdrieseberg
 
Mba admissions in india
Mba admissions in indiaMba admissions in india
Mba admissions in india
Edhole.com
 
TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...
TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...
TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...
Edureka!
 
Unit 2.4
Unit 2.4Unit 2.4
Unit 2.4
Mark Ryder
 
MAT1033.4.5.ppt
MAT1033.4.5.pptMAT1033.4.5.ppt
MAT1033.4.5.ppt
StreetFoodairy
 
Guia n° 04 Matemática IV
Guia n° 04 Matemática IVGuia n° 04 Matemática IV
Guia n° 04 Matemática IV
Karlos Rivero
 

Similar to ch04-lecture.ppt (10)

1.9 Inverse Functions.ppt
1.9 Inverse Functions.ppt1.9 Inverse Functions.ppt
1.9 Inverse Functions.ppt
 
Exponents)
Exponents)Exponents)
Exponents)
 
Wiki Powerpoint
Wiki PowerpointWiki Powerpoint
Wiki Powerpoint
 
Wiki Powerpoint
Wiki PowerpointWiki Powerpoint
Wiki Powerpoint
 
Wiki Powerpoint
Wiki PowerpointWiki Powerpoint
Wiki Powerpoint
 
Mba admissions in india
Mba admissions in indiaMba admissions in india
Mba admissions in india
 
TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...
TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...
TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...
 
Unit 2.4
Unit 2.4Unit 2.4
Unit 2.4
 
MAT1033.4.5.ppt
MAT1033.4.5.pptMAT1033.4.5.ppt
MAT1033.4.5.ppt
 
Guia n° 04 Matemática IV
Guia n° 04 Matemática IVGuia n° 04 Matemática IV
Guia n° 04 Matemática IV
 

Recently uploaded

How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 

Recently uploaded (20)

How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 

ch04-lecture.ppt

  • 1. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 4 Truncation Errors and the Taylor Series
  • 2. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. n n i i n i i i i i i i R x x n f x x f x x x f x f x f                 ) ( ! ) ( ! 2 ) )( ( ) ( ) ( 1 ) ( 2 1 1 1  (xi+1-xi)= h step size (define first) ) 1 ( ) 1 ( )! 1 ( ) (     n n n h n f R  • Reminder term, Rn, accounts for all terms from (n+1) to infinity. nth order approximation
  • 3. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Fig 4.1
  • 4. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. •  is not known exactly, lies somewhere between xi+1> >xi . • Need to determine f n+1(x), to do this you need f'(x). • If we knew f(x), there wouldn’t be any need to perform the Taylor series expansion. • However, R=O(hn+1), (n+1)th order, the order of truncation error is hn+1. • O(h), halving the step size will halve the error. • O(h2), halving the step size will quarter the error.
  • 5. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Fig 4.2
  • 6. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Fig 4.3
  • 7. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Page 97 problem 4.5. Determine truncation errors…
  • 8. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Fig 4.6
  • 9. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Page 87- Example 4.4 problem 4.5.
  • 10. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. • Suppose that we have a function f(x) that is dependent on a single independent variable x. fl(x) is an approximation of x and we would like to estimate the effect of discrepancy between x and fl(x) on the value of the function: ) )( ( ) ( ) ( s order term higher and second the dropping ), f(x near f(x) compute to series Taylor Employ unknown are and f(x) both ) ( ) ( ) ( fl fl fl fl fl fl fl x x x f x f x f x x f x f x f       
  • 11. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Fig 4.7
  • 12. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Page 90 example 4.5 Derive formula for more than one variable…
  • 13. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. • Addition of x1 and x2 with associated errors t1 and t2 yields the following result: fl(x1)=x1(1+t1) fl(x2)=x2(1+t2) fl(x1)+fl(x2)=t1 x1+t2 x2+x1+x2 2 1 2 2 1 1 2 1 2 1 2 1 ) ( ) ( ) ( % 100 x x x x x x x x x fl x fl t t t            •A large error could result from addition if x1 and x2 are almost equal magnitude but opposite sign, therefore one should avoid subtracting nearly equal numbers.
  • 14. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. • Multiplication of x1 and x2 with associated errors et1 and et2 results in: 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 2 1 1 2 1 ) ( ) ( % 100 ) 1 ( ) ( ) ( ) 1 ( ) 1 ( ) ( ) ( t t t t t t t t t t t x x x x x fl x fl x x x fl x fl x x x fl x fl                       
  • 15. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Page 91: example 4.6
  • 16. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Page 97: problem 4-6 problem 4-8 problem 4-15