Optimal. Leaf size=258 \[ \frac {\sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} b-\sqrt {3} x}{b-x-2 \sqrt [3]{d} \sqrt [3]{-a b^2 x+\left (2 a b+b^2\right ) x^2+(-a-2 b) x^3+x^4}}\right )}{\sqrt [3]{d}}+\frac {\log \left (b-x+\sqrt [3]{d} \sqrt [3]{-a b^2 x+\left (2 a b+b^2\right ) x^2+(-a-2 b) x^3+x^4}\right )}{\sqrt [3]{d}}-\frac {\log \left (b^2-2 b x+x^2+\left (-b \sqrt [3]{d}+\sqrt [3]{d} x\right ) \sqrt [3]{-a b^2 x+\left (2 a b+b^2\right ) x^2+(-a-2 b) x^3+x^4}+d^{2/3} \left (-a b^2 x+\left (2 a b+b^2\right ) x^2+(-a-2 b) x^3+x^4\right )^{2/3}\right )}{2 \sqrt [3]{d}} \]
[Out]
________________________________________________________________________________________
Rubi [F]
time = 5.52, 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 {(-b+x) \left (a b-2 b x+x^2\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3} \left (b-(1+a d) x+d x^2\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {(-b+x) \left (a b-2 b x+x^2\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3} \left (b-(1+a d) x+d x^2\right )} \, dx &=\frac {\left (x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \int \frac {a b-2 b x+x^2}{x^{2/3} (-a+x)^{2/3} \sqrt [3]{-b+x} \left (b-(1+a d) x+d x^2\right )} \, dx}{\left (x (-a+x) (-b+x)^2\right )^{2/3}}\\ &=\frac {\left (x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \int \left (\frac {1}{d x^{2/3} (-a+x)^{2/3} \sqrt [3]{-b+x}}-\frac {b-a b d-(1+a d-2 b d) x}{d x^{2/3} (-a+x)^{2/3} \sqrt [3]{-b+x} \left (b+(-1-a d) x+d x^2\right )}\right ) \, dx}{\left (x (-a+x) (-b+x)^2\right )^{2/3}}\\ &=\frac {\left (x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \int \frac {1}{x^{2/3} (-a+x)^{2/3} \sqrt [3]{-b+x}} \, dx}{d \left (x (-a+x) (-b+x)^2\right )^{2/3}}-\frac {\left (x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \int \frac {b-a b d-(1+a d-2 b d) x}{x^{2/3} (-a+x)^{2/3} \sqrt [3]{-b+x} \left (b+(-1-a d) x+d x^2\right )} \, dx}{d \left (x (-a+x) (-b+x)^2\right )^{2/3}}\\ &=-\frac {\left (x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \int \left (\frac {-1-a d+2 b d-\sqrt {1+2 a d-4 b d+a^2 d^2}}{x^{2/3} (-a+x)^{2/3} \sqrt [3]{-b+x} \left (-1-a d-\sqrt {1+2 a d-4 b d+a^2 d^2}+2 d x\right )}+\frac {-1-a d+2 b d+\sqrt {1+2 a d-4 b d+a^2 d^2}}{x^{2/3} (-a+x)^{2/3} \sqrt [3]{-b+x} \left (-1-a d+\sqrt {1+2 a d-4 b d+a^2 d^2}+2 d x\right )}\right ) \, dx}{d \left (x (-a+x) (-b+x)^2\right )^{2/3}}+\frac {\left (x^{2/3} (-b+x)^{4/3} \left (1-\frac {x}{a}\right )^{2/3}\right ) \int \frac {1}{x^{2/3} \sqrt [3]{-b+x} \left (1-\frac {x}{a}\right )^{2/3}} \, dx}{d \left (x (-a+x) (-b+x)^2\right )^{2/3}}\\ &=-\frac {\left (\left (-1-a d+2 b d-\sqrt {1+2 a d-4 b d+a^2 d^2}\right ) x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \int \frac {1}{x^{2/3} (-a+x)^{2/3} \sqrt [3]{-b+x} \left (-1-a d-\sqrt {1+2 a d-4 b d+a^2 d^2}+2 d x\right )} \, dx}{d \left (x (-a+x) (-b+x)^2\right )^{2/3}}-\frac {\left (\left (-1-a d+2 b d+\sqrt {1+2 a d-4 b d+a^2 d^2}\right ) x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \int \frac {1}{x^{2/3} (-a+x)^{2/3} \sqrt [3]{-b+x} \left (-1-a d+\sqrt {1+2 a d-4 b d+a^2 d^2}+2 d x\right )} \, dx}{d \left (x (-a+x) (-b+x)^2\right )^{2/3}}+\frac {\left (x^{2/3} (-b+x) \left (1-\frac {x}{a}\right )^{2/3} \sqrt [3]{1-\frac {x}{b}}\right ) \int \frac {1}{x^{2/3} \left (1-\frac {x}{a}\right )^{2/3} \sqrt [3]{1-\frac {x}{b}}} \, dx}{d \left (x (-a+x) (-b+x)^2\right )^{2/3}}\\ &=-\frac {3 (b-x) x \left (1-\frac {x}{a}\right )^{2/3} \sqrt [3]{1-\frac {x}{b}} F_1\left (\frac {1}{3};\frac {2}{3},\frac {1}{3};\frac {4}{3};\frac {x}{a},\frac {x}{b}\right )}{d \left (-\left ((a-x) (b-x)^2 x\right )\right )^{2/3}}-\frac {\left (\left (-1-a d+2 b d-\sqrt {1+2 a d-4 b d+a^2 d^2}\right ) x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \int \frac {1}{x^{2/3} (-a+x)^{2/3} \sqrt [3]{-b+x} \left (-1-a d-\sqrt {1+2 a d-4 b d+a^2 d^2}+2 d x\right )} \, dx}{d \left (x (-a+x) (-b+x)^2\right )^{2/3}}-\frac {\left (\left (-1-a d+2 b d+\sqrt {1+2 a d-4 b d+a^2 d^2}\right ) x^{2/3} (-a+x)^{2/3} (-b+x)^{4/3}\right ) \int \frac {1}{x^{2/3} (-a+x)^{2/3} \sqrt [3]{-b+x} \left (-1-a d+\sqrt {1+2 a d-4 b d+a^2 d^2}+2 d x\right )} \, dx}{d \left (x (-a+x) (-b+x)^2\right )^{2/3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 15.25, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(-b+x) \left (a b-2 b x+x^2\right )}{\left (x (-a+x) (-b+x)^2\right )^{2/3} \left (b-(1+a d) x+d x^2\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.14, size = 0, normalized size = 0.00 \[\int \frac {\left (-b +x \right ) \left (a b -2 b x +x^{2}\right )}{\left (x \left (-a +x \right ) \left (-b +x \right )^{2}\right )^{\frac {2}{3}} \left (b -\left (a d +1\right ) x +d \,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 [F(-1)] Timed out
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]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
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*} \text {could not integrate} \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 (b-x\right )\,\left (x^2-2\,b\,x+a\,b\right )}{{\left (-x\,\left (a-x\right )\,{\left (b-x\right )}^2\right )}^{2/3}\,\left (d\,x^2+\left (-a\,d-1\right )\,x+b\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________