solving symbolic system diff equation using dsolve error (five diff equations)

2 views (last 30 days)
I try to solve system equations which consist of five first order differential equations as follow using dsolve,
x'(t)=m*u - 2*l*x(t),y'(t)=2*c*l*x(t)-B*y(t),z'(t)=x(t)*(2*l-c*l)-A*z(t), m'(t)=A*z(t)-m(t)*(l + u) + B*y(t) + n(t)*u, n'(t)= l*m(t) - n(t)*u.
with initial condition x(t)=1, y(t)=z(t)=m(t)=n(t)=0, other variables are constants.
however i got the error shown ??? Error using ==> mupadmex Error in MuPAD command: cannot compute the explicit representation of the eigenvalues; use 'numeric::eigenvectors' [linalg::eigenvectors]
Error in ==> sym.sym>sym.mupadmexnout at 2018
out = mupadmex(fcn,args{:});
Error in ==> dsolve>mupadDsolve at 190
[var_list,R] = mupadmexnout('symobj::dsolve',sys,x,ignoreConstraints);
Error in ==> dsolve at 97
[R,vars] = mupadDsolve(ignoreConstraints,varargin{1:narg});"
Please help / recommend.

Accepted Answer

Walter Roberson
Walter Roberson on 24 Aug 2011
Your system is invalid. Your initial conditions cannot be specified in terms of the variable t: they must be specified in terms of a specific point such as x(0). (More generally, initial conditions have to have at least one constant amongst all of the arguments to the function.)
I rewrote the system as
[diff(x(t),t)=m(t)*u-2*l*x(t), diff(y(t),t)=2*c*l*x(t)-B*y(t), diff(z(t),t)=x(t)*(2*l-c*l)-A*z(t), diff(m(t),t)=A*z(t)-m(t)*(l+u)+B*y(t)+n(t)*u, diff(n(t),t)=l*m(t)-n(t)*u];
and submitted that to Maple without any initial conditions. Maple was able to create the general answer fairly readily, but the general answer is pretty icky.
I am processing now with the initial conditions x(0)=1, y(0)=0, z(0)=0, m(0)=0, n(0)=0; it is taking time to work out the proper form.
  6 Comments
Walter Roberson
Walter Roberson on 28 Aug 2011
Unfortunately I do not have the symbolic toolbox, so I cannot test to see what happens with it.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!