\(\int \frac {e^{2 x} (-4 x^3-2 x^4-2 x^5+2 x^6)+e^x (-188 x+282 x^2+282 x^3-470 x^5-376 x^6+94 x^7+94 x^8)}{-1+5 x-5 x^2-10 x^3+15 x^4+11 x^5-15 x^6-10 x^7+5 x^8+5 x^9+x^{10}} \, dx\) [1022]

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

Optimal result

Integrand size = 117, antiderivative size = 18 \[ \int \frac {e^{2 x} \left (-4 x^3-2 x^4-2 x^5+2 x^6\right )+e^x \left (-188 x+282 x^2+282 x^3-470 x^5-376 x^6+94 x^7+94 x^8\right )}{-1+5 x-5 x^2-10 x^3+15 x^4+11 x^5-15 x^6-10 x^7+5 x^8+5 x^9+x^{10}} \, dx=\left (47+\frac {e^x}{\left (1-\frac {1}{x}+x\right )^2}\right )^2 \]

[Out]

(exp(x)/(1+x-1/x)^2+47)^2

Rubi [C] (verified)

Result contains higher order function than in optimal. Order 4 vs. order 3 in optimal.

Time = 21.15 (sec) , antiderivative size = 2487, normalized size of antiderivative = 138.17, number of steps used = 908, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.051, Rules used = {6820, 12, 6874, 2208, 2209, 2300} \[ \int \frac {e^{2 x} \left (-4 x^3-2 x^4-2 x^5+2 x^6\right )+e^x \left (-188 x+282 x^2+282 x^3-470 x^5-376 x^6+94 x^7+94 x^8\right )}{-1+5 x-5 x^2-10 x^3+15 x^4+11 x^5-15 x^6-10 x^7+5 x^8+5 x^9+x^{10}} \, dx =\text {Too large to display} \]

[In]

Int[(E^(2*x)*(-4*x^3 - 2*x^4 - 2*x^5 + 2*x^6) + E^x*(-188*x + 282*x^2 + 282*x^3 - 470*x^5 - 376*x^6 + 94*x^7 +
 94*x^8))/(-1 + 5*x - 5*x^2 - 10*x^3 + 15*x^4 + 11*x^5 - 15*x^6 - 10*x^7 + 5*x^8 + 5*x^9 + x^10),x]

[Out]

(-64*E^(2*x))/(25*Sqrt[5]*(1 - Sqrt[5] + 2*x)^4) + (56*(5 - Sqrt[5])*E^(2*x))/(125*(1 - Sqrt[5] + 2*x)^4) - (3
2*E^(2*x))/(25*(1 - Sqrt[5] + 2*x)^3) - (64*E^(2*x))/(75*Sqrt[5]*(1 - Sqrt[5] + 2*x)^3) + (112*(5 - 3*Sqrt[5])
*E^(2*x))/(375*(1 - Sqrt[5] + 2*x)^3) - (8*(1 - Sqrt[5])*E^(2*x))/(5*(1 - Sqrt[5] + 2*x)^3) + (56*(5 - Sqrt[5]
)*E^(2*x))/(375*(1 - Sqrt[5] + 2*x)^3) - (376*E^x)/(5*Sqrt[5]*(1 - Sqrt[5] + 2*x)^2) + (564*(5 - Sqrt[5])*E^x)
/(25*(1 - Sqrt[5] + 2*x)^2) - (16*E^(2*x))/(25*(1 - Sqrt[5] + 2*x)^2) - (68*E^(2*x))/(75*Sqrt[5]*(1 - Sqrt[5]
+ 2*x)^2) + (28*(5 - 3*Sqrt[5])*E^(2*x))/(75*(1 - Sqrt[5] + 2*x)^2) - (12*(5 - 2*Sqrt[5])*E^(2*x))/(25*(1 - Sq
rt[5] + 2*x)^2) - (4*(1 - Sqrt[5])*E^(2*x))/(5*(1 - Sqrt[5] + 2*x)^2) + (148*(5 - Sqrt[5])*E^(2*x))/(375*(1 -
Sqrt[5] + 2*x)^2) - (1692*E^x)/(25*(1 - Sqrt[5] + 2*x)) - (188*E^x)/(5*Sqrt[5]*(1 - Sqrt[5] + 2*x)) - (282*(1
- Sqrt[5])*E^x)/(5*(1 - Sqrt[5] + 2*x)) + (564*(3 - Sqrt[5])*E^x)/(25*(1 - Sqrt[5] + 2*x)) + (282*(5 - Sqrt[5]
)*E^x)/(25*(1 - Sqrt[5] + 2*x)) - (96*E^(2*x))/(125*(1 - Sqrt[5] + 2*x)) - (68*E^(2*x))/(75*Sqrt[5]*(1 - Sqrt[
5] + 2*x)) + (28*(5 - 3*Sqrt[5])*E^(2*x))/(75*(1 - Sqrt[5] + 2*x)) - (12*(5 - 2*Sqrt[5])*E^(2*x))/(25*(1 - Sqr
t[5] + 2*x)) - (4*(1 - Sqrt[5])*E^(2*x))/(5*(1 - Sqrt[5] + 2*x)) + (8*(3 - Sqrt[5])*E^(2*x))/(25*(1 - Sqrt[5]
+ 2*x)) - (32*(5 - Sqrt[5])*E^(2*x))/(375*(1 - Sqrt[5] + 2*x)) + (28*(7 - Sqrt[5])*E^(2*x))/(125*(1 - Sqrt[5]
+ 2*x)) + (64*E^(2*x))/(25*Sqrt[5]*(1 + Sqrt[5] + 2*x)^4) + (56*(5 + Sqrt[5])*E^(2*x))/(125*(1 + Sqrt[5] + 2*x
)^4) - (32*E^(2*x))/(25*(1 + Sqrt[5] + 2*x)^3) + (64*E^(2*x))/(75*Sqrt[5]*(1 + Sqrt[5] + 2*x)^3) - (8*(1 + Sqr
t[5])*E^(2*x))/(5*(1 + Sqrt[5] + 2*x)^3) + (56*(5 + Sqrt[5])*E^(2*x))/(375*(1 + Sqrt[5] + 2*x)^3) + (112*(5 +
3*Sqrt[5])*E^(2*x))/(375*(1 + Sqrt[5] + 2*x)^3) + (376*E^x)/(5*Sqrt[5]*(1 + Sqrt[5] + 2*x)^2) + (564*(5 + Sqrt
[5])*E^x)/(25*(1 + Sqrt[5] + 2*x)^2) - (16*E^(2*x))/(25*(1 + Sqrt[5] + 2*x)^2) + (68*E^(2*x))/(75*Sqrt[5]*(1 +
 Sqrt[5] + 2*x)^2) - (4*(1 + Sqrt[5])*E^(2*x))/(5*(1 + Sqrt[5] + 2*x)^2) + (148*(5 + Sqrt[5])*E^(2*x))/(375*(1
 + Sqrt[5] + 2*x)^2) - (12*(5 + 2*Sqrt[5])*E^(2*x))/(25*(1 + Sqrt[5] + 2*x)^2) + (28*(5 + 3*Sqrt[5])*E^(2*x))/
