Integrand size = 78, antiderivative size = 340 \[ \int \frac {x (-a+x) (-b+x) \left (a b-2 b x+x^2\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3} \left (-b^2+2 b x-\left (1-a^2 d\right ) x^2-2 a d x^3+d x^4\right )} \, dx=\frac {\sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{d} \left (-a b^2 x+\left (2 a b+b^2\right ) x^2+(-a-2 b) x^3+x^4\right )^{2/3}}{2 b^2-4 b x+2 x^2+\sqrt [3]{d} \left (-a b^2 x+\left (2 a b+b^2\right ) x^2+(-a-2 b) x^3+x^4\right )^{2/3}}\right )}{2 d^{2/3}}+\frac {\log \left (b^2-2 b x+x^2-\sqrt [3]{d} \left (-a b^2 x+\left (2 a b+b^2\right ) x^2+(-a-2 b) x^3+x^4\right )^{2/3}\right )}{2 d^{2/3}}-\frac {\log \left (b^4-4 b^3 x+6 b^2 x^2-4 b x^3+x^4+\left (b^2 \sqrt [3]{d}-2 b \sqrt [3]{d} x+\sqrt [3]{d} x^2\right ) \left (-a b^2 x+\left (2 a b+b^2\right ) x^2+(-a-2 b) x^3+x^4\right )^{2/3}+d^{2/3} \left (-a b^2 x+\left (2 a b+b^2\right ) x^2+(-a-2 b) x^3+x^4\right )^{4/3}\right )}{4 d^{2/3}} \]
[Out]
\[ \int \frac {x (-a+x) (-b+x) \left (a b-2 b x+x^2\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3} \left (-b^2+2 b x-\left (1-a^2 d\right ) x^2-2 a d x^3+d x^4\right )} \, dx=\int \frac {x (-a+x) (-b+x) \left (a b-2 b x+x^2\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3} \left (-b^2+2 b x-\left (1-a^2 d\right ) x^2-2 a d x^3+d x^4\right )} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \frac {\left (x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \int \frac {\sqrt [3]{x} \sqrt [3]{-a+x} \left (a b-2 b x+x^2\right )}{\sqrt [3]{-b+x} \left (-b^2+2 b x-\left (1-a^2 d\right ) x^2-2 a d x^3+d x^4\right )} \, dx}{\left (x (-a+x) (-b+x)^2\right )^{2/3}} \\ & = \frac {\left (3 x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \text {Subst}\left (\int \frac {x^3 \sqrt [3]{-a+x^3} \left (a b-2 b x^3+x^6\right )}{\sqrt [3]{-b+x^3} \left (-b^2+2 b x^3-\left (1-a^2 d\right ) x^6-2 a d x^9+d x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3}} \\ & = \frac {\left (3 x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \text {Subst}\left (\int \left (\frac {2 b x^6 \sqrt [3]{-a+x^3}}{\sqrt [3]{-b+x^3} \left (b^2-2 b x^3+\left (1-a^2 d\right ) x^6+2 a d x^9-d x^{12}\right )}+\frac {a b x^3 \sqrt [3]{-a+x^3}}{\sqrt [3]{-b+x^3} \left (-b^2+2 b x^3-\left (1-a^2 d\right ) x^6-2 a d x^9+d x^{12}\right )}+\frac {x^9 \sqrt [3]{-a+x^3}}{\sqrt [3]{-b+x^3} \left (-b^2+2 b x^3-\left (1-a^2 d\right ) x^6-2 a d x^9+d x^{12}\right )}\right ) \, dx,x,\sqrt [3]{x}\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3}} \\ & = \frac {\left (3 x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \text {Subst}\left (\int \frac {x^9 \sqrt [3]{-a+x^3}}{\sqrt [3]{-b+x^3} \left (-b^2+2 b x^3-\left (1-a^2 d\right ) x^6-2 a d x^9+d x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3}}+\frac {\left (6 b x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \text {Subst}\left (\int \frac {x^6 \sqrt [3]{-a+x^3}}{\sqrt [3]{-b+x^3} \left (b^2-2 b x^3+\left (1-a^2 d\right ) x^6+2 a d x^9-d x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3}}+\frac {\left (3 a b x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \text {Subst}\left (\int \frac {x^3 \sqrt [3]{-a+x^3}}{\sqrt [3]{-b+x^3} \left (-b^2+2 b x^3-\left (1-a^2 d\right ) x^6-2 a d x^9+d x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3}} \\ \end{align*}
Time = 15.69 (sec) , antiderivative size = 212, normalized size of antiderivative = 0.62 \[ \int \frac {x (-a+x) (-b+x) \left (a b-2 b x+x^2\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3} \left (-b^2+2 b x-\left (1-a^2 d\right ) x^2-2 a d x^3+d x^4\right )} \, dx=\frac {2 \sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{d} \left (x (-a+x) (-b+x)^2\right )^{2/3}}{2 b^2-4 b x+2 x^2+\sqrt [3]{d} \left (x (-a+x) (-b+x)^2\right )^{2/3}}\right )-\log \left (b^4-4 b^3 x+6 b^2 x^2-4 b x^3+x^4+\sqrt [3]{d} (b-x)^2 \left ((b-x)^2 x (-a+x)\right )^{2/3}+d^{2/3} \left ((b-x)^2 x (-a+x)\right )^{4/3}\right )+2 \log \left (b^2-2 b x+x^2-\sqrt [3]{d} \left (x (-a+x) (-b+x)^2\right )^{2/3}\right )}{4 d^{2/3}} \]
[In]
[Out]
\[\int \frac {x \left (-a +x \right ) \left (-b +x \right ) \left (a b -2 b x +x^{2}\right )}{\left (x \left (-a +x \right ) \left (-b +x \right )^{2}\right )^{\frac {2}{3}} \left (-b^{2}+2 b x -\left (-a^{2} d +1\right ) x^{2}-2 a d \,x^{3}+d \,x^{4}\right )}d x\]
[In]
[Out]
Timed out. \[ \int \frac {x (-a+x) (-b+x) \left (a b-2 b x+x^2\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3} \left (-b^2+2 b x-\left (1-a^2 d\right ) x^2-2 a d x^3+d x^4\right )} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {x (-a+x) (-b+x) \left (a b-2 b x+x^2\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3} \left (-b^2+2 b x-\left (1-a^2 d\right ) x^2-2 a d x^3+d x^4\right )} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {x (-a+x) (-b+x) \left (a b-2 b x+x^2\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3} \left (-b^2+2 b x-\left (1-a^2 d\right ) x^2-2 a d x^3+d x^4\right )} \, dx=\int { -\frac {{\left (a b - 2 \, b x + x^{2}\right )} {\left (a - x\right )} {\left (b - x\right )} x}{{\left (2 \, a d x^{3} - d x^{4} - {\left (a^{2} d - 1\right )} x^{2} + b^{2} - 2 \, b x\right )} \left (-{\left (a - x\right )} {\left (b - x\right )}^{2} x\right )^{\frac {2}{3}}} \,d x } \]
[In]
[Out]
\[ \int \frac {x (-a+x) (-b+x) \left (a b-2 b x+x^2\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3} \left (-b^2+2 b x-\left (1-a^2 d\right ) x^2-2 a d x^3+d x^4\right )} \, dx=\int { -\frac {{\left (a b - 2 \, b x + x^{2}\right )} {\left (a - x\right )} {\left (b - x\right )} x}{{\left (2 \, a d x^{3} - d x^{4} - {\left (a^{2} d - 1\right )} x^{2} + b^{2} - 2 \, b x\right )} \left (-{\left (a - x\right )} {\left (b - x\right )}^{2} x\right )^{\frac {2}{3}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x (-a+x) (-b+x) \left (a b-2 b x+x^2\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3} \left (-b^2+2 b x-\left (1-a^2 d\right ) x^2-2 a d x^3+d x^4\right )} \, dx=\int \frac {x\,\left (a-x\right )\,\left (b-x\right )\,\left (x^2-2\,b\,x+a\,b\right )}{{\left (-x\,\left (a-x\right )\,{\left (b-x\right )}^2\right )}^{2/3}\,\left (-b^2+2\,b\,x+d\,x^4-2\,a\,d\,x^3+\left (a^2\,d-1\right )\,x^2\right )} \,d x \]
[In]
[Out]