17.02.2014 Views

Mathematical Methods for Physicists: A concise introduction - Site Map

Mathematical Methods for Physicists: A concise introduction - Site Map

Mathematical Methods for Physicists: A concise introduction - Site Map

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.

NUMERICAL SOLUTIONS OF DIFFERENTIAL EQUATIONS<br />

Thus, the error decreases rapidly as n increases, at least <strong>for</strong> twice-di€erentiable<br />

functions.<br />

Simpson's rule<br />

Simpson's rule provides a more accurate and useful <strong>for</strong>mula <strong>for</strong> approximating a<br />

de®nite integral. The interval a x b is subdivided into an even number of<br />

subintervals. A parabola is ®tted to points a, a ‡ h, a ‡ 2h; another to a ‡ 2h,<br />

a ‡ 3h, a ‡ 4h; and so on. The area under a parabola, as shown in Fig. 13.7, is<br />

(Problem 13.8)<br />

h<br />

3 …y 1 ‡ 4y 2 ‡ y 3 †:<br />

Thus, applied to Fig. 13.5, we have the approximation<br />

Z b<br />

a<br />

f …x†dx h 3 …y 0 ‡ 4y 1 ‡ 2y 2 ‡ 4y 3 ‡ 2y 4 ‡‡2y n2 ‡ 4y n1 ‡ y n †; …13:17†<br />

with n even and h ˆ…b a†=n.<br />

The analysis of errors <strong>for</strong> Simpson's rule is fairly involved. It has been shown<br />

that the error is proportional to h 4 (or inversely proportional to n 4 ).<br />

There are other methods of approximating integrals, but they are not so simple<br />

as the above three. The method called Gaussian quadrature is very fast but more<br />

involved to implement. Many textbooks on numerical analysis cover this method.<br />

Numerical solutions of di€erential equations<br />

We noted in Chapter 2 that the methods available <strong>for</strong> the exact solution of di€erential<br />

equations apply only to a few, principally linear, types of di€erential equations.<br />

Many equations which arise in physical science and in engineering are not<br />

solvable by such methods and we are there<strong>for</strong>e <strong>for</strong>ced to ®nd ways of obtaining<br />

approximate solutions of these di€erential equations. The basic idea of approximate<br />

solutions is to specify a small increment h and to obtain approximate values<br />

of a solution y ˆ y…x† at x 0 , x 0 ‡ h, x 0 ‡ 2h; ...:<br />

Figure 13.7.<br />

469

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

Saved successfully!

Ooh no, something went wrong!