Optimal. Leaf size=48 \[ -\frac {x \sqrt {-1+x^2}}{4 \left (1+x^2\right )}+\frac {3 \tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {-1+x^2}}\right )}{4 \sqrt {2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {390, 385, 212}
\begin {gather*} \frac {3 \tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {x^2-1}}\right )}{4 \sqrt {2}}-\frac {x \sqrt {x^2-1}}{4 \left (x^2+1\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 385
Rule 390
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {-1+x^2} \left (1+x^2\right )^2} \, dx &=-\frac {x \sqrt {-1+x^2}}{4 \left (1+x^2\right )}+\frac {3}{4} \int \frac {1}{\sqrt {-1+x^2} \left (1+x^2\right )} \, dx\\ &=-\frac {x \sqrt {-1+x^2}}{4 \left (1+x^2\right )}+\frac {3}{4} \text {Subst}\left (\int \frac {1}{1-2 x^2} \, dx,x,\frac {x}{\sqrt {-1+x^2}}\right )\\ &=-\frac {x \sqrt {-1+x^2}}{4 \left (1+x^2\right )}+\frac {3 \tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {-1+x^2}}\right )}{4 \sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 55, normalized size = 1.15 \begin {gather*} \frac {1}{8} \left (-\frac {2 x \sqrt {-1+x^2}}{1+x^2}+3 \sqrt {2} \tanh ^{-1}\left (\frac {1+x^2-x \sqrt {-1+x^2}}{\sqrt {2}}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {cought exception: maximum recursion depth exceeded} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 45, normalized size = 0.94
method | result | size |
risch | \(\frac {3 \arctanh \left (\frac {x \sqrt {2}}{\sqrt {x^{2}-1}}\right ) \sqrt {2}}{8}-\frac {x \sqrt {x^{2}-1}}{4 \left (x^{2}+1\right )}\) | \(37\) |
default | \(-\frac {x}{8 \sqrt {x^{2}-1}\, \left (\frac {x^{2}}{x^{2}-1}-\frac {1}{2}\right )}+\frac {3 \arctanh \left (\frac {x \sqrt {2}}{\sqrt {x^{2}-1}}\right ) \sqrt {2}}{8}\) | \(45\) |
trager | \(-\frac {x \sqrt {x^{2}-1}}{4 \left (x^{2}+1\right )}+\frac {3 \RootOf \left (\textit {\_Z}^{2}-2\right ) \ln \left (\frac {3 \RootOf \left (\textit {\_Z}^{2}-2\right ) x^{2}+4 \sqrt {x^{2}-1}\, x -\RootOf \left (\textit {\_Z}^{2}-2\right )}{x^{2}+1}\right )}{16}\) | \(66\) |
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 83 vs.
\(2 (36) = 72\).
time = 0.31, size = 83, normalized size = 1.73 \begin {gather*} \frac {3 \, \sqrt {2} {\left (x^{2} + 1\right )} \log \left (\frac {9 \, x^{2} + 2 \, \sqrt {2} {\left (3 \, x^{2} - 1\right )} + 2 \, \sqrt {x^{2} - 1} {\left (3 \, \sqrt {2} x + 4 \, x\right )} - 3}{x^{2} + 1}\right ) - 4 \, x^{2} - 4 \, \sqrt {x^{2} - 1} x - 4}{16 \, {\left (x^{2} + 1\right )}} \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 {1}{\sqrt {\left (x - 1\right ) \left (x + 1\right )} \left (x^{2} + 1\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 101 vs.
\(2 (36) = 72\).
time = 0.00, size = 122, normalized size = 2.54 \begin {gather*} -8 \left (\frac {3 \left (\sqrt {x^{2}-1}-x\right )^{2}+1}{16 \left (\left (\sqrt {x^{2}-1}-x\right )^{4}+6 \left (\sqrt {x^{2}-1}-x\right )^{2}+1\right )}+\frac {3 \ln \left (\frac {2 \left (\sqrt {x^{2}-1}-x\right )^{2}+6-4 \sqrt {2}}{2 \left (\sqrt {x^{2}-1}-x\right )^{2}+6+4 \sqrt {2}}\right )}{64 \sqrt {2}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {1}{\sqrt {x^2-1}\,{\left (x^2+1\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________