
Bradford T. answered 01/17/21
Retired Engineer / Upper level math instructor
It is really easier to write a simple program, which I will outline here. Or you can do the manual steps until you get to y(2.5).
dy/dx = f(x,y)=3y+2xy x0 is known = 2, y0 = 1, h= 0.1
for j = 1 to n // Or how many times you want to repeat to meat your goal
a) m = f(x0,y0)
b) y1 = y0 + hm
c) t1 = t0 + h
d) t0 = t1
e) y0 = y1
For this problem:
f(x,y) = 3y+2xy
So, starting at t0 = 2, repeat the above sequence until t0>2.5
a) m = f(2,1) = 3(1)+2(2)(1) = 7
b) y1 = y0 + hm = 1+0.1(7) = 1.7
c) t1 = t0 + h = 2.1
d) show t1 and y1
e) t0 = t1 = 2.1
f) y0 = y1 = 1.7
2nd iteration
a) m = f(2.1,1.7) = 3(1.7)+2(2.1)(1.7) = 5.1 + 7.14 = 12.24
b) y1 = y0 + hm = 1.7+0.1(12.24) = 1.7 + 1.224 = 2.924
c) t1 = t0 + h = 2.2
d) show t1 and y1
e) t0 = t1 = 2.2
f) y0 = y1 = 2.924
---etc---
This is what I got for all iterations from a simple program
x y
2.1 1.7
2.2 2.924
2.3 5.08776
2.4 8.9544576
2.5 15.938934528
y(2.5) = 15.9389