Numerical Methods for Engineers
Numerical Methods for Engineers
7th Edition
ISBN: 9780073397924
Author: Steven C. Chapra Dr., Raymond P. Canale
Publisher: McGraw-Hill Education
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 23, Problem 19P

The objective of this problem is to compare second-order accurate forward, backward, and centered finite-difference approximations of the first derivative of a function to the actual value of the derivative. This will be done for

f ( x ) = e 2 x x

(a) Use calculus to determine the correct value of the derivative at x = 2 .

(b) To evaluate the centered finite-difference approximations, start with. Thus, for the first evaluation, the x values for the x = 0.5 centered difference approximation will be x = 2 ± 0.5 or x = 1.5 and 2.5 Then, decrease in increments of 0.01 down to a minimum value of Δ x = 0.01 .

(c) Repeat part (b) for the second-order forward and backward differences. (Note that these can be done at the same time that the centered difference is computed in the loop.)

(d) Plot the results of (b) and (c) versus x. Include the exact result on the plot for comparison.

Blurred answer

Chapter 23 Solutions

Numerical Methods for Engineers

Knowledge Booster
Background pattern image
Advanced Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Recommended textbooks for you
  • Text book image
    Calculus For The Life Sciences
    Calculus
    ISBN:9780321964038
    Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
    Publisher:Pearson Addison Wesley,
Text book image
Calculus For The Life Sciences
Calculus
ISBN:9780321964038
Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:Pearson Addison Wesley,
Finding Local Maxima and Minima by Differentiation; Author: Professor Dave Explains;https://www.youtube.com/watch?v=pvLj1s7SOtk;License: Standard YouTube License, CC-BY