One ode, two differential equations
Show older comments
I have 2 differential equation that i want to solve in the same ode. I only have the initial value of the first equation and the answer of it will be the initial value of the second differential equation.
Is it possible and how ?
6 Comments
Star Strider
on 31 Jan 2020
With only the information you have provided thus far, it is not possible to provide any Answer.
Does the solution of the first differential equation at every time value always provide a value that the second differential equation requires?
Raed AL Hassanieh
on 1 Feb 2020
Edited: Raed AL Hassanieh
on 1 Feb 2020
Ioannis Andreou
on 1 Feb 2020
I don't quite understand.
You have the differential equations

The solution for y1(t) (given any initial value) aswell as dy1/dt are functions of t. They cannot be initial values.
Raed AL Hassanieh
on 1 Feb 2020
Raed AL Hassanieh
on 1 Feb 2020
Raed AL Hassanieh
on 1 Feb 2020
Answers (1)
Ioannis Andreou
on 1 Feb 2020
0 votes
As far as I can tell from your code, the righthanded side of your differential equations is the same. Meaning you have the system

. Thus you can simply only solve y1, the solution of y2 is then y2(t) = y1(t-t1).
1 Comment
Raed AL Hassanieh
on 1 Feb 2020
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!