3.9.19 \(\int \frac {x^2 (-1+3 x^4)}{(1+x^4)^2 (a-x+a x^4) \sqrt {x+x^5}} \, dx\)

Optimal. Leaf size=62 \[ \frac {2 \sqrt {x^5+x} \left (3 a x^4+3 a+x\right )}{3 \left (x^4+1\right )^2}-2 a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {x^5+x}}{\sqrt {a} \left (x^4+1\right )}\right ) \]

________________________________________________________________________________________

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

Verification is not applicable to the result.

[In]

Int[(x^2*(-1 + 3*x^4))/((1 + x^4)^2*(a - x + a*x^4)*Sqrt[x + x^5]),x]

[Out]

(7*x^3)/(8*a*Sqrt[x + x^5]) + x^3/(2*a*(1 + x^4)*Sqrt[x + x^5]) - (7*x^3*Sqrt[1 + x^4]*Hypergeometric2F1[1/2,
5/8, 13/8, -x^4])/(40*a*Sqrt[x + x^5]) - (8*Sqrt[x]*Sqrt[1 + x^4]*Defer[Subst][Defer[Int][x^4/((1 + x^8)^(5/2)
*(a - x^2 + a*x^8)), x], x, Sqrt[x]])/Sqrt[x + x^5] + (6*Sqrt[x]*Sqrt[1 + x^4]*Defer[Subst][Defer[Int][x^6/((1
 + x^8)^(5/2)*(a - x^2 + a*x^8)), x], x, Sqrt[x]])/(a*Sqrt[x + x^5])

Rubi steps

