Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I was trying to simulate a system of ODEs on Mathematica in an effort to try to understand how to muck around with Mathematica but for some reason the following lines of code do not yield any results; the code just seems to run without conclusion. Could anyone shed some light on why this is happening perhaps?

system = {x'[t] == x[t] + y[t], y'[t] == z[t], z'[t] == x[t] * y[t]};
sol = DSolve[system,{x,y,z},t]

Is it perhaps an erroneous call and/or usage of the DSolve command? Is it not meant for use on non-linear equations?

share|improve this question
    
It is since Mma does not know the exact solution of this system of equations. If you add the initial values, replace DSolve by NDSolve and put a time interval instead of t, you will get a solution. –  Alexei Boulbitch Jun 3 at 11:59
    
Thanks! Thought as much but was still wondering if there was some fancy stuff happening within mathematica which created a new object that I can then use for further calculations. –  Gadha007 Jun 3 at 22:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.