This is how you solve a non-stiff ODE
Note that there is a closed-form solution for these equations. You can find a linear combination of x and y which decouples the system.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!