Dear all,
I am trying to find the root of a function F which is defined through a numerical integral with NIntegrate:
F[\[Mu]C_] :=
1/NN NIntegrate[
r Exp[-((NN - 1 )/2) r^2 +
NN Log[ BesselJ[0, Sqrt[-2 \[Mu]C] r]]] ((
NN BesselJ[1, Sqrt[-2 \[Mu]C] r] r)/(
BesselJ[0, Sqrt[-2 \[Mu]C] r] Sqrt[-2 \[Mu]C])
BesselJ[
0, ((NN - 1) r)/Sqrt[-2 \[Mu]C] Sqrt[\[Mu]M.\[Mu]M]] -
BesselJ[1, ((NN - 1) r)/Sqrt[-2 \[Mu]C]
Sqrt[\[Mu]M.\[Mu]M]] ((NN - 1) r)/(-2 \[Mu]C)^(3/2)
Sqrt[\[Mu]M.\[Mu]M]), {r, 0, \[Infinity]},
Method -> {"ExtrapolatingOscillatory"}]/
NIntegrate[
r Exp[-((NN - 1 )/2) r^2 +
NN Log[ BesselJ[0, Sqrt[-2 \[Mu]C] r]]] BesselJ[
0, ((NN - 1) r)/Sqrt[-2 \[Mu]C] Sqrt[\[Mu]M.\[Mu]M]], {r,
0, \[Infinity]}, Method -> {"ExtrapolatingOscillatory"}]
I then set the parameters that appear in F
NN = 60;
\[Mu]M = {1, -1};`
and try to find a root of the following equation
FindRoot[F[\[Mu]] == -0.4, {\[Mu], -1, -4, 0}, Evaluated -> False] .
The root exists, but FindRoot keeps running for a long time > 10 mins without any output. Do you know how to fix this problem?
Thank you
Best,