How to solve two 2nd order differential equations using ode's

my system is as follows. x"+ x'+ x + y'=0; y"+ y'+ y + x'=0; Thanks in advance for the help.

 採用された回答

Birdman
Birdman 2018 年 2 月 21 日

0 投票

Here is an approach, with symbolic way:
syms x1(t) x2(t)
eq1=diff(x1,2)+diff(x1,1)+x1+diff(x2,1)==0;
eq2=diff(x2,2)+diff(x2,1)+x2+diff(x1,1)==0;
solx=dsolve([eq1,eq2]);
x1(t)=solx.x1
x2(t)=solx.x2

4 件のコメント

Ebraheem Menda
Ebraheem Menda 2018 年 2 月 22 日
Thank you Birdman. i am currently trying to solve my system. will come back soon.
Ebraheem Menda
Ebraheem Menda 2018 年 2 月 22 日
Birdman can you please tell me how to solve this using ode45 or any other. Thanks in advance for the help.
Birdman
Birdman 2018 年 2 月 22 日
I do not know how to use ode45. Maybe you should open a new question in forum.
Ebraheem Menda
Ebraheem Menda 2018 年 2 月 22 日
Ok. Thank You.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by