\begin {align*} \int \frac {x^2 \left (-1+3 x^4\right )}{\left (1+x^4\right )^2 \left (a-x+a x^4\right ) \sqrt {x+x^5}} \, dx &=\frac {\left (\sqrt {x} \sqrt {1+x^4}\right ) \int \frac {x^{3/2} \left (-1+3 x^4\right )}{\left (1+x^4\right )^{5/2} \left (a-x+a x^4\right )} \, dx}{\sqrt {x+x^5}}\\ &=\frac {\left (2 \sqrt {x} \sqrt {1+x^4}\right ) \operatorname {Subst}\left (\int \frac {x^4 \left (-1+3 x^8\right )}{\left (1+x^8\right )^{5/2} \left (a-x^2+a x^8\right )} \, dx,x,\sqrt {x}\right )}{\sqrt {x+x^5}}\\ &=\frac {\left (2 \sqrt {x} \sqrt {1+x^4}\right ) \operatorname {Subst}\left (\int \left (\frac {3 x^4}{a \left (1+x^8\right )^{5/2}}+\frac {x^4 \left (-4 a+3 x^2\right )}{a \left (1+x^8\right )^{5/2} \left (a-x^2+a x^8\right )}\right ) \, dx,x,\sqrt {x}\right )}{\sqrt {x+x^5}}\\ &=\frac {\left (2 \sqrt {x} \sqrt {1+x^4}\right ) \operatorname {Subst}\left (\int \frac {x^4 \left (-4 a+3 x^2\right )}{\left (1+x^8\right )^{5/2} \left (a-x^2+a x^8\right )} \, dx,x,\sqrt {x}\right )}{a \sqrt {x+x^5}}+\frac {\left (6 \sqrt {x} \sqrt {1+x^4}\right ) \operatorname {Subst}\left (\int \frac {x^4}{\left (1+x^8\right )^{5/2}} \, dx,x,\sqrt {x}\right )}{a \sqrt {x+x^5}}\\ &=\frac {x^3}{2 a \left (1+x^4\right ) \sqrt {x+x^5}}+\frac {\left (2 \sqrt {x} \sqrt {1+x^4}\right ) \operatorname {Subst}\left (\int \left (-\frac {4 a x^4}{\left (1+x^8\right )^{5/2} \left (a-x^2+a x^8\right )}+\frac {3 x^6}{\left (1+x^8\right )^{5/2} \left (a-x^2+a x^8\right )}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {x+x^5}}+\frac {\left (7 \sqrt {x} \sqrt {1+x^4}\right ) \operatorname {Subst}\left (\int \frac {x^4}{\left (1+x^8\right )^{3/2}} \, dx,x,\sqrt {x}\right )}{2 a \sqrt {x+x^5}}\\ &=\frac {7 x^3}{8 a \sqrt {x+x^5}}+\frac {x^3}{2 a \left (1+x^4\right ) \sqrt {x+x^5}}-\frac {\left (8 \sqrt {x} \sqrt {1+x^4}\right ) \operatorname {Subst}\left (\int \frac {x^4}{\left (1+x^8\right )^{5/2} \left (a-x^2+a x^8\right )} \, dx,x,\sqrt {x}\right )}{\sqrt {x+x^5}}-\frac {\left (7 \sqrt {x} \sqrt {1+x^4}\right ) \operatorname {Subst}\left (\int \frac {x^4}{\sqrt {1+x^8}} \, dx,x,\sqrt {x}\right )}{8 a \sqrt {x+x^5}}+\frac {\left (6 \sqrt {x} \sqrt {1+x^4}\right ) \operatorname {Subst}\left (\int \frac {x^6}{\left (1+x^8\right )^{5/2} \left (a-x^2+a x^8\right )} \, dx,x,\sqrt {x}\right )}{a \sqrt {x+x^5}}\\ &=\frac {7 x^3}{8 a \sqrt {x+x^5}}+\frac {x^3}{2 a \left (1+x^4\right ) \sqrt {x+x^5}}-\frac {7 x^3 \sqrt {1+x^4} \, _2F_1\left (\frac {1}{2},\frac {5}{8};\frac {13}{8};-x^4\right )}{40 a \sqrt {x+x^5}}-\frac {\left (8 \sqrt {x} \sqrt {1+x^4}\right ) \operatorname {Subst}\left (\int \frac {x^4}{\left (1+x^8\right )^{5/2} \left (a-x^2+a x^8\right )} \, dx,x,\sqrt {x}\right )}{\sqrt {x+x^5}}+\frac {\left (6 \sqrt {x} \sqrt {1+x^4}\right ) \operatorname {Subst}\left (\int \frac {x^6}{\left (1+x^8\right )^{5/2} \left (a-x^2+a x^8\right )} \, dx,x,\sqrt {x}\right )}{a \sqrt {x+x^5}}\\ \end {align*}

________________________________________________________________________________________

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

Verification is not applicable to the result.

[In]

Integrate[(x^2*(-1 + 3*x^4))/((1 + x^4)^2*(a - x + a*x^4)*Sqrt[x + x^5]),x]

[Out]

Integrate[(x^2*(-1 + 3*x^4))/((1 + x^4)^2*(a - x + a*x^4)*Sqrt[x + x^5]), x]

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 2.66, size = 62, normalized size = 1.00 \begin {gather*} \frac {2 \left (3 a+x+3 a x^4\right ) \sqrt {x+x^5}}{3 \left (1+x^4\right )^2}-2 a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {x+x^5}}{\sqrt {a} \left (1+x^4\right )}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[(x^2*(-1 + 3*x^4))/((1 + x^4)^2*(a - x + a*x^4)*Sqrt[x + x^5]),x]

[Out]

(2*(3*a + x + 3*a*x^4)*Sqrt[x + x^5])/(3*(1 + x^4)^2) - 2*a^(3/2)*ArcTanh[Sqrt[x + x^5]/(Sqrt[a]*(1 + x^4))]

________________________________________________________________________________________

fricas [A]  time = 0.91, size = 231, normalized size = 3.73 \begin {gather*} \left [\frac {3 \, {\left (a x^{8} + 2 \, a x^{4} + a\right )} \sqrt {a} \log \left (\frac {a^{2} x^{8} + 2 \, a^{2} x^{4} + 6 \, a x^{5} - 4 \, {\left (a x^{4} + a + x\right )} \sqrt {x^{5} + x} \sqrt {a} + a^{2} + 6 \, a x + x^{2}}{a^{2} x^{8} + 2 \, a^{2} x^{4} - 2 \, a x^{5} + a^{2} - 2 \, a x + x^{2}}\right ) + 4 \, {\left (3 \, a x^{4} + 3 \, a + x\right )} \sqrt {x^{5} + x}}{6 \, {\left (x^{8} + 2 \, x^{4} + 1\right )}}, \frac {3 \, {\left (a x^{8} + 2 \, a x^{4} + a\right )} \sqrt {-a} \arctan \left (\frac {{\left (a x^{4} + a + x\right )} \sqrt {x^{5} + x} \sqrt {-a}}{2 \, {\left (a x^{5} + a x\right )}}\right ) + 2 \, {\left (3 \, a x^{4} + 3 \, a + x\right )} \sqrt {x^{5} + x}}{3 \, {\left (x^{8} + 2 \, x^{4} + 1\right )}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(3*x^4-1)/(x^4+1)^2/(a*x^4+a-x)/(x^5+x)^(1/2),x, algorithm="fricas")

[Out]

[1/6*(3*(a*x^8 + 2*a*x^4 + a)*sqrt(a)*log((a^2*x^8 + 2*a^2*x^4 + 6*a*x^5 - 4*(a*x^4 + a + x)*sqrt(x^5 + x)*sqr
t(a) + a^2 + 6*a*x + x^2)/(a^2*x^8 + 2*a^2*x^4 - 2*a*x^5 + a^2 - 2*a*x + x^2)) + 4*(3*a*x^4 + 3*a + x)*sqrt(x^
5 + x))/(x^8 + 2*x^4 + 1), 1/3*(3*(a*x^8 + 2*a*x^4 + a)*sqrt(-a)*arctan(1/2*(a*x^4 + a + x)*sqrt(x^5 + x)*sqrt
(-a)/(a*x^5 + a*x)) + 2*(3*a*x^4 + 3*a + x)*sqrt(x^5 + x))/(x^8 + 2*x^4 + 1)]

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(3*x^4-1)/(x^4+1)^2/(a*x^4+a-x)/(x^5+x)^(1/2),x, algorithm="giac")

[Out]

integrate((3*x^4 - 1)*x^2/((a*x^4 + a - x)*sqrt(x^5 + x)*(x^4 + 1)^2), x)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(3*x^4-1)/(x^4+1)^2/(a*x^4+a-x)/(x^5+x)^(1/2),x)

