462 Higher Engineering Mathematics
which is a statement calledTaylor’s series.
Ifhis the interval between two new ordinatesy 0 and
y 1 , as shown in Fig. 49.3, and if f(a)=y 0 andy 1 =
f(a+h), then Euler’s method states:f(a+h)=f(a)+hf′(a)i.e. y 1 =y 0 +h(y′) 0 (2)yy 5 f(x)Pha xQy 0 y 10 (a 1 h)Figure 49.3The approximation used with Euler’s method is to take
only the first two terms of Taylor’s series shown in
equation (1).
Hence ify 0 ,hand(y′) 0 are known,y 1 , which is an
approximate value for the function atQin Fig. 49.3,
can be calculated.
Euler’s method is demonstrated in the workedproblems
following.49.3 Worked problems on Euler’s
method
Problem 1. Obtain a numerical solution of the
differential equationdy
dx= 3 ( 1 +x)−ygiven the initial conditions thatx=1wheny=4,
for the rangex= 1 .0tox= 2 .0 with intervals of 0.2.
Draw the graph of the solution.dy
dx=y′= 3 ( 1 +x)−yWithx 0 =1andy 0 = 4 ,(y′) 0 = 3 ( 1 + 1 )− 4 = 2.By Euler’s method:y 1 =y 0 +h(y′) 0 ,from equation( 2 )Hence y 1 = 4 +( 0. 2 )( 2 )=4.4,sinceh= 0. 2At pointQin Fig. 49.4,x 1 = 1. 2 ,y 1 = 4. 4and(y′) 1 = 3 ( 1 +x 1 )−y 1i.e.(y′) 1 = 3 ( 1 + 1. 2 )− 4. 4 =2.2If the values ofx, y andy′found for pointQare
regarded as new starting values ofx 0 ,y 0 and(y′) 0 ,the
above process can be repeated and values found for the
pointRshown in Fig. 49.5.
Thus at pointR,y 1 =y 0 +h(y′) 0 from equation( 2 )= 4. 4 +( 0. 2 )( 2. 2 )=4.84Whenx 1 = 1 .4andy 1 = 4 .84,
(y′) 1 = 3 ( 1 + 1. 4 )− 4. 84 =2.36yPhxQy 0x 051 x 15 1.2y 1044.4Figure 49.4yPhxQRy 0x 05 1.2 x 15 1.4y 10 1.0Figure 49.5