[8] [Numerical differentiation and round-off error] In this problem we'll show that numerical differentiation can be unstable in the presence of round off error. Consider the 2nd order centered difference approximation to the first derivative; in exact arithmetic we know that |ƒ'(xo) — ƒ (xo + h) — ƒ(xo — h) 2h M < -h² (1) where M = maxä[a,b] |ƒ'''(x)|. Assume now that h can be represented exactly (no floating point error), but, in contrast, that f(x₁+h) and f(xo-h) have some error in their floating point representation. Denote these floating point approximations f(xo + h) := Fl(f(x + h)), ƒ(xo – h) := Fl(f(x − h)) and suppose that €1, €2 are the floating point errors in each value; that is: ƒ (xo – h) = f(xo — h) + €2. ƒ (xo + h) = f(xo + h) + €₁, - (a) Use the triangle inequality and (1) to show that the error in the centered difference approximation in the presence of round error satisfies: M f(xo + h) — f(xo – h) | P (16) - - | ≤ 11 1² + 1 ƒ'(xo) -h² 2h h where = €2- €₁/2. (b) As h gets smaller, notice that part of the error from (a) will vanish, while the other part will increase. Use differential calculus to find h such that the error derived in part (a) will be minimized.
[8] [Numerical differentiation and round-off error] In this problem we'll show that numerical differentiation can be unstable in the presence of round off error. Consider the 2nd order centered difference approximation to the first derivative; in exact arithmetic we know that |ƒ'(xo) — ƒ (xo + h) — ƒ(xo — h) 2h M < -h² (1) where M = maxä[a,b] |ƒ'''(x)|. Assume now that h can be represented exactly (no floating point error), but, in contrast, that f(x₁+h) and f(xo-h) have some error in their floating point representation. Denote these floating point approximations f(xo + h) := Fl(f(x + h)), ƒ(xo – h) := Fl(f(x − h)) and suppose that €1, €2 are the floating point errors in each value; that is: ƒ (xo – h) = f(xo — h) + €2. ƒ (xo + h) = f(xo + h) + €₁, - (a) Use the triangle inequality and (1) to show that the error in the centered difference approximation in the presence of round error satisfies: M f(xo + h) — f(xo – h) | P (16) - - | ≤ 11 1² + 1 ƒ'(xo) -h² 2h h where = €2- €₁/2. (b) As h gets smaller, notice that part of the error from (a) will vanish, while the other part will increase. Use differential calculus to find h such that the error derived in part (a) will be minimized.
Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 2 images
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,