Consider the following expression:
expr = ((3 M - r0) (4 Cos[θ]^2 (25 M - 11 r0
+ (-3 M + r0) Cos[2 θ]) EllipticE[(4 (-2 M + r0) Sec[θ]^2)/(3 M - r0)]
+ 4 (-19 M + 9 r0 + (-3 M + r0) Cos[2 θ]) EllipticK[(4 (-2 M + r0) Sec[θ]^2)/(3 M - r0)] Sin[θ]^2)
)/(4 π r0^3 Sqrt[Cos[θ]^2] (-8 M + 4 r0 + (-3 M + r0) Cos[θ]^2)^2);
where $r_0 > 3M > 0$ are some parameters. I know that this expression diverges logarithmically as $\theta \to \pi/2$. One quick way to see this is by picking specific values for $r_0$ and $M$. For example:
Series[expr /. r0 -> 4 /. M -> 1, {θ, π/2, 0}, Assumptions -> θ > π/2]
I am having a lot of trouble however doing this for general $r_0$ and $M$. Specifically, simply evaluating
Assuming[{θ > π/2, r0 > 3 M > 0}, Simplify[Series[expr, {θ, π/2, 0}]]]
and Mathematica has trouble giving me the explicitly expression. Is there a better way to do this?
Limit[expr, \[Theta] -> Pi/2, Assumptions -> {r0 > 3 M > 0}]
give me:-\[Infinity]
andSeries[expr /. r0 -> 4 /. M -> 1, {\[Theta], \[Pi]/2, 0}, Assumptions -> \[Theta] > \[Pi]/2]
give me:SeriesData[\[Theta], Rational[1, 2] Pi, {Rational[1, 2048] Pi^(-1) ( 20 2^Rational[1, 2] - 4 2^Rational[1, 2] Log[ 2] - 2^Rational[1, 2] Log[ 8] + 2 2^Rational[1, 2] Log[ Rational[-1, 2] Pi + \[Theta]])}, 0, 1, 1]
on Mathematica 13.0. $\endgroup$Limit[expr/Log[\[Theta] - \[Pi]/2], \[Theta] -> Pi/2, Assumptions -> {r0 > 3 M > 0}]
? $\endgroup$