Integrand size = 266, antiderivative size = 27 \begin {dmath*} \int \frac {-4+4 x+7 x^2-8 x^3-2 x^4-e^{2 x} x^4+4 x^5-x^6+e^x \left (-4 x^2+2 x^3+4 x^4-2 x^5\right )+\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log (x)+\left (6-4 x-5 x^2+6 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (3 x^2-3 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)}{\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)} \, dx=x+\frac {x}{2-x+x^2 \left (-2+e^x+x\right )}+\frac {x}{\log (x)} \end {dmath*}
Time = 6.70 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.19 \begin {dmath*} \int \frac {-4+4 x+7 x^2-8 x^3-2 x^4-e^{2 x} x^4+4 x^5-x^6+e^x \left (-4 x^2+2 x^3+4 x^4-2 x^5\right )+\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log (x)+\left (6-4 x-5 x^2+6 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (3 x^2-3 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)}{\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)} \, dx=x+\frac {x}{2-x-2 x^2+e^x x^2+x^3}+\frac {x}{\log (x)} \end {dmath*}
Integrate[(-4 + 4*x + 7*x^2 - 8*x^3 - 2*x^4 - E^(2*x)*x^4 + 4*x^5 - x^6 + E^x*(-4*x^2 + 2*x^3 + 4*x^4 - 2*x^5) + (4 - 4*x - 7*x^2 + 8*x^3 + 2*x^4 + E^(2*x)*x^4 - 4*x^5 + x^6 + E^x*(4*x^2 - 2*x^3 - 4*x^4 + 2*x^5))*Log[x] + (6 - 4*x - 5*x^2 + 6*x^3 + 2*x^4 + E^(2*x)*x^4 - 4*x^5 + x^6 + E^x*(3*x^2 - 3*x^3 - 4*x^4 + 2*x^5))*Log[x]^2)/((4 - 4*x - 7*x^2 + 8*x^3 + 2*x^4 + E^ (2*x)*x^4 - 4*x^5 + x^6 + E^x*(4*x^2 - 2*x^3 - 4*x^4 + 2*x^5))*Log[x]^2),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 {-x^6+4 x^5-e^{2 x} x^4-2 x^4-8 x^3+7 x^2+e^x \left (-2 x^5+4 x^4+2 x^3-4 x^2\right )+\left (x^6-4 x^5+e^{2 x} x^4+2 x^4+6 x^3-5 x^2+e^x \left (2 x^5-4 x^4-3 x^3+3 x^2\right )-4 x+6\right ) \log ^2(x)+\left (x^6-4 x^5+e^{2 x} x^4+2 x^4+8 x^3-7 x^2+e^x \left (2 x^5-4 x^4-2 x^3+4 x^2\right )-4 x+4\right ) \log (x)+4 x-4}{\left (x^6-4 x^5+e^{2 x} x^4+2 x^4+8 x^3-7 x^2+e^x \left (2 x^5-4 x^4-2 x^3+4 x^2\right )-4 x+4\right ) \log ^2(x)} \, dx\) |
\(\Big \downarrow \) 7239 |
\(\displaystyle \int \left (\frac {x^6+2 \left (e^x-2\right ) x^5+\left (-4 e^x+e^{2 x}+2\right ) x^4-3 \left (e^x-2\right ) x^3+\left (3 e^x-5\right ) x^2-4 x+6}{\left (x^3+\left (e^x-2\right ) x^2-x+2\right )^2}-\frac {1}{\log ^2(x)}+\frac {1}{\log (x)}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle 4 \int \frac {1}{\left (x^3+e^x x^2-2 x^2-x+2\right )^2}dx+\int \frac {x}{\left (x^3+e^x x^2-2 x^2-x+2\right )^2}dx-\int \frac {x^2}{\left (x^3+e^x x^2-2 x^2-x+2\right )^2}dx-3 \int \frac {x^3}{\left (x^3+e^x x^2-2 x^2-x+2\right )^2}dx-\int \frac {1}{x^3+e^x x^2-2 x^2-x+2}dx-\int \frac {x}{x^3+e^x x^2-2 x^2-x+2}dx+\int \frac {x^4}{\left (x^3+e^x x^2-2 x^2-x+2\right )^2}dx+x+\frac {x}{\log (x)}\) |
Int[(-4 + 4*x + 7*x^2 - 8*x^3 - 2*x^4 - E^(2*x)*x^4 + 4*x^5 - x^6 + E^x*(- 4*x^2 + 2*x^3 + 4*x^4 - 2*x^5) + (4 - 4*x - 7*x^2 + 8*x^3 + 2*x^4 + E^(2*x )*x^4 - 4*x^5 + x^6 + E^x*(4*x^2 - 2*x^3 - 4*x^4 + 2*x^5))*Log[x] + (6 - 4 *x - 5*x^2 + 6*x^3 + 2*x^4 + E^(2*x)*x^4 - 4*x^5 + x^6 + E^x*(3*x^2 - 3*x^ 3 - 4*x^4 + 2*x^5))*Log[x]^2)/((4 - 4*x - 7*x^2 + 8*x^3 + 2*x^4 + E^(2*x)* x^4 - 4*x^5 + x^6 + E^x*(4*x^2 - 2*x^3 - 4*x^4 + 2*x^5))*Log[x]^2),x]
3.11.99.3.1 Defintions of rubi rules used
Int[u_, x_Symbol] :> With[{v = SimplifyIntegrand[u, x]}, Int[v, x] /; Simpl erIntegrandQ[v, u, x]]
Time = 0.80 (sec) , antiderivative size = 50, normalized size of antiderivative = 1.85
method | result | size |
risch | \(\frac {x \left (x^{3}+{\mathrm e}^{x} x^{2}-2 x^{2}-x +3\right )}{{\mathrm e}^{x} x^{2}+x^{3}-2 x^{2}-x +2}+\frac {x}{\ln \left (x \right )}\) | \(50\) |
parallelrisch | \(\frac {2 x +x^{4} \ln \left (x \right )+{\mathrm e}^{x} x^{3}+3 x \ln \left (x \right )+x^{3} {\mathrm e}^{x} \ln \left (x \right )+x^{4}-2 x^{3}-x^{2}-2 x^{3} \ln \left (x \right )-x^{2} \ln \left (x \right )}{\ln \left (x \right ) \left ({\mathrm e}^{x} x^{2}+x^{3}-2 x^{2}-x +2\right )}\) | \(83\) |
int(((exp(x)^2*x^4+(2*x^5-4*x^4-3*x^3+3*x^2)*exp(x)+x^6-4*x^5+2*x^4+6*x^3- 5*x^2-4*x+6)*ln(x)^2+(exp(x)^2*x^4+(2*x^5-4*x^4-2*x^3+4*x^2)*exp(x)+x^6-4* x^5+2*x^4+8*x^3-7*x^2-4*x+4)*ln(x)-exp(x)^2*x^4+(-2*x^5+4*x^4+2*x^3-4*x^2) *exp(x)-x^6+4*x^5-2*x^4-8*x^3+7*x^2+4*x-4)/(exp(x)^2*x^4+(2*x^5-4*x^4-2*x^ 3+4*x^2)*exp(x)+x^6-4*x^5+2*x^4+8*x^3-7*x^2-4*x+4)/ln(x)^2,x,method=_RETUR NVERBOSE)
Leaf count of result is larger than twice the leaf count of optimal. 75 vs. \(2 (26) = 52\).
Time = 0.27 (sec) , antiderivative size = 75, normalized size of antiderivative = 2.78 \begin {dmath*} \int \frac {-4+4 x+7 x^2-8 x^3-2 x^4-e^{2 x} x^4+4 x^5-x^6+e^x \left (-4 x^2+2 x^3+4 x^4-2 x^5\right )+\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log (x)+\left (6-4 x-5 x^2+6 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (3 x^2-3 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)}{\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)} \, dx=\frac {x^{4} + x^{3} e^{x} - 2 \, x^{3} - x^{2} + {\left (x^{4} + x^{3} e^{x} - 2 \, x^{3} - x^{2} + 3 \, x\right )} \log \left (x\right ) + 2 \, x}{{\left (x^{3} + x^{2} e^{x} - 2 \, x^{2} - x + 2\right )} \log \left (x\right )} \end {dmath*}
integrate(((exp(x)^2*x^4+(2*x^5-4*x^4-3*x^3+3*x^2)*exp(x)+x^6-4*x^5+2*x^4+ 6*x^3-5*x^2-4*x+6)*log(x)^2+(exp(x)^2*x^4+(2*x^5-4*x^4-2*x^3+4*x^2)*exp(x) +x^6-4*x^5+2*x^4+8*x^3-7*x^2-4*x+4)*log(x)-exp(x)^2*x^4+(-2*x^5+4*x^4+2*x^ 3-4*x^2)*exp(x)-x^6+4*x^5-2*x^4-8*x^3+7*x^2+4*x-4)/(exp(x)^2*x^4+(2*x^5-4* x^4-2*x^3+4*x^2)*exp(x)+x^6-4*x^5+2*x^4+8*x^3-7*x^2-4*x+4)/log(x)^2,x, alg orithm=\
(x^4 + x^3*e^x - 2*x^3 - x^2 + (x^4 + x^3*e^x - 2*x^3 - x^2 + 3*x)*log(x) + 2*x)/((x^3 + x^2*e^x - 2*x^2 - x + 2)*log(x))
Time = 0.16 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.96 \begin {dmath*} \int \frac {-4+4 x+7 x^2-8 x^3-2 x^4-e^{2 x} x^4+4 x^5-x^6+e^x \left (-4 x^2+2 x^3+4 x^4-2 x^5\right )+\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log (x)+\left (6-4 x-5 x^2+6 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (3 x^2-3 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)}{\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)} \, dx=x + \frac {x}{\log {\left (x \right )}} + \frac {x}{x^{3} + x^{2} e^{x} - 2 x^{2} - x + 2} \end {dmath*}
integrate(((exp(x)**2*x**4+(2*x**5-4*x**4-3*x**3+3*x**2)*exp(x)+x**6-4*x** 5+2*x**4+6*x**3-5*x**2-4*x+6)*ln(x)**2+(exp(x)**2*x**4+(2*x**5-4*x**4-2*x* *3+4*x**2)*exp(x)+x**6-4*x**5+2*x**4+8*x**3-7*x**2-4*x+4)*ln(x)-exp(x)**2* x**4+(-2*x**5+4*x**4+2*x**3-4*x**2)*exp(x)-x**6+4*x**5-2*x**4-8*x**3+7*x** 2+4*x-4)/(exp(x)**2*x**4+(2*x**5-4*x**4-2*x**3+4*x**2)*exp(x)+x**6-4*x**5+ 2*x**4+8*x**3-7*x**2-4*x+4)/ln(x)**2,x)
Leaf count of result is larger than twice the leaf count of optimal. 78 vs. \(2 (26) = 52\).
Time = 0.30 (sec) , antiderivative size = 78, normalized size of antiderivative = 2.89 \begin {dmath*} \int \frac {-4+4 x+7 x^2-8 x^3-2 x^4-e^{2 x} x^4+4 x^5-x^6+e^x \left (-4 x^2+2 x^3+4 x^4-2 x^5\right )+\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log (x)+\left (6-4 x-5 x^2+6 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (3 x^2-3 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)}{\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)} \, dx=\frac {x^{4} - 2 \, x^{3} - x^{2} + {\left (x^{3} \log \left (x\right ) + x^{3}\right )} e^{x} + {\left (x^{4} - 2 \, x^{3} - x^{2} + 3 \, x\right )} \log \left (x\right ) + 2 \, x}{x^{2} e^{x} \log \left (x\right ) + {\left (x^{3} - 2 \, x^{2} - x + 2\right )} \log \left (x\right )} \end {dmath*}
integrate(((exp(x)^2*x^4+(2*x^5-4*x^4-3*x^3+3*x^2)*exp(x)+x^6-4*x^5+2*x^4+ 6*x^3-5*x^2-4*x+6)*log(x)^2+(exp(x)^2*x^4+(2*x^5-4*x^4-2*x^3+4*x^2)*exp(x) +x^6-4*x^5+2*x^4+8*x^3-7*x^2-4*x+4)*log(x)-exp(x)^2*x^4+(-2*x^5+4*x^4+2*x^ 3-4*x^2)*exp(x)-x^6+4*x^5-2*x^4-8*x^3+7*x^2+4*x-4)/(exp(x)^2*x^4+(2*x^5-4* x^4-2*x^3+4*x^2)*exp(x)+x^6-4*x^5+2*x^4+8*x^3-7*x^2-4*x+4)/log(x)^2,x, alg orithm=\
(x^4 - 2*x^3 - x^2 + (x^3*log(x) + x^3)*e^x + (x^4 - 2*x^3 - x^2 + 3*x)*lo g(x) + 2*x)/(x^2*e^x*log(x) + (x^3 - 2*x^2 - x + 2)*log(x))
Leaf count of result is larger than twice the leaf count of optimal. 90 vs. \(2 (26) = 52\).
Time = 0.38 (sec) , antiderivative size = 90, normalized size of antiderivative = 3.33 \begin {dmath*} \int \frac {-4+4 x+7 x^2-8 x^3-2 x^4-e^{2 x} x^4+4 x^5-x^6+e^x \left (-4 x^2+2 x^3+4 x^4-2 x^5\right )+\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log (x)+\left (6-4 x-5 x^2+6 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (3 x^2-3 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)}{\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)} \, dx=\frac {x^{4} \log \left (x\right ) + x^{3} e^{x} \log \left (x\right ) + x^{4} + x^{3} e^{x} - 2 \, x^{3} \log \left (x\right ) - 2 \, x^{3} - x^{2} \log \left (x\right ) - x^{2} + 3 \, x \log \left (x\right ) + 2 \, x}{x^{3} \log \left (x\right ) + x^{2} e^{x} \log \left (x\right ) - 2 \, x^{2} \log \left (x\right ) - x \log \left (x\right ) + 2 \, \log \left (x\right )} \end {dmath*}
integrate(((exp(x)^2*x^4+(2*x^5-4*x^4-3*x^3+3*x^2)*exp(x)+x^6-4*x^5+2*x^4+ 6*x^3-5*x^2-4*x+6)*log(x)^2+(exp(x)^2*x^4+(2*x^5-4*x^4-2*x^3+4*x^2)*exp(x) +x^6-4*x^5+2*x^4+8*x^3-7*x^2-4*x+4)*log(x)-exp(x)^2*x^4+(-2*x^5+4*x^4+2*x^ 3-4*x^2)*exp(x)-x^6+4*x^5-2*x^4-8*x^3+7*x^2+4*x-4)/(exp(x)^2*x^4+(2*x^5-4* x^4-2*x^3+4*x^2)*exp(x)+x^6-4*x^5+2*x^4+8*x^3-7*x^2-4*x+4)/log(x)^2,x, alg orithm=\
(x^4*log(x) + x^3*e^x*log(x) + x^4 + x^3*e^x - 2*x^3*log(x) - 2*x^3 - x^2* log(x) - x^2 + 3*x*log(x) + 2*x)/(x^3*log(x) + x^2*e^x*log(x) - 2*x^2*log( x) - x*log(x) + 2*log(x))
Time = 14.94 (sec) , antiderivative size = 76, normalized size of antiderivative = 2.81 \begin {dmath*} \int \frac {-4+4 x+7 x^2-8 x^3-2 x^4-e^{2 x} x^4+4 x^5-x^6+e^x \left (-4 x^2+2 x^3+4 x^4-2 x^5\right )+\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log (x)+\left (6-4 x-5 x^2+6 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (3 x^2-3 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)}{\left (4-4 x-7 x^2+8 x^3+2 x^4+e^{2 x} x^4-4 x^5+x^6+e^x \left (4 x^2-2 x^3-4 x^4+2 x^5\right )\right ) \log ^2(x)} \, dx=\frac {x\,\left (3\,\ln \left (x\right )-x+x^2\,{\mathrm {e}}^x-2\,x^2\,\ln \left (x\right )+x^3\,\ln \left (x\right )-x\,\ln \left (x\right )-2\,x^2+x^3+x^2\,{\mathrm {e}}^x\,\ln \left (x\right )+2\right )}{\ln \left (x\right )\,\left (x^2\,{\mathrm {e}}^x-x-2\,x^2+x^3+2\right )} \end {dmath*}
int(-(x^4*exp(2*x) - log(x)*(x^4*exp(2*x) - 4*x + exp(x)*(4*x^2 - 2*x^3 - 4*x^4 + 2*x^5) - 7*x^2 + 8*x^3 + 2*x^4 - 4*x^5 + x^6 + 4) - 4*x + exp(x)*( 4*x^2 - 2*x^3 - 4*x^4 + 2*x^5) - log(x)^2*(x^4*exp(2*x) - 4*x + exp(x)*(3* x^2 - 3*x^3 - 4*x^4 + 2*x^5) - 5*x^2 + 6*x^3 + 2*x^4 - 4*x^5 + x^6 + 6) - 7*x^2 + 8*x^3 + 2*x^4 - 4*x^5 + x^6 + 4)/(log(x)^2*(x^4*exp(2*x) - 4*x + e xp(x)*(4*x^2 - 2*x^3 - 4*x^4 + 2*x^5) - 7*x^2 + 8*x^3 + 2*x^4 - 4*x^5 + x^ 6 + 4)),x)