3.134 \(\int \frac{x^2}{a+8 x-8 x^2+4 x^3-x^4} \, dx\)

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

[Out]

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

_______________________________________________________________________________________

Rubi [A]  time = 0.220096, antiderivative size = 99, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 8, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.308 \[ \frac{\tan ^{-1}\left (\frac{1-x}{\sqrt{1-\sqrt{a+4}}}\right )}{2 \sqrt{1-\sqrt{a+4}}}+\frac{\tan ^{-1}\left (\frac{1-x}{\sqrt{\sqrt{a+4}+1}}\right )}{2 \sqrt{\sqrt{a+4}+1}}+\frac{\tanh ^{-1}\left (\frac{(x-1)^2+1}{\sqrt{a+4}}\right )}{\sqrt{a+4}} \]

Antiderivative was successfully verified.

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

[Out]

ArcTan[(1 - x)/Sqrt[1 - Sqrt[4 + a]]]/(2*Sqrt[1 - Sqrt[4 + a]]) + ArcTan[(1 - x)
/Sqrt[1 + Sqrt[4 + a]]]/(2*Sqrt[1 + Sqrt[4 + a]]) + ArcTanh[(1 + (-1 + x)^2)/Sqr
t[4 + a]]/Sqrt[4 + a]

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 54.8052, size = 85, normalized size = 0.86 \[ - \frac{\operatorname{atan}{\left (\frac{x - 1}{\sqrt{\sqrt{a + 4} + 1}} \right )}}{2 \sqrt{\sqrt{a + 4} + 1}} - \frac{\operatorname{atan}{\left (\frac{x - 1}{\sqrt{- \sqrt{a + 4} + 1}} \right )}}{2 \sqrt{- \sqrt{a + 4} + 1}} - \frac{\operatorname{atanh}{\left (\frac{- \left (x - 1\right )^{2} - 1}{\sqrt{a + 4}} \right )}}{\sqrt{a + 4}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(x**2/(-x**4+4*x**3-8*x**2+a+8*x),x)

[Out]

-atan((x - 1)/sqrt(sqrt(a + 4) + 1))/(2*sqrt(sqrt(a + 4) + 1)) - atan((x - 1)/sq
rt(-sqrt(a + 4) + 1))/(2*sqrt(-sqrt(a + 4) + 1)) - atanh((-(x - 1)**2 - 1)/sqrt(
a + 4))/sqrt(a + 4)

_______________________________________________________________________________________

Mathematica [C]  time = 0.028795, size = 61, normalized size = 0.62 \[ -\frac{1}{4} \text{RootSum}\left [-\text{$\#$1}^4+4 \text{$\#$1}^3-8 \text{$\#$1}^2+8 \text{$\#$1}+a\&,\frac{\text{$\#$1}^2 \log (x-\text{$\#$1})}{\text{$\#$1}^3-3 \text{$\#$1}^2+4 \text{$\#$1}-2}\&\right ] \]

Antiderivative was successfully verified.

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

[Out]

-RootSum[a + 8*#1 - 8*#1^2 + 4*#1^3 - #1^4 & , (Log[x - #1]*#1^2)/(-2 + 4*#1 - 3
*#1^2 + #1^3) & ]/4

_______________________________________________________________________________________

Maple [C]  time = 0.004, size = 52, normalized size = 0.5 \[ -{\frac{1}{4}\sum _{{\it \_R}={\it RootOf} \left ({{\it \_Z}}^{4}-4\,{{\it \_Z}}^{3}+8\,{{\it \_Z}}^{2}-8\,{\it \_Z}-a \right ) }{\frac{{{\it \_R}}^{2}\ln \left ( x-{\it \_R} \right ) }{{{\it \_R}}^{3}-3\,{{\it \_R}}^{2}+4\,{\it \_R}-2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(x^2/(-x^4+4*x^3-8*x^2+a+8*x),x)

[Out]

-1/4*sum(_R^2/(_R^3-3*_R^2+4*_R-2)*ln(x-_R),_R=RootOf(_Z^4-4*_Z^3+8*_Z^2-8*_Z-a)
)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ -\int \frac{x^{2}}{x^{4} - 4 \, x^{3} + 8 \, x^{2} - a - 8 \, x}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(-x^2/(x^4 - 4*x^3 + 8*x^2 - a - 8*x),x, algorithm="maxima")

[Out]

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

_______________________________________________________________________________________

Fricas [F(-2)]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(-x^2/(x^4 - 4*x^3 + 8*x^2 - a - 8*x),x, algorithm="fricas")

[Out]

Exception raised: NotImplementedError

_______________________________________________________________________________________

Sympy [A]  time = 11.916, size = 172, normalized size = 1.74 \[ - \operatorname{RootSum}{\left (t^{4} \left (256 a^{3} + 2816 a^{2} + 10240 a + 12288\right ) + t^{2} \left (- 160 a^{2} - 1152 a - 2048\right ) + t \left (- 32 a^{2} - 256 a - 512\right ) - a^{2}, \left ( t \mapsto t \log{\left (x + \frac{- 64 t^{3} a^{4} - 448 t^{3} a^{3} - 256 t^{3} a^{2} + 3584 t^{3} a + 6144 t^{3} - 224 t^{2} a^{3} - 2208 t^{2} a^{2} - 7168 t^{2} a - 7680 t^{2} + 56 t a^{3} + 400 t a^{2} + 864 t a + 512 t + 5 a^{3} + 34 a^{2} + 56 a}{a^{3} + 60 a^{2} + 320 a + 448} \right )} \right )\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x**2/(-x**4+4*x**3-8*x**2+a+8*x),x)

[Out]

-RootSum(_t**4*(256*a**3 + 2816*a**2 + 10240*a + 12288) + _t**2*(-160*a**2 - 115
2*a - 2048) + _t*(-32*a**2 - 256*a - 512) - a**2, Lambda(_t, _t*log(x + (-64*_t*
*3*a**4 - 448*_t**3*a**3 - 256*_t**3*a**2 + 3584*_t**3*a + 6144*_t**3 - 224*_t**
2*a**3 - 2208*_t**2*a**2 - 7168*_t**2*a - 7680*_t**2 + 56*_t*a**3 + 400*_t*a**2
+ 864*_t*a + 512*_t + 5*a**3 + 34*a**2 + 56*a)/(a**3 + 60*a**2 + 320*a + 448))))

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int -\frac{x^{2}}{x^{4} - 4 \, x^{3} + 8 \, x^{2} - a - 8 \, x}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(-x^2/(x^4 - 4*x^3 + 8*x^2 - a - 8*x),x, algorithm="giac")

[Out]

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