Optimal. Leaf size=66 \[ -\sqrt{2} \sqrt{\sqrt{a^2+1}+a} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{\sqrt{a^2+1}-a} (x-a)}{\sqrt{\left (x^2+1\right ) (x-a)}}\right ) \]
[Out]
_______________________________________________________________________________________
Rubi [C] time = 2.37246, antiderivative size = 204, normalized size of antiderivative = 3.09, number of steps used = 9, number of rules used = 8, integrand size = 48, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167 \[ \frac{4 \sqrt{a^2+1} \sqrt{x^2+1} \sqrt{\frac{a-x}{a+i}} \Pi \left (\frac{2}{1-i \left (a-\sqrt{a^2+1}\right )};\sin ^{-1}\left (\frac{\sqrt{1-i x}}{\sqrt{2}}\right )|\frac{2}{1-i a}\right )}{\left (1-i \left (a-\sqrt{a^2+1}\right )\right ) \sqrt{\left (x^2+1\right ) (-(a-x))}}+\frac{2 i \sqrt{x^2+1} \sqrt{\frac{a-x}{a+i}} F\left (\sin ^{-1}\left (\frac{\sqrt{1-i x}}{\sqrt{2}}\right )|\frac{2}{1-i a}\right )}{\sqrt{\left (x^2+1\right ) (-(a-x))}} \]
Antiderivative was successfully verified.
[In] Int[(-a - Sqrt[1 + a^2] + x)/((-a + Sqrt[1 + a^2] + x)*Sqrt[(-a + x)*(1 + x^2)]),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((-a+x-(a**2+1)**(1/2))/(-a+x+(a**2+1)**(1/2))/((-a+x)*(x**2+1))**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 0.56329, size = 213, normalized size = 3.23 \[ \frac{2 \sqrt{\frac{a-x}{a+i}} \left (2 i \sqrt{a^2+1} \sqrt{1-i x} \sqrt{x^2+1} \Pi \left (\frac{2 i}{a-\sqrt{a^2+1}+i};\sin ^{-1}\left (\frac{\sqrt{1-i x}}{\sqrt{2}}\right )|\frac{2 i}{a+i}\right )-\left (\sqrt{a^2+1}-a-i\right ) \sqrt{1+i x} (x+i) F\left (\sin ^{-1}\left (\frac{\sqrt{1-i x}}{\sqrt{2}}\right )|\frac{2 i}{a+i}\right )\right )}{\left (-\sqrt{a^2+1}+a+i\right ) \sqrt{1-i x} \sqrt{\left (x^2+1\right ) (x-a)}} \]
Antiderivative was successfully verified.
[In] Integrate[(-a - Sqrt[1 + a^2] + x)/((-a + Sqrt[1 + a^2] + x)*Sqrt[(-a + x)*(1 + x^2)]),x]
[Out]
_______________________________________________________________________________________
Maple [C] time = 0.168, size = 1275, normalized size = 19.3 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((-a+x-(a^2+1)^(1/2))/(-a+x+(a^2+1)^(1/2))/((-a+x)*(x^2+1))^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{a - x + \sqrt{a^{2} + 1}}{\sqrt{-{\left (x^{2} + 1\right )}{\left (a - x\right )}}{\left (a - x - \sqrt{a^{2} + 1}\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((a - x + sqrt(a^2 + 1))/(sqrt(-(x^2 + 1)*(a - x))*(a - x - sqrt(a^2 + 1))),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.616919, size = 1, normalized size = 0.02 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((a - x + sqrt(a^2 + 1))/(sqrt(-(x^2 + 1)*(a - x))*(a - x - sqrt(a^2 + 1))),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((-a+x-(a**2+1)**(1/2))/(-a+x+(a**2+1)**(1/2))/((-a+x)*(x**2+1))**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{a - x + \sqrt{a^{2} + 1}}{\sqrt{-{\left (x^{2} + 1\right )}{\left (a - x\right )}}{\left (a - x - \sqrt{a^{2} + 1}\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((a - x + sqrt(a^2 + 1))/(sqrt(-(x^2 + 1)*(a - x))*(a - x - sqrt(a^2 + 1))),x, algorithm="giac")
[Out]