Optimal. Leaf size=189 \[ \frac {\sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} a x}{a x+2 \sqrt [3]{-b x^2+a^3 x^3}}\right )}{a}-\frac {\log \left (-a x+\sqrt [3]{-b x^2+a^3 x^3}\right )}{a}+\frac {\log \left (a^2 x^2+a x \sqrt [3]{-b x^2+a^3 x^3}+\left (-b x^2+a^3 x^3\right )^{2/3}\right )}{2 a}+\text {RootSum}\left [a^6+a^3 b-2 a^3 \text {$\#$1}^3+\text {$\#$1}^6\& ,\frac {-\log (x)+\log \left (\sqrt [3]{-b x^2+a^3 x^3}-x \text {$\#$1}\right )}{\text {$\#$1}}\& \right ] \]
[Out]
________________________________________________________________________________________
Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(821\) vs. \(2(189)=378\).
time = 0.75, antiderivative size = 821, normalized size of antiderivative = 4.34, number of steps
used = 8, number of rules used = 5, integrand size = 41, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.122, Rules used = {2081, 6857, 61,
926, 93} \begin {gather*} -\frac {\sqrt {3} x^{2/3} \sqrt [3]{a^3 x-b} \text {ArcTan}\left (\frac {2 \sqrt [3]{a^3 x-b}}{\sqrt {3} a \sqrt [3]{x}}+\frac {1}{\sqrt {3}}\right )}{a \sqrt [3]{a^3 x^3-b x^2}}+\frac {\sqrt {3} x^{2/3} \sqrt [3]{a^3 x-b} \text {ArcTan}\left (\frac {2 \sqrt [3]{a^3 x-b}}{\sqrt {3} \sqrt [3]{a^3-\sqrt {-a^3} \sqrt {b}} \sqrt [3]{x}}+\frac {1}{\sqrt {3}}\right )}{\sqrt [3]{a^3-\sqrt {-a^3} \sqrt {b}} \sqrt [3]{a^3 x^3-b x^2}}+\frac {\sqrt {3} x^{2/3} \sqrt [3]{a^3 x-b} \text {ArcTan}\left (\frac {2 \sqrt [3]{a^3 x-b}}{\sqrt {3} \sqrt [3]{a^3+\sqrt {-a^3} \sqrt {b}} \sqrt [3]{x}}+\frac {1}{\sqrt {3}}\right )}{\sqrt [3]{a^3+\sqrt {-a^3} \sqrt {b}} \sqrt [3]{a^3 x^3-b x^2}}-\frac {x^{2/3} \sqrt [3]{a^3 x-b} \log (x)}{2 a \sqrt [3]{a^3 x^3-b x^2}}-\frac {x^{2/3} \sqrt [3]{a^3 x-b} \log \left (\sqrt {b}-\sqrt {-a^3} x\right )}{2 \sqrt [3]{a^3-\sqrt {-a^3} \sqrt {b}} \sqrt [3]{a^3 x^3-b x^2}}-\frac {x^{2/3} \sqrt [3]{a^3 x-b} \log \left (\sqrt {-a^3} x+\sqrt {b}\right )}{2 \sqrt [3]{a^3+\sqrt {-a^3} \sqrt {b}} \sqrt [3]{a^3 x^3-b x^2}}+\frac {3 x^{2/3} \sqrt [3]{a^3 x-b} \log \left (\frac {\sqrt [3]{a^3 x-b}}{\sqrt [3]{a^3-\sqrt {-a^3} \sqrt {b}}}-\sqrt [3]{x}\right )}{2 \sqrt [3]{a^3-\sqrt {-a^3} \sqrt {b}} \sqrt [3]{a^3 x^3-b x^2}}+\frac {3 x^{2/3} \sqrt [3]{a^3 x-b} \log \left (\frac {\sqrt [3]{a^3 x-b}}{\sqrt [3]{a^3+\sqrt {-a^3} \sqrt {b}}}-\sqrt [3]{x}\right )}{2 \sqrt [3]{a^3+\sqrt {-a^3} \sqrt {b}} \sqrt [3]{a^3 x^3-b x^2}}-\frac {3 x^{2/3} \sqrt [3]{a^3 x-b} \log \left (\frac {\sqrt [3]{a^3 x-b}}{a \sqrt [3]{x}}-1\right )}{2 a \sqrt [3]{a^3 x^3-b x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 61
Rule 93
Rule 926
Rule 2081
Rule 6857
Rubi steps
\begin {align*} \int \frac {-b+a^3 x^2}{\left (b+a^3 x^2\right ) \sqrt [3]{-b x^2+a^3 x^3}} \, dx &=\frac {\left (x^{2/3} \sqrt [3]{-b+a^3 x}\right ) \int \frac {-b+a^3 x^2}{x^{2/3} \sqrt [3]{-b+a^3 x} \left (b+a^3 x^2\right )} \, dx}{\sqrt [3]{-b x^2+a^3 x^3}}\\ &=\frac {\left (x^{2/3} \sqrt [3]{-b+a^3 x}\right ) \int \left (\frac {1}{x^{2/3} \sqrt [3]{-b+a^3 x}}-\frac {2 b}{x^{2/3} \sqrt [3]{-b+a^3 x} \left (b+a^3 x^2\right )}\right ) \, dx}{\sqrt [3]{-b x^2+a^3 x^3}}\\ &=\frac {\left (x^{2/3} \sqrt [3]{-b+a^3 x}\right ) \int \frac {1}{x^{2/3} \sqrt [3]{-b+a^3 x}} \, dx}{\sqrt [3]{-b x^2+a^3 x^3}}-\frac {\left (2 b x^{2/3} \sqrt [3]{-b+a^3 x}\right ) \int \frac {1}{x^{2/3} \sqrt [3]{-b+a^3 x} \left (b+a^3 x^2\right )} \, dx}{\sqrt [3]{-b x^2+a^3 x^3}}\\ &=-\frac {\sqrt {3} x^{2/3} \sqrt [3]{-b+a^3 x} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{-b+a^3 x}}{\sqrt {3} a \sqrt [3]{x}}\right )}{a \sqrt [3]{-b x^2+a^3 x^3}}-\frac {x^{2/3} \sqrt [3]{-b+a^3 x} \log (x)}{2 a \sqrt [3]{-b x^2+a^3 x^3}}-\frac {3 x^{2/3} \sqrt [3]{-b+a^3 x} \log \left (-1+\frac {\sqrt [3]{-b+a^3 x}}{a \sqrt [3]{x}}\right )}{2 a \sqrt [3]{-b x^2+a^3 x^3}}-\frac {\left (2 b x^{2/3} \sqrt [3]{-b+a^3 x}\right ) \int \left (\frac {1}{2 \sqrt {b} x^{2/3} \sqrt [3]{-b+a^3 x} \left (\sqrt {b}-\sqrt {-a^3} x\right )}+\frac {1}{2 \sqrt {b} x^{2/3} \sqrt [3]{-b+a^3 x} \left (\sqrt {b}+\sqrt {-a^3} x\right )}\right ) \, dx}{\sqrt [3]{-b x^2+a^3 x^3}}\\ &=-\frac {\sqrt {3} x^{2/3} \sqrt [3]{-b+a^3 x} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{-b+a^3 x}}{\sqrt {3} a \sqrt [3]{x}}\right )}{a \sqrt [3]{-b x^2+a^3 x^3}}-\frac {x^{2/3} \sqrt [3]{-b+a^3 x} \log (x)}{2 a \sqrt [3]{-b x^2+a^3 x^3}}-\frac {3 x^{2/3} \sqrt [3]{-b+a^3 x} \log \left (-1+\frac {\sqrt [3]{-b+a^3 x}}{a \sqrt [3]{x}}\right )}{2 a \sqrt [3]{-b x^2+a^3 x^3}}-\frac {\left (\sqrt {b} x^{2/3} \sqrt [3]{-b+a^3 x}\right ) \int \frac {1}{x^{2/3} \sqrt [3]{-b+a^3 x} \left (\sqrt {b}-\sqrt {-a^3} x\right )} \, dx}{\sqrt [3]{-b x^2+a^3 x^3}}-\frac {\left (\sqrt {b} x^{2/3} \sqrt [3]{-b+a^3 x}\right ) \int \frac {1}{x^{2/3} \sqrt [3]{-b+a^3 x} \left (\sqrt {b}+\sqrt {-a^3} x\right )} \, dx}{\sqrt [3]{-b x^2+a^3 x^3}}\\ &=-\frac {\sqrt {3} x^{2/3} \sqrt [3]{-b+a^3 x} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{-b+a^3 x}}{\sqrt {3} a \sqrt [3]{x}}\right )}{a \sqrt [3]{-b x^2+a^3 x^3}}+\frac {\sqrt {3} x^{2/3} \sqrt [3]{-b+a^3 x} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{-b+a^3 x}}{\sqrt {3} \sqrt [3]{a^3-\sqrt {-a^3} \sqrt {b}} \sqrt [3]{x}}\right )}{\sqrt [3]{a^3-\sqrt {-a^3} \sqrt {b}} \sqrt [3]{-b x^2+a^3 x^3}}+\frac {\sqrt {3} x^{2/3} \sqrt [3]{-b+a^3 x} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{-b+a^3 x}}{\sqrt {3} \sqrt [3]{a^3+\sqrt {-a^3} \sqrt {b}} \sqrt [3]{x}}\right )}{\sqrt [3]{a^3+\sqrt {-a^3} \sqrt {b}} \sqrt [3]{-b x^2+a^3 x^3}}-\frac {x^{2/3} \sqrt [3]{-b+a^3 x} \log (x)}{2 a \sqrt [3]{-b x^2+a^3 x^3}}-\frac {x^{2/3} \sqrt [3]{-b+a^3 x} \log \left (\sqrt {b}-\sqrt {-a^3} x\right )}{2 \sqrt [3]{a^3-\sqrt {-a^3} \sqrt {b}} \sqrt [3]{-b x^2+a^3 x^3}}-\frac {x^{2/3} \sqrt [3]{-b+a^3 x} \log \left (\sqrt {b}+\sqrt {-a^3} x\right )}{2 \sqrt [3]{a^3+\sqrt {-a^3} \sqrt {b}} \sqrt [3]{-b x^2+a^3 x^3}}+\frac {3 x^{2/3} \sqrt [3]{-b+a^3 x} \log \left (-\sqrt [3]{x}+\frac {\sqrt [3]{-b+a^3 x}}{\sqrt [3]{a^3-\sqrt {-a^3} \sqrt {b}}}\right )}{2 \sqrt [3]{a^3-\sqrt {-a^3} \sqrt {b}} \sqrt [3]{-b x^2+a^3 x^3}}+\frac {3 x^{2/3} \sqrt [3]{-b+a^3 x} \log \left (-\sqrt [3]{x}+\frac {\sqrt [3]{-b+a^3 x}}{\sqrt [3]{a^3+\sqrt {-a^3} \sqrt {b}}}\right )}{2 \sqrt [3]{a^3+\sqrt {-a^3} \sqrt {b}} \sqrt [3]{-b x^2+a^3 x^3}}-\frac {3 x^{2/3} \sqrt [3]{-b+a^3 x} \log \left (-1+\frac {\sqrt [3]{-b+a^3 x}}{a \sqrt [3]{x}}\right )}{2 a \sqrt [3]{-b x^2+a^3 x^3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.47, size = 226, normalized size = 1.20 \begin {gather*} \frac {x^{2/3} \sqrt [3]{-b+a^3 x} \left (2 \sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} a \sqrt [3]{x}}{a \sqrt [3]{x}+2 \sqrt [3]{-b+a^3 x}}\right )-2 \log \left (a \left (a \sqrt [3]{x}-\sqrt [3]{-b+a^3 x}\right )\right )+\log \left (a^2 x^{2/3}+a \sqrt [3]{x} \sqrt [3]{-b+a^3 x}+\left (-b+a^3 x\right )^{2/3}\right )+2 a \text {RootSum}\left [a^6+a^3 b-2 a^3 \text {$\#$1}^3+\text {$\#$1}^6\&,\frac {-\log \left (\sqrt [3]{x}\right )+\log \left (\sqrt [3]{-b+a^3 x}-\sqrt [3]{x} \text {$\#$1}\right )}{\text {$\#$1}}\&\right ]\right )}{2 a \sqrt [3]{x^2 \left (-b+a^3 x\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int \frac {a^{3} x^{2}-b}{\left (a^{3} x^{2}+b \right ) \left (a^{3} x^{3}-b \,x^{2}\right )^{\frac {1}{3}}}\, dx\]
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*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 3 vs. order
1.
time = 0.44, size = 1727, normalized size = 9.14 \begin {gather*} \text {Too large to display} \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^{3} x^{2} - b}{\sqrt [3]{x^{2} \left (a^{3} x - b\right )} \left (a^{3} x^{2} + b\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \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 {b-a^3\,x^2}{\left (a^3\,x^2+b\right )\,{\left (a^3\,x^3-b\,x^2\right )}^{1/3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________