Optimal. Leaf size=423 \[ \frac {\log \left (\sqrt [3]{d} (a-b)^{2/3} \sqrt [3]{x \left (2 a b+b^2\right )-a b^2+x^2 (-a-2 b)+x^3}-x (a-b)^{2/3}+b (a-b)^{2/3}\right )}{d^{2/3} (a-b)}+\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \sqrt [3]{d} \sqrt [3]{x \left (2 a b+b^2\right )-a b^2+x^2 (-a-2 b)+x^3}}{\sqrt [3]{d} \sqrt [3]{x \left (2 a b+b^2\right )-a b^2+x^2 (-a-2 b)+x^3}-2 b+2 x}\right )}{d^{2/3} (a-b)}-\frac {\log \left (b^3 \left (-\sqrt [3]{a-b}\right )+d^{2/3} (a-b)^{4/3} \left (x \left (2 a b+b^2\right )-a b^2+x^2 (-a-2 b)+x^3\right )^{2/3}+\sqrt [3]{d} \sqrt [3]{a-b} \left (-a b+a x+b^2-b x\right ) \sqrt [3]{x \left (2 a b+b^2\right )-a b^2+x^2 (-a-2 b)+x^3}+2 b^2 x \sqrt [3]{a-b}+a b^2 \sqrt [3]{a-b}-b x^2 \sqrt [3]{a-b}+a x^2 \sqrt [3]{a-b}-2 a b x \sqrt [3]{a-b}\right )}{2 d^{2/3} (a-b)} \]
________________________________________________________________________________________
Rubi [A] time = 0.68, antiderivative size = 376, normalized size of antiderivative = 0.89, number of steps used = 3, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {2081, 2077, 91} \begin {gather*} -\frac {\left ((a-b)^2 (b-x)\right )^{2/3} \sqrt [3]{(a-b)^2 (x-a)} \log (-a d+b+(d-1) x)}{2 d^{2/3} (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 (-\sqrt [3]{\frac {2}{3}} \sqrt [3]{d} \sqrt [3]{(a-b)^2 (x-a)}-\sqrt [3]{\frac {2}{3}} \sqrt [3]{(a-b)^2 (b-x)}\right )}{2 d^{2/3} (a-b)^3 \sqrt [3]{-a b^2+x^2 (-a-2 b)+b x (2 a+b)+x^3}}+\frac {\sqrt {3} \left ((a-b)^2 (b-x)\right )^{2/3} \sqrt [3]{(a-b)^2 (x-a)} \tan ^{-1}\left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{d} \sqrt [3]{(a-b)^2 (x-a)}}{\sqrt {3} \sqrt [3]{(a-b)^2 (b-x)}}\right )}{d^{2/3} (a-b)^3 \sqrt [3]{-a b^2+x^2 (-a-2 b)+b x (2 a+b)+x^3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 91
Rule 2077
Rule 2081
Rubi steps
\begin {align*} \int \frac {1}{\sqrt [3]{(-a+x) (-b+x)^2} (b-a d+(-1+d) x)} \, dx &=\operatorname {Subst}\left (\int \frac {1}{\left (\frac {1}{3} (-((-a-2 b) (-1+d))+3 (b-a 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 ) \operatorname {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 (b-a 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} \tan ^{-1}\left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{d} \sqrt [3]{-(a-b)^2 (a-x)}}{\sqrt {3} \sqrt [3]{(a-b)^2 (b-x)}}\right )}{(a-b)^3 d^{2/3} \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]{d} \sqrt [3]{-(a-b)^2 (a-x)}+\sqrt [3]{(a-b)^2 (b-x)}\right )}{2 (a-b)^3 d^{2/3} \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 (b-a d-(1-d) x)}{2 (a-b)^3 d^{2/3} \sqrt [3]{-a b^2+b (2 a+b) x-(a+2 b) x^2+x^3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.06, size = 58, normalized size = 0.14 \begin {gather*} -\frac {3 (x-b) \, _2F_1\left (\frac {1}{3},1;\frac {4}{3};\frac {b-x}{a d-d x}\right )}{d (a-b) \sqrt [3]{(x-a) (b-x)^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 3.21, size = 423, normalized size = 1.00 \begin {gather*} \frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {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 b+2 x+\sqrt [3]{d} \sqrt [3]{-a b^2+\left (2 a b+b^2\right ) x+(-a-2 b) x^2+x^3}}\right )}{(a-b) d^{2/3}}+\frac {\log \left ((a-b)^{2/3} b-(a-b)^{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 )}{(a-b) d^{2/3}}-\frac {\log \left (a \sqrt [3]{a-b} b^2-\sqrt [3]{a-b} b^3-2 a \sqrt [3]{a-b} b x+2 \sqrt [3]{a-b} b^2 x+a \sqrt [3]{a-b} x^2-\sqrt [3]{a-b} b x^2+\sqrt [3]{a-b} \sqrt [3]{d} \left (-a b+b^2+a x-b x\right ) \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 )}{2 (a-b) d^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.61, size = 301, normalized size = 0.71 \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}} {\left (b - x\right )} + 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}} d\right )} \sqrt {-\left (-d^{2}\right )^{\frac {1}{3}}}}{3 \, {\left (b d - d x\right )}}\right ) - \left (-d^{2}\right )^{\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 {2}{3}} d^{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}} {\left (b d - d x\right )} \left (-d^{2}\right )^{\frac {1}{3}} + {\left (b^{2} - 2 \, b x + x^{2}\right )} \left (-d^{2}\right )^{\frac {2}{3}}}{b^{2} - 2 \, b x + x^{2}}\right ) + 2 \, \left (-d^{2}\right )^{\frac {2}{3}} \log \left (\frac {\left (-d^{2}\right )^{\frac {1}{3}} {\left (b - x\right )} - {\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}} d}{b - x}\right )}{2 \, {\left (a - b\right )} d^{2}} \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 {1}{\left (-{\left (a - x\right )} {\left (b - x\right )}^{2}\right )^{\frac {1}{3}} {\left (a d - {\left (d - 1\right )} x - b\right )}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.05, size = 0, normalized size = 0.00 \[\int \frac {1}{\left (\left (-a +x \right ) \left (-b +x \right )^{2}\right )^{\frac {1}{3}} \left (b -a d +\left (-1+d \right ) x \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 {1}{\left (-{\left (a - x\right )} {\left (b - x\right )}^{2}\right )^{\frac {1}{3}} {\left (a d - {\left (d - 1\right )} x - b\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 {1}{{\left (-\left (a-x\right )\,{\left (b-x\right )}^2\right )}^{1/3}\,\left (b-a\,d+x\,\left (d-1\right )\right )} \,d x \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 {1}{\sqrt [3]{\left (- a + x\right ) \left (- b + x\right )^{2}} \left (- a d + b + d x - x\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________