Optimal. Leaf size=291 \[ \frac {\log \left (x-\sqrt [6]{d} \sqrt [3]{x^2 (-a-b)+a b x+x^3}\right )}{2 d^{2/3}}+\frac {\log \left (\sqrt [6]{d} \sqrt [3]{x^2 (-a-b)+a b x+x^3}+x\right )}{2 d^{2/3}}-\frac {\log \left (-\sqrt [6]{d} x \sqrt [3]{x^2 (-a-b)+a b x+x^3}+\sqrt [3]{d} \left (x^2 (-a-b)+a b x+x^3\right )^{2/3}+x^2\right )}{4 d^{2/3}}-\frac {\log \left (\sqrt [6]{d} x \sqrt [3]{x^2 (-a-b)+a b x+x^3}+\sqrt [3]{d} \left (x^2 (-a-b)+a b x+x^3\right )^{2/3}+x^2\right )}{4 d^{2/3}}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} x^2}{2 \sqrt [3]{d} \left (x^2 (-a-b)+a b x+x^3\right )^{2/3}+x^2}\right )}{2 d^{2/3}} \]
________________________________________________________________________________________
Rubi [F] time = 48.54, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {(-a+x) (-b+x) \left (-2 a b x+(a+b) x^2\right )}{(x (-a+x) (-b+x))^{2/3} \left (a^2 b^2 d-2 a b (a+b) d x+\left (a^2+4 a b+b^2\right ) d x^2-2 (a+b) d x^3+(-1+d) x^4\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {(-a+x) (-b+x) \left (-2 a b x+(a+b) x^2\right )}{(x (-a+x) (-b+x))^{2/3} \left (a^2 b^2 d-2 a b (a+b) d x+\left (a^2+4 a b+b^2\right ) d x^2-2 (a+b) d x^3+(-1+d) x^4\right )} \, dx &=\int \frac {x (-a+x) (-b+x) (-2 a b+(a+b) x)}{(x (-a+x) (-b+x))^{2/3} \left (a^2 b^2 d-2 a b (a+b) d x+\left (a^2+4 a b+b^2\right ) d x^2-2 (a+b) d x^3+(-1+d) x^4\right )} \, dx\\ &=\frac {\left (x^{2/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \int \frac {\sqrt [3]{x} \sqrt [3]{-a+x} \sqrt [3]{-b+x} (-2 a b+(a+b) x)}{a^2 b^2 d-2 a b (a+b) d x+\left (a^2+4 a b+b^2\right ) d x^2-2 (a+b) d x^3+(-1+d) x^4} \, dx}{(x (-a+x) (-b+x))^{2/3}}\\ &=\frac {\left (3 x^{2/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x^3 \sqrt [3]{-a+x^3} \sqrt [3]{-b+x^3} \left (-2 a b+(a+b) x^3\right )}{a^2 b^2 d-2 a b (a+b) d x^3+\left (a^2+4 a b+b^2\right ) d x^6-2 (a+b) d x^9+(-1+d) x^{12}} \, dx,x,\sqrt [3]{x}\right )}{(x (-a+x) (-b+x))^{2/3}}\\ &=\frac {\left (3 x^{2/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \left (\frac {(a+b) x^6 \sqrt [3]{-a+x^3} \sqrt [3]{-b+x^3}}{a^2 b^2 d-2 a^2 b \left (1+\frac {b}{a}\right ) d x^3+a^2 \left (1+\frac {b (4 a+b)}{a^2}\right ) d x^6-2 a \left (1+\frac {b}{a}\right ) d x^9-(1-d) x^{12}}+\frac {2 a b x^3 \sqrt [3]{-a+x^3} \sqrt [3]{-b+x^3}}{-a^2 b^2 d+2 a^2 b \left (1+\frac {b}{a}\right ) d x^3-a^2 \left (1+\frac {b (4 a+b)}{a^2}\right ) d x^6+2 a \left (1+\frac {b}{a}\right ) d x^9+(1-d) x^{12}}\right ) \, dx,x,\sqrt [3]{x}\right )}{(x (-a+x) (-b+x))^{2/3}}\\ &=\frac {\left (6 a b x^{2/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x^3 \sqrt [3]{-a+x^3} \sqrt [3]{-b+x^3}}{-a^2 b^2 d+2 a^2 b \left (1+\frac {b}{a}\right ) d x^3-a^2 \left (1+\frac {b (4 a+b)}{a^2}\right ) d x^6+2 a \left (1+\frac {b}{a}\right ) d x^9+(1-d) x^{12}} \, dx,x,\sqrt [3]{x}\right )}{(x (-a+x) (-b+x))^{2/3}}+\frac {\left (3 (a+b) x^{2/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x^6 \sqrt [3]{-a+x^3} \sqrt [3]{-b+x^3}}{a^2 b^2 d-2 a^2 b \left (1+\frac {b}{a}\right ) d x^3+a^2 \left (1+\frac {b (4 a+b)}{a^2}\right ) d x^6-2 a \left (1+\frac {b}{a}\right ) d x^9-(1-d) x^{12}} \, dx,x,\sqrt [3]{x}\right )}{(x (-a+x) (-b+x))^{2/3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 1.86, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(-a+x) (-b+x) \left (-2 a b x+(a+b) x^2\right )}{(x (-a+x) (-b+x))^{2/3} \left (a^2 b^2 d-2 a b (a+b) d x+\left (a^2+4 a b+b^2\right ) d x^2-2 (a+b) d x^3+(-1+d) x^4\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 1.28, size = 291, normalized size = 1.00 \begin {gather*} \frac {\log \left (x-\sqrt [6]{d} \sqrt [3]{x^2 (-a-b)+a b x+x^3}\right )}{2 d^{2/3}}+\frac {\log \left (\sqrt [6]{d} \sqrt [3]{x^2 (-a-b)+a b x+x^3}+x\right )}{2 d^{2/3}}-\frac {\log \left (-\sqrt [6]{d} x \sqrt [3]{x^2 (-a-b)+a b x+x^3}+\sqrt [3]{d} \left (x^2 (-a-b)+a b x+x^3\right )^{2/3}+x^2\right )}{4 d^{2/3}}-\frac {\log \left (\sqrt [6]{d} x \sqrt [3]{x^2 (-a-b)+a b x+x^3}+\sqrt [3]{d} \left (x^2 (-a-b)+a b x+x^3\right )^{2/3}+x^2\right )}{4 d^{2/3}}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} x^2}{2 \sqrt [3]{d} \left (x^2 (-a-b)+a b x+x^3\right )^{2/3}+x^2}\right )}{2 d^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.25, size = 317, normalized size = 1.09 \begin {gather*} -\frac {{\left | d \right |} \log \left ({\left (\frac {a b}{x^{2}} - \frac {a}{x} - \frac {b}{x} + 1\right )}^{\frac {2}{3}} + \left (-\frac {1}{d}\right )^{\frac {1}{3}}\right )}{2 \, \left (-d^{5}\right )^{\frac {1}{3}}} + \frac {\sqrt {3} \left (-d^{5}\right )^{\frac {2}{3}} \arctan \left (\frac {\sqrt {3} \left (-\frac {1}{d}\right )^{\frac {1}{6}} + 2 \, {\left (\frac {a b}{x^{2}} - \frac {a}{x} - \frac {b}{x} + 1\right )}^{\frac {1}{3}}}{\left (-\frac {1}{d}\right )^{\frac {1}{6}}}\right )}{2 \, d^{4}} - \frac {\sqrt {3} \left (-d^{5}\right )^{\frac {2}{3}} \arctan \left (-\frac {\sqrt {3} \left (-\frac {1}{d}\right )^{\frac {1}{6}} - 2 \, {\left (\frac {a b}{x^{2}} - \frac {a}{x} - \frac {b}{x} + 1\right )}^{\frac {1}{3}}}{\left (-\frac {1}{d}\right )^{\frac {1}{6}}}\right )}{2 \, d^{4}} - \frac {\left (-d^{5}\right )^{\frac {2}{3}} \log \left (\sqrt {3} {\left (\frac {a b}{x^{2}} - \frac {a}{x} - \frac {b}{x} + 1\right )}^{\frac {1}{3}} \left (-\frac {1}{d}\right )^{\frac {1}{6}} + {\left (\frac {a b}{x^{2}} - \frac {a}{x} - \frac {b}{x} + 1\right )}^{\frac {2}{3}} + \left (-\frac {1}{d}\right )^{\frac {1}{3}}\right )}{4 \, d^{4}} - \frac {\left (-d^{5}\right )^{\frac {2}{3}} \log \left (-\sqrt {3} {\left (\frac {a b}{x^{2}} - \frac {a}{x} - \frac {b}{x} + 1\right )}^{\frac {1}{3}} \left (-\frac {1}{d}\right )^{\frac {1}{6}} + {\left (\frac {a b}{x^{2}} - \frac {a}{x} - \frac {b}{x} + 1\right )}^{\frac {2}{3}} + \left (-\frac {1}{d}\right )^{\frac {1}{3}}\right )}{4 \, d^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.11, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (-a +x \right ) \left (-b +x \right ) \left (-2 a b x +\left (a +b \right ) x^{2}\right )}{\left (x \left (-a +x \right ) \left (-b +x \right )\right )^{\frac {2}{3}} \left (a^{2} b^{2} d -2 a b \left (a +b \right ) d x +\left (a^{2}+4 a b +b^{2}\right ) d \,x^{2}-2 \left (a +b \right ) d \,x^{3}+\left (-1+d \right ) x^{4}\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} -\int \frac {{\left (2 \, a b x - {\left (a + b\right )} x^{2}\right )} {\left (a - x\right )} {\left (b - x\right )}}{{\left (a^{2} b^{2} d - 2 \, {\left (a + b\right )} a b d x - 2 \, {\left (a + b\right )} d x^{3} + {\left (d - 1\right )} x^{4} + {\left (a^{2} + 4 \, a b + b^{2}\right )} d x^{2}\right )} \left ({\left (a - x\right )} {\left (b - x\right )} x\right )^{\frac {2}{3}}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\left (x^2\,\left (a+b\right )-2\,a\,b\,x\right )\,\left (a-x\right )\,\left (b-x\right )}{{\left (x\,\left (a-x\right )\,\left (b-x\right )\right )}^{2/3}\,\left (x^4\,\left (d-1\right )+a^2\,b^2\,d+d\,x^2\,\left (a^2+4\,a\,b+b^2\right )-2\,d\,x^3\,\left (a+b\right )-2\,a\,b\,d\,x\,\left (a+b\right )\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________