Computational Science Stack Exchange is a question and answer site for scientists using computers to solve scientific problems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was given a problem by my professor as follows

Solve the






Where $p$, $c$, $B$, $\mu$ are constant and $f(S,T)$ is a function to be reasonably assumed

Where do I even begin... I know I have to use a numerical solution but Id love some helps and tips if possible.

share|improve this question
Is that all that was asking? No initial conditions? Are you supposed to give a numerical solution or an analytical one? – FrenchKheldar Nov 10 '12 at 5:51

There are a few issues I can see with the formulation of your problem. First, as a set of ODE's you need initial conditions to completely pose the problem. Another issue is that to solve it numerically you need to know $f(S,T)$ (or at the very least be able to tell your computer to evaluate it). Both of these issues can be ignored if the solution is supposed to be analytical and general.

Since this is a homework and I am not sure what exactly you are being asked to do, I am not going to put any equations in this answer for the time being. I will tell you that it is possible to reduce your system to a single ODE with all of the unknowns eliminated except for $S$. The algebra to get there is not too difficult. Assuming stability the ODE can be solved with time-stepping such as Explicit Euler or an RK method. Once you have $S$ as a function of time, you can post-process for the rest of your unknowns.

If you let us know what type of class you received this in and what tools/methods you have learned you may get a bit more information.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.