(75*(1 + Sqrt[5] + 2*x)^2) - (1692*E^x)/(25*(1 + Sqrt[5] + 2*x)) + (188*E^x)/(5*Sqrt[5]*(1 + Sqrt[5] + 2*x)) -
 (282*(1 + Sqrt[5])*E^x)/(5*(1 + Sqrt[5] + 2*x)) + (564*(3 + Sqrt[5])*E^x)/(25*(1 + Sqrt[5] + 2*x)) + (282*(5
+ Sqrt[5])*E^x)/(25*(1 + Sqrt[5] + 2*x)) - (96*E^(2*x))/(125*(1 + Sqrt[5] + 2*x)) + (68*E^(2*x))/(75*Sqrt[5]*(
1 + Sqrt[5] + 2*x)) - (4*(1 + Sqrt[5])*E^(2*x))/(5*(1 + Sqrt[5] + 2*x)) + (8*(3 + Sqrt[5])*E^(2*x))/(25*(1 + S
qrt[5] + 2*x)) - (32*(5 + Sqrt[5])*E^(2*x))/(375*(1 + Sqrt[5] + 2*x)) + (28*(7 + Sqrt[5])*E^(2*x))/(125*(1 + S
qrt[5] + 2*x)) - (12*(5 + 2*Sqrt[5])*E^(2*x))/(25*(1 + Sqrt[5] + 2*x)) + (28*(5 + 3*Sqrt[5])*E^(2*x))/(75*(1 +
 Sqrt[5] + 2*x)) + (846*E^((-1 + Sqrt[5])/2)*ExpIntegralEi[(1 - Sqrt[5] + 2*x)/2])/25 + (282*E^((-1 + Sqrt[5])
/2)*ExpIntegralEi[(1 - Sqrt[5] + 2*x)/2])/(5*Sqrt[5]) + (141*(1 - Sqrt[5])*E^((-1 + Sqrt[5])/2)*ExpIntegralEi[
(1 - Sqrt[5] + 2*x)/2])/5 - (282*(3 - Sqrt[5])*E^((-1 + Sqrt[5])/2)*ExpIntegralEi[(1 - Sqrt[5] + 2*x)/2])/25 -
 (141*(5 - Sqrt[5])*E^((-1 + Sqrt[5])/2)*ExpIntegralEi[(1 - Sqrt[5] + 2*x)/2])/25 + (96*E^(-1 + Sqrt[5])*ExpIn
tegralEi[1 - Sqrt[5] + 2*x])/125 + (68*E^(-1 + Sqrt[5])*ExpIntegralEi[1 - Sqrt[5] + 2*x])/(75*Sqrt[5]) - (28*(
5 - 3*Sqrt[5])*E^(-1 + Sqrt[5])*ExpIntegralEi[1 - Sqrt[5] + 2*x])/75 + (12*(5 - 2*Sqrt[5])*E^(-1 + Sqrt[5])*Ex
pIntegralEi[1 - Sqrt[5] + 2*x])/25 + (4*(1 - Sqrt[5])*E^(-1 + Sqrt[5])*ExpIntegralEi[1 - Sqrt[5] + 2*x])/5 - (
8*(3 - Sqrt[5])*E^(-1 + Sqrt[5])*ExpIntegralEi[1 - Sqrt[5] + 2*x])/25 + (32*(5 - Sqrt[5])*E^(-1 + Sqrt[5])*Exp
IntegralEi[1 - Sqrt[5] + 2*x])/375 - (28*(7 - Sqrt[5])*E^(-1 + Sqrt[5])*ExpIntegralEi[1 - Sqrt[5] + 2*x])/125
+ (846*E^(-1/2 - Sqrt[5]/2)*ExpIntegralEi[(1 + Sqrt[5] + 2*x)/2])/25 - (282*E^(-1/2 - Sqrt[5]/2)*ExpIntegralEi
[(1 + Sqrt[5] + 2*x)/2])/(5*Sqrt[5]) + (141*(1 + Sqrt[5])*E^(-1/2 - Sqrt[5]/2)*ExpIntegralEi[(1 + Sqrt[5] + 2*
x)/2])/5 - (282*(3 + Sqrt[5])*E^(-1/2 - Sqrt[5]/2)*ExpIntegralEi[(1 + Sqrt[5] + 2*x)/2])/25 - (141*(5 + Sqrt[5
])*E^(-1/2 - Sqrt[5]/2)*ExpIntegralEi[(1 + Sqrt[5] + 2*x)/2])/25 + (96*E^(-1 - Sqrt[5])*ExpIntegralEi[1 + Sqrt
[5] + 2*x])/125 - (68*E^(-1 - Sqrt[5])*ExpIntegralEi[1 + Sqrt[5] + 2*x])/(75*Sqrt[5]) + (4*(1 + Sqrt[5])*E^(-1
 - Sqrt[5])*ExpIntegralEi[1 + Sqrt[5] + 2*x])/5 - (8*(3 + Sqrt[5])*E^(-1 - Sqrt[5])*ExpIntegralEi[1 + Sqrt[5]
+ 2*x])/25 + (32*(5 + Sqrt[5])*E^(-1 - Sqrt[5])*ExpIntegralEi[1 + Sqrt[5] + 2*x])/375 - (28*(7 + Sqrt[5])*E^(-
1 - Sqrt[5])*ExpIntegralEi[1 + Sqrt[5] + 2*x])/125 + (12*(5 + 2*Sqrt[5])*E^(-1 - Sqrt[5])*ExpIntegralEi[1 + Sq
rt[5] + 2*x])/25 - (28*(5 + 3*Sqrt[5])*E^(-1 - Sqrt[5])*ExpIntegralEi[1 + Sqrt[5] + 2*x])/75

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 2208

