Hi ,(adsbygoogle = window.adsbygoogle || []).push({});

I have tried solving the following system of ODE's (eq1 attached) using Matlab.

first i reduced it into a system of four 1st order ODE's (eq2 attached).

thani tried to solve it using ode45() in the following manner:

function xprime = Mirage(t,x);

k=2;

xprime=[x(1); k*(1-x(1).^2)./(1+k*x(2)); x(3) ; -(k*x(1)*x(3))./(1+k*x(2))];

end

x0=[1 1 1 1];

tspan=[0,20];

[t,x]=ode45(@Mirage,tspan,x0)

the program seem to be in infinite loop(stays Busy).

where did i wrong?

i will appreciate your help.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# System of two second order ODE's

Loading...

Similar Threads - System second order | Date |
---|---|

System of ODE of second order | Jul 29, 2015 |

Second order system of odes with variable coefficients | Apr 28, 2014 |

Midpoint Euler method, second order system | Jun 12, 2013 |

Numerical method to use on a system of second order nonlinear ODE's | May 21, 2013 |

System of second order linear coupled pde with constant coefficient | Oct 11, 2012 |

**Physics Forums - The Fusion of Science and Community**