Integrand size = 74, antiderivative size = 289 \[ \int \frac {(a-2 b+x) (-b+x)}{\sqrt [3]{(-a+x) (-b+x)} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )} \, dx=-\frac {\sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [6]{d} \sqrt [3]{a b+(-a-b) x+x^2}}{2 a-2 x+\sqrt [6]{d} \sqrt [3]{a b+(-a-b) x+x^2}}\right )}{2 d^{5/6}}+\frac {\sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [6]{d} \sqrt [3]{a b+(-a-b) x+x^2}}{-2 a+2 x+\sqrt [6]{d} \sqrt [3]{a b+(-a-b) x+x^2}}\right )}{2 d^{5/6}}+\frac {\text {arctanh}\left (\frac {\sqrt [6]{d} \sqrt [3]{a b+(-a-b) x+x^2}}{a-x}\right )}{d^{5/6}}+\frac {\text {arctanh}\left (\frac {\left (a \sqrt [6]{d}-\sqrt [6]{d} x\right ) \sqrt [3]{a b+(-a-b) x+x^2}}{a^2-2 a x+x^2+\sqrt [3]{d} \left (a b+(-a-b) x+x^2\right )^{2/3}}\right )}{2 d^{5/6}} \]
[Out]
\[ \int \frac {(a-2 b+x) (-b+x)}{\sqrt [3]{(-a+x) (-b+x)} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )} \, dx=\int \frac {(a-2 b+x) (-b+x)}{\sqrt [3]{(-a+x) (-b+x)} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \int \frac {(a-2 b+x) (-b+x)}{\sqrt [3]{a b+(-a-b) x+x^2} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )} \, dx \\ & = \int \frac {(b-x) (-a+2 b-x)}{\sqrt [3]{a b-(a+b) x+x^2} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )} \, dx \\ & = \int \left (\frac {a b \left (1-\frac {2 b}{a}\right )}{\sqrt [3]{a b-(a+b) x+x^2} \left (-a^4+b^2 d+2 \left (2 a^3-b d\right ) x-\left (6 a^2-d\right ) x^2+4 a x^3-x^4\right )}+\frac {3 \left (1-\frac {a}{3 b}\right ) b x}{\sqrt [3]{a b-(a+b) x+x^2} \left (-a^4+b^2 d+2 \left (2 a^3-b d\right ) x-\left (6 a^2-d\right ) x^2+4 a x^3-x^4\right )}+\frac {x^2}{\sqrt [3]{a b-(a+b) x+x^2} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )}\right ) \, dx \\ & = ((a-2 b) b) \int \frac {1}{\sqrt [3]{a b-(a+b) x+x^2} \left (-a^4+b^2 d+2 \left (2 a^3-b d\right ) x-\left (6 a^2-d\right ) x^2+4 a x^3-x^4\right )} \, dx+(-a+3 b) \int \frac {x}{\sqrt [3]{a b-(a+b) x+x^2} \left (-a^4+b^2 d+2 \left (2 a^3-b d\right ) x-\left (6 a^2-d\right ) x^2+4 a x^3-x^4\right )} \, dx+\int \frac {x^2}{\sqrt [3]{a b-(a+b) x+x^2} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )} \, dx \\ \end{align*}
Time = 11.93 (sec) , antiderivative size = 225, normalized size of antiderivative = 0.78 \[ \int \frac {(a-2 b+x) (-b+x)}{\sqrt [3]{(-a+x) (-b+x)} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )} \, dx=\frac {\sqrt {3} \left (-\arctan \left (\frac {\sqrt {3} \sqrt [6]{d} \sqrt [3]{(-a+x) (-b+x)}}{2 a-2 x+\sqrt [6]{d} \sqrt [3]{(-a+x) (-b+x)}}\right )+\arctan \left (\frac {\sqrt {3} \sqrt [6]{d} \sqrt [3]{(-a+x) (-b+x)}}{-2 a+2 x+\sqrt [6]{d} \sqrt [3]{(-a+x) (-b+x)}}\right )\right )-2 \text {arctanh}\left (\frac {\sqrt [6]{d} (-b+x)}{((-a+x) (-b+x))^{2/3}}\right )-\text {arctanh}\left (\frac {\sqrt [6]{d} (-a+x) \sqrt [3]{(-a+x) (-b+x)}}{a^2-2 a x+x^2+\sqrt [3]{d} ((-a+x) (-b+x))^{2/3}}\right )}{2 d^{5/6}} \]
[In]
[Out]
\[\int \frac {\left (a -2 b +x \right ) \left (-b +x \right )}{\left (\left (-a +x \right ) \left (-b +x \right )\right )^{\frac {1}{3}} \left (a^{4}-b^{2} d -2 \left (2 a^{3}-b d \right ) x +\left (6 a^{2}-d \right ) x^{2}-4 a \,x^{3}+x^{4}\right )}d x\]
[In]
[Out]
Timed out. \[ \int \frac {(a-2 b+x) (-b+x)}{\sqrt [3]{(-a+x) (-b+x)} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {(a-2 b+x) (-b+x)}{\sqrt [3]{(-a+x) (-b+x)} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {(a-2 b+x) (-b+x)}{\sqrt [3]{(-a+x) (-b+x)} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )} \, dx=\int { -\frac {{\left (a - 2 \, b + x\right )} {\left (b - x\right )}}{{\left (a^{4} - 4 \, a x^{3} + x^{4} - b^{2} d + {\left (6 \, a^{2} - d\right )} x^{2} - 2 \, {\left (2 \, a^{3} - b d\right )} x\right )} \left ({\left (a - x\right )} {\left (b - x\right )}\right )^{\frac {1}{3}}} \,d x } \]
[In]
[Out]
\[ \int \frac {(a-2 b+x) (-b+x)}{\sqrt [3]{(-a+x) (-b+x)} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )} \, dx=\int { -\frac {{\left (a - 2 \, b + x\right )} {\left (b - x\right )}}{{\left (a^{4} - 4 \, a x^{3} + x^{4} - b^{2} d + {\left (6 \, a^{2} - d\right )} x^{2} - 2 \, {\left (2 \, a^{3} - b d\right )} x\right )} \left ({\left (a - x\right )} {\left (b - x\right )}\right )^{\frac {1}{3}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(a-2 b+x) (-b+x)}{\sqrt [3]{(-a+x) (-b+x)} \left (a^4-b^2 d-2 \left (2 a^3-b d\right ) x+\left (6 a^2-d\right ) x^2-4 a x^3+x^4\right )} \, dx=\int \frac {\left (b-x\right )\,\left (a-2\,b+x\right )}{{\left (\left (a-x\right )\,\left (b-x\right )\right )}^{1/3}\,\left (x^2\,\left (d-6\,a^2\right )-2\,x\,\left (b\,d-2\,a^3\right )+b^2\,d+4\,a\,x^3-a^4-x^4\right )} \,d x \]
[In]
[Out]