3.30.52 \(\int \frac {x^3 (4 a b-3 (a+b) x+2 x^2)}{(x^2 (-a+x) (-b+x))^{2/3} (-a b d+(a+b) d x-d x^2+x^4)} \, dx\)

Optimal. Leaf size=355 \[ -\frac {\log \left (a^2 b^2 d-2 a^2 b d x+a^2 d x^2-2 a b^2 d x+\left (x^3 (-a-b)+a b x^2+x^4\right )^{2/3} \left (a b d^{2/3}-a d^{2/3} x-b d^{2/3} x+d^{2/3} x^2\right )+4 a b d x^2+\sqrt [3]{d} \left (x^3 (-a-b)+a b x^2+x^4\right )^{4/3}-2 a d x^3+b^2 d x^2-2 b d x^3+d x^4\right )}{2 \sqrt [3]{d}}+\frac {\log \left (\sqrt [6]{d} \left (x^3 (-a-b)+a b x^2+x^4\right )^{2/3}-a b \sqrt {d}+a \sqrt {d} x+b \sqrt {d} x-\sqrt {d} x^2\right )}{\sqrt [3]{d}}+\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \left (x^3 (-a-b)+a b x^2+x^4\right )^{2/3}}{x \left (-2 a \sqrt [3]{d}-2 b \sqrt [3]{d}\right )+2 a b \sqrt [3]{d}+\left (x^3 (-a-b)+a b x^2+x^4\right )^{2/3}+2 \sqrt [3]{d} x^2}\right )}{\sqrt [3]{d}} \]

________________________________________________________________________________________

