24.05.2018 Views

differential equation

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Differential <strong>equation</strong>s<br />

49<br />

Numerical methods for first order<br />

<strong>differential</strong> <strong>equation</strong>s<br />

49.1 Introduction<br />

Not all first order <strong>differential</strong> <strong>equation</strong>s may be<br />

solved by separating the variables (as in Chapter 46)<br />

or by the integrating factor method (as in Chapter<br />

48). A number of other analytical methods of<br />

solving <strong>differential</strong> <strong>equation</strong>s exist. However the<br />

<strong>differential</strong> <strong>equation</strong>s that can be solved by such<br />

analytical methods is fairly restricted.<br />

Where a <strong>differential</strong> <strong>equation</strong> and known boundary<br />

conditions are given, an approximate solution<br />

may be obtained by applying a numerical method.<br />

There are a number of such numerical methods available<br />

and the simplest of these is called Euler’s<br />

method.<br />

49.2 Euler’s method<br />

From Chapter 8, Maclaurin’s series may be stated as:<br />

f (x) = f (0) + xf ′ (0) + x2<br />

2! f ′′ (0) +···<br />

Hence at some point f (h) in Fig. 51.1:<br />

f (h) = f (0) + hf ′ (0) + h2<br />

2! f ′′ (0) +···<br />

P<br />

y<br />

0<br />

f(0)<br />

h<br />

Q<br />

f(h)<br />

x<br />

y = f(x)<br />

Figure 49.1<br />

If the y-axis and origin are moved a units to the left,<br />

as shown in Fig. 49.2, the <strong>equation</strong> of the same curve<br />

relative to the new axis becomes y = f (a+x) and the<br />

function value at P is f (a).<br />

y<br />

0<br />

Figure 49.2<br />

a<br />

P<br />

At point Q in Fig. 49.2:<br />

f(a) f(a + x)<br />

h<br />

Q y = f(a + x)<br />

f (a + h) = f (a) + hf ′ (a) + h2<br />

2! f ′′ (a) +··· (1)<br />

which is a statement called Taylor’s series.<br />

If h is the interval between two new ordinates y 0<br />

and y 1 , as shown in Fig. 49.3, and if f (a) = y 0 and<br />

y 1 = f (a + h), then Euler’s method states:<br />

f (a + h) = f (a) + hf ′ (a)<br />

i.e. y 1 = y 0 + h (y ′ ) 0 (2)<br />

y<br />

0<br />

Figure 49.3<br />

Q<br />

y = f (x)<br />

P<br />

a (a + h) x<br />

h<br />

x

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

Saved successfully!

Ooh no, something went wrong!