I have been stuck into this problem for weeks. How do I find the stability (or attraction ) region of a nonlinear differential equation using Matlab.
Let's say I have this equation:
x' = y;
y' = -10*sin(x) - y + 9;
The equilibrium point for this equation is [x , y] = [1.1198 , 0]. I wanted to draw the stability boundary of this nonlinear differential equation. By that I mean, I want to find the region where any initial point will converge to the equilibrium point, and any point outside that region will diverge. Please see attached image at http://www.mathworks.com/matlabcentral/answers/146562-finding-the-stability-boundary-or-attraction-region-of-a-nonlinear-differential-equation
Right now, I run the following Matlab code:
f = @(t , x)[x(2) ; -10 * sin(x(1)) - x(2) + 9];
[T , X] = ode45(f , Tint , X0);
For some Tint, I plot the result in a phase portrait figure (i.e., x vs y), and I vary the initial condition (X0) till it works (i.e., some educated trial and error).
I need to find the stability region for many different variations of this differential equation. My question is: How do I find this region automatically?
Thanks for the help