Optimal. Leaf size=209 \[ \frac {3 \left (x+(-1-k) x^2+k x^3\right )^{2/3}}{2 x^2}+\frac {\left (-\sqrt {3} a-\sqrt {3} b\right ) \text {ArcTan}\left (\frac {\sqrt {3} \sqrt [3]{b} x}{\sqrt [3]{b} x+2 \sqrt [3]{x+(-1-k) x^2+k x^3}}\right )}{\sqrt [3]{b}}+\frac {(a+b) \log \left (-\sqrt [3]{b} x+\sqrt [3]{x+(-1-k) x^2+k x^3}\right )}{\sqrt [3]{b}}+\frac {(-a-b) \log \left (b^{2/3} x^2+\sqrt [3]{b} x \sqrt [3]{x+(-1-k) x^2+k x^3}+\left (x+(-1-k) x^2+k x^3\right )^{2/3}\right )}{2 \sqrt [3]{b}} \]
[Out]
________________________________________________________________________________________
Rubi [F]
time = 16.16, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps
used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {}
\begin {gather*} \int \frac {(-2+(1+k) x) \left (1-(1+k) x+(a+k) x^2\right )}{x^2 \sqrt [3]{(1-x) x (1-k x)} \left (1-(1+k) x+(-b+k) x^2\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {(-2+(1+k) x) \left (1-(1+k) x+(a+k) x^2\right )}{x^2 \sqrt [3]{(1-x) x (1-k x)} \left (1-(1+k) x+(-b+k) x^2\right )} \, dx &=\frac {\left (\sqrt [3]{1-x} \sqrt [3]{x} \sqrt [3]{1-k x}\right ) \int \frac {(-2+(1+k) x) \left (1-(1+k) x+(a+k) x^2\right )}{\sqrt [3]{1-x} x^{7/3} \sqrt [3]{1-k x} \left (1-(1+k) x+(-b+k) x^2\right )} \, dx}{\sqrt [3]{(1-x) x (1-k x)}}\\ &=\frac {\left (\sqrt [3]{1-x} \sqrt [3]{x} \sqrt [3]{1-k x}\right ) \int \left (-\frac {2 k^2-a \left (1+2 b+k^2\right )-b \left (1+4 k+k^2\right )}{(b-k)^2 \sqrt [3]{1-x} x^{7/3} \sqrt [3]{1-k x}}-\frac {(1+k) (a+k)}{(b-k) \sqrt [3]{1-x} x^{4/3} \sqrt [3]{1-k x}}-\frac {(a+b) \left (1+2 b+k^2\right )-(a+b) (1+k) \left (1+3 b-k+k^2\right ) x}{(b-k)^2 \sqrt [3]{1-x} x^{7/3} \sqrt [3]{1-k x} \left (1+(-1-k) x+(-b+k) x^2\right )}\right ) \, dx}{\sqrt [3]{(1-x) x (1-k x)}}\\ &=-\frac {\left (\sqrt [3]{1-x} \sqrt [3]{x} \sqrt [3]{1-k x}\right ) \int \frac {(a+b) \left (1+2 b+k^2\right )-(a+b) (1+k) \left (1+3 b-k+k^2\right ) x}{\sqrt [3]{1-x} x^{7/3} \sqrt [3]{1-k x} \left (1+(-1-k) x+(-b+k) x^2\right )} \, dx}{(b-k)^2 \sqrt [3]{(1-x) x (1-k x)}}-\frac {\left ((1+k) (a+k) \sqrt [3]{1-x} \sqrt [3]{x} \sqrt [3]{1-k x}\right ) \int \frac {1}{\sqrt [3]{1-x} x^{4/3} \sqrt [3]{1-k x}} \, dx}{(b-k) \sqrt [3]{(1-x) x (1-k x)}}-\frac {\left (\left (2 k^2-a \left (1+2 b+k^2\right )-b \left (1+4 k+k^2\right )\right ) \sqrt [3]{1-x} \sqrt [3]{x} \sqrt [3]{1-k x}\right ) \int \frac {1}{\sqrt [3]{1-x} x^{7/3} \sqrt [3]{1-k x}} \, dx}{(b-k)^2 \sqrt [3]{(1-x) x (1-k x)}}\\ &=\frac {3 \left (2 k^2-a \left (1+2 b+k^2\right )-b \left (1+4 k+k^2\right )\right ) (1-x) (1-k x)}{4 (b-k)^2 x \sqrt [3]{(1-x) x (1-k x)}}+\frac {3 (1+k) (a+k) (1-x) \left (\frac {(1-k) x}{1-k x}\right )^{4/3} (1-k x) \, _2F_1\left (\frac {2}{3},\frac {4}{3};\frac {5}{3};\frac {1-x}{1-k x}\right )}{2 (1-k) (b-k) x \sqrt [3]{(1-x) x (1-k x)}}-\frac {\left (\sqrt [3]{1-x} \sqrt [3]{x} \sqrt [3]{1-k x}\right ) \int \left (\frac {-\left ((a+b) (1+k) \left (1+3 b-k+k^2\right )\right )-\frac {(a+b) \left (1+5 b+4 b^2-k+2 b k+5 b k^2-k^3+k^4\right )}{\sqrt {1+4 b-2 k+k^2}}}{\sqrt [3]{1-x} x^{7/3} \sqrt [3]{1-k x} \left (-1-k-\sqrt {1+4 b-2 k+k^2}+2 (-b+k) x\right )}+\frac {-\left ((a+b) (1+k) \left (1+3 b-k+k^2\right )\right )+\frac {(a+b) \left (1+5 b+4 b^2-k+2 b k+5 b k^2-k^3+k^4\right )}{\sqrt {1+4 b-2 k+k^2}}}{\sqrt [3]{1-x} x^{7/3} \sqrt [3]{1-k x} \left (-1-k+\sqrt {1+4 b-2 k+k^2}+2 (-b+k) x\right )}\right ) \, dx}{(b-k)^2 \sqrt [3]{(1-x) x (1-k x)}}-\frac {\left ((1+k) \left (2 k^2-a \left (1+2 b+k^2\right )-b \left (1+4 k+k^2\right )\right ) \sqrt [3]{1-x} \sqrt [3]{x} \sqrt [3]{1-k x}\right ) \int \frac {1}{\sqrt [3]{1-x} x^{4/3} \sqrt [3]{1-k x}} \, dx}{2 (b-k)^2 \sqrt [3]{(1-x) x (1-k x)}}\\ &=\frac {3 \left (2 k^2-a \left (1+2 b+k^2\right )-b \left (1+4 k+k^2\right )\right ) (1-x) (1-k x)}{4 (b-k)^2 x \sqrt [3]{(1-x) x (1-k x)}}+\frac {3 (1+k) (a+k) (1-x) \left (\frac {(1-k) x}{1-k x}\right )^{4/3} (1-k x) \, _2F_1\left (\frac {2}{3},\frac {4}{3};\frac {5}{3};\frac {1-x}{1-k x}\right )}{2 (1-k) (b-k) x \sqrt [3]{(1-x) x (1-k x)}}+\frac {3 (1+k) \left (2 k^2-a \left (1+2 b+k^2\right )-b \left (1+4 k+k^2\right )\right ) (1-x) \left (\frac {(1-k) x}{1-k x}\right )^{4/3} (1-k x) \, _2F_1\left (\frac {2}{3},\frac {4}{3};\frac {5}{3};\frac {1-x}{1-k x}\right )}{4 (1-k) (b-k)^2 x \sqrt [3]{(1-x) x (1-k x)}}-\frac {\left (\left (-\left ((a+b) (1+k) \left (1+3 b-k+k^2\right )\right )+\frac {(a+b) \left (1+5 b+4 b^2-k+2 b k+5 b k^2-k^3+k^4\right )}{\sqrt {1+4 b-2 k+k^2}}\right ) \sqrt [3]{1-x} \sqrt [3]{x} \sqrt [3]{1-k x}\right ) \int \frac {1}{\sqrt [3]{1-x} x^{7/3} \sqrt [3]{1-k x} \left (-1-k+\sqrt {1+4 b-2 k+k^2}+2 (-b+k) x\right )} \, dx}{(b-k)^2 \sqrt [3]{(1-x) x (1-k x)}}+\frac {\left ((a+b) \left (1+k^3+3 b (1+k)+\frac {4 b^2+(1-k)^2 \left (1+k+k^2\right )+b \left (5+2 k+5 k^2\right )}{\sqrt {4 b+(-1+k)^2}}\right ) \sqrt [3]{1-x} \sqrt [3]{x} \sqrt [3]{1-k x}\right ) \int \frac {1}{\sqrt [3]{1-x} x^{7/3} \sqrt [3]{1-k x} \left (-1-k-\sqrt {1+4 b-2 k+k^2}+2 (-b+k) x\right )} \, dx}{(b-k)^2 \sqrt [3]{(1-x) x (1-k x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 25.79, size = 236, normalized size = 1.13 \begin {gather*} \frac {(-1+x) \left (3 k-\frac {3}{x}+\frac {(a+b) \sqrt [3]{\frac {x}{-1+x}} \sqrt [3]{\frac {-1+k x}{-1+x}} \left (2 \sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} \sqrt [3]{\frac {-1+k x}{-1+x}}}{2 \sqrt [3]{b} \left (\frac {x}{-1+x}\right )^{2/3}+\sqrt [3]{\frac {-1+k x}{-1+x}}}\right )+2 \log \left (-\sqrt [3]{b} \left (\frac {x}{-1+x}\right )^{2/3}+\sqrt [3]{\frac {-1+k x}{-1+x}}\right )-\log \left (b^{2/3} \left (\frac {x}{-1+x}\right )^{4/3}+\sqrt [3]{b} \left (\frac {x}{-1+x}\right )^{2/3} \sqrt [3]{\frac {-1+k x}{-1+x}}+\left (\frac {-1+k x}{-1+x}\right )^{2/3}\right )\right )}{\sqrt [3]{b}}\right )}{2 \sqrt [3]{(-1+x) x (-1+k x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (-2+\left (1+k \right ) x \right ) \left (1-\left (1+k \right ) x +\left (a +k \right ) x^{2}\right )}{x^{2} \left (\left (1-x \right ) x \left (-k x +1\right )\right )^{\frac {1}{3}} \left (1-\left (1+k \right ) x +\left (-b +k \right ) x^{2}\right )}\, 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 [F(-1)] Timed out
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]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
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*} \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.00 \begin {gather*} \int -\frac {\left (x\,\left (k+1\right )-2\right )\,\left (\left (a+k\right )\,x^2+\left (-k-1\right )\,x+1\right )}{x^2\,{\left (x\,\left (k\,x-1\right )\,\left (x-1\right )\right )}^{1/3}\,\left (\left (b-k\right )\,x^2+\left (k+1\right )\,x-1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________