Solve system of 2 nonlinear second order ODEs

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!

 Réponse acceptée

Star Strider
Star Strider le 25 Mar 2015

0 votes

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?

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by