Optimal. Leaf size=138 \[ -\log \left (\sqrt [3]{a^3 x^3+b^3}-a x-b\right )-\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \sqrt [3]{a^3 x^3+b^3}}{\sqrt [3]{a^3 x^3+b^3}+2 a x+2 b}\right )+\frac {1}{2} \log \left (\left (a^3 x^3+b^3\right )^{2/3}+(a x+b) \sqrt [3]{a^3 x^3+b^3}+a^2 x^2+2 a b x+b^2\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.15, antiderivative size = 126, normalized size of antiderivative = 0.91, number of steps used = 8, number of rules used = 7, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.269, Rules used = {1844, 239, 266, 55, 617, 204, 31} \begin {gather*} -\frac {1}{2} \log \left (b-\sqrt [3]{a^3 x^3+b^3}\right )-\frac {1}{2} \log \left (\sqrt [3]{a^3 x^3+b^3}-a x\right )+\frac {\tan ^{-1}\left (\frac {\frac {2 a x}{\sqrt [3]{a^3 x^3+b^3}}+1}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {\tan ^{-1}\left (\frac {2 \sqrt [3]{a^3 x^3+b^3}+b}{\sqrt {3} b}\right )}{\sqrt {3}}+\frac {\log (x)}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 55
Rule 204
Rule 239
Rule 266
Rule 617
Rule 1844
Rubi steps
\begin {align*} \int \frac {-b+a x}{x \sqrt [3]{b^3+a^3 x^3}} \, dx &=\int \left (\frac {a}{\sqrt [3]{b^3+a^3 x^3}}-\frac {b}{x \sqrt [3]{b^3+a^3 x^3}}\right ) \, dx\\ &=a \int \frac {1}{\sqrt [3]{b^3+a^3 x^3}} \, dx-b \int \frac {1}{x \sqrt [3]{b^3+a^3 x^3}} \, dx\\ &=\frac {\tan ^{-1}\left (\frac {1+\frac {2 a x}{\sqrt [3]{b^3+a^3 x^3}}}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {1}{2} \log \left (-a x+\sqrt [3]{b^3+a^3 x^3}\right )-\frac {1}{3} b \operatorname {Subst}\left (\int \frac {1}{x \sqrt [3]{b^3+a^3 x}} \, dx,x,x^3\right )\\ &=\frac {\tan ^{-1}\left (\frac {1+\frac {2 a x}{\sqrt [3]{b^3+a^3 x^3}}}{\sqrt {3}}\right )}{\sqrt {3}}+\frac {\log (x)}{2}-\frac {1}{2} \log \left (-a x+\sqrt [3]{b^3+a^3 x^3}\right )+\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{b-x} \, dx,x,\sqrt [3]{b^3+a^3 x^3}\right )-\frac {1}{2} b \operatorname {Subst}\left (\int \frac {1}{b^2+b x+x^2} \, dx,x,\sqrt [3]{b^3+a^3 x^3}\right )\\ &=\frac {\tan ^{-1}\left (\frac {1+\frac {2 a x}{\sqrt [3]{b^3+a^3 x^3}}}{\sqrt {3}}\right )}{\sqrt {3}}+\frac {\log (x)}{2}-\frac {1}{2} \log \left (b-\sqrt [3]{b^3+a^3 x^3}\right )-\frac {1}{2} \log \left (-a x+\sqrt [3]{b^3+a^3 x^3}\right )+\operatorname {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+\frac {2 \sqrt [3]{b^3+a^3 x^3}}{b}\right )\\ &=\frac {\tan ^{-1}\left (\frac {1+\frac {2 a x}{\sqrt [3]{b^3+a^3 x^3}}}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {\tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{b^3+a^3 x^3}}{b}}{\sqrt {3}}\right )}{\sqrt {3}}+\frac {\log (x)}{2}-\frac {1}{2} \log \left (b-\sqrt [3]{b^3+a^3 x^3}\right )-\frac {1}{2} \log \left (-a x+\sqrt [3]{b^3+a^3 x^3}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 169, normalized size = 1.22 \begin {gather*} \frac {1}{6} \left (-2 \log \left (1-\frac {a x}{\sqrt [3]{a^3 x^3+b^3}}\right )-3 \log \left (b-\sqrt [3]{a^3 x^3+b^3}\right )+2 \sqrt {3} \tan ^{-1}\left (\frac {\frac {2 a x}{\sqrt [3]{a^3 x^3+b^3}}+1}{\sqrt {3}}\right )-2 \sqrt {3} \tan ^{-1}\left (\frac {2 \sqrt [3]{a^3 x^3+b^3}+b}{\sqrt {3} b}\right )+\log \left (\frac {a x}{\sqrt [3]{a^3 x^3+b^3}}+\frac {a^2 x^2}{\left (a^3 x^3+b^3\right )^{2/3}}+1\right )+3 \log (x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.62, size = 138, normalized size = 1.00 \begin {gather*} -\log \left (\sqrt [3]{a^3 x^3+b^3}-a x-b\right )-\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \sqrt [3]{a^3 x^3+b^3}}{\sqrt [3]{a^3 x^3+b^3}+2 a x+2 b}\right )+\frac {1}{2} \log \left (\left (a^3 x^3+b^3\right )^{2/3}+(a x+b) \sqrt [3]{a^3 x^3+b^3}+a^2 x^2+2 a b x+b^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \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*} \int \frac {a x - b}{{\left (a^{3} x^{3} + b^{3}\right )}^{\frac {1}{3}} x}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.35, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a x -b}{x \left (a^{3} x^{3}+b^{3}\right )^{\frac {1}{3}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.41, size = 213, normalized size = 1.54 \begin {gather*} -\frac {1}{6} \, a {\left (\frac {2 \, \sqrt {3} \arctan \left (\frac {\sqrt {3} {\left (a + \frac {2 \, {\left (a^{3} x^{3} + b^{3}\right )}^{\frac {1}{3}}}{x}\right )}}{3 \, a}\right )}{a} - \frac {\log \left (a^{2} + \frac {{\left (a^{3} x^{3} + b^{3}\right )}^{\frac {1}{3}} a}{x} + \frac {{\left (a^{3} x^{3} + b^{3}\right )}^{\frac {2}{3}}}{x^{2}}\right )}{a} + \frac {2 \, \log \left (-a + \frac {{\left (a^{3} x^{3} + b^{3}\right )}^{\frac {1}{3}}}{x}\right )}{a}\right )} - \frac {1}{6} \, b {\left (\frac {2 \, \sqrt {3} \arctan \left (\frac {\sqrt {3} {\left (b + 2 \, {\left (a^{3} x^{3} + b^{3}\right )}^{\frac {1}{3}}\right )}}{3 \, b}\right )}{b} - \frac {\log \left (b^{2} + {\left (a^{3} x^{3} + b^{3}\right )}^{\frac {1}{3}} b + {\left (a^{3} x^{3} + b^{3}\right )}^{\frac {2}{3}}\right )}{b} + \frac {2 \, \log \left (-b + {\left (a^{3} x^{3} + b^{3}\right )}^{\frac {1}{3}}\right )}{b}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.35, size = 160, normalized size = 1.16 \begin {gather*} \frac {a\,x\,{\left (\frac {a^3\,x^3}{b^3}+1\right )}^{1/3}\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{3},\frac {1}{3};\ \frac {4}{3};\ -\frac {a^3\,x^3}{b^3}\right )}{{\left (a^3\,x^3+b^3\right )}^{1/3}}-\ln \left (b^2\,{\left (a^3\,x^3+b^3\right )}^{1/3}-9\,b^3\,{\left (-\frac {1}{6}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6}\right )}^2\right )\,\left (-\frac {1}{6}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6}\right )+\ln \left (b^2\,{\left (a^3\,x^3+b^3\right )}^{1/3}-9\,b^3\,{\left (\frac {1}{6}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6}\right )}^2\right )\,\left (\frac {1}{6}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6}\right )-\frac {\ln \left (b^2\,{\left (a^3\,x^3+b^3\right )}^{1/3}-b^3\right )}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [C] time = 4.31, size = 76, normalized size = 0.55 \begin {gather*} \frac {a x \Gamma \left (\frac {1}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{3}, \frac {1}{3} \\ \frac {4}{3} \end {matrix}\middle | {\frac {a^{3} x^{3} e^{i \pi }}{b^{3}}} \right )}}{3 b \Gamma \left (\frac {4}{3}\right )} + \frac {b \Gamma \left (\frac {1}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{3}, \frac {1}{3} \\ \frac {4}{3} \end {matrix}\middle | {\frac {b^{3} e^{i \pi }}{a^{3} x^{3}}} \right )}}{3 a x \Gamma \left (\frac {4}{3}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________