11.08.2013 Views

II. FINITE DIFFERENCE METHOD 1 Difference formulae

II. FINITE DIFFERENCE METHOD 1 Difference formulae

II. FINITE DIFFERENCE METHOD 1 Difference formulae

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

By proceeding in analogous way, higher order derivatives can be approximated.<br />

For example, approximating the function f by a second degree polynomial<br />

through the points (x ¡ h, f(x ¡ h)), (x, f(x)) and (x + h, f(x + h)),<br />

it turns out that D+(D−f) is a central difference approximation of f ′′ (x) :<br />

= 1<br />

h<br />

[ 1<br />

h<br />

D+(D−f) = ( D−f(x + h) ¡ D−f(x)<br />

h<br />

1<br />

(f(x + h) ¡ f(x)) ¡ (f(x) ¡ f(x ¡ h))] =<br />

h<br />

= 1<br />

h 2 [f(x + h) ¡ 2f(x) + f(x ¡ h)] » f ′′ (x).<br />

The study of the truncation error can be introduced by an example: if the<br />

first derivative of the function e x is approximated by the forward (central)<br />

difference operator in the point x = 1, the truncation errors D+e x ¡ e x ,<br />

(Dce x ¡ e x ) for increments h, h/2, h/4,... are written in the following table.<br />

The ratio between an approximation and the subsequent one is represented<br />

by r:<br />

h D+e x ¡ e x r Dce x ¡ e x r<br />

0.4 0.624013 2.14 0.0730696 4.02<br />

0.2 0.290893 2.06 0.0181581 4.00<br />

0.1 0.140560 2.03 0.0045327 4.00<br />

0.05 0.069103 2.01 0.0011327 4.00<br />

0.025 0.034263 0.0002831<br />

If the forward difference operator is applied, the error is approximately<br />

halved when the increment is halved. If the case of central difference, the<br />

error is approximately reduced by a factor 4 when h is halved. Such results<br />

suggest that the errors behave linearly as h ! 0 in the first case, and<br />

quadratically, O(h 2 ), in the other case.<br />

Thm. <strong>II</strong>.1.1 (On truncation error)Let f be sufficiently regular and let ET<br />

be its truncation error. Then ET = O(h) in case of a forward difference,<br />

ET = O(h 2 ) in case of a central difference, as h ! 0. Besides, for the central<br />

difference D+(D−) approximating f ′′ (x), the truncation error is O(h 2 ) as<br />

h ! 0.<br />

PROOF.<br />

2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!