Integrand size = 104, antiderivative size = 28 \begin {dmath*} \int \frac {e^{-\frac {x^2}{1-2 x+x^2}} \left (20-60 x+20 x^2-30 x^3+e^{\frac {x^2}{1-2 x+x^2}} \left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)\right )}{\left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)} \, dx=x-\frac {5 e^{-\frac {x^2}{(1-x)^2}} x}{(4+x) \log (5)} \end {dmath*}
Time = 10.12 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.14 \begin {dmath*} \int \frac {e^{-\frac {x^2}{1-2 x+x^2}} \left (20-60 x+20 x^2-30 x^3+e^{\frac {x^2}{1-2 x+x^2}} \left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)\right )}{\left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)} \, dx=\frac {-\frac {5 e^{-\frac {x^2}{(-1+x)^2}} x}{4+x}+(-1+x) \log (5)}{\log (5)} \end {dmath*}
Integrate[(20 - 60*x + 20*x^2 - 30*x^3 + E^(x^2/(1 - 2*x + x^2))*(-16 + 40 *x - 25*x^2 - 5*x^3 + 5*x^4 + x^5)*Log[5])/(E^(x^2/(1 - 2*x + x^2))*(-16 + 40*x - 25*x^2 - 5*x^3 + 5*x^4 + x^5)*Log[5]),x]
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 {e^{-\frac {x^2}{x^2-2 x+1}} \left (-30 x^3+20 x^2+e^{\frac {x^2}{x^2-2 x+1}} \left (x^5+5 x^4-5 x^3-25 x^2+40 x-16\right ) \log (5)-60 x+20\right )}{\left (x^5+5 x^4-5 x^3-25 x^2+40 x-16\right ) \log (5)} \, dx\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\int -\frac {e^{-\frac {x^2}{x^2-2 x+1}} \left (-30 x^3+20 x^2-60 x-e^{\frac {x^2}{x^2-2 x+1}} \left (-x^5-5 x^4+5 x^3+25 x^2-40 x+16\right ) \log (5)+20\right )}{-x^5-5 x^4+5 x^3+25 x^2-40 x+16}dx}{\log (5)}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {\int \frac {e^{-\frac {x^2}{x^2-2 x+1}} \left (-30 x^3+20 x^2-60 x-e^{\frac {x^2}{x^2-2 x+1}} \left (-x^5-5 x^4+5 x^3+25 x^2-40 x+16\right ) \log (5)+20\right )}{-x^5-5 x^4+5 x^3+25 x^2-40 x+16}dx}{\log (5)}\) |
\(\Big \downarrow \) 2463 |
\(\displaystyle -\frac {\int \left (-\frac {3 e^{-\frac {x^2}{x^2-2 x+1}} \left (-30 x^3+20 x^2-60 x-e^{\frac {x^2}{x^2-2 x+1}} \left (-x^5-5 x^4+5 x^3+25 x^2-40 x+16\right ) \log (5)+20\right )}{625 (x-1)}+\frac {3 e^{-\frac {x^2}{x^2-2 x+1}} \left (-30 x^3+20 x^2-60 x-e^{\frac {x^2}{x^2-2 x+1}} \left (-x^5-5 x^4+5 x^3+25 x^2-40 x+16\right ) \log (5)+20\right )}{625 (x+4)}+\frac {2 e^{-\frac {x^2}{x^2-2 x+1}} \left (-30 x^3+20 x^2-60 x-e^{\frac {x^2}{x^2-2 x+1}} \left (-x^5-5 x^4+5 x^3+25 x^2-40 x+16\right ) \log (5)+20\right )}{125 (x-1)^2}+\frac {e^{-\frac {x^2}{x^2-2 x+1}} \left (-30 x^3+20 x^2-60 x-e^{\frac {x^2}{x^2-2 x+1}} \left (-x^5-5 x^4+5 x^3+25 x^2-40 x+16\right ) \log (5)+20\right )}{125 (x+4)^2}-\frac {e^{-\frac {x^2}{x^2-2 x+1}} \left (-30 x^3+20 x^2-60 x-e^{\frac {x^2}{x^2-2 x+1}} \left (-x^5-5 x^4+5 x^3+25 x^2-40 x+16\right ) \log (5)+20\right )}{25 (x-1)^3}\right )dx}{\log (5)}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {-\frac {2}{5} \int \frac {e^{-\frac {x^2}{x^2-2 x+1}}}{(x-1)^3}dx+\frac {6}{5} \int \frac {e^{-\frac {x^2}{x^2-2 x+1}}}{(x-1)^2}dx+\frac {32}{25} \int \frac {e^{-\frac {x^2}{x^2-2 x+1}}}{x-1}dx+20 \int \frac {e^{-\frac {x^2}{x^2-2 x+1}}}{(x+4)^2}dx-\frac {32}{25} \int \frac {e^{-\frac {x^2}{x^2-2 x+1}}}{x+4}dx+\frac {6}{5} e^{-\frac {x^2}{x^2-2 x+1}}-\frac {1}{250} (1-x)^4 \log (5)+\frac {1}{25} (1-x)^3 \log (5)+\frac {1}{250} (x+4)^4 \log (5)-\frac {1}{25} (x+4)^3 \log (5)}{\log (5)}\) |
Int[(20 - 60*x + 20*x^2 - 30*x^3 + E^(x^2/(1 - 2*x + x^2))*(-16 + 40*x - 2 5*x^2 - 5*x^3 + 5*x^4 + x^5)*Log[5])/(E^(x^2/(1 - 2*x + x^2))*(-16 + 40*x - 25*x^2 - 5*x^3 + 5*x^4 + x^5)*Log[5]),x]
3.8.3.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
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] && Gt Q[Expon[Px, x], 2] && !BinomialQ[Px, x] && !TrinomialQ[Px, x] && ILtQ[p, 0]
Time = 1.21 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.93
method | result | size |
risch | \(x -\frac {5 x \,{\mathrm e}^{-\frac {x^{2}}{\left (-1+x \right )^{2}}}}{\ln \left (5\right ) \left (4+x \right )}\) | \(26\) |
parts | \(x +\frac {\left (\frac {10 x^{2}}{\ln \left (5\right )}-\frac {5 x}{\ln \left (5\right )}-\frac {5 x^{3}}{\ln \left (5\right )}\right ) {\mathrm e}^{-\frac {x^{2}}{x^{2}-2 x +1}}}{\left (4+x \right ) \left (-1+x \right )^{2}}\) | \(57\) |
norman | \(\frac {\left (x^{4} {\mathrm e}^{\frac {x^{2}}{x^{2}-2 x +1}}-8 \,{\mathrm e}^{\frac {x^{2}}{x^{2}-2 x +1}}+18 x \,{\mathrm e}^{\frac {x^{2}}{x^{2}-2 x +1}}-11 x^{2} {\mathrm e}^{\frac {x^{2}}{x^{2}-2 x +1}}-\frac {5 x}{\ln \left (5\right )}+\frac {10 x^{2}}{\ln \left (5\right )}-\frac {5 x^{3}}{\ln \left (5\right )}\right ) {\mathrm e}^{-\frac {x^{2}}{x^{2}-2 x +1}}}{\left (4+x \right ) \left (-1+x \right )^{2}}\) | \(129\) |
parallelrisch | \(\frac {\left (\ln \left (5\right ) {\mathrm e}^{\frac {x^{2}}{x^{2}-2 x +1}} x^{4}+4 \ln \left (5\right ) {\mathrm e}^{\frac {x^{2}}{x^{2}-2 x +1}} x^{3}-3 \ln \left (5\right ) {\mathrm e}^{\frac {x^{2}}{x^{2}-2 x +1}} x^{2}-10 \ln \left (5\right ) x \,{\mathrm e}^{\frac {x^{2}}{x^{2}-2 x +1}}-5 x^{3}+8 \ln \left (5\right ) {\mathrm e}^{\frac {x^{2}}{x^{2}-2 x +1}}+10 x^{2}-5 x \right ) {\mathrm e}^{-\frac {x^{2}}{x^{2}-2 x +1}}}{\ln \left (5\right ) \left (4+x \right ) \left (-1+x \right )^{2}}\) | \(151\) |
int(((x^5+5*x^4-5*x^3-25*x^2+40*x-16)*ln(5)*exp(x^2/(x^2-2*x+1))-30*x^3+20 *x^2-60*x+20)/(x^5+5*x^4-5*x^3-25*x^2+40*x-16)/ln(5)/exp(x^2/(x^2-2*x+1)), x,method=_RETURNVERBOSE)
Leaf count of result is larger than twice the leaf count of optimal. 55 vs. \(2 (25) = 50\).
Time = 0.28 (sec) , antiderivative size = 55, normalized size of antiderivative = 1.96 \begin {dmath*} \int \frac {e^{-\frac {x^2}{1-2 x+x^2}} \left (20-60 x+20 x^2-30 x^3+e^{\frac {x^2}{1-2 x+x^2}} \left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)\right )}{\left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)} \, dx=\frac {{\left ({\left (x^{2} + 4 \, x\right )} e^{\left (\frac {x^{2}}{x^{2} - 2 \, x + 1}\right )} \log \left (5\right ) - 5 \, x\right )} e^{\left (-\frac {x^{2}}{x^{2} - 2 \, x + 1}\right )}}{{\left (x + 4\right )} \log \left (5\right )} \end {dmath*}
integrate(((x^5+5*x^4-5*x^3-25*x^2+40*x-16)*log(5)*exp(x^2/(x^2-2*x+1))-30 *x^3+20*x^2-60*x+20)/(x^5+5*x^4-5*x^3-25*x^2+40*x-16)/log(5)/exp(x^2/(x^2- 2*x+1)),x, algorithm=\
((x^2 + 4*x)*e^(x^2/(x^2 - 2*x + 1))*log(5) - 5*x)*e^(-x^2/(x^2 - 2*x + 1) )/((x + 4)*log(5))
Time = 0.14 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.96 \begin {dmath*} \int \frac {e^{-\frac {x^2}{1-2 x+x^2}} \left (20-60 x+20 x^2-30 x^3+e^{\frac {x^2}{1-2 x+x^2}} \left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)\right )}{\left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)} \, dx=x - \frac {5 x e^{- \frac {x^{2}}{x^{2} - 2 x + 1}}}{x \log {\left (5 \right )} + 4 \log {\left (5 \right )}} \end {dmath*}
integrate(((x**5+5*x**4-5*x**3-25*x**2+40*x-16)*ln(5)*exp(x**2/(x**2-2*x+1 ))-30*x**3+20*x**2-60*x+20)/(x**5+5*x**4-5*x**3-25*x**2+40*x-16)/ln(5)/exp (x**2/(x**2-2*x+1)),x)
Leaf count of result is larger than twice the leaf count of optimal. 68 vs. \(2 (25) = 50\).
Time = 0.33 (sec) , antiderivative size = 68, normalized size of antiderivative = 2.43 \begin {dmath*} \int \frac {e^{-\frac {x^2}{1-2 x+x^2}} \left (20-60 x+20 x^2-30 x^3+e^{\frac {x^2}{1-2 x+x^2}} \left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)\right )}{\left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)} \, dx=-\frac {{\left (5 \, x e^{\left (-\frac {1}{x^{2} - 2 \, x + 1}\right )} - {\left (x^{2} e \log \left (5\right ) + 4 \, x e \log \left (5\right )\right )} e^{\left (\frac {2}{x - 1}\right )}\right )} e^{\left (-\frac {2}{x - 1}\right )}}{{\left (x e + 4 \, e\right )} \log \left (5\right )} \end {dmath*}
integrate(((x^5+5*x^4-5*x^3-25*x^2+40*x-16)*log(5)*exp(x^2/(x^2-2*x+1))-30 *x^3+20*x^2-60*x+20)/(x^5+5*x^4-5*x^3-25*x^2+40*x-16)/log(5)/exp(x^2/(x^2- 2*x+1)),x, algorithm=\
-(5*x*e^(-1/(x^2 - 2*x + 1)) - (x^2*e*log(5) + 4*x*e*log(5))*e^(2/(x - 1)) )*e^(-2/(x - 1))/((x*e + 4*e)*log(5))
Time = 0.27 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.46 \begin {dmath*} \int \frac {e^{-\frac {x^2}{1-2 x+x^2}} \left (20-60 x+20 x^2-30 x^3+e^{\frac {x^2}{1-2 x+x^2}} \left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)\right )}{\left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)} \, dx=\frac {x^{2} \log \left (5\right ) - 5 \, x e^{\left (-\frac {x^{2}}{x^{2} - 2 \, x + 1}\right )} + 4 \, x \log \left (5\right )}{{\left (x + 4\right )} \log \left (5\right )} \end {dmath*}
integrate(((x^5+5*x^4-5*x^3-25*x^2+40*x-16)*log(5)*exp(x^2/(x^2-2*x+1))-30 *x^3+20*x^2-60*x+20)/(x^5+5*x^4-5*x^3-25*x^2+40*x-16)/log(5)/exp(x^2/(x^2- 2*x+1)),x, algorithm=\
Time = 16.70 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.07 \begin {dmath*} \int \frac {e^{-\frac {x^2}{1-2 x+x^2}} \left (20-60 x+20 x^2-30 x^3+e^{\frac {x^2}{1-2 x+x^2}} \left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)\right )}{\left (-16+40 x-25 x^2-5 x^3+5 x^4+x^5\right ) \log (5)} \, dx=x-\frac {5\,x\,{\mathrm {e}}^{-\frac {x^2}{x^2-2\,x+1}}}{\ln \left (5\right )\,\left (x+4\right )} \end {dmath*}