Optimal. Leaf size=253 \[ -\frac{(e+f x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac{\sqrt [3]{b} (e+f x)}{\sqrt [3]{b} e-\sqrt [3]{a} f}\right )}{3 b^{2/3} (n+1) \left (\sqrt [3]{b} e-\sqrt [3]{a} f\right )}-\frac{(e+f x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac{\sqrt [3]{b} (e+f x)}{\sqrt [3]{b} e+\sqrt [3]{-1} \sqrt [3]{a} f}\right )}{3 b^{2/3} (n+1) \left (\sqrt [3]{-1} \sqrt [3]{a} f+\sqrt [3]{b} e\right )}-\frac{(e+f x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac{\sqrt [3]{b} (e+f x)}{\sqrt [3]{b} e-(-1)^{2/3} \sqrt [3]{a} f}\right )}{3 b^{2/3} (n+1) \left (\sqrt [3]{b} e-(-1)^{2/3} \sqrt [3]{a} f\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.278007, antiderivative size = 253, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 2, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1, Rules used = {6725, 68} \[ -\frac{(e+f x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac{\sqrt [3]{b} (e+f x)}{\sqrt [3]{b} e-\sqrt [3]{a} f}\right )}{3 b^{2/3} (n+1) \left (\sqrt [3]{b} e-\sqrt [3]{a} f\right )}-\frac{(e+f x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac{\sqrt [3]{b} (e+f x)}{\sqrt [3]{b} e+\sqrt [3]{-1} \sqrt [3]{a} f}\right )}{3 b^{2/3} (n+1) \left (\sqrt [3]{-1} \sqrt [3]{a} f+\sqrt [3]{b} e\right )}-\frac{(e+f x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac{\sqrt [3]{b} (e+f x)}{\sqrt [3]{b} e-(-1)^{2/3} \sqrt [3]{a} f}\right )}{3 b^{2/3} (n+1) \left (\sqrt [3]{b} e-(-1)^{2/3} \sqrt [3]{a} f\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6725
Rule 68
Rubi steps
\begin{align*} \int \frac{x^2 (e+f x)^n}{a+b x^3} \, dx &=\int \left (\frac{(e+f x)^n}{3 b^{2/3} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}+\frac{(e+f x)^n}{3 b^{2/3} \left (-\sqrt [3]{-1} \sqrt [3]{a}+\sqrt [3]{b} x\right )}+\frac{(e+f x)^n}{3 b^{2/3} \left ((-1)^{2/3} \sqrt [3]{a}+\sqrt [3]{b} x\right )}\right ) \, dx\\ &=\frac{\int \frac{(e+f x)^n}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx}{3 b^{2/3}}+\frac{\int \frac{(e+f x)^n}{-\sqrt [3]{-1} \sqrt [3]{a}+\sqrt [3]{b} x} \, dx}{3 b^{2/3}}+\frac{\int \frac{(e+f x)^n}{(-1)^{2/3} \sqrt [3]{a}+\sqrt [3]{b} x} \, dx}{3 b^{2/3}}\\ &=-\frac{(e+f x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac{\sqrt [3]{b} (e+f x)}{\sqrt [3]{b} e-\sqrt [3]{a} f}\right )}{3 b^{2/3} \left (\sqrt [3]{b} e-\sqrt [3]{a} f\right ) (1+n)}-\frac{(e+f x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac{\sqrt [3]{b} (e+f x)}{\sqrt [3]{b} e+\sqrt [3]{-1} \sqrt [3]{a} f}\right )}{3 b^{2/3} \left (\sqrt [3]{b} e+\sqrt [3]{-1} \sqrt [3]{a} f\right ) (1+n)}-\frac{(e+f x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac{\sqrt [3]{b} (e+f x)}{\sqrt [3]{b} e-(-1)^{2/3} \sqrt [3]{a} f}\right )}{3 b^{2/3} \left (\sqrt [3]{b} e-(-1)^{2/3} \sqrt [3]{a} f\right ) (1+n)}\\ \end{align*}
Mathematica [A] time = 0.149467, size = 213, normalized size = 0.84 \[ \frac{(e+f x)^{n+1} \left (-\frac{\, _2F_1\left (1,n+1;n+2;\frac{\sqrt [3]{b} (e+f x)}{\sqrt [3]{b} e-\sqrt [3]{a} f}\right )}{\sqrt [3]{b} e-\sqrt [3]{a} f}-\frac{\, _2F_1\left (1,n+1;n+2;\frac{\sqrt [3]{b} (e+f x)}{\sqrt [3]{b} e+\sqrt [3]{-1} \sqrt [3]{a} f}\right )}{\sqrt [3]{-1} \sqrt [3]{a} f+\sqrt [3]{b} e}-\frac{\, _2F_1\left (1,n+1;n+2;\frac{\sqrt [3]{b} (e+f x)}{\sqrt [3]{b} e-(-1)^{2/3} \sqrt [3]{a} f}\right )}{\sqrt [3]{b} e-(-1)^{2/3} \sqrt [3]{a} f}\right )}{3 b^{2/3} (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.046, size = 0, normalized size = 0. \begin{align*} \int{\frac{{x}^{2} \left ( fx+e \right ) ^{n}}{b{x}^{3}+a}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (f x + e\right )}^{n} x^{2}}{b x^{3} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (f x + e\right )}^{n} x^{2}}{b x^{3} + a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [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]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (f x + e\right )}^{n} x^{2}}{b x^{3} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]