Optimal. Leaf size=249 \[ -\frac {\sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} \sqrt [3]{d} x^2}{\sqrt [3]{d} x^2+2 \left (-a x^2+x^3\right )^{2/3}}\right )}{2 a d^{2/3}}-\frac {\log \left (-\sqrt [6]{d} x+\sqrt [3]{-a x^2+x^3}\right )}{2 a d^{2/3}}-\frac {\log \left (\sqrt [6]{d} x+\sqrt [3]{-a x^2+x^3}\right )}{2 a d^{2/3}}+\frac {\log \left (\sqrt [3]{d} x^2-\sqrt [6]{d} x \sqrt [3]{-a x^2+x^3}+\left (-a x^2+x^3\right )^{2/3}\right )}{4 a d^{2/3}}+\frac {\log \left (\sqrt [3]{d} x^2+\sqrt [6]{d} x \sqrt [3]{-a x^2+x^3}+\left (-a x^2+x^3\right )^{2/3}\right )}{4 a d^{2/3}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.54, antiderivative size = 397, normalized size of antiderivative = 1.59, number of steps
used = 11, number of rules used = 6, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {6851, 925,
129, 494, 245, 384} \begin {gather*} \frac {\sqrt {3} x^{2/3} \sqrt [3]{x-a} \text {ArcTan}\left (\frac {1-\frac {2 \sqrt [6]{d} \sqrt [3]{x}}{\sqrt [3]{x-a}}}{\sqrt {3}}\right )}{2 a d^{2/3} \sqrt [3]{-\left (x^2 (a-x)\right )}}+\frac {\sqrt {3} x^{2/3} \sqrt [3]{x-a} \text {ArcTan}\left (\frac {\frac {2 \sqrt [6]{d} \sqrt [3]{x}}{\sqrt [3]{x-a}}+1}{\sqrt {3}}\right )}{2 a d^{2/3} \sqrt [3]{-\left (x^2 (a-x)\right )}}+\frac {x^{2/3} \sqrt [3]{x-a} \log \left (a \left (1-\sqrt {d}\right )-(1-d) x\right )}{4 a d^{2/3} \sqrt [3]{-\left (x^2 (a-x)\right )}}+\frac {x^{2/3} \sqrt [3]{x-a} \log \left (a \left (\sqrt {d}+1\right )-(1-d) x\right )}{4 a d^{2/3} \sqrt [3]{-\left (x^2 (a-x)\right )}}-\frac {3 x^{2/3} \sqrt [3]{x-a} \log \left (\sqrt [6]{d} \sqrt [3]{x}-\sqrt [3]{x-a}\right )}{4 a d^{2/3} \sqrt [3]{-\left (x^2 (a-x)\right )}}-\frac {3 x^{2/3} \sqrt [3]{x-a} \log \left (\sqrt [3]{x-a}+\sqrt [6]{d} \sqrt [3]{x}\right )}{4 a d^{2/3} \sqrt [3]{-\left (x^2 (a-x)\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 129
Rule 245
Rule 384
Rule 494
Rule 925
Rule 6851
Rubi steps
\begin {align*} \int \frac {x}{\sqrt [3]{x^2 (-a+x)} \left (-a^2+2 a x+(-1+d) x^2\right )} \, dx &=\frac {\left (x^{2/3} \sqrt [3]{-a+x}\right ) \int \frac {\sqrt [3]{x}}{\sqrt [3]{-a+x} \left (-a^2+2 a x+(-1+d) x^2\right )} \, dx}{\sqrt [3]{x^2 (-a+x)}}\\ &=\frac {\left (x^{2/3} \sqrt [3]{-a+x}\right ) \int \left (\frac {(-1+d) \sqrt [3]{x}}{a \sqrt {d} \sqrt [3]{-a+x} \left (2 a-2 a \sqrt {d}-2 (1-d) x\right )}+\frac {(-1+d) \sqrt [3]{x}}{a \sqrt {d} \sqrt [3]{-a+x} \left (-2 a-2 a \sqrt {d}+2 (1-d) x\right )}\right ) \, dx}{\sqrt [3]{x^2 (-a+x)}}\\ &=-\frac {\left ((1-d) x^{2/3} \sqrt [3]{-a+x}\right ) \int \frac {\sqrt [3]{x}}{\sqrt [3]{-a+x} \left (2 a-2 a \sqrt {d}-2 (1-d) x\right )} \, dx}{a \sqrt {d} \sqrt [3]{x^2 (-a+x)}}-\frac {\left ((1-d) x^{2/3} \sqrt [3]{-a+x}\right ) \int \frac {\sqrt [3]{x}}{\sqrt [3]{-a+x} \left (-2 a-2 a \sqrt {d}+2 (1-d) x\right )} \, dx}{a \sqrt {d} \sqrt [3]{x^2 (-a+x)}}\\ &=-\frac {\left ((1-d) x^{2/3} \sqrt [3]{-a+x}\right ) \int \frac {1}{x^{2/3} \sqrt [3]{-a+x} \left (-2 a-2 a \sqrt {d}+2 (1-d) x\right )} \, dx}{\left (1-\sqrt {d}\right ) \sqrt {d} \sqrt [3]{x^2 (-a+x)}}-\frac {\left ((1-d) x^{2/3} \sqrt [3]{-a+x}\right ) \int \frac {1}{x^{2/3} \sqrt [3]{-a+x} \left (2 a-2 a \sqrt {d}-2 (1-d) x\right )} \, dx}{\left (1+\sqrt {d}\right ) \sqrt {d} \sqrt [3]{x^2 (-a+x)}}\\ &=-\frac {\sqrt {3} x^{2/3} \sqrt [3]{-a+x} \tan ^{-1}\left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{-a+x}}{\sqrt {3} \sqrt [6]{d} \sqrt [3]{x}}\right )}{2 a d^{2/3} \sqrt [3]{-\left ((a-x) x^2\right )}}-\frac {\sqrt {3} x^{2/3} \sqrt [3]{-a+x} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{-a+x}}{\sqrt {3} \sqrt [6]{d} \sqrt [3]{x}}\right )}{2 a d^{2/3} \sqrt [3]{-\left ((a-x) x^2\right )}}+\frac {x^{2/3} \sqrt [3]{-a+x} \log \left (2 a \left (1-\sqrt {d}\right )-2 (1-d) x\right )}{4 a d^{2/3} \sqrt [3]{-\left ((a-x) x^2\right )}}+\frac {x^{2/3} \sqrt [3]{-a+x} \log \left (-2 a \left (1+\sqrt {d}\right )+2 (1-d) x\right )}{4 a d^{2/3} \sqrt [3]{-\left ((a-x) x^2\right )}}-\frac {3 x^{2/3} \sqrt [3]{-a+x} \log \left (-\sqrt [3]{x}-\frac {\sqrt [3]{-a+x}}{\sqrt [6]{d}}\right )}{4 a d^{2/3} \sqrt [3]{-\left ((a-x) x^2\right )}}-\frac {3 x^{2/3} \sqrt [3]{-a+x} \log \left (-\sqrt [3]{x}+\frac {\sqrt [3]{-a+x}}{\sqrt [6]{d}}\right )}{4 a d^{2/3} \sqrt [3]{-\left ((a-x) x^2\right )}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.32, size = 223, normalized size = 0.90 \begin {gather*} \frac {x^{2/3} \sqrt [3]{-a+x} \left (-2 \sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} \sqrt [3]{d} x^{2/3}}{\sqrt [3]{d} x^{2/3}+2 (-a+x)^{2/3}}\right )-2 \log \left (-\sqrt [6]{d} \sqrt [3]{x}+\sqrt [3]{-a+x}\right )-2 \log \left (\sqrt [6]{d} \sqrt [3]{x}+\sqrt [3]{-a+x}\right )+\log \left (\sqrt [3]{d} x^{2/3}-\sqrt [6]{d} \sqrt [3]{x} \sqrt [3]{-a+x}+(-a+x)^{2/3}\right )+\log \left (\sqrt [3]{d} x^{2/3}+\sqrt [6]{d} \sqrt [3]{x} \sqrt [3]{-a+x}+(-a+x)^{2/3}\right )\right )}{4 a d^{2/3} \sqrt [3]{x^2 (-a+x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.14, size = 0, normalized size = 0.00 \[\int \frac {x}{\left (x^{2} \left (-a +x \right )\right )^{\frac {1}{3}} \left (-a^{2}+2 a x +\left (-1+d \right ) x^{2}\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*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 194, normalized size = 0.78 \begin {gather*} \frac {2 \, \sqrt {3} d \sqrt {-\left (-d^{2}\right )^{\frac {1}{3}}} \arctan \left (-\frac {\sqrt {3} {\left (\left (-d^{2}\right )^{\frac {1}{3}} d x^{2} - 2 \, {\left (-a x^{2} + x^{3}\right )}^{\frac {2}{3}} \left (-d^{2}\right )^{\frac {2}{3}}\right )} \sqrt {-\left (-d^{2}\right )^{\frac {1}{3}}}}{3 \, d^{2} x^{2}}\right ) + \left (-d^{2}\right )^{\frac {2}{3}} \log \left (-\frac {\left (-d^{2}\right )^{\frac {1}{3}} d x^{2} + {\left (-a x^{2} + x^{3}\right )}^{\frac {1}{3}} {\left (a d - d x\right )} - {\left (-a x^{2} + x^{3}\right )}^{\frac {2}{3}} \left (-d^{2}\right )^{\frac {2}{3}}}{x^{2}}\right ) - 2 \, \left (-d^{2}\right )^{\frac {2}{3}} \log \left (-\frac {\left (-d^{2}\right )^{\frac {2}{3}} x^{2} - {\left (-a x^{2} + x^{3}\right )}^{\frac {2}{3}} d}{x^{2}}\right )}{4 \, a d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x}{\sqrt [3]{x^{2} \left (- a + x\right )} \left (- a^{2} + 2 a x + d x^{2} - x^{2}\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 100, normalized size = 0.40 \begin {gather*} \frac {\sqrt {3} \arctan \left (\frac {\sqrt {3} {\left (2 \, {\left (-\frac {a}{x} + 1\right )}^{\frac {2}{3}} + d^{\frac {1}{3}}\right )}}{3 \, d^{\frac {1}{3}}}\right )}{2 \, a d^{\frac {2}{3}}} + \frac {\log \left ({\left (-\frac {a}{x} + 1\right )}^{\frac {4}{3}} + d^{\frac {1}{3}} {\left (-\frac {a}{x} + 1\right )}^{\frac {2}{3}} + d^{\frac {2}{3}}\right )}{4 \, a d^{\frac {2}{3}}} - \frac {\log \left ({\left | {\left (-\frac {a}{x} + 1\right )}^{\frac {2}{3}} - d^{\frac {1}{3}} \right |}\right )}{2 \, a d^{\frac {2}{3}}} \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 {x}{{\left (-x^2\,\left (a-x\right )\right )}^{1/3}\,\left (-a^2+2\,a\,x+\left (d-1\right )\,x^2\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________