How do I prepare the following ODE for ode45?
Afficher commentaires plus anciens
Hello, I would like to solve the following ODE in ode45, but the example's on the site are not describing using higher order derivatives with non-linear terms.
The ODE is:
y''' = y(2+x^2)
initial conditions are: y(0)=0 y'(0)=0 y''(0)=0
Thanks!
2 commentaires
Torsten
le 20 Fév 2018
Google is your friend:
matlab & higher order odes
Best wishes
Torsten.
Sergio Manzetti
le 20 Fév 2018
Modifié(e) : Sergio Manzetti
le 20 Fév 2018
Réponse acceptée
Plus de réponses (1)
Sergio Manzetti
le 28 Fév 2018
Modifié(e) : Sergio Manzetti
le 28 Fév 2018
0 votes
11 commentaires
Torsten
le 28 Fév 2018
SQM = abs(Y(:,1).^2)
Sergio Manzetti
le 28 Fév 2018
Sergio Manzetti
le 9 Mar 2018
Modifié(e) : Sergio Manzetti
le 9 Mar 2018
Torsten
le 9 Mar 2018
The first line is
(1) y1'(x) = y2(x)
(2) y2'(x) = y3(x)
(3) y3'(x) = y1(x)*(2+x^2).
Thus the equation for y1 is
y1(x)*(2+x^2) = (from (3)) y3'(x) = (from (2)) y2''(x) = (from (1)) y1'''(x)
which means that y1 is the function you searched for.
Sergio Manzetti
le 9 Mar 2018
Modifié(e) : Sergio Manzetti
le 9 Mar 2018
Torsten
le 9 Mar 2018
y2 = y'
y3 = y''
Sergio Manzetti
le 9 Mar 2018
Torsten
le 9 Mar 2018
y''' = y3' = y1*(2+x^2)
That's (3).
Sergio Manzetti
le 9 Mar 2018
Modifié(e) : Sergio Manzetti
le 9 Mar 2018
Torsten
le 9 Mar 2018
You transform a higher order ODE to a system of first-order ODEs.
I already gave you the link to digest this.
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

