Integrand size = 51, antiderivative size = 174 \[ \int \frac {x \left (-a b+x^2\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (a b d-(1+a d+b d) x+d x^2\right )} \, dx=\frac {\sqrt {3} \arctan \left (\frac {\sqrt {3} x}{x+2 \sqrt [3]{d} \sqrt [3]{a b x^2+(-a-b) x^3+x^4}}\right )}{\sqrt [3]{d}}+\frac {\log \left (x-\sqrt [3]{d} \sqrt [3]{a b x^2+(-a-b) x^3+x^4}\right )}{\sqrt [3]{d}}-\frac {\log \left (x^2+\sqrt [3]{d} x \sqrt [3]{a b x^2+(-a-b) x^3+x^4}+d^{2/3} \left (a b x^2+(-a-b) x^3+x^4\right )^{2/3}\right )}{2 \sqrt [3]{d}} \]
[Out]
\[ \int \frac {x \left (-a b+x^2\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (a b d-(1+a d+b d) x+d x^2\right )} \, dx=\int \frac {x \left (-a b+x^2\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (a b d-(1+a d+b d) x+d x^2\right )} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \frac {\left (x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \int \frac {-a b+x^2}{\sqrt [3]{x} (-a+x)^{2/3} (-b+x)^{2/3} \left (a b d-(1+a d+b d) x+d x^2\right )} \, dx}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}} \\ & = \frac {\left (x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \int \left (\frac {1}{d \sqrt [3]{x} (-a+x)^{2/3} (-b+x)^{2/3}}-\frac {2 a b d-(1+a d+b d) x}{d \sqrt [3]{x} (-a+x)^{2/3} (-b+x)^{2/3} \left (a b d+(-1-a d-b d) x+d x^2\right )}\right ) \, dx}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}} \\ & = \frac {\left (x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \int \frac {1}{\sqrt [3]{x} (-a+x)^{2/3} (-b+x)^{2/3}} \, dx}{d \left (x^2 (-a+x) (-b+x)\right )^{2/3}}-\frac {\left (x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \int \frac {2 a b d-(1+a d+b d) x}{\sqrt [3]{x} (-a+x)^{2/3} (-b+x)^{2/3} \left (a b d+(-1-a d-b d) x+d x^2\right )} \, dx}{d \left (x^2 (-a+x) (-b+x)\right )^{2/3}} \\ & = -\frac {\left (x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \int \left (\frac {-1-a d-b d-\sqrt {1+2 a d+2 b d+a^2 d^2-2 a b d^2+b^2 d^2}}{\sqrt [3]{x} (-a+x)^{2/3} (-b+x)^{2/3} \left (-1-a d-b d-\sqrt {1+2 a d+2 b d+a^2 d^2-2 a b d^2+b^2 d^2}+2 d x\right )}+\frac {-1-a d-b d+\sqrt {1+2 a d+2 b d+a^2 d^2-2 a b d^2+b^2 d^2}}{\sqrt [3]{x} (-a+x)^{2/3} (-b+x)^{2/3} \left (-1-a d-b d+\sqrt {1+2 a d+2 b d+a^2 d^2-2 a b d^2+b^2 d^2}+2 d x\right )}\right ) \, dx}{d \left (x^2 (-a+x) (-b+x)\right )^{2/3}}+\frac {\left (x^{4/3} (-b+x)^{2/3} \left (1-\frac {x}{a}\right )^{2/3}\right ) \int \frac {1}{\sqrt [3]{x} (-b+x)^{2/3} \left (1-\frac {x}{a}\right )^{2/3}} \, dx}{d \left (x^2 (-a+x) (-b+x)\right )^{2/3}} \\ & = -\frac {\left (\left (-1-a d-b d-\sqrt {a^2 d^2+2 a d (1-b d)+(1+b d)^2}\right ) x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \int \frac {1}{\sqrt [3]{x} (-a+x)^{2/3} (-b+x)^{2/3} \left (-1-a d-b d-\sqrt {1+2 a d+2 b d+a^2 d^2-2 a b d^2+b^2 d^2}+2 d x\right )} \, dx}{d \left (x^2 (-a+x) (-b+x)\right )^{2/3}}-\frac {\left (\left (-1-a d-b d+\sqrt {a^2 d^2+2 a d (1-b d)+(1+b d)^2}\right ) x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \int \frac {1}{\sqrt [3]{x} (-a+x)^{2/3} (-b+x)^{2/3} \left (-1-a d-b d+\sqrt {1+2 a d+2 b d+a^2 d^2-2 a b d^2+b^2 d^2}+2 d x\right )} \, dx}{d \left (x^2 (-a+x) (-b+x)\right )^{2/3}}+\frac {\left (x^{4/3} \left (1-\frac {x}{a}\right )^{2/3} \left (1-\frac {x}{b}\right )^{2/3}\right ) \int \frac {1}{\sqrt [3]{x} \left (1-\frac {x}{a}\right )^{2/3} \left (1-\frac {x}{b}\right )^{2/3}} \, dx}{d \left (x^2 (-a+x) (-b+x)\right )^{2/3}} \\ & = \frac {3 x^2 \left (1-\frac {x}{a}\right )^{2/3} \left (1-\frac {x}{b}\right )^{2/3} \operatorname {AppellF1}\left (\frac {2}{3},\frac {2}{3},\frac {2}{3},\frac {5}{3},\frac {x}{a},\frac {x}{b}\right )}{2 d \left ((a-x) (b-x) x^2\right )^{2/3}}-\frac {\left (\left (-1-a d-b d-\sqrt {a^2 d^2+2 a d (1-b d)+(1+b d)^2}\right ) x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \int \frac {1}{\sqrt [3]{x} (-a+x)^{2/3} (-b+x)^{2/3} \left (-1-a d-b d-\sqrt {1+2 a d+2 b d+a^2 d^2-2 a b d^2+b^2 d^2}+2 d x\right )} \, dx}{d \left (x^2 (-a+x) (-b+x)\right )^{2/3}}-\frac {\left (\left (-1-a d-b d+\sqrt {a^2 d^2+2 a d (1-b d)+(1+b d)^2}\right ) x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \int \frac {1}{\sqrt [3]{x} (-a+x)^{2/3} (-b+x)^{2/3} \left (-1-a d-b d+\sqrt {1+2 a d+2 b d+a^2 d^2-2 a b d^2+b^2 d^2}+2 d x\right )} \, dx}{d \left (x^2 (-a+x) (-b+x)\right )^{2/3}} \\ \end{align*}
Time = 15.42 (sec) , antiderivative size = 140, normalized size of antiderivative = 0.80 \[ \int \frac {x \left (-a b+x^2\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (a b d-(1+a d+b d) x+d x^2\right )} \, dx=\frac {2 \sqrt {3} \arctan \left (\frac {\sqrt {3} x}{x+2 \sqrt [3]{d} \sqrt [3]{x^2 (-a+x) (-b+x)}}\right )+2 \log \left (x-\sqrt [3]{d} \sqrt [3]{x^2 (-a+x) (-b+x)}\right )-\log \left (x^2+\sqrt [3]{d} x \sqrt [3]{x^2 (-a+x) (-b+x)}+d^{2/3} \left (x^2 (-a+x) (-b+x)\right )^{2/3}\right )}{2 \sqrt [3]{d}} \]
[In]
[Out]
Time = 1.19 (sec) , antiderivative size = 145, normalized size of antiderivative = 0.83
method | result | size |
pseudoelliptic | \(\frac {-2 \sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (\left (\frac {1}{d}\right )^{\frac {1}{3}} x +2 \left (x^{2} \left (a -x \right ) \left (b -x \right )\right )^{\frac {1}{3}}\right )}{3 \left (\frac {1}{d}\right )^{\frac {1}{3}} x}\right )+2 \ln \left (\frac {-\left (\frac {1}{d}\right )^{\frac {1}{3}} x +\left (x^{2} \left (a -x \right ) \left (b -x \right )\right )^{\frac {1}{3}}}{x}\right )-\ln \left (\frac {\left (\frac {1}{d}\right )^{\frac {2}{3}} x^{2}+\left (\frac {1}{d}\right )^{\frac {1}{3}} \left (x^{2} \left (a -x \right ) \left (b -x \right )\right )^{\frac {1}{3}} x +\left (x^{2} \left (a -x \right ) \left (b -x \right )\right )^{\frac {2}{3}}}{x^{2}}\right )}{2 \left (\frac {1}{d}\right )^{\frac {2}{3}} d}\) | \(145\) |
[In]
[Out]
Timed out. \[ \int \frac {x \left (-a b+x^2\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (a b d-(1+a d+b d) x+d x^2\right )} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {x \left (-a b+x^2\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (a b d-(1+a d+b d) x+d x^2\right )} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {x \left (-a b+x^2\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (a b d-(1+a d+b d) x+d x^2\right )} \, dx=\int { -\frac {{\left (a b - x^{2}\right )} x}{\left ({\left (a - x\right )} {\left (b - x\right )} x^{2}\right )^{\frac {2}{3}} {\left (a b d + d x^{2} - {\left (a d + b d + 1\right )} x\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {x \left (-a b+x^2\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (a b d-(1+a d+b d) x+d x^2\right )} \, dx=\int { -\frac {{\left (a b - x^{2}\right )} x}{\left ({\left (a - x\right )} {\left (b - x\right )} x^{2}\right )^{\frac {2}{3}} {\left (a b d + d x^{2} - {\left (a d + b d + 1\right )} x\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x \left (-a b+x^2\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (a b d-(1+a d+b d) x+d x^2\right )} \, dx=\int -\frac {x\,\left (a\,b-x^2\right )}{\left (d\,x^2+\left (-a\,d-b\,d-1\right )\,x+a\,b\,d\right )\,{\left (x^2\,\left (a-x\right )\,\left (b-x\right )\right )}^{2/3}} \,d x \]
[In]
[Out]