Consider an indefinite "elliptic integral”, $$ J_n(r):= \int^r_{r_0}\frac{x^n {\rm d}x}{\sqrt{f(x)}}, \quad f(x):=(x-x_1)(x-x_2)(x-x_3), $$ Here, $r_0>0, n=1,0,-1$, and $x_{1,2,3}$ are roots of cubic equation $f(x)=0$.
I am interested in a case when $f(x)=0$ has one real root $x_1>0$ and two complex roots $x_2$ and $x_3$ (since it's cubic equation, they are also complex conjugate, $x_3=\bar{x_2}$).
I want to know if $J_{-1}$ can be written without imaginary number $i$, because this integral appear in a problem of physics, $J_n$ should be real function. But, so far, I failed to make it. I write down what I faced:
I have tried an integration by substitution. In the present case, let $x_2=a+ ib$ and thus $x_3=\bar{x_2}=a-ib$. Then we have $f(x)=(x-x_1)((x-a)^2+b^2)$.
Now, transform the variable from $x$ to $y$ with $$ x=x_1+p \tan^2y, \quad p:=\sqrt{(x_1-a)^2+b^2}. $$ After some manipulation, $J_n$ reduces to $$ \frac{\sqrt{p}}{2}J_n(r)=\int\frac{(x_1+p\tan^2y)^n {\rm d}y}{\sqrt{1-A\sin^2y\cos^2y}}, $$ where $A:=2(p-(x_1-a))/p$ and $0<A<2$ by definition.
For $n=0$ and $+1$, it is no problem.
For $n=0$, Mathematica returns
$$
\frac{\sqrt{p}}{2}J_0(r)=\frac{1}{2}F(2y\mid \frac{A}{4}),
$$
where $F(\phi\mid m)$ is the elliptic integral of the first kind, EllipticF
.
For $n=1$, Mathematica returns a combination of elliptic integrals and elementary functions (I do not express them here).
Note that there is no imaginary number $i$ so far.
For $n=-1$, however, integration of $J_{-1}$, i.e.,
Integrate[(x_1 + p Tan[y]^2)^-1 (1 - A Sin[y]^2 Cos[y]^2)^(-1/2), y]
returns a messy form with $i$:
where $\Pi(n,\phi\mid m)$ is the incomplete elliptic integral of the third kind.
I found that Plot
of $J_{-1}$ are indeed real under certain range of $a, p, A$.
But, I guess there should be a simpler form in $J_{-1}$ without $i$.
Maybe the above transformation is not good for $J_{-1}$? Is there some identities that eliminate $i$?
I am not comfortable that in the messy form, $\sqrt{A-4}$ appears, although $0<A<2$. I am beginner of elliptic integral, any comments are welcome. Thank you.