I have a system of 3 non-linear ODEs of 2nd order with 3 unknown functions and 6 boundary conditions at Pi. I need to find functions numerically, get their plots and then calculate an integral containing these 3 functions.
First is the system: I tried solving it with NDSolve but it gives me an error (NDSolve::ndsz: At x == 1.9672446444378016`, step size is effectively zero; singularity or stiff system suspected.) and the plots are wrong. I solved this system in Maple earlier so I think I’m making some syntax mistake since I’m not very familiar with Wolfram…
Here’s my code:
What am I doing wrong? I know that a cot(x) can create a singularuty, but only at 0 or Pi, not at 1.97… On Maple plots there are singularities at 0 and that’s fine, but not in R(x):
I changed the sign of parameter a and added options in NDSolve. Apparently, the parameters should be selected more carefully to exit the singular point.
And in this case I don’t know a correct answer because Maple doesn’t seem to work with this kind of integral correctly. I’m not sure how to “get” solutions from sol to put them into the integral, like this maybe: