Solving second order inhomogeneous differential equations which are not a function of time
4 ビュー (過去 30 日間)
古いコメントを表示
Hello Community!
Hoes does one solve a 2nd order ode of the form:
y′′+py′+qy=f(x)
0 件のコメント
採用された回答
Alan Stevens
2021 年 2 月 18 日
Break the ode into two first order ode's.
e.g. dy/dx = v; dv/dx = f(x) - p*v - q*y;
Look up the documentation on ode45
doc ode45
Although the examples use t, for time, as the independent variable, this isn't necessary. You can use x , for distance, say, in its place.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!