Optimal. Leaf size=147 \[ -\frac{c^2 \log \left (\sqrt [3]{a+b x^3}-\sqrt [3]{b} x\right )}{2 \sqrt [3]{b}}+\frac{c^2 \tan ^{-1}\left (\frac{\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a+b x^3}}+1}{\sqrt{3}}\right )}{\sqrt{3} \sqrt [3]{b}}+\frac{c d x^2 \sqrt [3]{\frac{b x^3}{a}+1} \, _2F_1\left (\frac{1}{3},\frac{2}{3};\frac{5}{3};-\frac{b x^3}{a}\right )}{\sqrt [3]{a+b x^3}}+\frac{d^2 \left (a+b x^3\right )^{2/3}}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.101936, antiderivative size = 147, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.316, Rules used = {1886, 261, 1893, 239, 365, 364} \[ -\frac{c^2 \log \left (\sqrt [3]{a+b x^3}-\sqrt [3]{b} x\right )}{2 \sqrt [3]{b}}+\frac{c^2 \tan ^{-1}\left (\frac{\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a+b x^3}}+1}{\sqrt{3}}\right )}{\sqrt{3} \sqrt [3]{b}}+\frac{c d x^2 \sqrt [3]{\frac{b x^3}{a}+1} \, _2F_1\left (\frac{1}{3},\frac{2}{3};\frac{5}{3};-\frac{b x^3}{a}\right )}{\sqrt [3]{a+b x^3}}+\frac{d^2 \left (a+b x^3\right )^{2/3}}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1886
Rule 261
Rule 1893
Rule 239
Rule 365
Rule 364
Rubi steps
\begin{align*} \int \frac{(c+d x)^2}{\sqrt [3]{a+b x^3}} \, dx &=d^2 \int \frac{x^2}{\sqrt [3]{a+b x^3}} \, dx+\int \frac{c^2+2 c d x}{\sqrt [3]{a+b x^3}} \, dx\\ &=\frac{d^2 \left (a+b x^3\right )^{2/3}}{2 b}+\int \left (\frac{c^2}{\sqrt [3]{a+b x^3}}+\frac{2 c d x}{\sqrt [3]{a+b x^3}}\right ) \, dx\\ &=\frac{d^2 \left (a+b x^3\right )^{2/3}}{2 b}+c^2 \int \frac{1}{\sqrt [3]{a+b x^3}} \, dx+(2 c d) \int \frac{x}{\sqrt [3]{a+b x^3}} \, dx\\ &=\frac{d^2 \left (a+b x^3\right )^{2/3}}{2 b}+\frac{c^2 \tan ^{-1}\left (\frac{1+\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a+b x^3}}}{\sqrt{3}}\right )}{\sqrt{3} \sqrt [3]{b}}-\frac{c^2 \log \left (-\sqrt [3]{b} x+\sqrt [3]{a+b x^3}\right )}{2 \sqrt [3]{b}}+\frac{\left (2 c d \sqrt [3]{1+\frac{b x^3}{a}}\right ) \int \frac{x}{\sqrt [3]{1+\frac{b x^3}{a}}} \, dx}{\sqrt [3]{a+b x^3}}\\ &=\frac{d^2 \left (a+b x^3\right )^{2/3}}{2 b}+\frac{c^2 \tan ^{-1}\left (\frac{1+\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a+b x^3}}}{\sqrt{3}}\right )}{\sqrt{3} \sqrt [3]{b}}+\frac{c d x^2 \sqrt [3]{1+\frac{b x^3}{a}} \, _2F_1\left (\frac{1}{3},\frac{2}{3};\frac{5}{3};-\frac{b x^3}{a}\right )}{\sqrt [3]{a+b x^3}}-\frac{c^2 \log \left (-\sqrt [3]{b} x+\sqrt [3]{a+b x^3}\right )}{2 \sqrt [3]{b}}\\ \end{align*}
Mathematica [A] time = 0.165305, size = 201, normalized size = 1.37 \[ \frac{c^2 \log \left (\frac{b^{2/3} x^2}{\left (a+b x^3\right )^{2/3}}+\frac{\sqrt [3]{b} x}{\sqrt [3]{a+b x^3}}+1\right )}{6 \sqrt [3]{b}}-\frac{c^2 \log \left (1-\frac{\sqrt [3]{b} x}{\sqrt [3]{a+b x^3}}\right )}{3 \sqrt [3]{b}}+\frac{c^2 \tan ^{-1}\left (\frac{\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a+b x^3}}+1}{\sqrt{3}}\right )}{\sqrt{3} \sqrt [3]{b}}+\frac{c d x^2 \sqrt [3]{\frac{b x^3}{a}+1} \, _2F_1\left (\frac{1}{3},\frac{2}{3};\frac{5}{3};-\frac{b x^3}{a}\right )}{\sqrt [3]{a+b x^3}}+\frac{d^2 \left (a+b x^3\right )^{2/3}}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.026, size = 0, normalized size = 0. \begin{align*} \int{ \left ( dx+c \right ) ^{2}{\frac{1}{\sqrt [3]{b{x}^{3}+a}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.60015, size = 110, normalized size = 0.75 \begin{align*} d^{2} \left (\begin{cases} \frac{x^{3}}{3 \sqrt [3]{a}} & \text{for}\: b = 0 \\\frac{\left (a + b x^{3}\right )^{\frac{2}{3}}}{2 b} & \text{otherwise} \end{cases}\right ) + \frac{c^{2} 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{b x^{3} e^{i \pi }}{a}} \right )}}{3 \sqrt [3]{a} \Gamma \left (\frac{4}{3}\right )} + \frac{2 c d x^{2} \Gamma \left (\frac{2}{3}\right ){{}_{2}F_{1}\left (\begin{matrix} \frac{1}{3}, \frac{2}{3} \\ \frac{5}{3} \end{matrix}\middle |{\frac{b x^{3} e^{i \pi }}{a}} \right )}}{3 \sqrt [3]{a} \Gamma \left (\frac{5}{3}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (d x + c\right )}^{2}}{{\left (b x^{3} + a\right )}^{\frac{1}{3}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]