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.

466 DIFFERENTIAL EQUATIONS<br />

Table 49.8<br />

x y y ′<br />

1. 0 2 2<br />

2. 0.1 2.205 2.105<br />

3. 0.2 2.421025 2.221025<br />

4. 0.3 2.649232625 2.349232625<br />

5. 0.4 2.89090205 2.49090205<br />

6. 0.5 3.147446765<br />

For line 3, x 1 = 0.2<br />

y P1 = y 0 + h(y ′ ) 0 = 2.205 + (0.1)(2.105)<br />

= 2.4155<br />

y C1 = y 0 + 1 2 h[(y′ ) 0 + f (x 1 , y P1 )]<br />

= 2.205 +<br />

2 1 (0.1)[2.105 + (2.4155 − 0.2)]<br />

= 2.421025<br />

(y ′ ) 0 = y C1 − x 1 = 2.421025 − 0.2 = 2.221025<br />

For line 4, x 1 = 0.3<br />

y P1 = y 0 + h(y ′ ) 0<br />

= 2.421025 + (0.1)(2.221025)<br />

= 2.6431275<br />

y C1 = y 0 + 1 2 h[(y′ ) 0 + f (x 1 , y P1 )]<br />

= 2.421025 + 1 2 (0.1)[2.221025<br />

= 2.649232625<br />

+ (2.6431275 − 0.3)]<br />

(y ′ ) 0 = y C1 − x 1 = 2.649232625 − 0.3<br />

= 2.349232625<br />

For line 5, x 1 = 0.4<br />

y P1 = y 0 + h(y ′ ) 0<br />

= 2.649232625 + (0.1)(2.349232625)<br />

= 2.884155887<br />

y C1 = y 0 + 1 2 h[(y′ ) 0 + f (x 1 , y P1 )]<br />

= 2.649232625 + 1 2 (0.1)[2.349232625<br />

= 2.89090205<br />

(y ′ ) 0 = y C1 − x 1 = 2.89090205 − 0.4<br />

= 2.49090205<br />

For line 6, x 1 = 0.5<br />

y P1 = y 0 + h(y ′ ) 0<br />

+ (2.884155887 − 0.4)]<br />

= 2.89090205 + (0.1)(2.49090205)<br />

= 3.139992255<br />

y C1 = y 0 + 1 2 h[(y′ ) 0 + f (x 1 , y P1 )]<br />

= 2.89090205 + 1 2 (0.1)[2.49090205<br />

= 3.147446765<br />

+ (3.139992255 − 0.5)]<br />

Problem 4 is the same example as Problem 3 and<br />

Table 49.9 shows a comparison of the results, i.e.<br />

it compares the results of Tables 49.3 and 49.8.<br />

dy<br />

= y − x may be solved analytically by the integrating<br />

factor method of Chapter 48 with the solution<br />

dx<br />

y = x + 1 + e x . Substituting values of x of 0, 0.1,<br />

0.2, ...give the exact values shown in Table 49.9.<br />

The percentage error for each method for each<br />

value of x is shown in Table 49.10. For example<br />

when x = 0.3,<br />

% error with Euler method<br />

( )<br />

actual − estimated<br />

=<br />

× 100%<br />

actual<br />

( )<br />

2.649858808 − 2.631<br />

=<br />

× 100%<br />

2.649858808<br />

= 0.712%<br />

Table 49.9<br />

Euler method Euler-Cauchy method Exact value<br />

x y y y= x + 1 + e x<br />

1. 0 2 2 2<br />

2. 0.1 2.2 2.205 2.205170918<br />

3. 0.2 2.41 2.421025 2.421402758<br />

4. 0.3 2.631 2.649232625 2.649858808<br />

5. 0.4 2.8641 2.89090205 2.891824698<br />

6. 0.5 3.11051 3.147446765 3.148721271

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

Saved successfully!

Ooh no, something went wrong!