Getting a solution for two coupled nonlinear differential equations
Show older comments
Hello dears. I am looking for the solutions for y(t) and z(t) in two coupled differential equations simultaneously. I need solutions for each of y and z as the equations (for example y=C1 exp (A/B)t or z=C1 exp (B//A)t) not as numbers if it is possible.
At least, an Approximate Analytical Solution is desired, which may be achievable with the generation of sufficient dot points and the Curve-Fitting Toolbox.
- ODE of the nonlinear system,
- constant values of A and B,
- initial values of y0 and z0.

Both y(t) and z(t) are functions of t. Here, A and B are constant values. We want to get a solution for each of the dependent variables of y(t) and z(t). If it is needed the initial values of y0=y(0) and z0=z(0) can be used to achieve the solution.
Accepted Answer
More Answers (1)
sardar peysin
on 12 Apr 2022
0 votes
4 Comments
Sam Chak
on 12 Apr 2022
I have edited my Answer to include the approximate analytical solutions for both y(t) and z(t).
You may need to try other Rational function models until you find the one that fits.
Hope the explanations are helpful.
sardar peysin
on 12 Apr 2022
Sam Chak
on 12 Apr 2022
I also learn from examples.
To give an example why another Rational model should be chosen, let say we select
A = -1;
B = 1;
then the previous proposed Rational model (Rat23) does not fit well for y(t).

So, by trial-and-error, it is found that Rat22 model fits well for both y(t) and z(t) in this case.
f1 = fit(T, y, 'rat22') % fit Rat22 model into y(t) data
f2 = fit(T, z, 'rat22') % fit Rat22 model into z(t) data

sardar peysin
on 12 Apr 2022
Categories
Find more on Linear Model Identification 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!

