Integrand size = 46, antiderivative size = 207 \[ \int \frac {-1+(-1+2 k) x}{\sqrt [3]{(1-x) x (1-k x)} \left (b-(1+2 b) x+(b+k) x^2\right )} \, dx=\frac {\sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{x+(-1-k) x^2+k x^3}}{2 \sqrt [3]{b}-2 \sqrt [3]{b} x+\sqrt [3]{x+(-1-k) x^2+k x^3}}\right )}{\sqrt [3]{b}}+\frac {\log \left (-\sqrt [3]{b}+\sqrt [3]{b} x+\sqrt [3]{x+(-1-k) x^2+k x^3}\right )}{\sqrt [3]{b}}-\frac {\log \left (b^{2/3}-2 b^{2/3} x+b^{2/3} x^2+\left (\sqrt [3]{b}-\sqrt [3]{b} x\right ) \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}} \] Output:
3^(1/2)*arctan(3^(1/2)*(x+(-1-k)*x^2+k*x^3)^(1/3)/(2*b^(1/3)-2*b^(1/3)*x+( x+(-1-k)*x^2+k*x^3)^(1/3)))/b^(1/3)+ln(-b^(1/3)+b^(1/3)*x+(x+(-1-k)*x^2+k* x^3)^(1/3))/b^(1/3)-1/2*ln(b^(2/3)-2*b^(2/3)*x+b^(2/3)*x^2+(b^(1/3)-b^(1/3 )*x)*(x+(-1-k)*x^2+k*x^3)^(1/3)+(x+(-1-k)*x^2+k*x^3)^(2/3))/b^(1/3)
Time = 15.52 (sec) , antiderivative size = 145, normalized size of antiderivative = 0.70 \[ \int \frac {-1+(-1+2 k) x}{\sqrt [3]{(1-x) x (1-k x)} \left (b-(1+2 b) x+(b+k) x^2\right )} \, dx=\frac {2 \sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{(-1+x) x (-1+k x)}}{-2 \sqrt [3]{b} (-1+x)+\sqrt [3]{(-1+x) x (-1+k x)}}\right )+2 \log \left (\sqrt [3]{b} (-1+x)+\sqrt [3]{(-1+x) x (-1+k x)}\right )-\log \left (b^{2/3} (-1+x)^2-\sqrt [3]{b} (-1+x) \sqrt [3]{(-1+x) x (-1+k x)}+((-1+x) x (-1+k x))^{2/3}\right )}{2 \sqrt [3]{b}} \] Input:
Integrate[(-1 + (-1 + 2*k)*x)/(((1 - x)*x*(1 - k*x))^(1/3)*(b - (1 + 2*b)* x + (b + k)*x^2)),x]
Output:
(2*Sqrt[3]*ArcTan[(Sqrt[3]*((-1 + x)*x*(-1 + k*x))^(1/3))/(-2*b^(1/3)*(-1 + x) + ((-1 + x)*x*(-1 + k*x))^(1/3))] + 2*Log[b^(1/3)*(-1 + x) + ((-1 + x )*x*(-1 + k*x))^(1/3)] - Log[b^(2/3)*(-1 + x)^2 - b^(1/3)*(-1 + x)*((-1 + x)*x*(-1 + k*x))^(1/3) + ((-1 + x)*x*(-1 + k*x))^(2/3)])/(2*b^(1/3))
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {(2 k-1) x-1}{\sqrt [3]{(1-x) x (1-k x)} \left (x^2 (b+k)-(2 b+1) x+b\right )} \, dx\) |
\(\Big \downarrow \) 2467 |
\(\displaystyle \frac {\sqrt [3]{x} \sqrt [3]{k x^2-(k+1) x+1} \int -\frac {(1-2 k) x+1}{\sqrt [3]{x} \sqrt [3]{k x^2-(k+1) x+1} \left ((b+k) x^2-(2 b+1) x+b\right )}dx}{\sqrt [3]{(1-x) x (1-k x)}}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {\sqrt [3]{x} \sqrt [3]{k x^2-(k+1) x+1} \int \frac {(1-2 k) x+1}{\sqrt [3]{x} \sqrt [3]{k x^2-(k+1) x+1} \left ((b+k) x^2-(2 b+1) x+b\right )}dx}{\sqrt [3]{(1-x) x (1-k x)}}\) |
\(\Big \downarrow \) 2035 |
\(\displaystyle -\frac {3 \sqrt [3]{x} \sqrt [3]{k x^2-(k+1) x+1} \int \frac {\sqrt [3]{x} ((1-2 k) x+1)}{\sqrt [3]{k x^2-(k+1) x+1} \left ((b+k) x^2-(2 b+1) x+b\right )}d\sqrt [3]{x}}{\sqrt [3]{(1-x) x (1-k x)}}\) |
\(\Big \downarrow \) 7279 |
\(\displaystyle -\frac {3 \sqrt [3]{x} \sqrt [3]{k x^2-(k+1) x+1} \int \left (\frac {(1-2 k) x^{4/3}}{\sqrt [3]{k x^2-(k+1) x+1} \left ((b+k) x^2-(2 b+1) x+b\right )}+\frac {\sqrt [3]{x}}{\sqrt [3]{k x^2-(k+1) x+1} \left ((b+k) x^2-(2 b+1) x+b\right )}\right )d\sqrt [3]{x}}{\sqrt [3]{(1-x) x (1-k x)}}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {3 \sqrt [3]{x} \sqrt [3]{k x^2-(k+1) x+1} \left (\frac {2 (b+k) \int \frac {\sqrt [3]{x}}{\left (2 b-2 (b+k) x-\sqrt {-4 k b+4 b+1}+1\right ) \sqrt [3]{k x^2+(-k-1) x+1}}d\sqrt [3]{x}}{\sqrt {4 b (1-k)+1}}+\frac {(1-2 k) \left (-\sqrt {-4 b k+4 b+1}+2 b+1\right ) \int \frac {\sqrt [3]{x}}{\left (2 b-2 (b+k) x-\sqrt {-4 k b+4 b+1}+1\right ) \sqrt [3]{k x^2+(-k-1) x+1}}d\sqrt [3]{x}}{\sqrt {4 b (1-k)+1}}-\frac {(1-2 k) \left (\sqrt {-4 b k+4 b+1}+2 b+1\right ) \int \frac {\sqrt [3]{x}}{\left (2 b-2 (b+k) x+\sqrt {-4 k b+4 b+1}+1\right ) \sqrt [3]{k x^2+(-k-1) x+1}}d\sqrt [3]{x}}{\sqrt {4 b (1-k)+1}}+\frac {2 (b+k) \int \frac {\sqrt [3]{x}}{\left (-2 b+2 (b+k) x-\sqrt {-4 k b+4 b+1}-1\right ) \sqrt [3]{k x^2+(-k-1) x+1}}d\sqrt [3]{x}}{\sqrt {4 b (1-k)+1}}\right )}{\sqrt [3]{(1-x) x (1-k x)}}\) |
Input:
Int[(-1 + (-1 + 2*k)*x)/(((1 - x)*x*(1 - k*x))^(1/3)*(b - (1 + 2*b)*x + (b + k)*x^2)),x]
Output:
$Aborted
\[\int \frac {-1+\left (-1+2 k \right ) x}{\left (\left (1-x \right ) x \left (-k x +1\right )\right )^{\frac {1}{3}} \left (b -\left (1+2 b \right ) x +\left (b +k \right ) x^{2}\right )}d x\]
Input:
int((-1+(-1+2*k)*x)/((1-x)*x*(-k*x+1))^(1/3)/(b-(1+2*b)*x+(b+k)*x^2),x)
Output:
int((-1+(-1+2*k)*x)/((1-x)*x*(-k*x+1))^(1/3)/(b-(1+2*b)*x+(b+k)*x^2),x)
Timed out. \[ \int \frac {-1+(-1+2 k) x}{\sqrt [3]{(1-x) x (1-k x)} \left (b-(1+2 b) x+(b+k) x^2\right )} \, dx=\text {Timed out} \] Input:
integrate((-1+(-1+2*k)*x)/((1-x)*x*(-k*x+1))^(1/3)/(b-(1+2*b)*x+(b+k)*x^2) ,x, algorithm="fricas")
Output:
Timed out
Timed out. \[ \int \frac {-1+(-1+2 k) x}{\sqrt [3]{(1-x) x (1-k x)} \left (b-(1+2 b) x+(b+k) x^2\right )} \, dx=\text {Timed out} \] Input:
integrate((-1+(-1+2*k)*x)/((1-x)*x*(-k*x+1))**(1/3)/(b-(1+2*b)*x+(b+k)*x** 2),x)
Output:
Timed out
\[ \int \frac {-1+(-1+2 k) x}{\sqrt [3]{(1-x) x (1-k x)} \left (b-(1+2 b) x+(b+k) x^2\right )} \, dx=\int { \frac {{\left (2 \, k - 1\right )} x - 1}{\left ({\left (k x - 1\right )} {\left (x - 1\right )} x\right )^{\frac {1}{3}} {\left ({\left (b + k\right )} x^{2} - {\left (2 \, b + 1\right )} x + b\right )}} \,d x } \] Input:
integrate((-1+(-1+2*k)*x)/((1-x)*x*(-k*x+1))^(1/3)/(b-(1+2*b)*x+(b+k)*x^2) ,x, algorithm="maxima")
Output:
integrate(((2*k - 1)*x - 1)/(((k*x - 1)*(x - 1)*x)^(1/3)*((b + k)*x^2 - (2 *b + 1)*x + b)), x)
\[ \int \frac {-1+(-1+2 k) x}{\sqrt [3]{(1-x) x (1-k x)} \left (b-(1+2 b) x+(b+k) x^2\right )} \, dx=\int { \frac {{\left (2 \, k - 1\right )} x - 1}{\left ({\left (k x - 1\right )} {\left (x - 1\right )} x\right )^{\frac {1}{3}} {\left ({\left (b + k\right )} x^{2} - {\left (2 \, b + 1\right )} x + b\right )}} \,d x } \] Input:
integrate((-1+(-1+2*k)*x)/((1-x)*x*(-k*x+1))^(1/3)/(b-(1+2*b)*x+(b+k)*x^2) ,x, algorithm="giac")
Output:
integrate(((2*k - 1)*x - 1)/(((k*x - 1)*(x - 1)*x)^(1/3)*((b + k)*x^2 - (2 *b + 1)*x + b)), x)
Timed out. \[ \int \frac {-1+(-1+2 k) x}{\sqrt [3]{(1-x) x (1-k x)} \left (b-(1+2 b) x+(b+k) x^2\right )} \, dx=\int \frac {x\,\left (2\,k-1\right )-1}{\left (\left (b+k\right )\,x^2+\left (-2\,b-1\right )\,x+b\right )\,{\left (x\,\left (k\,x-1\right )\,\left (x-1\right )\right )}^{1/3}} \,d x \] Input:
int((x*(2*k - 1) - 1)/((b + x^2*(b + k) - x*(2*b + 1))*(x*(k*x - 1)*(x - 1 ))^(1/3)),x)
Output:
int((x*(2*k - 1) - 1)/((b + x^2*(b + k) - x*(2*b + 1))*(x*(k*x - 1)*(x - 1 ))^(1/3)), x)
\[ \int \frac {-1+(-1+2 k) x}{\sqrt [3]{(1-x) x (1-k x)} \left (b-(1+2 b) x+(b+k) x^2\right )} \, dx=2 \left (\int \frac {x}{x^{\frac {7}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}} b -2 x^{\frac {4}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}} b +x^{\frac {1}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}} b +x^{\frac {7}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}} k -x^{\frac {4}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}}}d x \right ) k -\left (\int \frac {x}{x^{\frac {7}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}} b -2 x^{\frac {4}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}} b +x^{\frac {1}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}} b +x^{\frac {7}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}} k -x^{\frac {4}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}}}d x \right )-\left (\int \frac {1}{x^{\frac {7}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}} b -2 x^{\frac {4}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}} b +x^{\frac {1}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}} b +x^{\frac {7}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}} k -x^{\frac {4}{3}} \left (k \,x^{2}-k x -x +1\right )^{\frac {1}{3}}}d x \right ) \] Input:
int((-1+(-1+2*k)*x)/((1-x)*x*(-k*x+1))^(1/3)/(b-(1+2*b)*x+(b+k)*x^2),x)
Output:
2*int(x/(x**(1/3)*(k*x**2 - k*x - x + 1)**(1/3)*b*x**2 - 2*x**(1/3)*(k*x** 2 - k*x - x + 1)**(1/3)*b*x + x**(1/3)*(k*x**2 - k*x - x + 1)**(1/3)*b + x **(1/3)*(k*x**2 - k*x - x + 1)**(1/3)*k*x**2 - x**(1/3)*(k*x**2 - k*x - x + 1)**(1/3)*x),x)*k - int(x/(x**(1/3)*(k*x**2 - k*x - x + 1)**(1/3)*b*x**2 - 2*x**(1/3)*(k*x**2 - k*x - x + 1)**(1/3)*b*x + x**(1/3)*(k*x**2 - k*x - x + 1)**(1/3)*b + x**(1/3)*(k*x**2 - k*x - x + 1)**(1/3)*k*x**2 - x**(1/3 )*(k*x**2 - k*x - x + 1)**(1/3)*x),x) - int(1/(x**(1/3)*(k*x**2 - k*x - x + 1)**(1/3)*b*x**2 - 2*x**(1/3)*(k*x**2 - k*x - x + 1)**(1/3)*b*x + x**(1/ 3)*(k*x**2 - k*x - x + 1)**(1/3)*b + x**(1/3)*(k*x**2 - k*x - x + 1)**(1/3 )*k*x**2 - x**(1/3)*(k*x**2 - k*x - x + 1)**(1/3)*x),x)