Optimal. Leaf size=69 \[ \frac {1}{4} \sqrt {x^4-x^2}+\tanh ^{-1}\left (\frac {(x-1) x}{\sqrt {x^4-x^2}}\right )-\frac {1}{4} \sqrt {3} \tanh ^{-1}\left (\frac {\sqrt {3} \sqrt {x^4-x^2}}{x^2}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 79, normalized size of antiderivative = 1.14, number of steps used = 7, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2034, 734, 843, 620, 206, 724} \begin {gather*} \frac {1}{4} \sqrt {x^4-x^2}+\frac {1}{2} \tanh ^{-1}\left (\frac {x^2}{\sqrt {x^4-x^2}}\right )+\frac {1}{8} \sqrt {3} \tanh ^{-1}\left (\frac {3-4 x^2}{2 \sqrt {3} \sqrt {x^4-x^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 620
Rule 724
Rule 734
Rule 843
Rule 2034
Rubi steps
\begin {align*} \int \frac {x \sqrt {-x^2+x^4}}{-3+2 x^2} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {\sqrt {-x+x^2}}{-3+2 x} \, dx,x,x^2\right )\\ &=\frac {1}{4} \sqrt {-x^2+x^4}-\frac {1}{8} \operatorname {Subst}\left (\int \frac {3-4 x}{(-3+2 x) \sqrt {-x+x^2}} \, dx,x,x^2\right )\\ &=\frac {1}{4} \sqrt {-x^2+x^4}+\frac {1}{4} \operatorname {Subst}\left (\int \frac {1}{\sqrt {-x+x^2}} \, dx,x,x^2\right )+\frac {3}{8} \operatorname {Subst}\left (\int \frac {1}{(-3+2 x) \sqrt {-x+x^2}} \, dx,x,x^2\right )\\ &=\frac {1}{4} \sqrt {-x^2+x^4}+\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x^2}{\sqrt {-x^2+x^4}}\right )-\frac {3}{4} \operatorname {Subst}\left (\int \frac {1}{12-x^2} \, dx,x,\frac {-3+4 x^2}{\sqrt {-x^2+x^4}}\right )\\ &=\frac {1}{4} \sqrt {-x^2+x^4}+\frac {1}{2} \tanh ^{-1}\left (\frac {x^2}{\sqrt {-x^2+x^4}}\right )+\frac {1}{8} \sqrt {3} \tanh ^{-1}\left (\frac {3-4 x^2}{2 \sqrt {3} \sqrt {-x^2+x^4}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 77, normalized size = 1.12 \begin {gather*} \frac {x \sqrt {x^2-1} \left (\sqrt {x^2-1} x+2 \log \left (\sqrt {x^2-1}+x\right )-\sqrt {3} \tanh ^{-1}\left (\frac {x}{\sqrt {3} \sqrt {x^2-1}}\right )\right )}{4 \sqrt {x^2 \left (x^2-1\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.31, size = 80, normalized size = 1.16 \begin {gather*} \frac {1}{4} \sqrt {-x^2+x^4}+\frac {1}{2} \tanh ^{-1}\left (\frac {\sqrt {-x^2+x^4}}{-1+x^2}\right )-\frac {1}{4} \sqrt {3} \tanh ^{-1}\left (\frac {\sqrt {-x^2+x^4}}{\sqrt {3} \left (-1+x^2\right )}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 94, normalized size = 1.36 \begin {gather*} \frac {1}{8} \, \sqrt {3} \log \left (\frac {8 \, x^{2} - \sqrt {3} {\left (4 \, x^{2} - 3\right )} - 2 \, \sqrt {x^{4} - x^{2}} {\left (2 \, \sqrt {3} - 3\right )} - 6}{2 \, x^{2} - 3}\right ) + \frac {1}{4} \, \sqrt {x^{4} - x^{2}} - \frac {1}{2} \, \log \left (-\frac {x^{2} - \sqrt {x^{4} - x^{2}}}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [C] time = 0.49, size = 119, normalized size = 1.72 \begin {gather*} -\frac {1}{24} \, \sqrt {3} {\left (-2 i \, \sqrt {3} \pi - 3 \, \log \left (-\frac {\sqrt {3} + 3}{\sqrt {3} - 3}\right )\right )} \mathrm {sgn}\relax (x) + \frac {1}{4} \, \sqrt {x^{2} - 1} x \mathrm {sgn}\relax (x) - \frac {1}{8} \, \sqrt {3} \log \left (\frac {{\left | 2 \, {\left (x - \sqrt {x^{2} - 1}\right )}^{2} - 2 \, \sqrt {3} - 4 \right |}}{{\left | 2 \, {\left (x - \sqrt {x^{2} - 1}\right )}^{2} + 2 \, \sqrt {3} - 4 \right |}}\right ) \mathrm {sgn}\relax (x) - \frac {1}{4} \, \log \left ({\left (x - \sqrt {x^{2} - 1}\right )}^{2}\right ) \mathrm {sgn}\relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.38, size = 90, normalized size = 1.30
method | result | size |
trager | \(\frac {\sqrt {x^{4}-x^{2}}}{4}+\frac {\ln \left (\frac {x^{2}+\sqrt {x^{4}-x^{2}}}{x}\right )}{2}+\frac {\RootOf \left (\textit {\_Z}^{2}-3\right ) \ln \left (-\frac {4 \RootOf \left (\textit {\_Z}^{2}-3\right ) x^{2}-3 \RootOf \left (\textit {\_Z}^{2}-3\right )-6 \sqrt {x^{4}-x^{2}}}{2 x^{2}-3}\right )}{8}\) | \(90\) |
default | \(-\frac {\sqrt {x^{4}-x^{2}}\, \left (\sqrt {6}\, \sqrt {2}\, \arctanh \left (\frac {\left (\sqrt {6}\, x +2\right ) \sqrt {2}}{2 \sqrt {x^{2}-1}}\right )+\sqrt {6}\, \sqrt {2}\, \arctanh \left (\frac {\left (\sqrt {6}\, x -2\right ) \sqrt {2}}{2 \sqrt {x^{2}-1}}\right )-8 \ln \left (x +\sqrt {x^{2}-1}\right )-4 x \sqrt {x^{2}-1}\right )}{16 x \sqrt {x^{2}-1}}\) | \(101\) |
risch | \(\frac {\sqrt {x^{2} \left (x^{2}-1\right )}}{4}+\frac {\left (\frac {\ln \left (x +\sqrt {x^{2}-1}\right )}{2}-\frac {\sqrt {6}\, \sqrt {2}\, \arctanh \left (\frac {\left (1+\sqrt {6}\, \left (x -\frac {\sqrt {6}}{2}\right )\right ) \sqrt {2}}{\sqrt {4 \left (x -\frac {\sqrt {6}}{2}\right )^{2}+4 \sqrt {6}\, \left (x -\frac {\sqrt {6}}{2}\right )+2}}\right )}{16}+\frac {\sqrt {6}\, \sqrt {2}\, \arctanh \left (\frac {\left (1-\sqrt {6}\, \left (x +\frac {\sqrt {6}}{2}\right )\right ) \sqrt {2}}{\sqrt {4 \left (x +\frac {\sqrt {6}}{2}\right )^{2}-4 \sqrt {6}\, \left (x +\frac {\sqrt {6}}{2}\right )+2}}\right )}{16}\right ) \sqrt {x^{2} \left (x^{2}-1\right )}}{x \sqrt {x^{2}-1}}\) | \(157\) |
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} - x^{2}} x}{2 \, x^{2} - 3}\,{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 {x\,\sqrt {x^4-x^2}}{2\,x^2-3} \,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 {x \sqrt {x^{2} \left (x - 1\right ) \left (x + 1\right )}}{2 x^{2} - 3}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________