The following integration code is identical, except for the use of integration variables x
vs k
and constants a
vs b
(all four possible combinations are included). Oddly, only the third one gives an output in terms of the ArcTan
function, while all others give ArcTanh
. Why?
This is obviously just a curiosity, since it doesn't really matter (both outputs are mathematically correct).
Assuming[a > 0, Integrate[(1/Sqrt[x^2 + 1])*(1/(x - a)), x]]
Assuming[a > 0, Integrate[(1/Sqrt[k^2 + 1])*(1/(k - a)), k]]
Assuming[b > 0, Integrate[(1/Sqrt[x^2 + 1])*(1/(x - b)), x]]
Assuming[b > 0, Integrate[(1/Sqrt[k^2 + 1])*(1/(k - b)), k]]
Output:
-((2*ArcTanh[(a - x + Sqrt[1 + x^2])/Sqrt[ 1 + a^2]])/Sqrt[ 1 + a^2])
-((2*ArcTanh[(a - k + Sqrt[1 + k^2])/Sqrt[ 1 + a^2]])/Sqrt[ 1 + a^2])
(2*ArcTan [(b - x + Sqrt[1 + x^2])/Sqrt[-1 - b^2]])/Sqrt[-1 - b^2]
-((2*ArcTanh[(b - k + Sqrt[1 + k^2])/Sqrt[ 1 + b^2]])/Sqrt[ 1 + b^2])