Maple System of differential equations in Maple

Click For Summary
The discussion focuses on solving a system of four differential equations using Maple 13 on Linux Mint. The user successfully found a method to obtain values for the variables m1, m2, m3, and m4 at a specific time t=0.8 without initially plotting the graphs. They provided the code used to define the differential equations and solve them numerically. The results for m1, m2, m3, and m4 at t=0.8 were shared, demonstrating the effectiveness of the approach. This topic may serve as a useful reference for others working with similar differential equations in Maple.
RGB_Mendes
Hi everybody.

I'm using the Maple 13 software (in linux mint) to solve system compounded by the four below differential equations:

> ode1 := (diff(m1(t), t)) = - m1(t) + (1/2)*tanh( m2(t) + m4(t) + cos(t) );
> ode2 := (diff(m2(t), t)) = - m2(t) + (1/2)*tanh( m1(t) + cos(t) );
> ode3 := (diff(m3(t), t)) = - m3(t) + (1/2)*tanh( m4(t) + cos(t) );
> ode4 := (diff(m4(t), t)) = - m4(t) + (1/2)*tanh( m3(t) + m1(t) + cos(t) );Anyone knows how can I plot the "m1", "m2", "m3" and "m4" by the independent variable "t" ??
 
Physics news on Phys.org
Hi guys.

I found a way to solve the above problem. I didn't immediately plot the graphs, but I obtained the values of each greatness "mi(t)" through specific values of parametric variable "t". Below an example for t=0.8.

> restart;
> with(DEtools, DEplot);
> with(plots);
>
> # ode1 := diff(m1(t), t) = -m1(t)+(1/2)*tanh(m2(t)+m4(t)+cos(t));
> # ode2 := diff(m2(t), t) = -m2(t)+(1/2)*tanh(m1(t)+cos(t));
> # ode3 := diff(m3(t), t) = -m3(t)+(1/2)*tanh(m4(t)+cos(t));
> # ode4 := diff(m4(t), t) = -m4(t)+(1/2)*tanh(m3(t)+m1(t)+cos(t));
>
> dsys := {diff(m1(t), t) = -m1(t)+(1/2)*tanh(m2(t)+m4(t)+cos(t)), diff(m2(t), t) = -m2(t)+(1/2)*tanh(m1(t)+cos(t)), diff(m3(t), t) = -m3(t)+(1/2)*tanh(m4(t)+cos(t)), diff(m4(t), t) = -m4(t)+(1/2)*tanh(m3(t)+m1(t)+cos(t)),m1(0) = 0, m2(0) = 0, m3(0) = 0, m4(0) = 0};
> dsn1 := dsolve(dsys, numeric);
> dsn1(.8);
[t = 0.8, m1(t) = 0.225131111929745192, m2(t) = 0.211465317954931536, m3(t) = 0.211465317954931536, m4(t) = 0.225131111929745192]I expect this topic may be helpful.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 9 ·
Replies
9
Views
5K