Advanced Mathematics For Engineering and Science

7.7: NUMERICAL DIFFERENTIATION AND INTEGRATION

7.7 NUMERICAL DIFFERENTIATION AND INTEGRATION

Numerical Differentiation

In this section, we describe methods of calculating the derivatives of a function f using only its values at (n+1) distinct points. We approximate the function by a polynomial and we assume that the derivatives of the function are approximately equal to the derivatives of the polynomial.

Recall that a polynomial of first degree passing through the points [x 0, f(x 0)] and [x 1, f(x 1)] is

(7.6 7)

Differentiating p 1(x) with respect to x, we obtain

(7.7 1a)
(7.7 1b)

where h(=x 1 ?x 0) is the distance between the points x 1 and x 0.

A formula for f' (x 0) is then given approximately by

(7.7 2)

The formula given by Equation (7.7 2) is known as the two-point formula since it involves two points x 0 and x 1 It is also known as the forward difference formula, as the derivative at x 0 depends on the forward point x 1.

From Equations (1.2 11, 12), we have

(7.7 3a)

where 0 ???1.

Equation (7.7 3a) may be written as

(7.7 3b)

By comparing Equations (7.7 2, 3b), we find that the error is of the order h.

The error can be reduced by taking h to be smaller, provided f" behaves well in the interval. Since f" is generally not known, we cannot estimate the error.

Similarly if we approximate f(x) by a polynomial of second degree p 2

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Color Meters and Appearance Instruments
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.