Optimal. Leaf size=83 \[ -\frac {1}{2} \log \left (-x^2+\sqrt {x^4+6 x^2+1}+1\right )-2 \tan ^{-1}\left (\frac {x^2}{2}-\frac {1}{2} \sqrt {x^4+6 x^2+1}+\frac {1}{2}\right )-\tanh ^{-1}\left (x^2-\sqrt {x^4+6 x^2+1}+2\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 78, normalized size of antiderivative = 0.94, number of steps used = 9, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {1251, 895, 724, 206, 843, 621, 204} \begin {gather*} -\tan ^{-1}\left (\frac {1-x^2}{\sqrt {x^4+6 x^2+1}}\right )+\frac {1}{2} \tanh ^{-1}\left (\frac {x^2+3}{\sqrt {x^4+6 x^2+1}}\right )-\frac {1}{2} \tanh ^{-1}\left (\frac {3 x^2+1}{\sqrt {x^4+6 x^2+1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 206
Rule 621
Rule 724
Rule 843
Rule 895
Rule 1251
Rubi steps
\begin {align*} \int \frac {\sqrt {1+6 x^2+x^4}}{x \left (1+x^2\right )} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {\sqrt {1+6 x+x^2}}{x (1+x)} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{x \sqrt {1+6 x+x^2}} \, dx,x,x^2\right )-\frac {1}{2} \operatorname {Subst}\left (\int \frac {-5-x}{(1+x) \sqrt {1+6 x+x^2}} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{\sqrt {1+6 x+x^2}} \, dx,x,x^2\right )+2 \operatorname {Subst}\left (\int \frac {1}{(1+x) \sqrt {1+6 x+x^2}} \, dx,x,x^2\right )-\operatorname {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {2 \left (1+3 x^2\right )}{\sqrt {1+6 x^2+x^4}}\right )\\ &=-\frac {1}{2} \tanh ^{-1}\left (\frac {1+3 x^2}{\sqrt {1+6 x^2+x^4}}\right )-4 \operatorname {Subst}\left (\int \frac {1}{-16-x^2} \, dx,x,\frac {4 \left (-1+x^2\right )}{\sqrt {1+6 x^2+x^4}}\right )+\operatorname {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {2 \left (3+x^2\right )}{\sqrt {1+6 x^2+x^4}}\right )\\ &=-\tan ^{-1}\left (\frac {1-x^2}{\sqrt {1+6 x^2+x^4}}\right )+\frac {1}{2} \tanh ^{-1}\left (\frac {3+x^2}{\sqrt {1+6 x^2+x^4}}\right )-\frac {1}{2} \tanh ^{-1}\left (\frac {1+3 x^2}{\sqrt {1+6 x^2+x^4}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 89, normalized size = 1.07 \begin {gather*} -\tan ^{-1}\left (\frac {4-4 x^2}{4 \sqrt {x^4+6 x^2+1}}\right )+\frac {1}{2} \tanh ^{-1}\left (\frac {2 x^2+6}{2 \sqrt {x^4+6 x^2+1}}\right )-\frac {1}{2} \tanh ^{-1}\left (\frac {6 x^2+2}{2 \sqrt {x^4+6 x^2+1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.18, size = 83, normalized size = 1.00 \begin {gather*} -2 \tan ^{-1}\left (\frac {1}{2}+\frac {x^2}{2}-\frac {1}{2} \sqrt {1+6 x^2+x^4}\right )-\tanh ^{-1}\left (2+x^2-\sqrt {1+6 x^2+x^4}\right )-\frac {1}{2} \log \left (1-x^2+\sqrt {1+6 x^2+x^4}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.50, size = 79, normalized size = 0.95 \begin {gather*} 2 \, \arctan \left (-\frac {1}{2} \, x^{2} + \frac {1}{2} \, \sqrt {x^{4} + 6 \, x^{2} + 1} - \frac {1}{2}\right ) - \frac {1}{2} \, \log \left (x^{4} + 4 \, x^{2} - \sqrt {x^{4} + 6 \, x^{2} + 1} {\left (x^{2} + 1\right )} - 1\right ) + \frac {1}{2} \, \log \left (-x^{2} + \sqrt {x^{4} + 6 \, x^{2} + 1} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 91, normalized size = 1.10 \begin {gather*} 2 \, \arctan \left (-\frac {1}{2} \, x^{2} + \frac {1}{2} \, \sqrt {x^{4} + 6 \, x^{2} + 1} - \frac {1}{2}\right ) - \frac {1}{2} \, \log \left (x^{2} - \sqrt {x^{4} + 6 \, x^{2} + 1} + 3\right ) - \frac {1}{2} \, \log \left (-x^{2} + \sqrt {x^{4} + 6 \, x^{2} + 1} + 1\right ) + \frac {1}{2} \, \log \left (-x^{2} + \sqrt {x^{4} + 6 \, x^{2} + 1} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.43, size = 74, normalized size = 0.89
method | result | size |
trager | \(\ln \left (\frac {x^{2}+\sqrt {x^{4}+6 x^{2}+1}-1}{x}\right )+\RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (-\frac {\RootOf \left (\textit {\_Z}^{2}+1\right ) x^{2}-\RootOf \left (\textit {\_Z}^{2}+1\right )-\sqrt {x^{4}+6 x^{2}+1}}{x^{2}+1}\right )\) | \(74\) |
default | \(-\frac {\sqrt {\left (x^{2}+1\right )^{2}+4 x^{2}}}{2}-\ln \left (x^{2}+3+\sqrt {\left (x^{2}+1\right )^{2}+4 x^{2}}\right )+\arctan \left (\frac {4 x^{2}-4}{4 \sqrt {\left (x^{2}+1\right )^{2}+4 x^{2}}}\right )+\frac {\sqrt {x^{4}+6 x^{2}+1}}{2}+\frac {3 \ln \left (x^{2}+3+\sqrt {x^{4}+6 x^{2}+1}\right )}{2}-\frac {\arctanh \left (\frac {6 x^{2}+2}{2 \sqrt {x^{4}+6 x^{2}+1}}\right )}{2}\) | \(125\) |
elliptic | \(-\frac {\sqrt {\left (x^{2}+1\right )^{2}+4 x^{2}}}{2}-\ln \left (x^{2}+3+\sqrt {\left (x^{2}+1\right )^{2}+4 x^{2}}\right )+\arctan \left (\frac {4 x^{2}-4}{4 \sqrt {\left (x^{2}+1\right )^{2}+4 x^{2}}}\right )+\frac {\sqrt {x^{4}+6 x^{2}+1}}{2}+\frac {3 \ln \left (x^{2}+3+\sqrt {x^{4}+6 x^{2}+1}\right )}{2}-\frac {\arctanh \left (\frac {6 x^{2}+2}{2 \sqrt {x^{4}+6 x^{2}+1}}\right )}{2}\) | \(125\) |
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*} \int \frac {\sqrt {x^{4} + 6 \, x^{2} + 1}}{{\left (x^{2} + 1\right )} x}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {x^4+6\,x^2+1}}{x\,\left (x^2+1\right )} \,d 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 {x^{4} + 6 x^{2} + 1}}{x \left (x^{2} + 1\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________