Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Euler's Method Question, can't get the right answer?
Question Part
Points
Submissions Used
Use Euler's method with step size 0.2 to estimate y(1), where y(x) is the solution of the initial-value problem below. Give your answer correct to 4 decimal places.
y' = 1 - xy
y(0) = 0
So, my work is:
y(0) = 0
y(.2) = y(0) + f(0)*.2 = 0 + (1 - .2 * y(0))*.2 = (1 - .2*0)*.2 = .2
y(.4) = y(.2) + f(.2)*.2 = .2 + (1 - .2 * .2) * .2 = .392
y(.6) = y(.4) + f(.4)*.2 = .392 + (1 - .2 * .392) * .2 = .57632
y(.8) = y(.6) + f(.6)*.2 = .57632 + (1 - .2 * .57632) * .2 = .7532672
y(1) = y(.8) + f(.8) *.2 = .7532672 + (1 - .2 * .7532672) * .2 = .923136
But .9231 is not the answer. What have I done wrong?
Thanks a bunch!
1 Answer
- O(n)Lv 58 years agoFavourite answer
y' = f(x,y(x)) , in this case f(x,y) = 1 - xy
y(0) = 0 => y'(0) = f(0,0) = 1 - 0 = 1
y(0.2) = y(0) + 0.2 * y'(0) = 0 + 0.2 * 1 = 0.2
=> y'(0.2) = 1 - 0.2*0.2 = 0.96
y(0.4) = y(0.2) + 0.2 * y'(0.2) = 0.2 + 0.2 * 0.96 = 0.392
=> y'(0.4) = 1 - 0.4*0.392 = 0.8432
y(0.6) = y(0.4) + 0.2 * y'(0.4) = 0.392 + 0.2 * 0.8432 = 0.56064
=> y'(0.6) = 1 - 0.6*0.56064 = 0.663616
y(0.8) = y(0.6) + 0.2 * y'(0.6) = 0.56064 + 0.2 * 0.663616 = 0.6933632
=> y'(0.8) = 1 - 0.8*0.6933632 = 0.44530944
y(1.0) = y(0.8) + 0.2 * y'(0.8) = 0.6933632 + 0.2 * 0.44530944 = 0.782425088
So, to 4 digits precision, y(1) = 0.7824