The ordinary differential equation dxdt=−3x+2,with x(0)=1 is to be solved using the forward Euler method. The largest time step that can be used to solve the equation without making the numerical solution unstable is
0.66
Open in App
Solution
The correct option is A 0.66 dxdt=−3x+2=f(t,x) & x(0)=1
Iterative equation is: xn+1=xn+hf(tn,xn) =xn+h[−3xn+2] xn+1=(1−3h)xn+2h
So method will be statbe only when |1−3h|≤1 −1≤1−3h≤1 −2≤−3h≤0 0≤+3h≤2 0≤h≤23 ∴ Maximum value of h=23=0.66