Q 3.6-17E

Question

Use Euler’s method (4) with = 0.1 to approximate the solution to the initial value problem y'=-20y,y(0)=1, on the interval 0x1  (that is, at = 0, 0.1, . . . , 1.0).Compare your answers with the actual solution y = e-20x. What went wrong? Next, try the step size = 0.025 and also = 0.2. What conclusions can you draw concerning the choice of step size?

Step-by-Step Solution

Verified
Answer

   xn

yn(h = 0.2)

 yn(h = 0.1)

 

 yn(h = 0.025)

 

0.1

 

-1

0.06250

0.2

-3

1

0.00391

0.3

 

-1

0.00024

0.4

9

1

0.00002

0.5

 

-1

0.00000

0.6

-27

1

0.00000

0.7

 

-1

0.00000

0.8

81

1

0.00000

0.9

 

-1

0.00000

1.0

-243

1

0.00000

 

The result is for h=0.1 the values are 1 and -1. The values for h=0.2 the results are increasing and decreasing with different signs. For h=0.025 is the best approximation result. 

1Step 1: Find the equation of approximation value

Here f(x,y)=-20y then 

 yn=yn-1+h(-20yn-1)=(1-20h)yn-1...=(1-20h)nyo(y0=1)(1-20h)n

 

2Step 2: Solve for x and y

Apply initial points  xn=xo+nh,xo=0 for


h=0.1xn=0.1n,yn=(-1)n,n=1,2,.....10h=0.025xn=0.025n,yn=(0.5)n,n=1,2,...40h=0.2xn=0.2n,yn=(-3)n,n=1,2,...5


Where  n=1,2,3,....1h

3Step 3: Determine the all other values for h=0.1 and substituting the value of n

(x1=0.1,y1=-1)(x2=0.2,y2=1)(x3=0.3,y3=-1)(x4=0.4,y4=1)(x5=0.5,y5=-1)(x6=0.6,y6=1)(x7=0.7,y7=-1)(x8=0.8,y8=1)(x9=0.9,y9=-1)(x10=1,y10=1)

4Step 4: Evaluate the all other values for h=0.025 and substituting the value of n

(x1=0.1,y1=0.0625)(x2=0.2,y2=0.003906)(x3=0.3,y3=0.000244)(x4=0.4,y4=0.000015)(x5=0.5,y5=0.000001)(x6=0.6,y6=0)(x7=0.7,y7=0)(x8=0.8,y8=0)(x9=0.9,y9=0)(x10=1,y10=0)

5Step 5: Find the all-other values for h=0.2 and substituting the value of n

(x2=0.2,y2=-3)(x4=0.4,y4=9)(x6=0.6,y6=-27)(x8=0.8,y8=81)(x10=1,y10=-243)

Hence the solution is 

  xn 

 yn(h = 0.2)

 yn(h = 0.1)

 yn(h = 0.025)

0.1

 

-1

0.06250

0.2

-3

1

0.00391

0.3

 

-1

0.00024

0.4

9

1

0.00002

0.5

 

-1

0.00000

0.6

-27

1

0.00000

0.7

 

-1

0.00000

0.8

81

1

0.00000

0.9

 

-1

0.00000

1.0

-243

1

0.00000

 

The result is for h=0.1 the values are 1 and -1. The values for h=0.2 the results are increasing and decreasing with different signs. For h=0.025 is the best approximation result.