13.07.2015 Views

Mathematical Methods for Physics and Engineering - Matematica.NET

Mathematical Methods for Physics and Engineering - Matematica.NET

Mathematical Methods for Physics and Engineering - Matematica.NET

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 METHODSderivatives beyond a particular one will vanish <strong>and</strong> there is no error in takingthe differences to obtain the derivatives.◮The following is copied from the tabulation of a second-degree polynomial f(x) at valuesof x from 1 to 12 inclusive:2, 2, ?, 8, 14, 22, 32, 46, ?, 74, 92, 112.The entries marked ? were illegible <strong>and</strong> in addition one error was made in transcription.Complete <strong>and</strong> correct the table. Would your procedure have worked if the copying errorhad been in f(6)?Write out the entries again in row (a) below, <strong>and</strong> where possible calculate first differencesin row (b) <strong>and</strong> second differences in row (c). Denote the jth entry in row (n) by(n) j .(a) 2 2 ? 8 14 22 32 46 ? 74 92 112(b) 0 ? ? 6 8 10 14 ? ? 18 20(c) ? ? ? 2 2 4 ? ? ? 2Because the polynomial is second-degree, the second differences (c) j , which are proportionalto d 2 f/dx 2 , should be constant, <strong>and</strong> clearly the constant should be 2. That is, (c) 6 shouldequal 2 <strong>and</strong> (b) 7 should equal 12 (not 14). Since all the (c) j = 2, we can conclude that(b) 2 =2,(b) 3 =4,(b) 8 = 14, <strong>and</strong> (b) 9 = 16. Working these changes back to row (a) showsthat (a) 3 =4,(a) 8 = 44 (not 46), <strong>and</strong> (a) 9 = 58.The entries there<strong>for</strong>e should read(a) 2, 2, 4, 8, 14, 22, 32, 44, 58, 74, 92, 112,where the amended entries are shown in bold type.It is easily verified that if the error were in f(6) no two computable entries in row (c)would be equal, <strong>and</strong> it would not be clear what the correct common entry should be.Nevertheless, trial <strong>and</strong> error might arrive at a self-consistent scheme. ◭27.6 Differential equationsFor the remaining sections of this chapter our attention will be on the solutionof differential equations by numerical methods. Some of the general difficultiesof applying numerical methods to differential equations will be all too apparent.Initially we consider only the simplest kind of equation – one of first order,typically represented bydy= f(x, y), (27.60)dxwhere y is taken as the dependent variable <strong>and</strong> x the independent one. If thisequation can be solved analytically then that is the best course to adopt. Butsometimes it is not possible to do so <strong>and</strong> a numerical approach becomes theonly one available. In fact, most of the examples that we will use can be solvedeasily by an explicit integration, but, <strong>for</strong> the purposes of illustration, this is anadvantage rather than the reverse since useful comparisons can then be madebetween the numerically derived solution <strong>and</strong> the exact one.1020

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

Saved successfully!

Ooh no, something went wrong!