How do I prepare the following ODE for ode45?
Show older comments
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 Comments
Torsten
on 20 Feb 2018
Google is your friend:
matlab & higher order odes
Best wishes
Torsten.
Sergio Manzetti
on 20 Feb 2018
Edited: Sergio Manzetti
on 20 Feb 2018
Accepted Answer
More Answers (1)
Sergio Manzetti
on 28 Feb 2018
Edited: Sergio Manzetti
on 28 Feb 2018
0 votes
11 Comments
Torsten
on 28 Feb 2018
SQM = abs(Y(:,1).^2)
Sergio Manzetti
on 28 Feb 2018
Sergio Manzetti
on 9 Mar 2018
Edited: Sergio Manzetti
on 9 Mar 2018
Torsten
on 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
on 9 Mar 2018
Edited: Sergio Manzetti
on 9 Mar 2018
Torsten
on 9 Mar 2018
y2 = y'
y3 = y''
Sergio Manzetti
on 9 Mar 2018
Torsten
on 9 Mar 2018
y''' = y3' = y1*(2+x^2)
That's (3).
Sergio Manzetti
on 9 Mar 2018
Edited: Sergio Manzetti
on 9 Mar 2018
Torsten
on 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.
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
