how to solve ODE that contains integration over time?

3 views (last 30 days)
Gefen Baranes
Gefen Baranes on 12 Nov 2021
Answered: Bjorn Gustavsson on 12 Nov 2021
Hi,
I need to solve the attached ODE. I known how to handle with X as a matrix. My problem is the integral. How can I plug it inside the ODE45 solver? Is it possible on Matlab?
Thank you!

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 12 Nov 2021
For this type of integro-differential equations the standard "first-stab" trick is to differentiate it one step, which should give you the second-derivative of X on the LHS and something you can work out analytically for the RHS such that the integral will vanish when taking the limit of the RHS derivative. Then you'll have a system of second-order ODEs.
HTH

Products

Community Treasure Hunt

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

Start Hunting!