Consider the equation dudt=3t2+1u=0 at t=0. This is numeircally solved by using the forwaard Euler method with a step size, Δt=2. The absolute error in the solution at the end of the first time step is
8
Open in App
Solution
The correct option is A 8 dudt=3t2+1=f(t,u) (let)
Forward Eular Method u1=uo+hf(to,uo)
Given, to=0,uo=0,h=Δt=2 u1=0+2(3×02+1)=2
Now for exact value, dudt=3t2+1 du=∫2o(3t2+1)dt u1=[t3+t]20=10
Absolute error=|10−2|=8