Optimal. Leaf size=238 \[ -\frac {\log \left (a^2 d^{2/3}+\sqrt [3]{x^3 (-a-b)+a b x^2+x^4} \left (\sqrt [3]{d} x-a \sqrt [3]{d}\right )+\left (x^3 (-a-b)+a b x^2+x^4\right )^{2/3}-2 a d^{2/3} x+d^{2/3} x^2\right )}{2 d^{2/3}}+\frac {\log \left (\sqrt [3]{x^3 (-a-b)+a b x^2+x^4}+a \sqrt [3]{d}-\sqrt [3]{d} x\right )}{d^{2/3}}+\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} a \sqrt [3]{d}-\sqrt {3} \sqrt [3]{d} x}{-2 \sqrt [3]{x^3 (-a-b)+a b x^2+x^4}+a \sqrt [3]{d}-\sqrt [3]{d} x}\right )}{d^{2/3}} \]
________________________________________________________________________________________
Rubi [F] time = 13.76, 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 {-2 a^2 b x+a (3 a+2 b) x^2-4 a x^3+x^4}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (-a^2 d+2 a d x-(b+d) x^2+x^3\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {-2 a^2 b x+a (3 a+2 b) x^2-4 a x^3+x^4}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (-a^2 d+2 a d x-(b+d) x^2+x^3\right )} \, dx &=\frac {\left (x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \int \frac {-2 a^2 b x+a (3 a+2 b) x^2-4 a x^3+x^4}{x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3} \left (-a^2 d+2 a d x-(b+d) x^2+x^3\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 {-2 a^2 b+\left (3 a^2+2 a b\right ) x-4 a x^2+x^3}{\sqrt [3]{x} (-a+x)^{2/3} (-b+x)^{2/3} \left (-a^2 d+2 a d x-(b+d) x^2+x^3\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 {\sqrt [3]{-a+x} \left (2 a b-3 a x+x^2\right )}{\sqrt [3]{x} (-b+x)^{2/3} \left (-a^2 d+2 a d x-(b+d) x^2+x^3\right )} \, dx}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}\\ &=\frac {\left (3 x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x \sqrt [3]{-a+x^3} \left (2 a b-3 a x^3+x^6\right )}{\left (-b+x^3\right )^{2/3} \left (-a^2 d+2 a d x^3-(b+d) x^6+x^9\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}\\ &=\frac {\left (3 x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \left (\frac {3 a x^4 \sqrt [3]{-a+x^3}}{\left (-b+x^3\right )^{2/3} \left (a^2 d-2 a d x^3+b \left (1+\frac {d}{b}\right ) x^6-x^9\right )}+\frac {2 a b x \sqrt [3]{-a+x^3}}{\left (-b+x^3\right )^{2/3} \left (-a^2 d+2 a d x^3-b \left (1+\frac {d}{b}\right ) x^6+x^9\right )}+\frac {x^7 \sqrt [3]{-a+x^3}}{\left (-b+x^3\right )^{2/3} \left (-a^2 d+2 a d x^3-b \left (1+\frac {d}{b}\right ) x^6+x^9\right )}\right ) \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}\\ &=\frac {\left (3 x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x^7 \sqrt [3]{-a+x^3}}{\left (-b+x^3\right )^{2/3} \left (-a^2 d+2 a d x^3-b \left (1+\frac {d}{b}\right ) x^6+x^9\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}+\frac {\left (9 a x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x^4 \sqrt [3]{-a+x^3}}{\left (-b+x^3\right )^{2/3} \left (a^2 d-2 a d x^3+b \left (1+\frac {d}{b}\right ) x^6-x^9\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}+\frac {\left (6 a b x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x \sqrt [3]{-a+x^3}}{\left (-b+x^3\right )^{2/3} \left (-a^2 d+2 a d x^3-b \left (1+\frac {d}{b}\right ) x^6+x^9\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 4.16, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {-2 a^2 b x+a (3 a+2 b) x^2-4 a x^3+x^4}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (-a^2 d+2 a d x-(b+d) x^2+x^3\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 4.14, size = 238, normalized size = 1.00 \begin {gather*} \frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} a \sqrt [3]{d}-\sqrt {3} \sqrt [3]{d} x}{a \sqrt [3]{d}-\sqrt [3]{d} x-2 \sqrt [3]{a b x^2+(-a-b) x^3+x^4}}\right )}{d^{2/3}}+\frac {\log \left (a \sqrt [3]{d}-\sqrt [3]{d} x+\sqrt [3]{a b x^2+(-a-b) x^3+x^4}\right )}{d^{2/3}}-\frac {\log \left (a^2 d^{2/3}-2 a d^{2/3} x+d^{2/3} x^2+\left (-a \sqrt [3]{d}+\sqrt [3]{d} x\right ) \sqrt [3]{a b x^2+(-a-b) x^3+x^4}+\left (a b x^2+(-a-b) x^3+x^4\right )^{2/3}\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 [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {2 \, a^{2} b x - {\left (3 \, a + 2 \, b\right )} a x^{2} + 4 \, a x^{3} - x^{4}}{\left ({\left (a - x\right )} {\left (b - x\right )} x^{2}\right )^{\frac {2}{3}} {\left (a^{2} d - 2 \, a d x + {\left (b + d\right )} x^{2} - x^{3}\right )}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {-2 a^{2} b x +a \left (3 a +2 b \right ) x^{2}-4 a \,x^{3}+x^{4}}{\left (x^{2} \left (-a +x \right ) \left (-b +x \right )\right )^{\frac {2}{3}} \left (-a^{2} d +2 a d x -\left (b +d \right ) x^{2}+x^{3}\right )}\, dx\]
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 {2 \, a^{2} b x - {\left (3 \, a + 2 \, b\right )} a x^{2} + 4 \, a x^{3} - x^{4}}{\left ({\left (a - x\right )} {\left (b - x\right )} x^{2}\right )^{\frac {2}{3}} {\left (a^{2} d - 2 \, a d x + {\left (b + d\right )} x^{2} - x^{3}\right )}}\,{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 {4\,a\,x^3-x^4-a\,x^2\,\left (3\,a+2\,b\right )+2\,a^2\,b\,x}{{\left (x^2\,\left (a-x\right )\,\left (b-x\right )\right )}^{2/3}\,\left (d\,a^2-2\,d\,a\,x-x^3+\left (b+d\right )\,x^2\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]
________________________________________________________________________________________