Integrate[(1/Sqrt[(x + 1)^2 + 1])*(1/Sqrt[1 + x^2]), {x, 0, 1}]
yields
-2*(EllipticF[ArcCsc[Sqrt[11/5 + (2*I)/5]], 5] + EllipticF[ArcSin[Sqrt[2/5 + I/5]], 5])
which evaluates to -2.4665 - 4.44089*10^-16 I
.
But on the other hand,
NIntegrate[(1/Sqrt[(x + 1)^2 + 1])*(1/Sqrt[1 + x^2]), {x, 0, 1}]
yields 0.502323
.
I suspect the issue is related to branch cuts, so that the original answer might be correct if the multi-valued complex functions assumed the "correct" values, whereas N
computes the expression using the "incorrect" values/branches. How can we fix this? More generally, I'd like to have an analytical result for
Integrate[(1/Sqrt[(x + a)^2 + b^2])*(1/Sqrt[c^2 + x^2]), {x, 0, d}]
assuming a, b, c, d > 0
, which yields the correct real-valued answer when evaluated numerically. Is there a way to do this? Mathematica returns a complicated expression when I evaluate this, but again the numerical values are not correct.
Elliptick
and $F$ is theEllipticF
functions. The above numerically is0.502322695
$\endgroup$integrand := (1/sqrt((x + a)^2 + b^2))*(1/sqrt(c^2 + x^2)); result:=int(integrand,x=0..d) assuming a>0,d>0,c>0,d>0;
$\endgroup$(-1 + Sqrt[5])/2
. ButLimit
fails to correctly assess the upper value at the jump. I'm not sure why this is although possibly it is a matter of a time constraint stopping the attempt before it finishes. $\endgroup$