Rubi [F]  time = 27.69, 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 {x^3 \left (4 a b-3 (a+b) x+2 x^2\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (-a b d+(a+b) d x-d x^2+x^4\right )} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Int[(x^3*(4*a*b - 3*(a + b)*x + 2*x^2))/((x^2*(-a + x)*(-b + x))^(2/3)*(-(a*b*d) + (a + b)*d*x - d*x^2 + x^4))
,x]

[Out]

(3*x^2*(1 - x/a)^(2/3)*(1 - x/b)^(2/3)*AppellF1[2/3, 2/3, 2/3, 5/3, x/a, x/b])/((a - x)*(b - x)*x^2)^(2/3) + (
6*(a + b)*d*x^(4/3)*(-a + x)^(2/3)*(-b + x)^(2/3)*Defer[Subst][Defer[Int][x^4/((-a + x^3)^(2/3)*(-b + x^3)^(2/
3)*(a*b*d - a*(1 + b/a)*d*x^3 + d*x^6 - x^12)), x], x, x^(1/3)])/((a - x)*(b - x)*x^2)^(2/3) - (6*(2*a*b + d)*
x^(4/3)*(-a + x)^(2/3)*(-b + x)^(2/3)*Defer[Subst][Defer[Int][x^7/((-a + x^3)^(2/3)*(-b + x^3)^(2/3)*(a*b*d -
a*(1 + b/a)*d*x^3 + d*x^6 - x^12)), x], x, x^(1/3)])/((a - x)*(b - x)*x^2)^(2/3) + (9*(a + b)*x^(4/3)*(-a + x)
^(2/3)*(-b + x)^(2/3)*Defer[Subst][Defer[Int][x^10/((-a + x^3)^(2/3)*(-b + x^3)^(2/3)*(a*b*d - a*(1 + b/a)*d*x
^3 + d*x^6 - x^12)), x], x, x^(1/3)])/((a - x)*(b - x)*x^2)^(2/3) + (6*a*b*d*x^(4/3)*(-a + x)^(2/3)*(-b + x)^(
2/3)*Defer[Subst][Defer[Int][x/((-a + x^3)^(2/3)*(-b + x^3)^(2/3)*(-(a*b*d) + a*(1 + b/a)*d*x^3 - d*x^6 + x^12
)), x], x, x^(1/3)])/((a - x)*(b - x)*x^2)^(2/3)

Rubi steps

\begin {align*} \int \frac {x^3 \left (4 a b-3 (a+b) x+2 x^2\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (-a b d+(a+b) d x-d x^2+x^4\right )} \, dx &=\frac {\left (x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \int \frac {x^{5/3} \left (4 a b-3 (a+b) x+2 x^2\right )}{(-a+x)^{2/3} (-b+x)^{2/3} \left (-a b d+(a+b) d x-d x^2+x^4\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^7 \left (4 a b-3 (a+b) x^3+2 x^6\right )}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (-a b d+(a+b) d x^3-d x^6+x^{12}\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 {2 x}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3}}+\frac {x \left (2 a b d-2 (a+b) d x^3+2 (2 a b+d) x^6-3 (a+b) x^9\right )}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (-a b d+(a+b) d x^3-d x^6+x^{12}\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 \left (2 a b d-2 (a+b) d x^3+2 (2 a b+d) x^6-3 (a+b) x^9\right )}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (-a b d+(a+b) d x^3-d x^6+x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}+\frac {\left (6 x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3}} \, 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 {2 (a+b) d x^4}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (a b d-a \left (1+\frac {b}{a}\right ) d x^3+d x^6-x^{12}\right )}+\frac {2 (-2 a b-d) x^7}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (a b d-a \left (1+\frac {b}{a}\right ) d x^3+d x^6-x^{12}\right )}+\frac {3 (a+b) x^{10}}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (a b d-a \left (1+\frac {b}{a}\right ) d x^3+d x^6-x^{12}\right )}+\frac {2 a b d x}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (-a b d+a \left (1+\frac {b}{a}\right ) d x^3-d x^6+x^{12}\right )}\right ) \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}+\frac {\left (6 x^{4/3} (-b+x)^{2/3} \left (1-\frac {x}{a}\right )^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x}{\left (-b+x^3\right )^{2/3} \left (1-\frac {x^3}{a}\right )^{2/3}} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}\\ &=\frac {\left (9 (a+b) x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x^{10}}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (a b d-a \left (1+\frac {b}{a}\right ) d x^3+d x^6-x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}+\frac {\left (6 a b d x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (-a b d+a \left (1+\frac {b}{a}\right ) d x^3-d x^6+x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}+\frac {\left (6 (a+b) d x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x^4}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (a b d-a \left (1+\frac {b}{a}\right ) d x^3+d x^6-x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}-\frac {\left (6 (2 a b+d) x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x^7}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (a b d-a \left (1+\frac {b}{a}\right ) d x^3+d x^6-x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}+\frac {\left (6 x^{4/3} \left (1-\frac {x}{a}\right )^{2/3} \left (1-\frac {x}{b}\right )^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x}{\left (1-\frac {x^3}{a}\right )^{2/3} \left (1-\frac {x^3}{b}\right )^{2/3}} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}\\ &=\frac {3 x^2 \left (1-\frac {x}{a}\right )^{2/3} \left (1-\frac {x}{b}\right )^{2/3} F_1\left (\frac {2}{3};\frac {2}{3},\frac {2}{3};\frac {5}{3};\frac {x}{a},\frac {x}{b}\right )}{\left ((a-x) (b-x) x^2\right )^{2/3}}+\frac {\left (9 (a+b) x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x^{10}}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (a b d-a \left (1+\frac {b}{a}\right ) d x^3+d x^6-x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}+\frac {\left (6 a b d x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (-a b d+a \left (1+\frac {b}{a}\right ) d x^3-d x^6+x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}+\frac {\left (6 (a+b) d x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x^4}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (a b d-a \left (1+\frac {b}{a}\right ) d x^3+d x^6-x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}-\frac {\left (6 (2 a b+d) x^{4/3} (-a+x)^{2/3} (-b+x)^{2/3}\right ) \operatorname {Subst}\left (\int \frac {x^7}{\left (-a+x^3\right )^{2/3} \left (-b+x^3\right )^{2/3} \left (a b d-a \left (1+\frac {b}{a}\right ) d x^3+d x^6-x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [F]  time = 3.48, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^3 \left (4 a b-3 (a+b) x+2 x^2\right )}{\left (x^2 (-a+x) (-b+x)\right )^{2/3} \left (-a b d+(a+b) d x-d x^2+x^4\right )} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Integrate[(x^3*(4*a*b - 3*(a + b)*x + 2*x^2))/((x^2*(-a + x)*(-b + x))^(2/3)*(-(a*b*d) + (a + b)*d*x - d*x^2 +
 x^4)),x]

[Out]

Integrate[(x^3*(4*a*b - 3*(a + b)*x + 2*x^2))/((x^2*(-a + x)*(-b + x))^(2/3)*(-(a*b*d) + (a + b)*d*x - d*x^2 +
 x^4)), x]

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 1.23, size = 355, normalized size = 1.00 \begin {gather*} \frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \left (a b x^2+(-a-b) x^3+x^4\right )^{2/3}}{2 a b \sqrt [3]{d}+\left (-2 a \sqrt [3]{d}-2 b \sqrt [3]{d}\right ) x+2 \sqrt [3]{d} x^2+\left (a b x^2+(-a-b) x^3+x^4\right )^{2/3}}\right )}{\sqrt [3]{d}}+\frac {\log \left (-a b \sqrt {d}+a \sqrt {d} x+b \sqrt {d} x-\sqrt {d} x^2+\sqrt [6]{d} \left (a b x^2+(-a-b) x^3+x^4\right )^{2/3}\right )}{\sqrt [3]{d}}-\frac {\log \left (a^2 b^2 d-2 a^2 b d x-2 a b^2 d x+a^2 d x^2+4 a b d x^2+b^2 d x^2-2 a d x^3-2 b d x^3+d x^4+\left (a b d^{2/3}-a d^{2/3} x-b d^{2/3} x+d^{2/3} x^2\right ) \left (a b x^2+(-a-b) x^3+x^4\right )^{2/3}+\sqrt [3]{d} \left (a b x^2+(-a-b) x^3+x^4\right )^{4/3}\right )}{2 \sqrt [3]{d}} \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[(x^3*(4*a*b - 3*(a + b)*x + 2*x^2))/((x^2*(-a + x)*(-b + x))^(2/3)*(-(a*b*d) + (a + b)*d*x
- d*x^2 + x^4)),x]

[Out]

(Sqrt[3]*ArcTan[(Sqrt[3]*(a*b*x^2 + (-a - b)*x^3 + x^4)^(2/3))/(2*a*b*d^(1/3) + (-2*a*d^(1/3) - 2*b*d^(1/3))*x
 + 2*d^(1/3)*x^2 + (a*b*x^2 + (-a - b)*x^3 + x^4)^(2/3))])/d^(1/3) + Log[-(a*b*Sqrt[d]) + a*Sqrt[d]*x + b*Sqrt
[d]*x - Sqrt[d]*x^2 + d^(1/6)*(a*b*x^2 + (-a - b)*x^3 + x^4)^(2/3)]/d^(1/3) - Log[a^2*b^2*d - 2*a^2*b*d*x - 2*
a*b^2*d*x + a^2*d*x^2 + 4*a*b*d*x^2 + b^2*d*x^2 - 2*a*d*x^3 - 2*b*d*x^3 + d*x^4 + (a*b*d^(2/3) - a*d^(2/3)*x -
 b*d^(2/3)*x + d^(2/3)*x^2)*(a*b*x^2 + (-a - b)*x^3 + x^4)^(2/3) + d^(1/3)*(a*b*x^2 + (-a - b)*x^3 + x^4)^(4/3
)]/(2*d^(1/3))

________________________________________________________________________________________

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]

integrate(x^3*(4*a*b-3*(a+b)*x+2*x^2)/(x^2*(-a+x)*(-b+x))^(2/3)/(-a*b*d+(a+b)*d*x-d*x^2+x^4),x, algorithm="fri
cas")

[Out]

Timed out

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {{\left (4 \, a b - 3 \, {\left (a + b\right )} x + 2 \, x^{2}\right )} x^{3}}{\left ({\left (a - x\right )} {\left (b - x\right )} x^{2}\right )^{\frac {2}{3}} {\left (x^{4} - a b d + {\left (a + b\right )} d x - d x^{2}\right )}}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(4*a*b-3*(a+b)*x+2*x^2)/(x^2*(-a+x)*(-b+x))^(2/3)/(-a*b*d+(a+b)*d*x-d*x^2+x^4),x, algorithm="gia
c")

[Out]

integrate((4*a*b - 3*(a + b)*x + 2*x^2)*x^3/(((a - x)*(b - x)*x^2)^(2/3)*(x^4 - a*b*d + (a + b)*d*x - d*x^2)),
 x)

________________________________________________________________________________________

maple [F]  time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {x^{3} \left (4 a b -3 \left (a +b \right ) x +2 x^{2}\right )}{\left (x^{2} \left (-a +x \right ) \left (-b +x \right )\right )^{\frac {2}{3}} \left (-a b d +\left (a +b \right ) d x -d \,x^{2}+x^{4}\right )}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^3*(4*a*b-3*(a+b)*x+2*x^2)/(x^2*(-a+x)*(-b+x))^(2/3)/(-a*b*d+(a+b)*d*x-d*x^2+x^4),x)

[Out]

int(x^3*(4*a*b-3*(a+b)*x+2*x^2)/(x^2*(-a+x)*(-b+x))^(2/3)/(-a*b*d+(a+b)*d*x-d*x^2+x^4),x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {{\left (4 \, a b - 3 \, {\left (a + b\right )} x + 2 \, x^{2}\right )} x^{3}}{\left ({\left (a - x\right )} {\left (b - x\right )} x^{2}\right )^{\frac {2}{3}} {\left (x^{4} - a b d + {\left (a + b\right )} d x - d x^{2}\right )}}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(4*a*b-3*(a+b)*x+2*x^2)/(x^2*(-a+x)*(-b+x))^(2/3)/(-a*b*d+(a+b)*d*x-d*x^2+x^4),x, algorithm="max
ima")

[Out]

integrate((4*a*b - 3*(a + b)*x + 2*x^2)*x^3/(((a - x)*(b - x)*x^2)^(2/3)*(x^4 - a*b*d + (a + b)*d*x - d*x^2)),
 x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} -\int \frac {x^3\,\left (4\,a\,b+2\,x^2-3\,x\,\left (a+b\right )\right )}{{\left (x^2\,\left (a-x\right )\,\left (b-x\right )\right )}^{2/3}\,\left (-x^4+d\,x^2-d\,\left (a+b\right )\,x+a\,b\,d\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(x^3*(4*a*b + 2*x^2 - 3*x*(a + b)))/((x^2*(a - x)*(b - x))^(2/3)*(d*x^2 - x^4 - d*x*(a + b) + a*b*d)),x)

[Out]

-int((x^3*(4*a*b + 2*x^2 - 3*x*(a + b)))/((x^2*(a - x)*(b - x))^(2/3)*(d*x^2 - x^4 - d*x*(a + b) + a*b*d)), x)

________________________________________________________________________________________

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]

integrate(x**3*(4*a*b-3*(a+b)*x+2*x**2)/(x**2*(-a+x)*(-b+x))**(2/3)/(-a*b*d+(a+b)*d*x-d*x**2+x**4),x)

[Out]

Timed out

________________________________________________________________________________________