Solving second order inhomogeneous differential equations which are not a function of time
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sushant Singh
le 18 Fév 2021
Modifié(e) : Sushant Singh
le 24 Fév 2021
Hello Community!
Hoes does one solve a 2nd order ode of the form:
y′′+py′+qy=f(x)
0 commentaires
Réponse acceptée
Alan Stevens
le 18 Fév 2021
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Ordinary Differential Equations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!