Int[((b_.)*(F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_), x_Symbol] :> Simp[(c + d*x)^(m
+ 1)*((b*F^(g*(e + f*x)))^n/(d*(m + 1))), x] - Dist[f*g*n*(Log[F]/(d*(m + 1))), Int[(c + d*x)^(m + 1)*(b*F^(g*
(e + f*x)))^n, x], x] /; FreeQ[{F, b, c, d, e, f, g, n}, x] && LtQ[m, -1] && IntegerQ[2*m] &&  !TrueQ[$UseGamm
a]

Rule 2209

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - c*(f/d)))/d)*ExpInteg
ralEi[f*g*(c + d*x)*(Log[F]/d)], x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !TrueQ[$UseGamma]

Rule 2300

Int[(F_)^((g_.)*((d_.) + (e_.)*(x_))^(n_.))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Int[ExpandIntegr
and[F^(g*(d + e*x)^n), 1/(a + b*x + c*x^2), x], x] /; FreeQ[{F, a, b, c, d, e, g, n}, x]

Rule 6820

Int[u_, x_Symbol] :> With[{v = SimplifyIntegrand[u, x]}, Int[v, x] /; SimplerIntegrandQ[v, u, x]]

Rule 6874

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps \begin{align*} \text {integral}& = \int \frac {2 e^x x \left (2+x+x^2-x^3\right ) \left (47-94 x+\left (-47+e^x\right ) x^2+94 x^3+47 x^4\right )}{\left (1-x-x^2\right )^5} \, dx \\ & = 2 \int \frac {e^x x \left (2+x+x^2-x^3\right ) \left (47-94 x+\left (-47+e^x\right ) x^2+94 x^3+47 x^4\right )}{\left (1-x-x^2\right )^5} \, dx \\ & = 2 \int \left (\frac {47 e^x (-2+x) x \left (1+x+x^2\right )}{\left (-1+x+x^2\right )^5}-\frac {94 e^x (-2+x) x^2 \left (1+x+x^2\right )}{\left (-1+x+x^2\right )^5}-\frac {47 e^x (-2+x) x^3 \left (1+x+x^2\right )}{\left (-1+x+x^2\right )^5}+\frac {e^{2 x} (-2+x) x^3 \left (1+x+x^2\right )}{\left (-1+x+x^2\right )^5}+\frac {94 e^x (-2+x) x^4 \left (1+x+x^2\right )}{\left (-1+x+x^2\right )^5}+\frac {47 e^x (-2+x) x^5 \left (1+x+x^2\right )}{\left (-1+x+x^2\right )^5}\right ) \, dx \\ & = 2 \int \frac {e^{2 x} (-2+x) x^3 \left (1+x+x^2\right )}{\left (-1+x+x^2\right )^5} \, dx+94 \int \frac {e^x (-2+x) x \left (1+x+x^2\right )}{\left (-1+x+x^2\right )^5} \, dx-94 \int \frac {e^x (-2+x) x^3 \left (1+x+x^2\right )}{\left (-1+x+x^2\right )^5} \, dx+94 \int \frac {e^x (-2+x) x^5 \left (1+x+x^2\right )}{\left (-1+x+x^2\right )^5} \, dx-188 \int \frac {e^x (-2+x) x^2 \left (1+x+x^2\right )}{\left (-1+x+x^2\right )^5} \, dx+188 \int \frac {e^x (-2+x) x^4 \left (1+x+x^2\right )}{\left (-1+x+x^2\right )^5} \, dx \\ & = 2 \int \left (-\frac {2 e^{2 x} (-4+7 x)}{\left (-1+x+x^2\right )^5}+\frac {e^{2 x} (14-15 x)}{\left (-1+x+x^2\right )^4}+\frac {e^{2 x} (7-4 x)}{\left (-1+x+x^2\right )^3}+\frac {e^{2 x}}{\left (-1+x+x^2\right )^2}\right ) \, dx+94 \int \left (-\frac {2 e^x (-1+3 x)}{\left (-1+x+x^2\right )^5}-\frac {3 e^x (-1+x)}{\left (-1+x+x^2\right )^4}+\frac {e^x}{\left (-1+x+x^2\right )^3}\right ) \, dx-94 \int \left (-\frac {2 e^x (-4+7 x)}{\left (-1+x+x^2\right )^5}+\frac {e^x (14-15 x)}{\left (-1+x+x^2\right )^4}+\frac {e^x (7-4 x)}{\left (-1+x+x^2\right )^3}+\frac {e^x}{\left (-1+x+x^2\right )^2}\right ) \, dx+94 \int \left (-\frac {2 e^x (-11+18 x)}{\left (-1+x+x^2\right )^5}+\frac {e^x (51-58 x)}{\left (-1+x+x^2\right )^4}-\frac {10 e^x (-4+3 x)}{\left (-1+x+x^2\right )^3}+\frac {e^x (12-5 x)}{\left (-1+x+x^2\right )^2}+\frac {e^x}{-1+x+x^2}\right ) \, dx-188 \int \left (\frac {2 e^x (-3+4 x)}{\left (-1+x+x^2\right )^5}+\frac {3 e^x (-3+2 x)}{\left (-1+x+x^2\right )^4}+\frac {e^x (-3+x)}{\left (-1+x+x^2\right )^3}\right ) \, dx+188 \int \left (\frac {2 e^x (-7+11 x)}{\left (-1+x+x^2\right )^5}+\frac {29 e^x (-1+x)}{\left (-1+x+x^2\right )^4}+\frac {e^x (-19+11 x)}{\left (-1+x+x^2\right )^3}+\frac {e^x (-4+x)}{\left (-1+x+x^2\right )^2}\right ) \, dx \\ & = 2 \int \frac {e^{2 x} (14-15 x)}{\left (-1+x+x^2\right )^4} \, dx+2 \int \frac {e^{2 x} (7-4 x)}{\left (-1+x+x^2\right )^3} \, dx+2 \int \frac {e^{2 x}}{\left (-1+x+x^2\right )^2} \, dx-4 \int \frac {e^{2 x} (-4+7 x)}{\left (-1+x+x^2\right )^5} \, dx+94 \int \frac {e^x (51-58 x)}{\left (-1+x+x^2\right )^4} \, dx-94 \int \frac {e^x (14-15 x)}{\left (-1+x+x^2\right )^4} \, dx+94 \int \frac {e^x}{\left (-1+x+x^2\right )^3} \, dx-94 \int \frac {e^x (7-4 x)}{\left (-1+x+x^2\right )^3} \, dx-94 \int \frac {e^x}{\left (-1+x+x^2\right )^2} \, dx+94 \int \frac {e^x (12-5 x)}{\left (-1+x+x^2\right )^2} \, dx+94 \int \frac {e^x}{-1+x+x^2} \, dx-188 \int \frac {e^x (-1+3 x)}{\left (-1+x+x^2\right )^5} \, dx+188 \int \frac {e^x (-4+7 x)}{\left (-1+x+x^2\right )^5} \, dx-188 \int \frac {e^x (-11+18 x)}{\left (-1+x+x^2\right )^5} \, dx-188 \int \frac {e^x (-3+x)}{\left (-1+x+x^2\right )^3} \, dx+188 \int \frac {e^x (-19+11 x)}{\left (-1+x+x^2\right )^3} \, dx+188 \int \frac {e^x (-4+x)}{\left (-1+x+x^2\right )^2} \, dx-282 \int \frac {e^x (-1+x)}{\left (-1+x+x^2\right )^4} \, dx-376 \int \frac {e^x (-3+4 x)}{\left (-1+x+x^2\right )^5} \, dx+376 \int \frac {e^x (-7+11 x)}{\left (-1+x+x^2\right )^5} \, dx-564 \int \frac {e^x (-3+2 x)}{\left (-1+x+x^2\right )^4} \, dx-940 \int \frac {e^x (-4+3 x)}{\left (-1+x+x^2\right )^3} \, dx+5452 \int \frac {e^x (-1+x)}{\left (-1+x+x^2\right )^4} \, dx \\ & = 2 \int \left (\frac {4 e^{2 x}}{5 \left (-1+\sqrt {5}-2 x\right )^2}+\frac {4 e^{2 x}}{5 \sqrt {5} \left (-1+\sqrt {5}-2 x\right )}+\frac {4 e^{2 x}}{5 \left (1+\sqrt {5}+2 x\right )^2}+\frac {4 e^{2 x}}{5 \sqrt {5} \left (1+\sqrt {5}+2 x\right )}\right ) \, dx+2 \int \left (\frac {14 e^{2 x}}{\left (-1+x+x^2\right )^4}-\frac {15 e^{2 x} x}{\left (-1+x+x^2\right )^4}\right ) \, dx+2 \int \left (\frac {7 e^{2 x}}{\left (-1+x+x^2\right )^3}-\frac {4 e^{2 x} x}{\left (-1+x+x^2\right )^3}\right ) \, dx-4 \int \left (-\frac {4 e^{2 x}}{\left (-1+x+x^2\right )^5}+\frac {7 e^{2 x} x}{\left (-1+x+x^2\right )^5}\right ) \, dx+94 \int \left (-\frac {2 e^x}{\sqrt {5} \left (-1+\sqrt {5}-2 x\right )}-\frac {2 e^x}{\sqrt {5} \left (1+\sqrt {5}+2 x\right )}\right ) \, dx+94 \int \left (-\frac {8 e^x}{5 \sqrt {5} \left (-1+\sqrt {5}-2 x\right )^3}-\frac {12 e^x}{25 \left (-1+\sqrt {5}-2 x\right )^2}-\frac {12 e^x}{25 \sqrt {5} \left (-1+\sqrt {5}-2 x\right )}-\frac {8 e^x}{5 \sqrt {5} \left (1+\sqrt {5}+2 x\right )^3}-\frac {12 e^x}{25 \left (1+\sqrt {5}+2 x\right )^2}-\frac {12 e^x}{25 \sqrt {5} \left (1+\sqrt {5}+2 x\right )}\right ) \, dx-94 \int \left (\frac {4 e^x}{5 \left (-1+\sqrt {5}-2 x\right )^2}+\frac {4 e^x}{5 \sqrt {5} \left (-1+\sqrt {5}-2 x\right )}+\frac {4 e^x}{5 \left (1+\sqrt {5}+2 x\right )^2}+\frac {4 e^x}{5 \sqrt {5} \left (1+\sqrt {5}+2 x\right )}\right ) \, dx+94 \int \left (\frac {51 e^x}{\left (-1+x+x^2\right )^4}-\frac {58 e^x x}{\left (-1+x+x^2\right )^4}\right ) \, dx-94 \int \left (\frac {14 e^x}{\left (-1+x+x^2\right )^4}-\frac {15 e^x x}{\left (-1+x+x^2\right )^4}\right ) \, dx-94 \int \left (\frac {7 e^x}{\left (-1+x+x^2\right )^3}-\frac {4 e^x x}{\left (-1+x+x^2\right )^3}\right ) \, dx+94 \int \left (\frac {12 e^x}{\left (-1+x+x^2\right )^2}-\frac {5 e^x x}{\left (-1+x+x^2\right )^2}\right ) \, dx-188 \int \left (-\frac {e^x}{\left (-1+x+x^2\right )^5}+\frac {3 e^x x}{\left (-1+x+x^2\right )^5}\right ) \, dx+188 \int \left (-\frac {4 e^x}{\left (-1+x+x^2\right )^5}+\frac {7 e^x x}{\left (-1+x+x^2\right )^5}\right ) \, dx-188 \int \left (-\frac {11 e^x}{\left (-1+x+x^2\right )^5}+\frac {18 e^x x}{\left (-1+x+x^2\right )^5}\right ) \, dx-188 \int \left (-\frac {3 e^x}{\left (-1+x+x^2\right )^3}+\frac {e^x x}{\left (-1+x+x^2\right )^3}\right ) \, dx+188 \int \left (-\frac {19 e^x}{\left (-1+x+x^2\right )^3}+\frac {11 e^x x}{\left (-1+x+x^2\right )^3}\right ) \, dx+188 \int \left (-\frac {4 e^x}{\left (-1+x+x^2\right )^2}+\frac {e^x x}{\left (-1+x+x^2\right )^2}\right ) \, dx-282 \int \left (-\frac {e^x}{\left (-1+x+x^2\right )^4}+\frac {e^x x}{\left (-1+x+x^2\right )^4}\right ) \, dx-376 \int \left (-\frac {3 e^x}{\left (-1+x+x^2\right )^5}+\frac {4 e^x x}{\left (-1+x+x^2\right )^5}\right ) \, dx+376 \int \left (-\frac {7 e^x}{\left (-1+x+x^2\right )^5}+\frac {11 e^x x}{\left (-1+x+x^2\right )^5}\right ) \, dx-564 \int \left (-\frac {3 e^x}{\left (-1+x+x^2\right )^4}+\frac {2 e^x x}{\left (-1+x+x^2\right )^4}\right ) \, dx-940 \int \left (-\frac {4 e^x}{\left (-1+x+x^2\right )^3}+\frac {3 e^x x}{\left (-1+x+x^2\right )^3}\right ) \, dx+5452 \int \left (-\frac {e^x}{\left (-1+x+x^2\right )^4}+\frac {e^x x}{\left (-1+x+x^2\right )^4}\right ) \, dx \\ & = \frac {8}{5} \int \frac {e^{2 x}}{\left (-1+\sqrt {5}-2 x\right )^2} \, dx+\frac {8}{5} \int \frac {e^{2 x}}{\left (1+\sqrt {5}+2 x\right )^2} \, dx-8 \int \frac {e^{2 x} x}{\left (-1+x+x^2\right )^3} \, dx+14 \int \frac {e^{2 x}}{\left (-1+x+x^2\right )^3} \, dx+16 \int \frac {e^{2 x}}{\left (-1+x+x^2\right )^5} \, dx-28 \int \frac {e^{2 x} x}{\left (-1+x+x^2\right )^5} \, dx+28 \int \frac {e^{2 x}}{\left (-1+x+x^2\right )^4} \, dx-30 \int \frac {e^{2 x} x}{\left (-1+x+x^2\right )^4} \, dx-\frac {1128}{25} \int \frac {e^x}{\left (-1+\sqrt {5}-2 x\right )^2} \, dx-\frac {1128}{25} \int \frac {e^x}{\left (1+\sqrt {5}+2 x\right )^2} \, dx-\frac {376}{5} \int \frac {e^x}{\left (-1+\sqrt {5}-2 x\right )^2} \, dx-\frac {376}{5} \int \frac {e^x}{\left (1+\sqrt {5}+2 x\right )^2} \, dx+188 \int \frac {e^x}{\left (-1+x+x^2\right )^5} \, dx-188 \int \frac {e^x x}{\left (-1+x+x^2\right )^3} \, dx+188 \int \frac {e^x x}{\left (-1+x+x^2\right )^2} \, dx+282 \int \frac {e^x}{\left (-1+x+x^2\right )^4} \, dx-282 \int \frac {e^x x}{\left (-1+x+x^2\right )^4} \, dx+376 \int \frac {e^x x}{\left (-1+x+x^2\right )^3} \, dx-470 \int \frac {e^x x}{\left (-1+x+x^2\right )^2} \, dx-564 \int \frac {e^x x}{\left (-1+x+x^2\right )^5} \, dx+564 \int \frac {e^x}{\left (-1+x+x^2\right )^3} \, dx-658 \int \frac {e^x}{\left (-1+x+x^2\right )^3} \, dx-752 \int \frac {e^x}{\left (-1+x+x^2\right )^5} \, dx-752 \int \frac {e^x}{\left (-1+x+x^2\right )^2} \, dx+1128 \int \frac {e^x}{\left (-1+x+x^2\right )^5} \, dx-1128 \int \frac {e^x x}{\left (-1+x+x^2\right )^4} \, dx+1128 \int \frac {e^x}{\left (-1+x+x^2\right )^2} \, dx+1316 \int \frac {e^x x}{\left (-1+x+x^2\right )^5} \, dx-1316 \int \frac {e^x}{\left (-1+x+x^2\right )^4} \, dx+1410 \int \frac {e^x x}{\left (-1+x+x^2\right )^4} \, dx-1504 \int \frac {e^x x}{\left (-1+x+x^2\right )^5} \, dx+1692 \int \frac {e^x}{\left (-1+x+x^2\right )^4} \, dx+2068 \int \frac {e^x}{\left (-1+x+x^2\right )^5} \, dx+2068 \int \frac {e^x x}{\left (-1+x+x^2\right )^3} \, dx-2632 \int \frac {e^x}{\left (-1+x+x^2\right )^5} \, dx-2820 \int \frac {e^x x}{\left (-1+x+x^2\right )^3} \, dx-3384 \int \frac {e^x x}{\left (-1+x+x^2\right )^5} \, dx-3572 \int \frac {e^x}{\left (-1+x+x^2\right )^3} \, dx+3760 \int \frac {e^x}{\left (-1+x+x^2\right )^3} \, dx+4136 \int \frac {e^x x}{\left (-1+x+x^2\right )^5} \, dx+4794 \int \frac {e^x}{\left (-1+x+x^2\right )^4} \, dx-5452 \int \frac {e^x}{\left (-1+x+x^2\right )^4} \, dx+\frac {8 \int \frac {e^{2 x}}{-1+\sqrt {5}-2 x} \, dx}{5 \sqrt {5}}+\frac {8 \int \frac {e^{2 x}}{1+\sqrt {5}+2 x} \, dx}{5 \sqrt {5}}-\frac {1128 \int \frac {e^x}{-1+\sqrt {5}-2 x} \, dx}{25 \sqrt {5}}-\frac {1128 \int \frac {e^x}{1+\sqrt {5}+2 x} \, dx}{25 \sqrt {5}}-\frac {376 \int \frac {e^x}{-1+\sqrt {5}-2 x} \, dx}{5 \sqrt {5}}-\frac {376 \int \frac {e^x}{1+\sqrt {5}+2 x} \, dx}{5 \sqrt {5}}-\frac {752 \int \frac {e^x}{\left (-1+\sqrt {5}-2 x\right )^3} \, dx}{5 \sqrt {5}}-\frac {752 \int \frac {e^x}{\left (1+\sqrt {5}+2 x\right )^3} \, dx}{5 \sqrt {5}}-\frac {188 \int \frac {e^x}{-1+\sqrt {5}-2 x} \, dx}{\sqrt {5}}-\frac {188 \int \frac {e^x}{1+\sqrt {5}+2 x} \, dx}{\sqrt {5}} \\ & = \text {Too large to display} \\ \end{align*}

Mathematica [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(39\) vs. \(2(18)=36\).

Time = 4.45 (sec) , antiderivative size = 39, normalized size of antiderivative = 2.17 \[ \int \frac {e^{2 x} \left (-4 x^3-2 x^4-2 x^5+2 x^6\right )+e^x \left (-188 x+282 x^2+282 x^3-470 x^5-376 x^6+94 x^7+94 x^8\right )}{-1+5 x-5 x^2-10 x^3+15 x^4+11 x^5-15 x^6-10 x^7+5 x^8+5 x^9+x^{10}} \, dx=\frac {e^x x^2 \left (94-188 x+\left (-94+e^x\right ) x^2+188 x^3+94 x^4\right )}{\left (-1+x+x^2\right )^4} \]

[In]

Integrate[(E^(2*x)*(-4*x^3 - 2*x^4 - 2*x^5 + 2*x^6) + E^x*(-188*x + 282*x^2 + 282*x^3 - 470*x^5 - 376*x^6 + 94
*x^7 + 94*x^8))/(-1 + 5*x - 5*x^2 - 10*x^3 + 15*x^4 + 11*x^5 - 15*x^6 - 10*x^7 + 5*x^8 + 5*x^9 + x^10),x]

[Out]

(E^x*x^2*(94 - 188*x + (-94 + E^x)*x^2 + 188*x^3 + 94*x^4))/(-1 + x + x^2)^4

Maple [A] (verified)

Time = 0.18 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.83

method result size
risch \(\frac {x^{4} {\mathrm e}^{2 x}}{\left (x^{2}+x -1\right )^{4}}+\frac {94 x^{2} {\mathrm e}^{x}}{\left (x^{2}+x -1\right )^{2}}\) \(33\)
norman \(\frac {{\mathrm e}^{2 x} x^{4}+188 x^{5} {\mathrm e}^{x}+94 x^{6} {\mathrm e}^{x}+94 \,{\mathrm e}^{x} x^{2}-188 \,{\mathrm e}^{x} x^{3}-94 \,{\mathrm e}^{x} x^{4}}{\left (x^{2}+x -1\right )^{4}}\) \(54\)
parallelrisch \(\frac {188 x^{6} {\mathrm e}^{x}+376 x^{5} {\mathrm e}^{x}+2 \,{\mathrm e}^{2 x} x^{4}-188 \,{\mathrm e}^{x} x^{4}-376 \,{\mathrm e}^{x} x^{3}+188 \,{\mathrm e}^{x} x^{2}}{2 x^{8}+8 x^{7}+4 x^{6}-16 x^{5}-10 x^{4}+16 x^{3}+4 x^{2}-8 x +2}\) \(88\)
parts \(-\frac {{\mathrm e}^{2 x} \left (128 x^{7}+538 x^{6}+552 x^{5}-870 x^{4}-340 x^{3}+574 x^{2}-126 x -9\right )}{750 \left (x^{8}+4 x^{7}+2 x^{6}-8 x^{5}-5 x^{4}+8 x^{3}+2 x^{2}-4 x +1\right )}-\frac {{\mathrm e}^{2 x} \left (12 x^{7}+2 x^{6}-142 x^{5}-205 x^{4}+240 x^{3}+96 x^{2}-154 x +39\right )}{250 \left (x^{8}+4 x^{7}+2 x^{6}-8 x^{5}-5 x^{4}+8 x^{3}+2 x^{2}-4 x +1\right )}+\frac {{\mathrm e}^{2 x} \left (56 x^{7}+176 x^{6}+4 x^{5}-290 x^{4}+120 x^{3}+448 x^{2}-302 x +57\right )}{375 x^{8}+1500 x^{7}+750 x^{6}-3000 x^{5}-1875 x^{4}+3000 x^{3}+750 x^{2}-1500 x +375}+\frac {{\mathrm e}^{2 x} \left (52 x^{7}+192 x^{6}+118 x^{5}-155 x^{4}+140 x^{3}-34 x^{2}+16 x -6\right )}{750 x^{8}+3000 x^{7}+1500 x^{6}-6000 x^{5}-3750 x^{4}+6000 x^{3}+1500 x^{2}-3000 x +750}-\frac {47 \,{\mathrm e}^{x} \left (23 x^{3}+2 x^{2}-9 x +1\right )}{25 \left (x^{4}+2 x^{3}-x^{2}-2 x +1\right )}+\frac {94 \,{\mathrm e}^{x} \left (11 x^{3}+14 x^{2}-13 x +7\right )}{25 \left (x^{4}+2 x^{3}-x^{2}-2 x +1\right )}-\frac {47 \,{\mathrm e}^{x} \left (3 x^{3}-3 x^{2}-24 x +11\right )}{25 \left (x^{4}+2 x^{3}-x^{2}-2 x +1\right )}+\frac {47 \,{\mathrm e}^{x} \left (4 x^{3}+21 x^{2}-7 x -2\right )}{25 \left (x^{4}+2 x^{3}-x^{2}-2 x +1\right )}\) \(482\)
default \(-\frac {47 \,{\mathrm e}^{x} \left (7 x^{7}-53 x^{6}-377 x^{5}-870 x^{4}+685 x^{3}+446 x^{2}-514 x +119\right )}{300 \left (x^{8}+4 x^{7}+2 x^{6}-8 x^{5}-5 x^{4}+8 x^{3}+2 x^{2}-4 x +1\right )}-\frac {{\mathrm e}^{2 x} \left (12 x^{7}+2 x^{6}-142 x^{5}-205 x^{4}+240 x^{3}+96 x^{2}-154 x +39\right )}{250 \left (x^{8}+4 x^{7}+2 x^{6}-8 x^{5}-5 x^{4}+8 x^{3}+2 x^{2}-4 x +1\right )}-\frac {47 \,{\mathrm e}^{x} \left (4 x^{7}-241 x^{6}-1269 x^{5}+185 x^{4}+1145 x^{3}-263 x^{2}-333 x +118\right )}{375 \left (x^{8}+4 x^{7}+2 x^{6}-8 x^{5}-5 x^{4}+8 x^{3}+2 x^{2}-4 x +1\right )}-\frac {{\mathrm e}^{2 x} \left (128 x^{7}+538 x^{6}+552 x^{5}-870 x^{4}-340 x^{3}+574 x^{2}-126 x -9\right )}{750 \left (x^{8}+4 x^{7}+2 x^{6}-8 x^{5}-5 x^{4}+8 x^{3}+2 x^{2}-4 x +1\right )}-\frac {47 \,{\mathrm e}^{x} \left (437 x^{7}+1952 x^{6}-232 x^{5}-2445 x^{4}+560 x^{3}+1111 x^{2}-599 x +79\right )}{1500 \left (x^{8}+4 x^{7}+2 x^{6}-8 x^{5}-5 x^{4}+8 x^{3}+2 x^{2}-4 x +1\right )}-\frac {47 \,{\mathrm e}^{x} \left (399 x^{7}-971 x^{6}+761 x^{5}+2960 x^{4}-2405 x^{3}-1828 x^{2}+2152 x -517\right )}{1500 \left (x^{8}+4 x^{7}+2 x^{6}-8 x^{5}-5 x^{4}+8 x^{3}+2 x^{2}-4 x +1\right )}+\frac {47 \,{\mathrm e}^{x} \left (253 x^{7}+788 x^{6}-108 x^{5}-1705 x^{4}+140 x^{3}+1459 x^{2}-531 x +151\right )}{750 \left (x^{8}+4 x^{7}+2 x^{6}-8 x^{5}-5 x^{4}+8 x^{3}+2 x^{2}-4 x +1\right )}+\frac {47 \,{\mathrm e}^{x} \left (109 x^{7}+339 x^{6}-49 x^{5}-740 x^{4}+45 x^{3}+552 x^{2}-668 x +153\right )}{500 \left (x^{8}+4 x^{7}+2 x^{6}-8 x^{5}-5 x^{4}+8 x^{3}+2 x^{2}-4 x +1\right )}+\frac {47 \,{\mathrm e}^{x} \left (18 x^{7}+53 x^{6}-23 x^{5}-155 x^{4}-85 x^{3}-371 x^{2}+239 x -44\right )}{500 \left (x^{8}+4 x^{7}+2 x^{6}-8 x^{5}-5 x^{4}+8 x^{3}+2 x^{2}-4 x +1\right )}+\frac {{\mathrm e}^{2 x} \left (56 x^{7}+176 x^{6}+4 x^{5}-290 x^{4}+120 x^{3}+448 x^{2}-302 x +57\right )}{375 x^{8}+1500 x^{7}+750 x^{6}-3000 x^{5}-1875 x^{4}+3000 x^{3}+750 x^{2}-1500 x +375}+\frac {{\mathrm e}^{2 x} \left (52 x^{7}+192 x^{6}+118 x^{5}-155 x^{4}+140 x^{3}-34 x^{2}+16 x -6\right )}{750 x^{8}+3000 x^{7}+1500 x^{6}-6000 x^{5}-3750 x^{4}+6000 x^{3}+1500 x^{2}-3000 x +750}\) \(879\)

[In]

int(((2*x^6-2*x^5-2*x^4-4*x^3)*exp(x)^2+(94*x^8+94*x^7-376*x^6-470*x^5+282*x^3+282*x^2-188*x)*exp(x))/(x^10+5*
x^9+5*x^8-10*x^7-15*x^6+11*x^5+15*x^4-10*x^3-5*x^2+5*x-1),x,method=_RETURNVERBOSE)

[Out]

x^4/(x^2+x-1)^4*exp(x)^2+94*x^2/(x^2+x-1)^2*exp(x)

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 76 vs. \(2 (17) = 34\).

Time = 0.27 (sec) , antiderivative size = 76, normalized size of antiderivative = 4.22 \[ \int \frac {e^{2 x} \left (-4 x^3-2 x^4-2 x^5+2 x^6\right )+e^x \left (-188 x+282 x^2+282 x^3-470 x^5-376 x^6+94 x^7+94 x^8\right )}{-1+5 x-5 x^2-10 x^3+15 x^4+11 x^5-15 x^6-10 x^7+5 x^8+5 x^9+x^{10}} \, dx=\frac {x^{4} e^{\left (2 \, x\right )} + 94 \, {\left (x^{6} + 2 \, x^{5} - x^{4} - 2 \, x^{3} + x^{2}\right )} e^{x}}{x^{8} + 4 \, x^{7} + 2 \, x^{6} - 8 \, x^{5} - 5 \, x^{4} + 8 \, x^{3} + 2 \, x^{2} - 4 \, x + 1} \]

[In]

integrate(((2*x^6-2*x^5-2*x^4-4*x^3)*exp(x)^2+(94*x^8+94*x^7-376*x^6-470*x^5+282*x^3+282*x^2-188*x)*exp(x))/(x
^10+5*x^9+5*x^8-10*x^7-15*x^6+11*x^5+15*x^4-10*x^3-5*x^2+5*x-1),x, algorithm="fricas")

[Out]

(x^4*e^(2*x) + 94*(x^6 + 2*x^5 - x^4 - 2*x^3 + x^2)*e^x)/(x^8 + 4*x^7 + 2*x^6 - 8*x^5 - 5*x^4 + 8*x^3 + 2*x^2
- 4*x + 1)

Sympy [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 133 vs. \(2 (14) = 28\).

Time = 0.09 (sec) , antiderivative size = 133, normalized size of antiderivative = 7.39 \[ \int \frac {e^{2 x} \left (-4 x^3-2 x^4-2 x^5+2 x^6\right )+e^x \left (-188 x+282 x^2+282 x^3-470 x^5-376 x^6+94 x^7+94 x^8\right )}{-1+5 x-5 x^2-10 x^3+15 x^4+11 x^5-15 x^6-10 x^7+5 x^8+5 x^9+x^{10}} \, dx=\frac {\left (x^{8} + 2 x^{7} - x^{6} - 2 x^{5} + x^{4}\right ) e^{2 x} + \left (94 x^{10} + 376 x^{9} + 188 x^{8} - 752 x^{7} - 470 x^{6} + 752 x^{5} + 188 x^{4} - 376 x^{3} + 94 x^{2}\right ) e^{x}}{x^{12} + 6 x^{11} + 9 x^{10} - 10 x^{9} - 30 x^{8} + 6 x^{7} + 41 x^{6} - 6 x^{5} - 30 x^{4} + 10 x^{3} + 9 x^{2} - 6 x + 1} \]

[In]

integrate(((2*x**6-2*x**5-2*x**4-4*x**3)*exp(x)**2+(94*x**8+94*x**7-376*x**6-470*x**5+282*x**3+282*x**2-188*x)
*exp(x))/(x**10+5*x**9+5*x**8-10*x**7-15*x**6+11*x**5+15*x**4-10*x**3-5*x**2+5*x-1),x)

[Out]

((x**8 + 2*x**7 - x**6 - 2*x**5 + x**4)*exp(2*x) + (94*x**10 + 376*x**9 + 188*x**8 - 752*x**7 - 470*x**6 + 752
*x**5 + 188*x**4 - 376*x**3 + 94*x**2)*exp(x))/(x**12 + 6*x**11 + 9*x**10 - 10*x**9 - 30*x**8 + 6*x**7 + 41*x*
*6 - 6*x**5 - 30*x**4 + 10*x**3 + 9*x**2 - 6*x + 1)

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 76 vs. \(2 (17) = 34\).

Time = 0.21 (sec) , antiderivative size = 76, normalized size of antiderivative = 4.22 \[ \int \frac {e^{2 x} \left (-4 x^3-2 x^4-2 x^5+2 x^6\right )+e^x \left (-188 x+282 x^2+282 x^3-470 x^5-376 x^6+94 x^7+94 x^8\right )}{-1+5 x-5 x^2-10 x^3+15 x^4+11 x^5-15 x^6-10 x^7+5 x^8+5 x^9+x^{10}} \, dx=\frac {x^{4} e^{\left (2 \, x\right )} + 94 \, {\left (x^{6} + 2 \, x^{5} - x^{4} - 2 \, x^{3} + x^{2}\right )} e^{x}}{x^{8} + 4 \, x^{7} + 2 \, x^{6} - 8 \, x^{5} - 5 \, x^{4} + 8 \, x^{3} + 2 \, x^{2} - 4 \, x + 1} \]

[In]

integrate(((2*x^6-2*x^5-2*x^4-4*x^3)*exp(x)^2+(94*x^8+94*x^7-376*x^6-470*x^5+282*x^3+282*x^2-188*x)*exp(x))/(x
^10+5*x^9+5*x^8-10*x^7-15*x^6+11*x^5+15*x^4-10*x^3-5*x^2+5*x-1),x, algorithm="maxima")

[Out]

(x^4*e^(2*x) + 94*(x^6 + 2*x^5 - x^4 - 2*x^3 + x^2)*e^x)/(x^8 + 4*x^7 + 2*x^6 - 8*x^5 - 5*x^4 + 8*x^3 + 2*x^2
- 4*x + 1)

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 85 vs. \(2 (17) = 34\).

Time = 0.27 (sec) , antiderivative size = 85, normalized size of antiderivative = 4.72 \[ \int \frac {e^{2 x} \left (-4 x^3-2 x^4-2 x^5+2 x^6\right )+e^x \left (-188 x+282 x^2+282 x^3-470 x^5-376 x^6+94 x^7+94 x^8\right )}{-1+5 x-5 x^2-10 x^3+15 x^4+11 x^5-15 x^6-10 x^7+5 x^8+5 x^9+x^{10}} \, dx=\frac {94 \, x^{6} e^{x} + 188 \, x^{5} e^{x} + x^{4} e^{\left (2 \, x\right )} - 94 \, x^{4} e^{x} - 188 \, x^{3} e^{x} + 94 \, x^{2} e^{x}}{x^{8} + 4 \, x^{7} + 2 \, x^{6} - 8 \, x^{5} - 5 \, x^{4} + 8 \, x^{3} + 2 \, x^{2} - 4 \, x + 1} \]

[In]

integrate(((2*x^6-2*x^5-2*x^4-4*x^3)*exp(x)^2+(94*x^8+94*x^7-376*x^6-470*x^5+282*x^3+282*x^2-188*x)*exp(x))/(x
^10+5*x^9+5*x^8-10*x^7-15*x^6+11*x^5+15*x^4-10*x^3-5*x^2+5*x-1),x, algorithm="giac")

[Out]

(94*x^6*e^x + 188*x^5*e^x + x^4*e^(2*x) - 94*x^4*e^x - 188*x^3*e^x + 94*x^2*e^x)/(x^8 + 4*x^7 + 2*x^6 - 8*x^5
- 5*x^4 + 8*x^3 + 2*x^2 - 4*x + 1)

Mupad [B] (verification not implemented)

Time = 0.45 (sec) , antiderivative size = 40, normalized size of antiderivative = 2.22 \[ \int \frac {e^{2 x} \left (-4 x^3-2 x^4-2 x^5+2 x^6\right )+e^x \left (-188 x+282 x^2+282 x^3-470 x^5-376 x^6+94 x^7+94 x^8\right )}{-1+5 x-5 x^2-10 x^3+15 x^4+11 x^5-15 x^6-10 x^7+5 x^8+5 x^9+x^{10}} \, dx=\frac {x^2\,{\mathrm {e}}^x\,\left (x^2\,{\mathrm {e}}^x-188\,x-94\,x^2+188\,x^3+94\,x^4+94\right )}{{\left (x^2+x-1\right )}^4} \]

[In]

int((exp(x)*(282*x^2 - 188*x + 282*x^3 - 470*x^5 - 376*x^6 + 94*x^7 + 94*x^8) - exp(2*x)*(4*x^3 + 2*x^4 + 2*x^
5 - 2*x^6))/(5*x - 5*x^2 - 10*x^3 + 15*x^4 + 11*x^5 - 15*x^6 - 10*x^7 + 5*x^8 + 5*x^9 + x^10 - 1),x)

[Out]

(x^2*exp(x)*(x^2*exp(x) - 188*x - 94*x^2 + 188*x^3 + 94*x^4 + 94))/(x + x^2 - 1)^4