Optimal. Leaf size=131 \[ \frac {1}{4} \left (a-i \sqrt {3} a\right ) \log \left (-2 i \sqrt [3]{x^3-x}+\sqrt {3} x-i x\right )+\frac {1}{4} \left (a+i \sqrt {3} a\right ) \log \left (2 i \sqrt [3]{x^3-x}+\sqrt {3} x+i x\right )-\frac {1}{2} a \log \left (\sqrt [3]{x^3-x}-x\right )-\frac {3 b \left (x^3-x\right )^{2/3}}{4 x^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 128, normalized size of antiderivative = 0.98, number of steps used = 5, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {2038, 2011, 329, 275, 239} \begin {gather*} -\frac {3 a \sqrt [3]{x} \sqrt [3]{x^2-1} \log \left (x^{2/3}-\sqrt [3]{x^2-1}\right )}{4 \sqrt [3]{x^3-x}}+\frac {\sqrt {3} a \sqrt [3]{x} \sqrt [3]{x^2-1} \tan ^{-1}\left (\frac {\frac {2 x^{2/3}}{\sqrt [3]{x^2-1}}+1}{\sqrt {3}}\right )}{2 \sqrt [3]{x^3-x}}-\frac {3 b \left (x^3-x\right )^{2/3}}{4 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 239
Rule 275
Rule 329
Rule 2011
Rule 2038
Rubi steps
\begin {align*} \int \frac {-b+a x^2}{x^2 \sqrt [3]{-x+x^3}} \, dx &=-\frac {3 b \left (-x+x^3\right )^{2/3}}{4 x^2}+a \int \frac {1}{\sqrt [3]{-x+x^3}} \, dx\\ &=-\frac {3 b \left (-x+x^3\right )^{2/3}}{4 x^2}+\frac {\left (a \sqrt [3]{x} \sqrt [3]{-1+x^2}\right ) \int \frac {1}{\sqrt [3]{x} \sqrt [3]{-1+x^2}} \, dx}{\sqrt [3]{-x+x^3}}\\ &=-\frac {3 b \left (-x+x^3\right )^{2/3}}{4 x^2}+\frac {\left (3 a \sqrt [3]{x} \sqrt [3]{-1+x^2}\right ) \operatorname {Subst}\left (\int \frac {x}{\sqrt [3]{-1+x^6}} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{-x+x^3}}\\ &=-\frac {3 b \left (-x+x^3\right )^{2/3}}{4 x^2}+\frac {\left (3 a \sqrt [3]{x} \sqrt [3]{-1+x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [3]{-1+x^3}} \, dx,x,x^{2/3}\right )}{2 \sqrt [3]{-x+x^3}}\\ &=-\frac {3 b \left (-x+x^3\right )^{2/3}}{4 x^2}+\frac {\sqrt {3} a \sqrt [3]{x} \sqrt [3]{-1+x^2} \tan ^{-1}\left (\frac {1+\frac {2 x^{2/3}}{\sqrt [3]{-1+x^2}}}{\sqrt {3}}\right )}{2 \sqrt [3]{-x+x^3}}-\frac {3 a \sqrt [3]{x} \sqrt [3]{-1+x^2} \log \left (x^{2/3}-\sqrt [3]{-1+x^2}\right )}{4 \sqrt [3]{-x+x^3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 160, normalized size = 1.22 \begin {gather*} \frac {-2 a \sqrt [3]{x^2-1} x^{4/3} \log \left (1-\frac {x^{2/3}}{\sqrt [3]{x^2-1}}\right )+a \sqrt [3]{x^2-1} x^{4/3} \log \left (\frac {x^{4/3}}{\left (x^2-1\right )^{2/3}}+\frac {x^{2/3}}{\sqrt [3]{x^2-1}}+1\right )+2 \sqrt {3} a \sqrt [3]{x^2-1} x^{4/3} \tan ^{-1}\left (\frac {\frac {2 x^{2/3}}{\sqrt [3]{x^2-1}}+1}{\sqrt {3}}\right )-3 b x^2+3 b}{4 x \sqrt [3]{x \left (x^2-1\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.27, size = 110, normalized size = 0.84 \begin {gather*} -\frac {1}{2} a \log \left (\sqrt [3]{x^3-x}-x\right )+\frac {1}{2} \sqrt {3} a \tan ^{-1}\left (\frac {\sqrt {3} x}{2 \sqrt [3]{x^3-x}+x}\right )+\frac {1}{4} a \log \left (\sqrt [3]{x^3-x} x+\left (x^3-x\right )^{2/3}+x^2\right )-\frac {3 b \left (x^3-x\right )^{2/3}}{4 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.22, size = 112, normalized size = 0.85 \begin {gather*} \frac {2 \, \sqrt {3} a x^{2} \arctan \left (-\frac {44032959556 \, \sqrt {3} {\left (x^{3} - x\right )}^{\frac {1}{3}} x + \sqrt {3} {\left (16754327161 \, x^{2} - 2707204793\right )} - 10524305234 \, \sqrt {3} {\left (x^{3} - x\right )}^{\frac {2}{3}}}{81835897185 \, x^{2} - 1102302937}\right ) - a x^{2} \log \left (-3 \, {\left (x^{3} - x\right )}^{\frac {1}{3}} x + 3 \, {\left (x^{3} - x\right )}^{\frac {2}{3}} + 1\right ) - 3 \, {\left (x^{3} - x\right )}^{\frac {2}{3}} b}{4 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.24, size = 78, normalized size = 0.60 \begin {gather*} -\frac {1}{2} \, \sqrt {3} a \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, {\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {1}{3}} + 1\right )}\right ) + \frac {1}{4} \, a \log \left ({\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {2}{3}} + {\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {1}{3}} + 1\right ) - \frac {1}{2} \, a \log \left ({\left | {\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {1}{3}} - 1 \right |}\right ) - \frac {3}{4} \, b {\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {2}{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.32, size = 55, normalized size = 0.42 \begin {gather*} -\frac {3 b \left (x^{2}-1\right )}{4 x \left (x \left (x^{2}-1\right )\right )^{\frac {1}{3}}}+\frac {3 a \left (-\mathrm {signum}\left (x^{2}-1\right )\right )^{\frac {1}{3}} x^{\frac {2}{3}} \hypergeom \left (\left [\frac {1}{3}, \frac {1}{3}\right ], \left [\frac {4}{3}\right ], x^{2}\right )}{2 \mathrm {signum}\left (x^{2}-1\right )^{\frac {1}{3}}} \end {gather*}
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 {a x^{2} - b}{{\left (x^{3} - x\right )}^{\frac {1}{3}} x^{2}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.25, size = 46, normalized size = 0.35 \begin {gather*} \frac {3\,a\,x\,{\left (1-x^2\right )}^{1/3}\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{3},\frac {1}{3};\ \frac {4}{3};\ x^2\right )}{2\,{\left (x^3-x\right )}^{1/3}}-\frac {3\,b\,{\left (x^3-x\right )}^{2/3}}{4\,x^2} \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 {a x^{2} - b}{x^{2} \sqrt [3]{x \left (x - 1\right ) \left (x + 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________