- #1

- 165

- 0

A) Find the approximate values of the solution of the given initial value problem at t = 0.1, 0.2, 0.3, 0.4 using the Euler method with h = 0.1.

B) Repeat part A with h = 0.05. Compare the results found in A.

I did part A correctly, but cannot get the right numbers for part B when I use the step size 0.05.

For part A, I did the following

(t

_{0}=0, y

_{0}=1)

Y1 = y

_{0}+f(t

_{0},y

_{0})*h = 1 + f(0,1)(0.1) = 1.2

Similarly,

Y2=y

_{1}+f(t

_{1},y

_{1})*h=1 + f(0.1,1.2)(0.1) = 1.39

Etc, etc.

However when I do part B, where h = 0.05, and try calculating Y1

Y1 = y

_{0}+f(t

_{0},y

_{0})*h = 1+f(0,1)(0.05) = 1.1

The answer in my book is 1.1975

What am I doing wrong?