How do I prepare the following ODE for ode45?
Mostrar comentarios más antiguos
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 comentarios
Torsten
el 20 de Feb. de 2018
Google is your friend:
matlab & higher order odes
Best wishes
Torsten.
Sergio Manzetti
el 20 de Feb. de 2018
Editada: Sergio Manzetti
el 20 de Feb. de 2018
Respuesta aceptada
Más respuestas (1)
Sergio Manzetti
el 28 de Feb. de 2018
Editada: Sergio Manzetti
el 28 de Feb. de 2018
0 votos
11 comentarios
Torsten
el 28 de Feb. de 2018
SQM = abs(Y(:,1).^2)
Sergio Manzetti
el 28 de Feb. de 2018
Sergio Manzetti
el 9 de Mzo. de 2018
Editada: Sergio Manzetti
el 9 de Mzo. de 2018
Torsten
el 9 de Mzo. de 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
el 9 de Mzo. de 2018
Editada: Sergio Manzetti
el 9 de Mzo. de 2018
Torsten
el 9 de Mzo. de 2018
y2 = y'
y3 = y''
Sergio Manzetti
el 9 de Mzo. de 2018
Torsten
el 9 de Mzo. de 2018
y''' = y3' = y1*(2+x^2)
That's (3).
Sergio Manzetti
el 9 de Mzo. de 2018
Editada: Sergio Manzetti
el 9 de Mzo. de 2018
Torsten
el 9 de Mzo. de 2018
You transform a higher order ODE to a system of first-order ODEs.
I already gave you the link to digest this.
Categorías
Más información sobre Ordinary Differential Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

