How to Solve Differential Equations Using Maple?

Click For Summary

Discussion Overview

The discussion revolves around solving a system of differential equations using Maple software. Participants share their approaches and troubleshoot issues related to the implementation of code in Maple, focusing on the syntax and functionality of the software in the context of differential equations.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant requests suggestions for solving a system of two ordinary differential equations (ODEs) involving three functions.
  • Another participant provides a method using the Maple command `dsolve` to solve for the unknown functions a(t) and f(t), suggesting a specific code structure.
  • A later reply indicates an error encountered when using the `odetest` function, noting that the input was not of the expected type.
  • Another participant points out a potential misprint in the code shared, suggesting that the syntax error may have originated from the forum's post-saving process, which altered the appearance of the code.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the correct implementation of the Maple code, as there is a noted error and a proposed correction, but no agreement on the resolution of the issue.

Contextual Notes

The discussion highlights limitations related to code syntax and the specific requirements of Maple functions, as well as the potential for misprints during the posting process that could affect the clarity of shared code.

alejandrito29
Messages
148
Reaction score
0
any suggestions to solve the follows differential equations by using maple?

see adjoint figure
 

Attachments

  • jjjjj.JPG
    jjjjj.JPG
    32.5 KB · Views: 450
Physics news on Phys.org
There are three function in your system of two ODEs. If a(t) and f(t) are unknown functions then you can proceed in Maple by following way

AN:=dsolve({ec1,ec2},{a(t),f(t)});

ans:={op(1,op(1,AN)),simplify(eval(subs(op(1,AN),op(1,op(2,AN)))),symbolic)};

odetest(ans,{ec1,ec2});
 
kosovtsov said:
There are three function in your system of two ODEs. If a(t) and f(t) are unknown functions then you can proceed in Maple by following way

AN:=dsolve({ec1,ec2},{a(t),f(t)});

ans:={op(1,op(1,AN)),simplify(eval(subs(op(1,AN),op(1,op(2,AN)))),symbolic)};

odetest(ans,{ec1,ec2});

Thanks, but at last I find :
" > odetest(ans, {ec1, ec2})

Error, (in odetest) invalid input: odetest expects its 1st argument, SOL, to be of type {algebraic, `=`, set(`=`), list({`=`, set(`=`)})}, but received {o*p(1, {a(t) = -ln(2)+A(t)+2*ln(_C2)+I*Pi}), f(t) = Int(exp(1/2*A(t))*_C2/(exp(3*A(t))*_C1-2)^(1/2), t)+_C3}"
 
Last edited:
Unfortunately, as I understand, there is the misprint in your (and mine) input in ans line

ans:={op(1,op(1,AN)),simplify(eval(subs(op(1,AN),o p(1,op(2,AN)))),symbolic)};

(o p reads as o*p)
but must be

ans:={op(1,op(1,AN)),simplify(eval(subs(op(1,AN), op(1,op(2,AN)))),symbolic)};

P.S. It is funny, but this misprint appears in Post saving process of this site, so I was forced to insert space in front of op, but here it does not affect on Maple code!
 
Last edited:

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
0
Views
3K
  • · Replies 14 ·
Replies
14
Views
6K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 52 ·
2
Replies
52
Views
9K