Solve system of 2 nonlinear second order ODEs
5 ビュー (過去 30 日間)
古いコメントを表示
Hello guys!
I'm having some troubles to solve this (I don't even know if Matlab does this easily). Can you please give me a couple of tips?
So, the two equations are (where c1,c2,.. are constants and y',y'' are the first and second derivatives of y):
H² = (8pi/3)[(1 + x)³(1 + c1*exp(-2*y)) + (1 + x)⁴ + c2*(y')² + c3]
y'' + 3*H*y' = -c4*(1 + x)³*exp(-2*y)
Thank you so much!
0 件のコメント
採用された回答
Star Strider
2015 年 3 月 25 日
MATLAB can probably solve it easily, but that depends on what the system of equations does. (You may need to experiment with different solvers.) First, see the MIT handout on the Companion Matrix. You will need to understand this to set up your second equation as a system of two first-order differential equations. See the documentation for ode45 to understand how to code the equations you derived. It is actually straightforward.
You might want to consider that your first equation calculates H², but the second uses H. What root of H² do you want to use?
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!