Solve system of 2 nonlinear second order ODEs

5 ビュー (過去 30 日間)
Iris
Iris 2015 年 3 月 25 日
回答済み: Star Strider 2015 年 3 月 25 日
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!

採用された回答

Star Strider
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 , but the second uses H. What root of do you want to use?

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by