Integrand size = 31, antiderivative size = 543 \[ \int \frac {1}{\sqrt [3]{(-a+x) (-b+x)^2} (a-b d+(-1+d) x)} \, dx=\frac {\sqrt {-3-3 i \sqrt {3}} \sqrt [3]{d} \arctan \left (\frac {\sqrt {3} (a-b)^{2/3} \sqrt [3]{d} \sqrt [3]{-a b^2+\left (2 a b+b^2\right ) x+(-a-2 b) x^2+x^3}}{2 \sqrt [3]{-1} b (-a d+b d)^{2/3}-2 \sqrt [3]{-1} (-a d+b d)^{2/3} x+(a-b)^{2/3} \sqrt [3]{d} \sqrt [3]{-a b^2+\left (2 a b+b^2\right ) x+(-a-2 b) x^2+x^3}}\right )}{\sqrt {2} \sqrt [3]{a-b} (-((a-b) d))^{2/3}}+\frac {\left (\sqrt [3]{d}-i \sqrt {3} \sqrt [3]{d}\right ) \log \left (\sqrt [3]{-1} (-a d+b d)^{2/3} (b-x)-(a-b)^{2/3} \sqrt [3]{d} \sqrt [3]{-a b^2+\left (2 a b+b^2\right ) x+(-a-2 b) x^2+x^3}\right )}{2 \sqrt [3]{a-b} (-((a-b) d))^{2/3}}+\frac {i \left (i \sqrt [3]{d}+\sqrt {3} \sqrt [3]{d}\right ) \log \left ((-1)^{2/3} d \sqrt [3]{-a d+b d} \left (a b^2-b^3-2 a b x+2 b^2 x+a x^2-b x^2\right )+\sqrt [3]{-1} (a-b)^{2/3} \sqrt [3]{d} (-a d+b d)^{2/3} (-b+x) \sqrt [3]{-a b^2+\left (2 a b+b^2\right ) x+(-a-2 b) x^2+x^3}-(a-b)^{4/3} d^{2/3} \left (-a b^2+\left (2 a b+b^2\right ) x+(-a-2 b) x^2+x^3\right )^{2/3}\right )}{4 \sqrt [3]{a-b} (-((a-b) d))^{2/3}} \]
[Out]
Time = 0.46 (sec) , antiderivative size = 377, normalized size of antiderivative = 0.69, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {2106, 2102, 93} \[ \int \frac {1}{\sqrt [3]{(-a+x) (-b+x)^2} (a-b d+(-1+d) x)} \, dx=-\frac {\sqrt {3} \left ((a-b)^2 (b-x)\right )^{2/3} \sqrt [3]{(a-b)^2 (x-a)} \arctan \left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{(a-b)^2 (x-a)}}{\sqrt {3} \sqrt [3]{d} \sqrt [3]{(a-b)^2 (b-x)}}\right )}{\sqrt [3]{d} (a-b)^3 \sqrt [3]{-a b^2+x^2 (-a-2 b)+b x (2 a+b)+x^3}}+\frac {\left ((a-b)^2 (b-x)\right )^{2/3} \sqrt [3]{(a-b)^2 (x-a)} \log (a-b d+(d-1) x)}{2 \sqrt [3]{d} (a-b)^3 \sqrt [3]{-a b^2+x^2 (-a-2 b)+b x (2 a+b)+x^3}}-\frac {3 \left ((a-b)^2 (b-x)\right )^{2/3} \sqrt [3]{(a-b)^2 (x-a)} \log \left (-\frac {\sqrt [3]{\frac {2}{3}} \sqrt [3]{(a-b)^2 (x-a)}}{\sqrt [3]{d}}-\sqrt [3]{\frac {2}{3}} \sqrt [3]{(a-b)^2 (b-x)}\right )}{2 \sqrt [3]{d} (a-b)^3 \sqrt [3]{-a b^2+x^2 (-a-2 b)+b x (2 a+b)+x^3}} \]
[In]
[Out]
Rule 93
Rule 2102
Rule 2106
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {1}{\left (\frac {1}{3} (-((-a-2 b) (-1+d))+3 (a-b d))+(-1+d) x\right ) \sqrt [3]{-\frac {2}{27} (a-b)^3-\frac {1}{3} (a-b)^2 x+x^3}} \, dx,x,\frac {1}{3} (-a-2 b)+x\right ) \\ & = \frac {\left (2^{2/3} \sqrt [3]{-(a-b)^2 (a-x)} \left ((a-b)^2 (b-x)\right )^{2/3}\right ) \text {Subst}\left (\int \frac {1}{\left (-\frac {2}{9} (a-b)^3-\frac {2}{3} (a-b)^2 x\right )^{2/3} \sqrt [3]{-\frac {2}{9} (a-b)^3+\frac {1}{3} (a-b)^2 x} \left (\frac {1}{3} (-((-a-2 b) (-1+d))+3 (a-b d))+(-1+d) x\right )} \, dx,x,\frac {1}{3} (-a-2 b)+x\right )}{3 \sqrt [3]{-a b^2+b (2 a+b) x-(a+2 b) x^2+x^3}} \\ & = -\frac {\sqrt {3} \sqrt [3]{-(a-b)^2 (a-x)} \left ((a-b)^2 (b-x)\right )^{2/3} \arctan \left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{-(a-b)^2 (a-x)}}{\sqrt {3} \sqrt [3]{d} \sqrt [3]{(a-b)^2 (b-x)}}\right )}{(a-b)^3 \sqrt [3]{d} \sqrt [3]{-a b^2+b (2 a+b) x-(a+2 b) x^2+x^3}}-\frac {3 \sqrt [3]{-(a-b)^2 (a-x)} \left ((a-b)^2 (b-x)\right )^{2/3} \log \left (\sqrt [3]{-(a-b)^2 (a-x)}+\sqrt [3]{d} \sqrt [3]{(a-b)^2 (b-x)}\right )}{2 (a-b)^3 \sqrt [3]{d} \sqrt [3]{-a b^2+b (2 a+b) x-(a+2 b) x^2+x^3}}+\frac {\sqrt [3]{-(a-b)^2 (a-x)} \left ((a-b)^2 (b-x)\right )^{2/3} \log (a-b d-(1-d) x)}{2 (a-b)^3 \sqrt [3]{d} \sqrt [3]{-a b^2+b (2 a+b) x-(a+2 b) x^2+x^3}} \\ \end{align*}
Time = 0.20 (sec) , antiderivative size = 174, normalized size of antiderivative = 0.32 \[ \int \frac {1}{\sqrt [3]{(-a+x) (-b+x)^2} (a-b d+(-1+d) x)} \, dx=\frac {(b-x)^{2/3} \sqrt [3]{-a+x} \left (2 \sqrt {3} \arctan \left (\frac {1-\frac {2 \sqrt [3]{d} \sqrt [3]{b-x}}{\sqrt [3]{-a+x}}}{\sqrt {3}}\right )+\log \left (1+\frac {d^{2/3} (b-x)^{2/3}}{(-a+x)^{2/3}}-\frac {\sqrt [3]{d} \sqrt [3]{b-x}}{\sqrt [3]{-a+x}}\right )-2 \log \left (1+\frac {\sqrt [3]{d} \sqrt [3]{b-x}}{\sqrt [3]{-a+x}}\right )\right )}{2 (a-b) \sqrt [3]{d} \sqrt [3]{(b-x)^2 (-a+x)}} \]
[In]
[Out]
\[\int \frac {1}{\left (\left (-a +x \right ) \left (-b +x \right )^{2}\right )^{\frac {1}{3}} \left (a -b d +\left (-1+d \right ) x \right )}d x\]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 662, normalized size of antiderivative = 1.22 \[ \int \frac {1}{\sqrt [3]{(-a+x) (-b+x)^2} (a-b d+(-1+d) x)} \, dx=\left [-\frac {\sqrt {3} d \sqrt {-\frac {1}{d^{\frac {2}{3}}}} \log \left (-\frac {b^{2} d + {\left (d + 2\right )} x^{2} + 2 \, a b + 3 \, {\left (-a b^{2} - {\left (a + 2 \, b\right )} x^{2} + x^{3} + {\left (2 \, a b + b^{2}\right )} x\right )}^{\frac {1}{3}} {\left (b - x\right )} d^{\frac {2}{3}} - 2 \, {\left (b d + a + b\right )} x + \sqrt {3} {\left ({\left (-a b^{2} - {\left (a + 2 \, b\right )} x^{2} + x^{3} + {\left (2 \, a b + b^{2}\right )} x\right )}^{\frac {1}{3}} {\left (b d - d x\right )} - {\left (b^{2} d - 2 \, b d x + d x^{2}\right )} d^{\frac {1}{3}} + 2 \, {\left (-a b^{2} - {\left (a + 2 \, b\right )} x^{2} + x^{3} + {\left (2 \, a b + b^{2}\right )} x\right )}^{\frac {2}{3}} d^{\frac {2}{3}}\right )} \sqrt {-\frac {1}{d^{\frac {2}{3}}}}}{b^{2} d + {\left (d - 1\right )} x^{2} - a b - {\left (2 \, b d - a - b\right )} x}\right ) - d^{\frac {2}{3}} \log \left (-\frac {{\left (-a b^{2} - {\left (a + 2 \, b\right )} x^{2} + x^{3} + {\left (2 \, a b + b^{2}\right )} x\right )}^{\frac {1}{3}} {\left (b - x\right )} d^{\frac {1}{3}} - {\left (b^{2} - 2 \, b x + x^{2}\right )} d^{\frac {2}{3}} - {\left (-a b^{2} - {\left (a + 2 \, b\right )} x^{2} + x^{3} + {\left (2 \, a b + b^{2}\right )} x\right )}^{\frac {2}{3}}}{b^{2} - 2 \, b x + x^{2}}\right ) + 2 \, d^{\frac {2}{3}} \log \left (-\frac {{\left (b - x\right )} d^{\frac {1}{3}} + {\left (-a b^{2} - {\left (a + 2 \, b\right )} x^{2} + x^{3} + {\left (2 \, a b + b^{2}\right )} x\right )}^{\frac {1}{3}}}{b - x}\right )}{2 \, {\left (a - b\right )} d}, -\frac {2 \, \sqrt {3} d^{\frac {2}{3}} \arctan \left (\frac {\sqrt {3} {\left ({\left (b - x\right )} d^{\frac {1}{3}} - 2 \, {\left (-a b^{2} - {\left (a + 2 \, b\right )} x^{2} + x^{3} + {\left (2 \, a b + b^{2}\right )} x\right )}^{\frac {1}{3}}\right )}}{3 \, {\left (b - x\right )} d^{\frac {1}{3}}}\right ) - d^{\frac {2}{3}} \log \left (-\frac {{\left (-a b^{2} - {\left (a + 2 \, b\right )} x^{2} + x^{3} + {\left (2 \, a b + b^{2}\right )} x\right )}^{\frac {1}{3}} {\left (b - x\right )} d^{\frac {1}{3}} - {\left (b^{2} - 2 \, b x + x^{2}\right )} d^{\frac {2}{3}} - {\left (-a b^{2} - {\left (a + 2 \, b\right )} x^{2} + x^{3} + {\left (2 \, a b + b^{2}\right )} x\right )}^{\frac {2}{3}}}{b^{2} - 2 \, b x + x^{2}}\right ) + 2 \, d^{\frac {2}{3}} \log \left (-\frac {{\left (b - x\right )} d^{\frac {1}{3}} + {\left (-a b^{2} - {\left (a + 2 \, b\right )} x^{2} + x^{3} + {\left (2 \, a b + b^{2}\right )} x\right )}^{\frac {1}{3}}}{b - x}\right )}{2 \, {\left (a - b\right )} d}\right ] \]
[In]
[Out]
\[ \int \frac {1}{\sqrt [3]{(-a+x) (-b+x)^2} (a-b d+(-1+d) x)} \, dx=\int \frac {1}{\sqrt [3]{\left (- a + x\right ) \left (- b + x\right )^{2}} \left (a - b d + d x - x\right )}\, dx \]
[In]
[Out]
\[ \int \frac {1}{\sqrt [3]{(-a+x) (-b+x)^2} (a-b d+(-1+d) x)} \, dx=\int { -\frac {1}{\left (-{\left (a - x\right )} {\left (b - x\right )}^{2}\right )^{\frac {1}{3}} {\left (b d - {\left (d - 1\right )} x - a\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {1}{\sqrt [3]{(-a+x) (-b+x)^2} (a-b d+(-1+d) x)} \, dx=\int { -\frac {1}{\left (-{\left (a - x\right )} {\left (b - x\right )}^{2}\right )^{\frac {1}{3}} {\left (b d - {\left (d - 1\right )} x - a\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {1}{\sqrt [3]{(-a+x) (-b+x)^2} (a-b d+(-1+d) x)} \, dx=\int \frac {1}{{\left (-\left (a-x\right )\,{\left (b-x\right )}^2\right )}^{1/3}\,\left (a-b\,d+x\,\left (d-1\right )\right )} \,d x \]
[In]
[Out]