Optimal. Leaf size=165 \[ -\frac {4 \left (-a b^2+2 a b x+b^2 x-a x^2-2 b x^2+x^3\right )^{3/4}}{(b-x) (-a+x)}-2 \sqrt [4]{d} \text {ArcTan}\left (\frac {\sqrt [4]{d} \sqrt [4]{-a b^2+\left (2 a b+b^2\right ) x+(-a-2 b) x^2+x^3}}{b-x}\right )+2 \sqrt [4]{d} \tanh ^{-1}\left (\frac {\sqrt [4]{d} \sqrt [4]{-a b^2+\left (2 a b+b^2\right ) x+(-a-2 b) x^2+x^3}}{b-x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [C] Result contains higher order function than in optimal. Order 6 vs. order 3 in
optimal.
time = 2.17, antiderivative size = 325, normalized size of antiderivative = 1.97, number of steps
used = 8, number of rules used = 5, integrand size = 81, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {6820, 6851,
6860, 142, 141} \begin {gather*} \frac {4 (a-b) (b-x) \left (\sqrt {-4 a+4 b+d}+\sqrt {d}\right ) F_1\left (-\frac {1}{4};-\frac {3}{2},1;\frac {3}{4};\frac {a-x}{a-b},\frac {2 (a-x)}{2 a-2 b-d-\sqrt {d} \sqrt {-4 a+4 b+d}}\right )}{\sqrt {d} \left (-\sqrt {d} \sqrt {-4 a+4 b+d}+2 a-2 b-d\right ) \sqrt {-\frac {b-x}{a-b}} \sqrt [4]{-\left ((a-x) (b-x)^2\right )}}+\frac {4 (a-b) (b-x) \left (1-\frac {\sqrt {-4 a+4 b+d}}{\sqrt {d}}\right ) F_1\left (-\frac {1}{4};-\frac {3}{2},1;\frac {3}{4};\frac {a-x}{a-b},\frac {2 (a-x)}{2 a-2 b-d+\sqrt {d} \sqrt {-4 a+4 b+d}}\right )}{\left (\sqrt {d} \sqrt {-4 a+4 b+d}+2 a-2 b-d\right ) \sqrt {-\frac {b-x}{a-b}} \sqrt [4]{-\left ((a-x) (b-x)^2\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 141
Rule 142
Rule 6820
Rule 6851
Rule 6860
Rubi steps
\begin {align*} \int \frac {-\left ((2 a-b) b^2\right )+(4 a-b) b x-(2 a+b) x^2+x^3}{(-a+x) \sqrt [4]{(-a+x) (-b+x)^2} \left (b^2+a d-(2 b+d) x+x^2\right )} \, dx &=\int \frac {(b-x)^4 (-2 a+b+x)}{\left (-\left ((a-x) (b-x)^2\right )\right )^{5/4} \left (b^2+a d-(2 b+d) x+x^2\right )} \, dx\\ &=-\frac {\left (\sqrt [4]{a-x} \sqrt {b-x}\right ) \int \frac {(b-x)^{3/2} (-2 a+b+x)}{(a-x)^{5/4} \left (b^2+a d-(2 b+d) x+x^2\right )} \, dx}{\sqrt [4]{-\left ((a-x) (b-x)^2\right )}}\\ &=-\frac {\left (\sqrt [4]{a-x} \sqrt {b-x}\right ) \int \left (\frac {\left (1+\frac {\sqrt {-4 a+4 b+d}}{\sqrt {d}}\right ) (b-x)^{3/2}}{(a-x)^{5/4} \left (-2 b-d-\sqrt {d} \sqrt {-4 a+4 b+d}+2 x\right )}+\frac {\left (1-\frac {\sqrt {-4 a+4 b+d}}{\sqrt {d}}\right ) (b-x)^{3/2}}{(a-x)^{5/4} \left (-2 b-d+\sqrt {d} \sqrt {-4 a+4 b+d}+2 x\right )}\right ) \, dx}{\sqrt [4]{-\left ((a-x) (b-x)^2\right )}}\\ &=-\frac {\left (\left (1-\frac {\sqrt {-4 a+4 b+d}}{\sqrt {d}}\right ) \sqrt [4]{a-x} \sqrt {b-x}\right ) \int \frac {(b-x)^{3/2}}{(a-x)^{5/4} \left (-2 b-d+\sqrt {d} \sqrt {-4 a+4 b+d}+2 x\right )} \, dx}{\sqrt [4]{-\left ((a-x) (b-x)^2\right )}}-\frac {\left (\left (1+\frac {\sqrt {-4 a+4 b+d}}{\sqrt {d}}\right ) \sqrt [4]{a-x} \sqrt {b-x}\right ) \int \frac {(b-x)^{3/2}}{(a-x)^{5/4} \left (-2 b-d-\sqrt {d} \sqrt {-4 a+4 b+d}+2 x\right )} \, dx}{\sqrt [4]{-\left ((a-x) (b-x)^2\right )}}\\ &=\frac {\left ((a-b) \left (1-\frac {\sqrt {-4 a+4 b+d}}{\sqrt {d}}\right ) \sqrt [4]{a-x} (b-x)\right ) \int \frac {\left (-\frac {b}{a-b}+\frac {x}{a-b}\right )^{3/2}}{(a-x)^{5/4} \left (-2 b-d+\sqrt {d} \sqrt {-4 a+4 b+d}+2 x\right )} \, dx}{\sqrt {-\frac {b-x}{a-b}} \sqrt [4]{-\left ((a-x) (b-x)^2\right )}}+\frac {\left ((a-b) \left (1+\frac {\sqrt {-4 a+4 b+d}}{\sqrt {d}}\right ) \sqrt [4]{a-x} (b-x)\right ) \int \frac {\left (-\frac {b}{a-b}+\frac {x}{a-b}\right )^{3/2}}{(a-x)^{5/4} \left (-2 b-d-\sqrt {d} \sqrt {-4 a+4 b+d}+2 x\right )} \, dx}{\sqrt {-\frac {b-x}{a-b}} \sqrt [4]{-\left ((a-x) (b-x)^2\right )}}\\ &=\frac {4 (a-b) \left (\sqrt {d}+\sqrt {-4 a+4 b+d}\right ) (b-x) F_1\left (-\frac {1}{4};-\frac {3}{2},1;\frac {3}{4};\frac {a-x}{a-b},\frac {2 (a-x)}{2 a-2 b-d-\sqrt {d} \sqrt {-4 a+4 b+d}}\right )}{\sqrt {d} \left (2 a-2 b-d-\sqrt {d} \sqrt {-4 a+4 b+d}\right ) \sqrt {-\frac {b-x}{a-b}} \sqrt [4]{-\left ((a-x) (b-x)^2\right )}}+\frac {4 (a-b) \left (1-\frac {\sqrt {-4 a+4 b+d}}{\sqrt {d}}\right ) (b-x) F_1\left (-\frac {1}{4};-\frac {3}{2},1;\frac {3}{4};\frac {a-x}{a-b},\frac {2 (a-x)}{2 a-2 b-d+\sqrt {d} \sqrt {-4 a+4 b+d}}\right )}{\left (2 a-2 b-d+\sqrt {d} \sqrt {-4 a+4 b+d}\right ) \sqrt {-\frac {b-x}{a-b}} \sqrt [4]{-\left ((a-x) (b-x)^2\right )}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.49, size = 187, normalized size = 1.13 \begin {gather*} -\frac {4 b-4 x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{a-x} \sqrt {b-x} \text {ArcTan}\left (\frac {-b+\sqrt {d} \sqrt {a-x}+x}{\sqrt {2} \sqrt [4]{d} \sqrt [4]{a-x} \sqrt {b-x}}\right )-\sqrt {2} \sqrt [4]{d} \sqrt [4]{a-x} \sqrt {b-x} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt [4]{d} \sqrt [4]{a-x} \sqrt {b-x}}{b+\sqrt {d} \sqrt {a-x}-x}\right )}{\sqrt [4]{(b-x)^2 (-a+x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.08, size = 0, normalized size = 0.00 \[\int \frac {-\left (2 a -b \right ) b^{2}+\left (4 a -b \right ) b x -\left (2 a +b \right ) x^{2}+x^{3}}{\left (-a +x \right ) \left (\left (-a +x \right ) \left (-b +x \right )^{2}\right )^{\frac {1}{4}} \left (b^{2}+a d -\left (2 b +d \right ) x +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.01 \begin {gather*} -\int -\frac {b^2\,\left (2\,a-b\right )+x^2\,\left (2\,a+b\right )-x^3-b\,x\,\left (4\,a-b\right )}{\left (a-x\right )\,{\left (-\left (a-x\right )\,{\left (b-x\right )}^2\right )}^{1/4}\,\left (a\,d-x\,\left (2\,b+d\right )+b^2+x^2\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________