JACQUES D. answered 07/23/22
Ivy league and MIT educated Chemical Engineer with career as teacher
I'll start it off for you:
yn+1 = yn + hy'n + (h2/2)y''n
From the ODE: y' = 2ty and y'' = 2y'+2y = 4ty + 2y
yn+1 = yn + h(2tyn) + (h2/2)(4t+2)yn
yn+1 = (1+2ht+(h2/2)(4t+2))yn Last term can be written as h2(2t+1)
Now plug in h = .2 and t incrementing from 0 to .8 (5 iterations) (note yn is y(tn))
Here's the first iteration:
y(.2) = (1 +2*.2*0+(.22/2)(4*0 +2))(1) = 1.02
Second iteration
y(.4) = (1 + 2*.2*.2 +(.22/2)(4*.2 +2))(1.02) = 1.15872)
and so on...
When you are done, you can calculate error from actual solution at t=1
Please check my math as there are a lot of niggly things.
Please consider a tutor. Take care
Jessie T.
thanks!07/24/22