Optimal. Leaf size=41 \[ \tanh ^{-1}\left (\frac{x}{\sqrt{x^2-2}}\right )-\sqrt{\frac{3}{2}} \tanh ^{-1}\left (\frac{\sqrt{\frac{2}{3}} x}{\sqrt{x^2-2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0218235, antiderivative size = 41, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {483, 217, 206, 377, 207} \[ \tanh ^{-1}\left (\frac{x}{\sqrt{x^2-2}}\right )-\sqrt{\frac{3}{2}} \tanh ^{-1}\left (\frac{\sqrt{\frac{2}{3}} x}{\sqrt{x^2-2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 483
Rule 217
Rule 206
Rule 377
Rule 207
Rubi steps
\begin{align*} \int \frac{x^2}{\left (-6+x^2\right ) \sqrt{-2+x^2}} \, dx &=6 \int \frac{1}{\left (-6+x^2\right ) \sqrt{-2+x^2}} \, dx+\int \frac{1}{\sqrt{-2+x^2}} \, dx\\ &=6 \operatorname{Subst}\left (\int \frac{1}{-6+4 x^2} \, dx,x,\frac{x}{\sqrt{-2+x^2}}\right )+\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\frac{x}{\sqrt{-2+x^2}}\right )\\ &=\tanh ^{-1}\left (\frac{x}{\sqrt{-2+x^2}}\right )-\sqrt{\frac{3}{2}} \tanh ^{-1}\left (\frac{\sqrt{\frac{2}{3}} x}{\sqrt{-2+x^2}}\right )\\ \end{align*}
Mathematica [A] time = 0.0284174, size = 41, normalized size = 1. \[ \log \left (\sqrt{x^2-2}+x\right )-\sqrt{\frac{3}{2}} \tanh ^{-1}\left (\frac{\sqrt{\frac{2}{3}} x}{\sqrt{x^2-2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.036, size = 100, normalized size = 2.4 \begin{align*} \ln \left ( x+\sqrt{{x}^{2}-2} \right ) -{\frac{\sqrt{6}}{4}{\it Artanh} \left ({\frac{8+2\, \left ( x-\sqrt{6} \right ) \sqrt{6}}{4}{\frac{1}{\sqrt{ \left ( x-\sqrt{6} \right ) ^{2}+2\, \left ( x-\sqrt{6} \right ) \sqrt{6}+4}}}} \right ) }+{\frac{\sqrt{6}}{4}{\it Artanh} \left ({\frac{8-2\, \left ( x+\sqrt{6} \right ) \sqrt{6}}{4}{\frac{1}{\sqrt{ \left ( x+\sqrt{6} \right ) ^{2}-2\, \left ( x+\sqrt{6} \right ) \sqrt{6}+4}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.47848, size = 144, normalized size = 3.51 \begin{align*} \frac{1}{12} \, \sqrt{6}{\left (2 \, \sqrt{6} \log \left (x + \sqrt{x^{2} - 2}\right ) - 3 \, \log \left (\sqrt{6} + \frac{4 \, \sqrt{x^{2} - 2}}{{\left | 2 \, x - 2 \, \sqrt{6} \right |}} + \frac{8}{{\left | 2 \, x - 2 \, \sqrt{6} \right |}}\right ) + 3 \, \log \left (-\sqrt{6} + \frac{4 \, \sqrt{x^{2} - 2}}{{\left | 2 \, x + 2 \, \sqrt{6} \right |}} + \frac{8}{{\left | 2 \, x + 2 \, \sqrt{6} \right |}}\right )\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.8899, size = 211, normalized size = 5.15 \begin{align*} \frac{1}{4} \, \sqrt{3} \sqrt{2} \log \left (-\frac{2 \, \sqrt{3} \sqrt{2}{\left (5 \, x^{2} - 6\right )} - 25 \, x^{2} + 2 \,{\left (5 \, \sqrt{3} \sqrt{2} x - 12 \, x\right )} \sqrt{x^{2} - 2} + 30}{x^{2} - 6}\right ) - \log \left (-x + \sqrt{x^{2} - 2}\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{x^{2}}{\left (x^{2} - 6\right ) \sqrt{x^{2} - 2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.11784, size = 97, normalized size = 2.37 \begin{align*} -\frac{1}{4} \, \sqrt{6} \log \left (\frac{{\left | 2 \,{\left (x - \sqrt{x^{2} - 2}\right )}^{2} - 8 \, \sqrt{6} - 20 \right |}}{{\left | 2 \,{\left (x - \sqrt{x^{2} - 2}\right )}^{2} + 8 \, \sqrt{6} - 20 \right |}}\right ) - \frac{1}{2} \, \log \left ({\left (x - \sqrt{x^{2} - 2}\right )}^{2}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]