3.164 \(\int \frac{1}{\left (13-4 x+x^2\right )^3} \, dx\)

Optimal. Leaf size=51 \[ -\frac{2-x}{216 \left (x^2-4 x+13\right )}-\frac{2-x}{36 \left (x^2-4 x+13\right )^2}+\frac{1}{648} \tan ^{-1}\left (\frac{x-2}{3}\right ) \]

[Out]

-(2 - x)/(36*(13 - 4*x + x^2)^2) - (2 - x)/(216*(13 - 4*x + x^2)) + ArcTan[(-2 +
 x)/3]/648

_______________________________________________________________________________________

Rubi [A]  time = 0.0313865, antiderivative size = 51, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3 \[ -\frac{2-x}{216 \left (x^2-4 x+13\right )}-\frac{2-x}{36 \left (x^2-4 x+13\right )^2}+\frac{1}{648} \tan ^{-1}\left (\frac{x-2}{3}\right ) \]

Antiderivative was successfully verified.

[In]  Int[(13 - 4*x + x^2)^(-3),x]

[Out]

-(2 - x)/(36*(13 - 4*x + x^2)^2) - (2 - x)/(216*(13 - 4*x + x^2)) + ArcTan[(-2 +
 x)/3]/648

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 1.0803, size = 41, normalized size = 0.8 \[ - \frac{- 2 x + 4}{432 \left (x^{2} - 4 x + 13\right )} - \frac{- 2 x + 4}{72 \left (x^{2} - 4 x + 13\right )^{2}} + \frac{\operatorname{atan}{\left (\frac{x}{3} - \frac{2}{3} \right )}}{648} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(1/(x**2-4*x+13)**3,x)

[Out]

-(-2*x + 4)/(432*(x**2 - 4*x + 13)) - (-2*x + 4)/(72*(x**2 - 4*x + 13)**2) + ata
n(x/3 - 2/3)/648

_______________________________________________________________________________________

Mathematica [A]  time = 0.0267499, size = 36, normalized size = 0.71 \[ \frac{1}{648} \left (\frac{3 (x-2) \left (x^2-4 x+19\right )}{\left (x^2-4 x+13\right )^2}+\tan ^{-1}\left (\frac{x-2}{3}\right )\right ) \]

Antiderivative was successfully verified.

[In]  Integrate[(13 - 4*x + x^2)^(-3),x]

[Out]

((3*(-2 + x)*(19 - 4*x + x^2))/(13 - 4*x + x^2)^2 + ArcTan[(-2 + x)/3])/648

_______________________________________________________________________________________

Maple [A]  time = 0.006, size = 44, normalized size = 0.9 \[{\frac{2\,x-4}{72\, \left ({x}^{2}-4\,x+13 \right ) ^{2}}}+{\frac{2\,x-4}{432\,{x}^{2}-1728\,x+5616}}+{\frac{1}{648}\arctan \left ( -{\frac{2}{3}}+{\frac{x}{3}} \right ) } \]

Verification of antiderivative is not currently implemented for this CAS.

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

[Out]

1/72*(2*x-4)/(x^2-4*x+13)^2+1/432*(2*x-4)/(x^2-4*x+13)+1/648*arctan(-2/3+1/3*x)

_______________________________________________________________________________________

Maxima [A]  time = 1.73425, size = 59, normalized size = 1.16 \[ \frac{x^{3} - 6 \, x^{2} + 27 \, x - 38}{216 \,{\left (x^{4} - 8 \, x^{3} + 42 \, x^{2} - 104 \, x + 169\right )}} + \frac{1}{648} \, \arctan \left (\frac{1}{3} \, x - \frac{2}{3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

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

[Out]

1/216*(x^3 - 6*x^2 + 27*x - 38)/(x^4 - 8*x^3 + 42*x^2 - 104*x + 169) + 1/648*arc
tan(1/3*x - 2/3)

_______________________________________________________________________________________

Fricas [A]  time = 0.219573, size = 84, normalized size = 1.65 \[ \frac{3 \, x^{3} - 18 \, x^{2} +{\left (x^{4} - 8 \, x^{3} + 42 \, x^{2} - 104 \, x + 169\right )} \arctan \left (\frac{1}{3} \, x - \frac{2}{3}\right ) + 81 \, x - 114}{648 \,{\left (x^{4} - 8 \, x^{3} + 42 \, x^{2} - 104 \, x + 169\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

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

[Out]

1/648*(3*x^3 - 18*x^2 + (x^4 - 8*x^3 + 42*x^2 - 104*x + 169)*arctan(1/3*x - 2/3)
 + 81*x - 114)/(x^4 - 8*x^3 + 42*x^2 - 104*x + 169)

_______________________________________________________________________________________

Sympy [A]  time = 0.192971, size = 42, normalized size = 0.82 \[ \frac{x^{3} - 6 x^{2} + 27 x - 38}{216 x^{4} - 1728 x^{3} + 9072 x^{2} - 22464 x + 36504} + \frac{\operatorname{atan}{\left (\frac{x}{3} - \frac{2}{3} \right )}}{648} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/(x**2-4*x+13)**3,x)

[Out]

(x**3 - 6*x**2 + 27*x - 38)/(216*x**4 - 1728*x**3 + 9072*x**2 - 22464*x + 36504)
 + atan(x/3 - 2/3)/648

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.197977, size = 46, normalized size = 0.9 \[ \frac{x^{3} - 6 \, x^{2} + 27 \, x - 38}{216 \,{\left (x^{2} - 4 \, x + 13\right )}^{2}} + \frac{1}{648} \, \arctan \left (\frac{1}{3} \, x - \frac{2}{3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

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

[Out]

1/216*(x^3 - 6*x^2 + 27*x - 38)/(x^2 - 4*x + 13)^2 + 1/648*arctan(1/3*x - 2/3)