필터 지우기
필터 지우기

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)

채택된 답변

Alan Stevens
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개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by