Group Abstract Group Abstract

Message Boards Message Boards

0
|
8K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Solving complex derivatives with Mathematica

Posted 11 years ago

Hello community

I need to solve a complex set of equations using Mathematica and would like to know if you could help with the writing in the program. These are the equations that need to be written:

dx/dt=-ax-bxy-dxz

dy/dt=ax-by+cz-dxy

dz/dt=by-cz-cxz

d?/dt=dxy+exz

where x,y,z,? are variables and a, b, c, d, e are constants.

How can I obtain an expression for each variable that depends on the constants? Which are the functions to introduce in Mathematica?

Thanks

4 Replies
POSTED BY: Nasser M. Abbasi

DSolve did not give solution:

ClearAll[x, y, z, gamma, t, a, b, c, d, e];
eq1 = x'[t] == -a x[t] - b x[t] y[t] - d x[t] z[t];
eq2 = y'[t] == a x[t] - b y[t] + c z[t] - d x[t] y[t];
eq3 = z'[t] == b y[t] - c z[t] - c x[t] z[t];
eq4 = gamma'[t] == d x[t] y[t] + e x[t] z[t];
DSolve[{eq1, eq2, eq3, eq4}, {x[t], y[t], z[t], gamma[t]}, t]

But NDsolve can solve them. You need to supply numerical values for all the parameters and initial conditions also.

ClearAll[x, y, z, gamma, t, a, b, c, d, e];
a = 1; b = 2; c = 3; d = 4; e = 5;
eq1 = x'[t] == -a x[t] - b x[t] y[t] - d x[t] z[t];
eq2 = y'[t] == a x[t] - b y[t] + c z[t] - d x[t] y[t];
eq3 = z'[t] == b y[t] - c z[t] - c x[t] z[t];
eq4 = gamma'[t] == d x[t] y[t] + e x[t] z[t];
NDSolve[{eq1, eq2, eq3, eq4, x[0] == 1, y[0] == 0, z[0] == 0, 
  gamma[0] == 0}, {x[t], y[t], z[t], gamma[t]}, {t, 0, 10}]
POSTED BY: Nasser M. Abbasi

Thank you Nasser. Is there any way to obtain a formula corresponding to this interpolated functions or plots?

Your first step is to learn about Mathematica. Take a look at some of the references listed in the following link and start to learn the system, then take a try at your problem. The particular function that you will be interested in is DSolve.

http://community.wolfram.com/groups/-/m/t/613588

POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard