I'm trying to calculate the maximum step size that provides stability for the following nonlinear IVP using the Euler forward method:
$u'(t) = -200tu(t)^2,\qquad u_0 = 1, \qquad t\in [0,3]$,
with the analytical solution being $u = (1+100t^2)^{-1}$ (see figure below). From linear stability analysis, that is by solving $u' = \lambda u, \qquad u_0 = 1, \qquad \lambda <0 $, one can show that the region of stability for the Euler forward is $|1+\lambda h|\le1$, where $h$ is the step size. So the step size must be $h<2/|\lambda|$.
I realize that this holds only for linear problems, however when solving a general IVP (including nonlinear terms):
$u'(t) = f(t,u(t)), \qquad u(t_0)=u_0$
calculating the eigenvalues $\lambda_i(t)$ of $A=f_{u_i}(t,u(t))$, where $f_{u_i}$ is the Jacobian matrix, should also lead to reasonable step sizes when using the lowest value of all $\lambda_i$. That is if the $u(t)$ is asymptotically stable.
So the next step would be to calculate the Jacobian matrix (in this case with just one entry):
$f_{u_i}=-\frac{400t}{1+100t^2}=\lambda$. The infimum of $\lambda$ on the given interval is $\lambda=-20$ and thus $h = 2/20$. The figure below shows $\lambda(t)$.
However the step size seems to be too large as the model blows up. Stability seems to be somewhere around $h=2/29$.
So I have two Questions:
1: What did I do wrong while calculating the step size or is the example just pathological and if so why?
2: How can I actually calculate the maximum step size providing stability?