Optimal. Leaf size=13 \[ -E\left (\left .\sin ^{-1}(x)\right |-1\right )+2 F\left (\left .\sin ^{-1}(x)\right |-1\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 13, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {434, 435, 254,
227} \begin {gather*} 2 F(\text {ArcSin}(x)|-1)-E(\text {ArcSin}(x)|-1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 227
Rule 254
Rule 434
Rule 435
Rubi steps
\begin {align*} \int \frac {\sqrt {1-x^2}}{\sqrt {1+x^2}} \, dx &=2 \int \frac {1}{\sqrt {1-x^2} \sqrt {1+x^2}} \, dx-\int \frac {\sqrt {1+x^2}}{\sqrt {1-x^2}} \, dx\\ &=-E\left (\left .\sin ^{-1}(x)\right |-1\right )+2 \int \frac {1}{\sqrt {1-x^4}} \, dx\\ &=-E\left (\left .\sin ^{-1}(x)\right |-1\right )+2 F\left (\left .\sin ^{-1}(x)\right |-1\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.28, size = 12, normalized size = 0.92 \begin {gather*} -i E\left (\left .i \sinh ^{-1}(x)\right |-1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 14, normalized size = 1.08
method | result | size |
default | \(-\EllipticE \left (x , i\right )+2 \EllipticF \left (x , i\right )\) | \(14\) |
elliptic | \(\frac {\sqrt {-x^{4}+1}\, \left (\frac {\sqrt {-x^{2}+1}\, \sqrt {x^{2}+1}\, \EllipticF \left (x , i\right )}{\sqrt {-x^{4}+1}}+\frac {\sqrt {-x^{2}+1}\, \sqrt {x^{2}+1}\, \left (\EllipticF \left (x , i\right )-\EllipticE \left (x , i\right )\right )}{\sqrt {-x^{4}+1}}\right )}{\sqrt {x^{2}+1}\, \sqrt {-x^{2}+1}}\) | \(95\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.31, size = 20, normalized size = 1.54 \begin {gather*} \frac {\sqrt {x^{2} + 1} \sqrt {-x^{2} + 1}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {- \left (x - 1\right ) \left (x + 1\right )}}{\sqrt {x^{2} + 1}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.08 \begin {gather*} \int \frac {\sqrt {1-x^2}}{\sqrt {x^2+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________