How do I prepare the following ODE for ode45?
이전 댓글 표시
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
Torsten
2018년 2월 20일
Google is your friend:
matlab & higher order odes
Best wishes
Torsten.
Sergio Manzetti
2018년 2월 20일
편집: Sergio Manzetti
2018년 2월 20일
채택된 답변
추가 답변 (1개)
Sergio Manzetti
2018년 2월 28일
편집: Sergio Manzetti
2018년 2월 28일
0 개 추천
댓글 수: 11
Torsten
2018년 2월 28일
SQM = abs(Y(:,1).^2)
Sergio Manzetti
2018년 2월 28일
Sergio Manzetti
2018년 3월 9일
편집: Sergio Manzetti
2018년 3월 9일
Torsten
2018년 3월 9일
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
2018년 3월 9일
편집: Sergio Manzetti
2018년 3월 9일
Torsten
2018년 3월 9일
y2 = y'
y3 = y''
Sergio Manzetti
2018년 3월 9일
Torsten
2018년 3월 9일
y''' = y3' = y1*(2+x^2)
That's (3).
Sergio Manzetti
2018년 3월 9일
편집: Sergio Manzetti
2018년 3월 9일
Torsten
2018년 3월 9일
You transform a higher order ODE to a system of first-order ODEs.
I already gave you the link to digest this.
카테고리
도움말 센터 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

