How to solve system of nonlinear ODEs with "unusual" boundary conditions?

1 vue (au cours des 30 derniers jours)
Andrii Syrota
Andrii Syrota le 10 Oct 2020
Commenté : Andrii Syrota le 11 Oct 2020
Hello, everyone!
I have got a problem with solving a 2nd order system of nonlinear ODEs. I want to solve numerically the system below :
The problem is in "unusual" boundary conditions, determined below :
Conditions are dermined at the beginning and end of the interval (not a classical Cauchy problem). I have no idea how to solve a system with such conditions via MatLab. Could anyone help me, please ? Or give a link to example how to solve similar problem?
Best, Andrii.
  2 commentaires
Alan Stevens
Alan Stevens le 11 Oct 2020
cot(0) is infinite, which makes your first equation difficult to get started!
Andrii Syrota
Andrii Syrota le 11 Oct 2020
Yes, the boundary condition was wrong , thank you (i have corrected it) . But i am interested in method in general, how to solve a system with such conditions.

Connectez-vous pour commenter.

Réponses (1)

J. Alex Lee
J. Alex Lee le 11 Oct 2020
If you are talking about boundary value problems versus initial value problems, look at bvp4c and bvp5c. There is nothing "unusual" about that.
For your equations specifically, if you can't express as a system explicit equations in first derivatives, then neither of those functions may work; I don't know if there are built-in solvers in Matlab for that, but recall seeing similar questions in this forum.
A straightforward way to solve could be to discretize the equations using finite differences on some domain and solve as a set of nonlinear algebraic equations.

Community Treasure Hunt

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

Start Hunting!

Translated by