How to solve a second order differential equation using ODE45?
Afficher commentaires plus anciens
Hi,
I need to solve a second ordder differential equation, i know that usually i would use reduction of order but as i also have a first order term in my equation i do not know how to do this.
my equation is:
350y''+45y'+y=-9/8000*t
thanks
Réponses (1)
Steven Lord
le 8 Jan 2020
0 votes
Take a look at the van der Pol equation example on this documentation page. That ODE looks very similar to yours, though the way it's written initially in the example uses the variable name y1 instead of y.
The expression for y2' (which is y1'') is a function of both y1 and y2 (which is y1'). You can use the same approach for your equation.
1 commentaire
Molly Jenkins
le 8 Jan 2020
Catégories
En savoir plus sur Ordinary Differential Equations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!