Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. 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've been asked to solve a system of differential equations using maple (for practice, as it is solvable by hand...), but I seem to be running into goop with syntax...

d/dt r(t) = -lambda_r*r(t) + alpha*lambda_u*u

d/dt p(t) = -lambda_p*p(t) + lambda_r * r(t)

with initial conditions r(0) = r_0 and p(0) = p_0

So I put this in maple:

de1 := diff(R(t),t) = -lambda[r]*R(t)+alpha*lambda[u]*U;

de2 := diff(P(t),t) = -lambda[p]*P(t)+lambda[r]*R(t);


dsol := dsolve({de1, de2}, {R(t), P(t)});

gets me R(t) and P(t) but when do I plug in the initial conditions? Is that afterwards on dsol[1] and dsol[2], or should I be doing that when I do the dsolve somehow?

share|cite|improve this question
What does the included help say? In Maple, type ?dsolve to get it. I would try dsolve({de1, de2, R(0)=r0, P(0)=p0}, {R(t), P(t)}); – GEdgar Feb 23 '13 at 2:26
up vote 1 down vote accepted

As GEdgar wrote in the comments, the initial conditions should be included along with the differential equations. Here is an example from Maple help file that you get by entering ? dsolve:

ODE example

share|cite|improve this answer
Awesome. Thank you!! – SetSlapShot Feb 25 '13 at 20:25

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.