Integrand size = 129, antiderivative size = 28 \[ \int \frac {\log (e x) \left (e^{x+x^2} (-4+2 x)-2 e^{x+x^2} \log \left (x^2\right )\right )+\log ^2(e x) \left (e^{x+x^2} \left (4-4 x-3 x^2+2 x^3\right )+e^{x+x^2} \left (1-x-2 x^2\right ) \log \left (x^2\right )\right )}{4 x^2-4 x^3+x^4+\left (4 x^2-2 x^3\right ) \log \left (x^2\right )+x^2 \log ^2\left (x^2\right )} \, dx=\frac {e^{x (1+x)} \log ^2(e x)}{x \left (-2+x-\log \left (x^2\right )\right )} \]
[Out]
\[ \int \frac {\log (e x) \left (e^{x+x^2} (-4+2 x)-2 e^{x+x^2} \log \left (x^2\right )\right )+\log ^2(e x) \left (e^{x+x^2} \left (4-4 x-3 x^2+2 x^3\right )+e^{x+x^2} \left (1-x-2 x^2\right ) \log \left (x^2\right )\right )}{4 x^2-4 x^3+x^4+\left (4 x^2-2 x^3\right ) \log \left (x^2\right )+x^2 \log ^2\left (x^2\right )} \, dx=\int \frac {\log (e x) \left (e^{x+x^2} (-4+2 x)-2 e^{x+x^2} \log \left (x^2\right )\right )+\log ^2(e x) \left (e^{x+x^2} \left (4-4 x-3 x^2+2 x^3\right )+e^{x+x^2} \left (1-x-2 x^2\right ) \log \left (x^2\right )\right )}{4 x^2-4 x^3+x^4+\left (4 x^2-2 x^3\right ) \log \left (x^2\right )+x^2 \log ^2\left (x^2\right )} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \int \frac {e^{x+x^2} (1+\log (x)) \left (2 \left (-2+x-\log \left (x^2\right )\right )+(1+\log (x)) \left (4-4 x-3 x^2+2 x^3-\left (-1+x+2 x^2\right ) \log \left (x^2\right )\right )\right )}{x^2 \left (2-x+\log \left (x^2\right )\right )^2} \, dx \\ & = \int \left (-\frac {e^{x+x^2} (-2+x) (1+\log (x))^2}{x^2 \left (-2+x-\log \left (x^2\right )\right )^2}+\frac {e^{x+x^2} (1+\log (x)) \left (1+x+2 x^2-\log (x)+x \log (x)+2 x^2 \log (x)\right )}{x^2 \left (-2+x-\log \left (x^2\right )\right )}\right ) \, dx \\ & = -\int \frac {e^{x+x^2} (-2+x) (1+\log (x))^2}{x^2 \left (-2+x-\log \left (x^2\right )\right )^2} \, dx+\int \frac {e^{x+x^2} (1+\log (x)) \left (1+x+2 x^2-\log (x)+x \log (x)+2 x^2 \log (x)\right )}{x^2 \left (-2+x-\log \left (x^2\right )\right )} \, dx \\ & = -\int \left (-\frac {2 e^{x+x^2} (1+\log (x))^2}{x^2 \left (-2+x-\log \left (x^2\right )\right )^2}+\frac {e^{x+x^2} (1+\log (x))^2}{x \left (-2+x-\log \left (x^2\right )\right )^2}\right ) \, dx+\int \left (\frac {2 e^{x+x^2}}{-2+x-\log \left (x^2\right )}+\frac {e^{x+x^2}}{x^2 \left (-2+x-\log \left (x^2\right )\right )}+\frac {e^{x+x^2}}{x \left (-2+x-\log \left (x^2\right )\right )}+\frac {4 e^{x+x^2} \log (x)}{-2+x-\log \left (x^2\right )}+\frac {2 e^{x+x^2} \log (x)}{x \left (-2+x-\log \left (x^2\right )\right )}+\frac {2 e^{x+x^2} \log ^2(x)}{-2+x-\log \left (x^2\right )}-\frac {e^{x+x^2} \log ^2(x)}{x^2 \left (-2+x-\log \left (x^2\right )\right )}+\frac {e^{x+x^2} \log ^2(x)}{x \left (-2+x-\log \left (x^2\right )\right )}\right ) \, dx \\ & = 2 \int \frac {e^{x+x^2} (1+\log (x))^2}{x^2 \left (-2+x-\log \left (x^2\right )\right )^2} \, dx+2 \int \frac {e^{x+x^2}}{-2+x-\log \left (x^2\right )} \, dx+2 \int \frac {e^{x+x^2} \log (x)}{x \left (-2+x-\log \left (x^2\right )\right )} \, dx+2 \int \frac {e^{x+x^2} \log ^2(x)}{-2+x-\log \left (x^2\right )} \, dx+4 \int \frac {e^{x+x^2} \log (x)}{-2+x-\log \left (x^2\right )} \, dx-\int \frac {e^{x+x^2} (1+\log (x))^2}{x \left (-2+x-\log \left (x^2\right )\right )^2} \, dx+\int \frac {e^{x+x^2}}{x^2 \left (-2+x-\log \left (x^2\right )\right )} \, dx+\int \frac {e^{x+x^2}}{x \left (-2+x-\log \left (x^2\right )\right )} \, dx-\int \frac {e^{x+x^2} \log ^2(x)}{x^2 \left (-2+x-\log \left (x^2\right )\right )} \, dx+\int \frac {e^{x+x^2} \log ^2(x)}{x \left (-2+x-\log \left (x^2\right )\right )} \, dx \\ & = 2 \int \left (\frac {e^{x+x^2}}{x^2 \left (-2+x-\log \left (x^2\right )\right )^2}+\frac {2 e^{x+x^2} \log (x)}{x^2 \left (-2+x-\log \left (x^2\right )\right )^2}+\frac {e^{x+x^2} \log ^2(x)}{x^2 \left (-2+x-\log \left (x^2\right )\right )^2}\right ) \, dx+2 \int \frac {e^{x+x^2}}{-2+x-\log \left (x^2\right )} \, dx+2 \int \frac {e^{x+x^2} \log (x)}{x \left (-2+x-\log \left (x^2\right )\right )} \, dx+2 \int \frac {e^{x+x^2} \log ^2(x)}{-2+x-\log \left (x^2\right )} \, dx+4 \int \frac {e^{x+x^2} \log (x)}{-2+x-\log \left (x^2\right )} \, dx-\int \left (\frac {e^{x+x^2}}{x \left (-2+x-\log \left (x^2\right )\right )^2}+\frac {2 e^{x+x^2} \log (x)}{x \left (-2+x-\log \left (x^2\right )\right )^2}+\frac {e^{x+x^2} \log ^2(x)}{x \left (-2+x-\log \left (x^2\right )\right )^2}\right ) \, dx+\int \frac {e^{x+x^2}}{x^2 \left (-2+x-\log \left (x^2\right )\right )} \, dx+\int \frac {e^{x+x^2}}{x \left (-2+x-\log \left (x^2\right )\right )} \, dx-\int \frac {e^{x+x^2} \log ^2(x)}{x^2 \left (-2+x-\log \left (x^2\right )\right )} \, dx+\int \frac {e^{x+x^2} \log ^2(x)}{x \left (-2+x-\log \left (x^2\right )\right )} \, dx \\ & = 2 \int \frac {e^{x+x^2}}{x^2 \left (-2+x-\log \left (x^2\right )\right )^2} \, dx-2 \int \frac {e^{x+x^2} \log (x)}{x \left (-2+x-\log \left (x^2\right )\right )^2} \, dx+2 \int \frac {e^{x+x^2} \log ^2(x)}{x^2 \left (-2+x-\log \left (x^2\right )\right )^2} \, dx+2 \int \frac {e^{x+x^2}}{-2+x-\log \left (x^2\right )} \, dx+2 \int \frac {e^{x+x^2} \log (x)}{x \left (-2+x-\log \left (x^2\right )\right )} \, dx+2 \int \frac {e^{x+x^2} \log ^2(x)}{-2+x-\log \left (x^2\right )} \, dx+4 \int \frac {e^{x+x^2} \log (x)}{x^2 \left (-2+x-\log \left (x^2\right )\right )^2} \, dx+4 \int \frac {e^{x+x^2} \log (x)}{-2+x-\log \left (x^2\right )} \, dx-\int \frac {e^{x+x^2}}{x \left (-2+x-\log \left (x^2\right )\right )^2} \, dx-\int \frac {e^{x+x^2} \log ^2(x)}{x \left (-2+x-\log \left (x^2\right )\right )^2} \, dx+\int \frac {e^{x+x^2}}{x^2 \left (-2+x-\log \left (x^2\right )\right )} \, dx+\int \frac {e^{x+x^2}}{x \left (-2+x-\log \left (x^2\right )\right )} \, dx-\int \frac {e^{x+x^2} \log ^2(x)}{x^2 \left (-2+x-\log \left (x^2\right )\right )} \, dx+\int \frac {e^{x+x^2} \log ^2(x)}{x \left (-2+x-\log \left (x^2\right )\right )} \, dx \\ \end{align*}
Time = 5.12 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.00 \[ \int \frac {\log (e x) \left (e^{x+x^2} (-4+2 x)-2 e^{x+x^2} \log \left (x^2\right )\right )+\log ^2(e x) \left (e^{x+x^2} \left (4-4 x-3 x^2+2 x^3\right )+e^{x+x^2} \left (1-x-2 x^2\right ) \log \left (x^2\right )\right )}{4 x^2-4 x^3+x^4+\left (4 x^2-2 x^3\right ) \log \left (x^2\right )+x^2 \log ^2\left (x^2\right )} \, dx=\frac {e^{x+x^2} (1+\log (x))^2}{x \left (-2+x-\log \left (x^2\right )\right )} \]
[In]
[Out]
Time = 1.15 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.04
method | result | size |
parallelrisch | \(\frac {\ln \left (x \,{\mathrm e}\right )^{2} {\mathrm e}^{x^{2}+x}}{x \left (x -2-\ln \left (x^{2}\right )\right )}\) | \(29\) |
risch | \(-\frac {{\mathrm e}^{\left (1+x \right ) x} \ln \left (x \right )}{2 x}-\frac {\left (4+i \pi \,\operatorname {csgn}\left (i x^{2}\right ) \operatorname {csgn}\left (i x \right )^{2}-2 i \pi \operatorname {csgn}\left (i x^{2}\right )^{2} \operatorname {csgn}\left (i x \right )+i \pi \operatorname {csgn}\left (i x^{2}\right )^{3}+2 x \right ) {\mathrm e}^{\left (1+x \right ) x}}{8 x}+\frac {\left (4 x^{2}+4 i x \pi \,\operatorname {csgn}\left (i x^{2}\right ) \operatorname {csgn}\left (i x \right )^{2}-8 i x \pi \operatorname {csgn}\left (i x^{2}\right )^{2} \operatorname {csgn}\left (i x \right )+4 i x \pi \operatorname {csgn}\left (i x^{2}\right )^{3}-\pi ^{2} \operatorname {csgn}\left (i x \right )^{4} \operatorname {csgn}\left (i x^{2}\right )^{2}+4 \pi ^{2} \operatorname {csgn}\left (i x \right )^{3} \operatorname {csgn}\left (i x^{2}\right )^{3}-6 \pi ^{2} \operatorname {csgn}\left (i x \right )^{2} \operatorname {csgn}\left (i x^{2}\right )^{4}+4 \pi ^{2} \operatorname {csgn}\left (i x \right ) \operatorname {csgn}\left (i x^{2}\right )^{5}-\pi ^{2} \operatorname {csgn}\left (i x^{2}\right )^{6}\right ) {\mathrm e}^{\left (1+x \right ) x}}{8 x \left (i \pi \,\operatorname {csgn}\left (i x^{2}\right ) \operatorname {csgn}\left (i x \right )^{2}-2 i \pi \operatorname {csgn}\left (i x^{2}\right )^{2} \operatorname {csgn}\left (i x \right )+i \pi \operatorname {csgn}\left (i x^{2}\right )^{3}+2 x -4 \ln \left (x \right )-4\right )}\) | \(305\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.86 \[ \int \frac {\log (e x) \left (e^{x+x^2} (-4+2 x)-2 e^{x+x^2} \log \left (x^2\right )\right )+\log ^2(e x) \left (e^{x+x^2} \left (4-4 x-3 x^2+2 x^3\right )+e^{x+x^2} \left (1-x-2 x^2\right ) \log \left (x^2\right )\right )}{4 x^2-4 x^3+x^4+\left (4 x^2-2 x^3\right ) \log \left (x^2\right )+x^2 \log ^2\left (x^2\right )} \, dx=\frac {e^{\left (x^{2} + x\right )} \log \left (x^{2}\right )^{2} + 4 \, e^{\left (x^{2} + x\right )} \log \left (x^{2}\right ) + 4 \, e^{\left (x^{2} + x\right )}}{4 \, {\left (x^{2} - x \log \left (x^{2}\right ) - 2 \, x\right )}} \]
[In]
[Out]
Time = 0.17 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.32 \[ \int \frac {\log (e x) \left (e^{x+x^2} (-4+2 x)-2 e^{x+x^2} \log \left (x^2\right )\right )+\log ^2(e x) \left (e^{x+x^2} \left (4-4 x-3 x^2+2 x^3\right )+e^{x+x^2} \left (1-x-2 x^2\right ) \log \left (x^2\right )\right )}{4 x^2-4 x^3+x^4+\left (4 x^2-2 x^3\right ) \log \left (x^2\right )+x^2 \log ^2\left (x^2\right )} \, dx=\frac {\left (\log {\left (x^{2} \right )}^{2} + 4 \log {\left (x^{2} \right )} + 4\right ) e^{x^{2} + x}}{4 x^{2} - 4 x \log {\left (x^{2} \right )} - 8 x} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.11 \[ \int \frac {\log (e x) \left (e^{x+x^2} (-4+2 x)-2 e^{x+x^2} \log \left (x^2\right )\right )+\log ^2(e x) \left (e^{x+x^2} \left (4-4 x-3 x^2+2 x^3\right )+e^{x+x^2} \left (1-x-2 x^2\right ) \log \left (x^2\right )\right )}{4 x^2-4 x^3+x^4+\left (4 x^2-2 x^3\right ) \log \left (x^2\right )+x^2 \log ^2\left (x^2\right )} \, dx=\frac {{\left (\log \left (x\right )^{2} + 2 \, \log \left (x\right ) + 1\right )} e^{\left (x^{2} + x\right )}}{x^{2} - 2 \, x \log \left (x\right ) - 2 \, x} \]
[In]
[Out]
none
Time = 0.34 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.54 \[ \int \frac {\log (e x) \left (e^{x+x^2} (-4+2 x)-2 e^{x+x^2} \log \left (x^2\right )\right )+\log ^2(e x) \left (e^{x+x^2} \left (4-4 x-3 x^2+2 x^3\right )+e^{x+x^2} \left (1-x-2 x^2\right ) \log \left (x^2\right )\right )}{4 x^2-4 x^3+x^4+\left (4 x^2-2 x^3\right ) \log \left (x^2\right )+x^2 \log ^2\left (x^2\right )} \, dx=\frac {e^{\left (x^{2} + x\right )} \log \left (x\right )^{2} + 2 \, e^{\left (x^{2} + x\right )} \log \left (x\right ) + e^{\left (x^{2} + x\right )}}{x^{2} - 2 \, x \log \left (x\right ) - 2 \, x} \]
[In]
[Out]
Timed out. \[ \int \frac {\log (e x) \left (e^{x+x^2} (-4+2 x)-2 e^{x+x^2} \log \left (x^2\right )\right )+\log ^2(e x) \left (e^{x+x^2} \left (4-4 x-3 x^2+2 x^3\right )+e^{x+x^2} \left (1-x-2 x^2\right ) \log \left (x^2\right )\right )}{4 x^2-4 x^3+x^4+\left (4 x^2-2 x^3\right ) \log \left (x^2\right )+x^2 \log ^2\left (x^2\right )} \, dx=\int -\frac {{\ln \left (x\,\mathrm {e}\right )}^2\,\left ({\mathrm {e}}^{x^2+x}\,\left (-2\,x^3+3\,x^2+4\,x-4\right )+\ln \left (x^2\right )\,{\mathrm {e}}^{x^2+x}\,\left (2\,x^2+x-1\right )\right )-\ln \left (x\,\mathrm {e}\right )\,\left ({\mathrm {e}}^{x^2+x}\,\left (2\,x-4\right )-2\,\ln \left (x^2\right )\,{\mathrm {e}}^{x^2+x}\right )}{\ln \left (x^2\right )\,\left (4\,x^2-2\,x^3\right )+4\,x^2-4\,x^3+x^4+x^2\,{\ln \left (x^2\right )}^2} \,d x \]
[In]
[Out]