Optimal. Leaf size=21 \[ \tanh ^{-1}\left (\frac{x^2+1}{\sqrt{x^4+3 x^2+1}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0291543, antiderivative size = 21, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {1251, 838, 206} \[ \tanh ^{-1}\left (\frac{x^2+1}{\sqrt{x^4+3 x^2+1}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1251
Rule 838
Rule 206
Rubi steps
\begin{align*} \int \frac{-1+x^2}{x \sqrt{1+3 x^2+x^4}} \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{-1+x}{x \sqrt{1+3 x+x^2}} \, dx,x,x^2\right )\\ &=2 \operatorname{Subst}\left (\int \frac{1}{4-x^2} \, dx,x,\frac{2 \left (1+x^2\right )}{\sqrt{1+3 x^2+x^4}}\right )\\ &=\tanh ^{-1}\left (\frac{1+x^2}{\sqrt{1+3 x^2+x^4}}\right )\\ \end{align*}
Mathematica [B] time = 0.0153564, size = 57, normalized size = 2.71 \[ \frac{1}{2} \left (\tanh ^{-1}\left (\frac{2 x^2+3}{2 \sqrt{x^4+3 x^2+1}}\right )+\tanh ^{-1}\left (\frac{3 x^2+2}{2 \sqrt{x^4+3 x^2+1}}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.017, size = 46, normalized size = 2.2 \begin{align*}{\frac{1}{2}{\it Artanh} \left ({\frac{3\,{x}^{2}+2}{2}{\frac{1}{\sqrt{{x}^{4}+3\,{x}^{2}+1}}}} \right ) }+{\frac{1}{2}\ln \left ({x}^{2}+{\frac{3}{2}}+\sqrt{{x}^{4}+3\,{x}^{2}+1} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.978983, size = 70, normalized size = 3.33 \begin{align*} \frac{1}{2} \, \log \left (2 \, x^{2} + 2 \, \sqrt{x^{4} + 3 \, x^{2} + 1} + 3\right ) + \frac{1}{2} \, \log \left (\frac{2 \, \sqrt{x^{4} + 3 \, x^{2} + 1}}{x^{2}} + \frac{2}{x^{2}} + 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.13552, size = 149, normalized size = 7.1 \begin{align*} -\frac{1}{2} \, \log \left (4 \, x^{4} + 11 \, x^{2} - \sqrt{x^{4} + 3 \, x^{2} + 1}{\left (4 \, x^{2} + 5\right )} + 5\right ) + \frac{1}{2} \, \log \left (-x^{2} + \sqrt{x^{4} + 3 \, x^{2} + 1} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (x - 1\right ) \left (x + 1\right )}{x \sqrt{x^{4} + 3 x^{2} + 1}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{2} - 1}{\sqrt{x^{4} + 3 \, x^{2} + 1} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]