[Out]

int(x^2*(3*x^4-1)/(x^4+1)^2/(a*x^4+a-x)/(x^5+x)^(1/2),x)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(3*x^4-1)/(x^4+1)^2/(a*x^4+a-x)/(x^5+x)^(1/2),x, algorithm="maxima")

[Out]

integrate((3*x^4 - 1)*x^2/((a*x^4 + a - x)*sqrt(x^5 + x)*(x^4 + 1)^2), x)

________________________________________________________________________________________

mupad [B]  time = 0.93, size = 73, normalized size = 1.18 \begin {gather*} a^{3/2}\,\ln \left (\frac {a+x-2\,\sqrt {a}\,\sqrt {x^5+x}+a\,x^4}{a\,x^4-x+a}\right )+\frac {2\,a\,\sqrt {x^5+x}}{x^4+1}+\frac {2\,x\,\sqrt {x^5+x}}{3\,{\left (x^4+1\right )}^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^2*(3*x^4 - 1))/((x^4 + 1)^2*(x + x^5)^(1/2)*(a - x + a*x^4)),x)

[Out]

a^(3/2)*log((a + x - 2*a^(1/2)*(x + x^5)^(1/2) + a*x^4)/(a - x + a*x^4)) + (2*a*(x + x^5)^(1/2))/(x^4 + 1) + (
2*x*(x + x^5)^(1/2))/(3*(x^4 + 1)^2)

________________________________________________________________________________________

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**2*(3*x**4-1)/(x**4+1)**2/(a*x**4+a-x)/(x**5+x)**(1/2),x)

[Out]

Timed out

________________________________________________________________________________________