\(\int \frac {(2+x) (d+e x+f x^2+g x^3+h x^4+i x^5)}{(4-5 x^2+x^4)^2} \, dx\) [99]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [A] (verified)
Fricas [B] (verification not implemented)
Sympy [F(-1)]
Maxima [A] (verification not implemented)
Giac [A] (verification not implemented)
Mupad [B] (verification not implemented)
Reduce [B] (verification not implemented)

Optimal result

Integrand size = 41, antiderivative size = 177 \[ \int \frac {(2+x) \left (d+e x+f x^2+g x^3+h x^4+i x^5\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=\frac {d+e+f+g+h+i}{12 (1-x)}+\frac {d+2 e+4 f+8 g+16 h+32 i}{36 (2-x)}-\frac {d-e+f-g+h-i}{36 (1+x)}+\frac {1}{36} (2 d+5 e+8 f+11 g+14 h+17 i) \log (1-x)-\frac {1}{432} (35 d+58 e+92 f+136 g+176 h+160 i) \log (2-x)+\frac {1}{108} (2 d+e-4 f+7 g-10 h+13 i) \log (1+x)+\frac {1}{144} (d-2 e+4 f-8 g+16 h-32 i) \log (2+x) \] Output:

(d+e+f+g+h+i)/(12-12*x)+(d+2*e+4*f+8*g+16*h+32*i)/(72-36*x)-(d-e+f-g+h-i)/ 
(36+36*x)+1/36*(2*d+5*e+8*f+11*g+14*h+17*i)*ln(1-x)-1/432*(35*d+58*e+92*f+ 
136*g+176*h+160*i)*ln(2-x)+1/108*(2*d+e-4*f+7*g-10*h+13*i)*ln(1+x)+1/144*( 
d-2*e+4*f-8*g+16*h-32*i)*ln(2+x)
 

Mathematica [A] (verified)

Time = 0.11 (sec) , antiderivative size = 195, normalized size of antiderivative = 1.10 \[ \int \frac {(2+x) \left (d+e x+f x^2+g x^3+h x^4+i x^5\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=\frac {5 d+10 e+8 f+16 g+20 h+40 i+6 d x+6 f x+6 h x-5 d x^2-4 e x^2-8 f x^2-10 g x^2-20 h x^2-34 i x^2}{36 \left (2-x-2 x^2+x^3\right )}+\frac {1}{36} (2 d+5 e+8 f+11 g+14 h+17 i) \log (1-x)+\frac {1}{432} (-35 d-58 e-92 f-136 g-176 h-160 i) \log (2-x)+\frac {1}{108} (2 d+e-4 f+7 g-10 h+13 i) \log (1+x)+\frac {1}{144} (d-2 e+4 f-8 g+16 h-32 i) \log (2+x) \] Input:

Integrate[((2 + x)*(d + e*x + f*x^2 + g*x^3 + h*x^4 + i*x^5))/(4 - 5*x^2 + 
 x^4)^2,x]
 

Output:

(5*d + 10*e + 8*f + 16*g + 20*h + 40*i + 6*d*x + 6*f*x + 6*h*x - 5*d*x^2 - 
 4*e*x^2 - 8*f*x^2 - 10*g*x^2 - 20*h*x^2 - 34*i*x^2)/(36*(2 - x - 2*x^2 + 
x^3)) + ((2*d + 5*e + 8*f + 11*g + 14*h + 17*i)*Log[1 - x])/36 + ((-35*d - 
 58*e - 92*f - 136*g - 176*h - 160*i)*Log[2 - x])/432 + ((2*d + e - 4*f + 
7*g - 10*h + 13*i)*Log[1 + x])/108 + ((d - 2*e + 4*f - 8*g + 16*h - 32*i)* 
Log[2 + x])/144
 

Rubi [A] (verified)

Time = 0.51 (sec) , antiderivative size = 177, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.073, Rules used = {2019, 2462, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {(x+2) \left (d+e x+f x^2+g x^3+h x^4+i x^5\right )}{\left (x^4-5 x^2+4\right )^2} \, dx\)

\(\Big \downarrow \) 2019

\(\displaystyle \int \frac {d+e x+f x^2+g x^3+h x^4+i x^5}{(x+2) \left (x^3-2 x^2-x+2\right )^2}dx\)

\(\Big \downarrow \) 2462

\(\displaystyle \int \left (\frac {-35 d-58 e-92 f-136 g-176 h-160 i}{432 (x-2)}+\frac {2 d+5 e+8 f+11 g+14 h+17 i}{36 (x-1)}+\frac {2 d+e-4 f+7 g-10 h+13 i}{108 (x+1)}+\frac {d-2 e+4 f-8 g+16 h-32 i}{144 (x+2)}+\frac {d+2 e+4 f+8 g+16 h+32 i}{36 (x-2)^2}+\frac {d+e+f+g+h+i}{12 (x-1)^2}+\frac {d-e+f-g+h-i}{36 (x+1)^2}\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle -\frac {d-e+f-g+h-i}{36 (x+1)}+\frac {d+e+f+g+h+i}{12 (1-x)}+\frac {d+2 e+4 f+8 g+16 h+32 i}{36 (2-x)}+\frac {1}{36} \log (1-x) (2 d+5 e+8 f+11 g+14 h+17 i)-\frac {1}{432} \log (2-x) (35 d+58 e+92 f+136 g+176 h+160 i)+\frac {1}{108} \log (x+1) (2 d+e-4 f+7 g-10 h+13 i)+\frac {1}{144} \log (x+2) (d-2 e+4 f-8 g+16 h-32 i)\)

Input:

Int[((2 + x)*(d + e*x + f*x^2 + g*x^3 + h*x^4 + i*x^5))/(4 - 5*x^2 + x^4)^ 
2,x]
 

Output:

(d + e + f + g + h + i)/(12*(1 - x)) + (d + 2*e + 4*f + 8*g + 16*h + 32*i) 
/(36*(2 - x)) - (d - e + f - g + h - i)/(36*(1 + x)) + ((2*d + 5*e + 8*f + 
 11*g + 14*h + 17*i)*Log[1 - x])/36 - ((35*d + 58*e + 92*f + 136*g + 176*h 
 + 160*i)*Log[2 - x])/432 + ((2*d + e - 4*f + 7*g - 10*h + 13*i)*Log[1 + x 
])/108 + ((d - 2*e + 4*f - 8*g + 16*h - 32*i)*Log[2 + x])/144
 

Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 2019
Int[(u_.)*(Px_)^(p_.)*(Qx_)^(q_.), x_Symbol] :> Int[u*PolynomialQuotient[Px 
, Qx, x]^p*Qx^(p + q), x] /; FreeQ[q, x] && PolyQ[Px, x] && PolyQ[Qx, x] && 
 EqQ[PolynomialRemainder[Px, Qx, x], 0] && IntegerQ[p] && LtQ[p*q, 0]
 

rule 2462
Int[(u_.)*(Px_)^(p_), x_Symbol] :> With[{Qx = Factor[Px]}, Int[ExpandIntegr 
and[u*Qx^p, x], x] /;  !SumQ[NonfreeFactors[Qx, x]]] /; PolyQ[Px, x] && GtQ 
[Expon[Px, x], 2] &&  !BinomialQ[Px, x] &&  !TrinomialQ[Px, x] && ILtQ[p, 0 
] && RationalFunctionQ[u, x]
 
Maple [A] (verified)

Time = 0.11 (sec) , antiderivative size = 176, normalized size of antiderivative = 0.99

method result size
default \(\left (-\frac {35 d}{432}-\frac {29 e}{216}-\frac {23 f}{108}-\frac {17 g}{54}-\frac {11 h}{27}-\frac {10 i}{27}\right ) \ln \left (x -2\right )-\frac {\frac {d}{36}+\frac {e}{18}+\frac {f}{9}+\frac {2 g}{9}+\frac {4 h}{9}+\frac {8 i}{9}}{x -2}-\frac {\frac {d}{36}-\frac {e}{36}+\frac {f}{36}-\frac {g}{36}+\frac {h}{36}-\frac {i}{36}}{1+x}+\left (\frac {d}{54}+\frac {e}{108}-\frac {f}{27}+\frac {7 g}{108}-\frac {5 h}{54}+\frac {13 i}{108}\right ) \ln \left (1+x \right )-\frac {\frac {d}{12}+\frac {e}{12}+\frac {f}{12}+\frac {g}{12}+\frac {h}{12}+\frac {i}{12}}{x -1}+\left (\frac {d}{18}+\frac {5 e}{36}+\frac {2 f}{9}+\frac {11 g}{36}+\frac {7 h}{18}+\frac {17 i}{36}\right ) \ln \left (x -1\right )+\left (\frac {d}{144}-\frac {e}{72}+\frac {f}{36}-\frac {g}{18}+\frac {h}{9}-\frac {2 i}{9}\right ) \ln \left (x +2\right )\) \(176\)
norman \(\frac {\left (-\frac {5 d}{36}-\frac {e}{9}-\frac {2 f}{9}-\frac {5 g}{18}-\frac {5 h}{9}-\frac {17 i}{18}\right ) x^{3}+\left (\frac {17 d}{36}+\frac {5 e}{18}+\frac {5 f}{9}+\frac {4 g}{9}+\frac {8 h}{9}+\frac {10 i}{9}\right ) x +\left (-\frac {d}{9}-\frac {2 e}{9}-\frac {5 f}{18}-\frac {5 g}{9}-\frac {17 h}{18}-\frac {17 i}{9}\right ) x^{2}+\frac {5 d}{18}+\frac {5 e}{9}+\frac {10 h}{9}+\frac {20 i}{9}+\frac {4 f}{9}+\frac {8 g}{9}}{x^{4}-5 x^{2}+4}+\left (-\frac {35 d}{432}-\frac {29 e}{216}-\frac {23 f}{108}-\frac {17 g}{54}-\frac {11 h}{27}-\frac {10 i}{27}\right ) \ln \left (x -2\right )+\left (\frac {d}{18}+\frac {5 e}{36}+\frac {2 f}{9}+\frac {11 g}{36}+\frac {7 h}{18}+\frac {17 i}{36}\right ) \ln \left (x -1\right )+\left (\frac {d}{54}+\frac {e}{108}-\frac {f}{27}+\frac {7 g}{108}-\frac {5 h}{54}+\frac {13 i}{108}\right ) \ln \left (1+x \right )+\left (\frac {d}{144}-\frac {e}{72}+\frac {f}{36}-\frac {g}{18}+\frac {h}{9}-\frac {2 i}{9}\right ) \ln \left (x +2\right )\) \(197\)
risch \(-\frac {29 \ln \left (2-x \right ) e}{216}-\frac {17 \ln \left (2-x \right ) g}{54}-\frac {\ln \left (x +2\right ) e}{72}-\frac {5 \ln \left (-x -1\right ) h}{54}+\frac {7 \ln \left (-x -1\right ) g}{108}-\frac {35 \ln \left (2-x \right ) d}{432}-\frac {23 \ln \left (2-x \right ) f}{108}-\frac {\ln \left (-x -1\right ) f}{27}+\frac {\ln \left (-x -1\right ) e}{108}+\frac {\ln \left (x +2\right ) f}{36}+\frac {\ln \left (x -1\right ) d}{18}+\frac {\ln \left (-x -1\right ) d}{54}+\frac {\ln \left (x +2\right ) d}{144}+\frac {5 \ln \left (x -1\right ) e}{36}+\frac {\left (-\frac {5 d}{36}-\frac {e}{9}-\frac {2 f}{9}-\frac {5 g}{18}-\frac {5 h}{9}-\frac {17 i}{18}\right ) x^{2}+\left (\frac {h}{6}+\frac {f}{6}+\frac {d}{6}\right ) x +\frac {5 d}{36}+\frac {5 e}{18}+\frac {2 f}{9}+\frac {4 g}{9}+\frac {5 h}{9}+\frac {10 i}{9}}{x^{3}-2 x^{2}-x +2}-\frac {11 \ln \left (2-x \right ) h}{27}+\frac {2 \ln \left (x -1\right ) f}{9}-\frac {\ln \left (x +2\right ) g}{18}+\frac {\ln \left (x +2\right ) h}{9}-\frac {2 \ln \left (x +2\right ) i}{9}-\frac {10 \ln \left (2-x \right ) i}{27}+\frac {13 \ln \left (-x -1\right ) i}{108}+\frac {11 \ln \left (x -1\right ) g}{36}+\frac {7 \ln \left (x -1\right ) h}{18}+\frac {17 \ln \left (x -1\right ) i}{36}\) \(264\)
parallelrisch \(\text {Expression too large to display}\) \(925\)

Input:

int((x+2)*(i*x^5+h*x^4+g*x^3+f*x^2+e*x+d)/(x^4-5*x^2+4)^2,x,method=_RETURN 
VERBOSE)
 

Output:

(-35/432*d-29/216*e-23/108*f-17/54*g-11/27*h-10/27*i)*ln(x-2)-(1/36*d+1/18 
*e+1/9*f+2/9*g+4/9*h+8/9*i)/(x-2)-(1/36*d-1/36*e+1/36*f-1/36*g+1/36*h-1/36 
*i)/(1+x)+(1/54*d+1/108*e-1/27*f+7/108*g-5/54*h+13/108*i)*ln(1+x)-(1/12*d+ 
1/12*e+1/12*f+1/12*g+1/12*h+1/12*i)/(x-1)+(1/18*d+5/36*e+2/9*f+11/36*g+7/1 
8*h+17/36*i)*ln(x-1)+(1/144*d-1/72*e+1/36*f-1/18*g+1/9*h-2/9*i)*ln(x+2)
 

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 430 vs. \(2 (159) = 318\).

Time = 21.60 (sec) , antiderivative size = 430, normalized size of antiderivative = 2.43 \[ \int \frac {(2+x) \left (d+e x+f x^2+g x^3+h x^4+i x^5\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=-\frac {12 \, {\left (5 \, d + 4 \, e + 8 \, f + 10 \, g + 20 \, h + 34 \, i\right )} x^{2} - 72 \, {\left (d + f + h\right )} x - 3 \, {\left ({\left (d - 2 \, e + 4 \, f - 8 \, g + 16 \, h - 32 \, i\right )} x^{3} - 2 \, {\left (d - 2 \, e + 4 \, f - 8 \, g + 16 \, h - 32 \, i\right )} x^{2} - {\left (d - 2 \, e + 4 \, f - 8 \, g + 16 \, h - 32 \, i\right )} x + 2 \, d - 4 \, e + 8 \, f - 16 \, g + 32 \, h - 64 \, i\right )} \log \left (x + 2\right ) - 4 \, {\left ({\left (2 \, d + e - 4 \, f + 7 \, g - 10 \, h + 13 \, i\right )} x^{3} - 2 \, {\left (2 \, d + e - 4 \, f + 7 \, g - 10 \, h + 13 \, i\right )} x^{2} - {\left (2 \, d + e - 4 \, f + 7 \, g - 10 \, h + 13 \, i\right )} x + 4 \, d + 2 \, e - 8 \, f + 14 \, g - 20 \, h + 26 \, i\right )} \log \left (x + 1\right ) - 12 \, {\left ({\left (2 \, d + 5 \, e + 8 \, f + 11 \, g + 14 \, h + 17 \, i\right )} x^{3} - 2 \, {\left (2 \, d + 5 \, e + 8 \, f + 11 \, g + 14 \, h + 17 \, i\right )} x^{2} - {\left (2 \, d + 5 \, e + 8 \, f + 11 \, g + 14 \, h + 17 \, i\right )} x + 4 \, d + 10 \, e + 16 \, f + 22 \, g + 28 \, h + 34 \, i\right )} \log \left (x - 1\right ) + {\left ({\left (35 \, d + 58 \, e + 92 \, f + 136 \, g + 176 \, h + 160 \, i\right )} x^{3} - 2 \, {\left (35 \, d + 58 \, e + 92 \, f + 136 \, g + 176 \, h + 160 \, i\right )} x^{2} - {\left (35 \, d + 58 \, e + 92 \, f + 136 \, g + 176 \, h + 160 \, i\right )} x + 70 \, d + 116 \, e + 184 \, f + 272 \, g + 352 \, h + 320 \, i\right )} \log \left (x - 2\right ) - 60 \, d - 120 \, e - 96 \, f - 192 \, g - 240 \, h - 480 \, i}{432 \, {\left (x^{3} - 2 \, x^{2} - x + 2\right )}} \] Input:

integrate((2+x)*(i*x^5+h*x^4+g*x^3+f*x^2+e*x+d)/(x^4-5*x^2+4)^2,x, algorit 
hm="fricas")
 

Output:

-1/432*(12*(5*d + 4*e + 8*f + 10*g + 20*h + 34*i)*x^2 - 72*(d + f + h)*x - 
 3*((d - 2*e + 4*f - 8*g + 16*h - 32*i)*x^3 - 2*(d - 2*e + 4*f - 8*g + 16* 
h - 32*i)*x^2 - (d - 2*e + 4*f - 8*g + 16*h - 32*i)*x + 2*d - 4*e + 8*f - 
16*g + 32*h - 64*i)*log(x + 2) - 4*((2*d + e - 4*f + 7*g - 10*h + 13*i)*x^ 
3 - 2*(2*d + e - 4*f + 7*g - 10*h + 13*i)*x^2 - (2*d + e - 4*f + 7*g - 10* 
h + 13*i)*x + 4*d + 2*e - 8*f + 14*g - 20*h + 26*i)*log(x + 1) - 12*((2*d 
+ 5*e + 8*f + 11*g + 14*h + 17*i)*x^3 - 2*(2*d + 5*e + 8*f + 11*g + 14*h + 
 17*i)*x^2 - (2*d + 5*e + 8*f + 11*g + 14*h + 17*i)*x + 4*d + 10*e + 16*f 
+ 22*g + 28*h + 34*i)*log(x - 1) + ((35*d + 58*e + 92*f + 136*g + 176*h + 
160*i)*x^3 - 2*(35*d + 58*e + 92*f + 136*g + 176*h + 160*i)*x^2 - (35*d + 
58*e + 92*f + 136*g + 176*h + 160*i)*x + 70*d + 116*e + 184*f + 272*g + 35 
2*h + 320*i)*log(x - 2) - 60*d - 120*e - 96*f - 192*g - 240*h - 480*i)/(x^ 
3 - 2*x^2 - x + 2)
 

Sympy [F(-1)]

Timed out. \[ \int \frac {(2+x) \left (d+e x+f x^2+g x^3+h x^4+i x^5\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=\text {Timed out} \] Input:

integrate((2+x)*(i*x**5+h*x**4+g*x**3+f*x**2+e*x+d)/(x**4-5*x**2+4)**2,x)
 

Output:

Timed out
 

Maxima [A] (verification not implemented)

Time = 0.03 (sec) , antiderivative size = 163, normalized size of antiderivative = 0.92 \[ \int \frac {(2+x) \left (d+e x+f x^2+g x^3+h x^4+i x^5\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=\frac {1}{144} \, {\left (d - 2 \, e + 4 \, f - 8 \, g + 16 \, h - 32 \, i\right )} \log \left (x + 2\right ) + \frac {1}{108} \, {\left (2 \, d + e - 4 \, f + 7 \, g - 10 \, h + 13 \, i\right )} \log \left (x + 1\right ) + \frac {1}{36} \, {\left (2 \, d + 5 \, e + 8 \, f + 11 \, g + 14 \, h + 17 \, i\right )} \log \left (x - 1\right ) - \frac {1}{432} \, {\left (35 \, d + 58 \, e + 92 \, f + 136 \, g + 176 \, h + 160 \, i\right )} \log \left (x - 2\right ) - \frac {{\left (5 \, d + 4 \, e + 8 \, f + 10 \, g + 20 \, h + 34 \, i\right )} x^{2} - 6 \, {\left (d + f + h\right )} x - 5 \, d - 10 \, e - 8 \, f - 16 \, g - 20 \, h - 40 \, i}{36 \, {\left (x^{3} - 2 \, x^{2} - x + 2\right )}} \] Input:

integrate((2+x)*(i*x^5+h*x^4+g*x^3+f*x^2+e*x+d)/(x^4-5*x^2+4)^2,x, algorit 
hm="maxima")
 

Output:

1/144*(d - 2*e + 4*f - 8*g + 16*h - 32*i)*log(x + 2) + 1/108*(2*d + e - 4* 
f + 7*g - 10*h + 13*i)*log(x + 1) + 1/36*(2*d + 5*e + 8*f + 11*g + 14*h + 
17*i)*log(x - 1) - 1/432*(35*d + 58*e + 92*f + 136*g + 176*h + 160*i)*log( 
x - 2) - 1/36*((5*d + 4*e + 8*f + 10*g + 20*h + 34*i)*x^2 - 6*(d + f + h)* 
x - 5*d - 10*e - 8*f - 16*g - 20*h - 40*i)/(x^3 - 2*x^2 - x + 2)
 

Giac [A] (verification not implemented)

Time = 0.14 (sec) , antiderivative size = 167, normalized size of antiderivative = 0.94 \[ \int \frac {(2+x) \left (d+e x+f x^2+g x^3+h x^4+i x^5\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=\frac {1}{144} \, {\left (d - 2 \, e + 4 \, f - 8 \, g + 16 \, h - 32 \, i\right )} \log \left ({\left | x + 2 \right |}\right ) + \frac {1}{108} \, {\left (2 \, d + e - 4 \, f + 7 \, g - 10 \, h + 13 \, i\right )} \log \left ({\left | x + 1 \right |}\right ) + \frac {1}{36} \, {\left (2 \, d + 5 \, e + 8 \, f + 11 \, g + 14 \, h + 17 \, i\right )} \log \left ({\left | x - 1 \right |}\right ) - \frac {1}{432} \, {\left (35 \, d + 58 \, e + 92 \, f + 136 \, g + 176 \, h + 160 \, i\right )} \log \left ({\left | x - 2 \right |}\right ) - \frac {{\left (5 \, d + 4 \, e + 8 \, f + 10 \, g + 20 \, h + 34 \, i\right )} x^{2} - 6 \, {\left (d + f + h\right )} x - 5 \, d - 10 \, e - 8 \, f - 16 \, g - 20 \, h - 40 \, i}{36 \, {\left (x + 1\right )} {\left (x - 1\right )} {\left (x - 2\right )}} \] Input:

integrate((2+x)*(i*x^5+h*x^4+g*x^3+f*x^2+e*x+d)/(x^4-5*x^2+4)^2,x, algorit 
hm="giac")
 

Output:

1/144*(d - 2*e + 4*f - 8*g + 16*h - 32*i)*log(abs(x + 2)) + 1/108*(2*d + e 
 - 4*f + 7*g - 10*h + 13*i)*log(abs(x + 1)) + 1/36*(2*d + 5*e + 8*f + 11*g 
 + 14*h + 17*i)*log(abs(x - 1)) - 1/432*(35*d + 58*e + 92*f + 136*g + 176* 
h + 160*i)*log(abs(x - 2)) - 1/36*((5*d + 4*e + 8*f + 10*g + 20*h + 34*i)* 
x^2 - 6*(d + f + h)*x - 5*d - 10*e - 8*f - 16*g - 20*h - 40*i)/((x + 1)*(x 
 - 1)*(x - 2))
 

Mupad [B] (verification not implemented)

Time = 19.12 (sec) , antiderivative size = 170, normalized size of antiderivative = 0.96 \[ \int \frac {(2+x) \left (d+e x+f x^2+g x^3+h x^4+i x^5\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=\ln \left (x-1\right )\,\left (\frac {d}{18}+\frac {5\,e}{36}+\frac {2\,f}{9}+\frac {11\,g}{36}+\frac {7\,h}{18}+\frac {17\,i}{36}\right )+\ln \left (x+2\right )\,\left (\frac {d}{144}-\frac {e}{72}+\frac {f}{36}-\frac {g}{18}+\frac {h}{9}-\frac {2\,i}{9}\right )+\ln \left (x+1\right )\,\left (\frac {d}{54}+\frac {e}{108}-\frac {f}{27}+\frac {7\,g}{108}-\frac {5\,h}{54}+\frac {13\,i}{108}\right )-\ln \left (x-2\right )\,\left (\frac {35\,d}{432}+\frac {29\,e}{216}+\frac {23\,f}{108}+\frac {17\,g}{54}+\frac {11\,h}{27}+\frac {10\,i}{27}\right )-\frac {\left (-\frac {5\,d}{36}-\frac {e}{9}-\frac {2\,f}{9}-\frac {5\,g}{18}-\frac {5\,h}{9}-\frac {17\,i}{18}\right )\,x^2+\left (\frac {d}{6}+\frac {f}{6}+\frac {h}{6}\right )\,x+\frac {5\,d}{36}+\frac {5\,e}{18}+\frac {2\,f}{9}+\frac {4\,g}{9}+\frac {5\,h}{9}+\frac {10\,i}{9}}{-x^3+2\,x^2+x-2} \] Input:

int(((x + 2)*(d + e*x + f*x^2 + g*x^3 + h*x^4 + i*x^5))/(x^4 - 5*x^2 + 4)^ 
2,x)
 

Output:

log(x - 1)*(d/18 + (5*e)/36 + (2*f)/9 + (11*g)/36 + (7*h)/18 + (17*i)/36) 
+ log(x + 2)*(d/144 - e/72 + f/36 - g/18 + h/9 - (2*i)/9) + log(x + 1)*(d/ 
54 + e/108 - f/27 + (7*g)/108 - (5*h)/54 + (13*i)/108) - log(x - 2)*((35*d 
)/432 + (29*e)/216 + (23*f)/108 + (17*g)/54 + (11*h)/27 + (10*i)/27) - ((5 
*d)/36 + (5*e)/18 + (2*f)/9 + (4*g)/9 + (5*h)/9 + (10*i)/9 - x^2*((5*d)/36 
 + e/9 + (2*f)/9 + (5*g)/18 + (5*h)/9 + (17*i)/18) + x*(d/6 + f/6 + h/6))/ 
(x + 2*x^2 - x^3 - 2)
 

Reduce [B] (verification not implemented)

Time = 0.16 (sec) , antiderivative size = 928, normalized size of antiderivative = 5.24 \[ \int \frac {(2+x) \left (d+e x+f x^2+g x^3+h x^4+i x^5\right )}{\left (4-5 x^2+x^4\right )^2} \, dx =\text {Too large to display} \] Input:

int((2+x)*(i*x^5+h*x^4+g*x^3+f*x^2+e*x+d)/(x^4-5*x^2+4)^2,x)
 

Output:

( - 35*log(x - 2)*d*x**3 + 70*log(x - 2)*d*x**2 + 35*log(x - 2)*d*x - 70*l 
og(x - 2)*d - 58*log(x - 2)*e*x**3 + 116*log(x - 2)*e*x**2 + 58*log(x - 2) 
*e*x - 116*log(x - 2)*e - 92*log(x - 2)*f*x**3 + 184*log(x - 2)*f*x**2 + 9 
2*log(x - 2)*f*x - 184*log(x - 2)*f - 136*log(x - 2)*g*x**3 + 272*log(x - 
2)*g*x**2 + 136*log(x - 2)*g*x - 272*log(x - 2)*g - 176*log(x - 2)*h*x**3 
+ 352*log(x - 2)*h*x**2 + 176*log(x - 2)*h*x - 352*log(x - 2)*h - 160*log( 
x - 2)*i*x**3 + 320*log(x - 2)*i*x**2 + 160*log(x - 2)*i*x - 320*log(x - 2 
)*i + 24*log(x - 1)*d*x**3 - 48*log(x - 1)*d*x**2 - 24*log(x - 1)*d*x + 48 
*log(x - 1)*d + 60*log(x - 1)*e*x**3 - 120*log(x - 1)*e*x**2 - 60*log(x - 
1)*e*x + 120*log(x - 1)*e + 96*log(x - 1)*f*x**3 - 192*log(x - 1)*f*x**2 - 
 96*log(x - 1)*f*x + 192*log(x - 1)*f + 132*log(x - 1)*g*x**3 - 264*log(x 
- 1)*g*x**2 - 132*log(x - 1)*g*x + 264*log(x - 1)*g + 168*log(x - 1)*h*x** 
3 - 336*log(x - 1)*h*x**2 - 168*log(x - 1)*h*x + 336*log(x - 1)*h + 204*lo 
g(x - 1)*i*x**3 - 408*log(x - 1)*i*x**2 - 204*log(x - 1)*i*x + 408*log(x - 
 1)*i + 3*log(x + 2)*d*x**3 - 6*log(x + 2)*d*x**2 - 3*log(x + 2)*d*x + 6*l 
og(x + 2)*d - 6*log(x + 2)*e*x**3 + 12*log(x + 2)*e*x**2 + 6*log(x + 2)*e* 
x - 12*log(x + 2)*e + 12*log(x + 2)*f*x**3 - 24*log(x + 2)*f*x**2 - 12*log 
(x + 2)*f*x + 24*log(x + 2)*f - 24*log(x + 2)*g*x**3 + 48*log(x + 2)*g*x** 
2 + 24*log(x + 2)*g*x - 48*log(x + 2)*g + 48*log(x + 2)*h*x**3 - 96*log(x 
+ 2)*h*x**2 - 48*log(x + 2)*h*x + 96*log(x + 2)*h - 96*log(x + 2)*i*x**...