5Numerical Differentiation/Integration

Chapter Outline

5.1 Difference Approximation for the First Derivative

For a function f(x) of a variable x, its first derivative is defined as

However, this gives our computers a headache, since they do not know how to take a limit. Any input number given to computers must be a definite number and can be neither too small nor too large to be understood by the computer. The ‘theoretically’ infinitesimal number h involved in this equation is a problem.

A simple approximation that computers might be happy with is the forward difference approximation.

How far away is this approximation from the true value of Eq. (5.1.1)? In order to do ...

Get Applied Numerical Methods Using MATLAB, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.