Integrand size = 55, antiderivative size = 27 \[ \int \frac {e^{2 x-x^2} \left (-174-e^5+141 x+78 x^2-18 x^3+e^5 \left (-4+2 x+2 x^2\right ) \log (2+x)\right )}{2+x} \, dx=8-e^{-((-2+x) x)} \left (3-9 (-5+x)+e^5 \log (2+x)\right ) \]
[Out]
Time = 0.57 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.70, number of steps used = 18, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.164, Rules used = {6873, 6874, 2266, 2236, 2272, 2273, 2268, 2634, 12} \[ \int \frac {e^{2 x-x^2} \left (-174-e^5+141 x+78 x^2-18 x^3+e^5 \left (-4+2 x+2 x^2\right ) \log (2+x)\right )}{2+x} \, dx=9 e^{2 x-x^2} x-48 e^{2 x-x^2}-e^{-x^2+2 x+5} \log (x+2) \]
[In]
[Out]
Rule 12
Rule 2236
Rule 2266
Rule 2268
Rule 2272
Rule 2273
Rule 2634
Rule 6873
Rule 6874
Rubi steps \begin{align*} \text {integral}& = \int \frac {e^{2 x-x^2} \left (-174 \left (1+\frac {e^5}{174}\right )+141 x+78 x^2-18 x^3+e^5 \left (-4+2 x+2 x^2\right ) \log (2+x)\right )}{2+x} \, dx \\ & = \int \left (\frac {e^{2 x-x^2} \left (-174-e^5+141 x+78 x^2-18 x^3\right )}{2+x}+2 e^{5+2 x-x^2} (-1+x) \log (2+x)\right ) \, dx \\ & = 2 \int e^{5+2 x-x^2} (-1+x) \log (2+x) \, dx+\int \frac {e^{2 x-x^2} \left (-174-e^5+141 x+78 x^2-18 x^3\right )}{2+x} \, dx \\ & = -e^{5+2 x-x^2} \log (2+x)-2 \int -\frac {e^{5+2 x-x^2}}{2 (2+x)} \, dx+\int \left (-87 e^{2 x-x^2}+114 e^{2 x-x^2} x-18 e^{2 x-x^2} x^2-\frac {e^{5+2 x-x^2}}{2+x}\right ) \, dx \\ & = -e^{5+2 x-x^2} \log (2+x)-18 \int e^{2 x-x^2} x^2 \, dx-87 \int e^{2 x-x^2} \, dx+114 \int e^{2 x-x^2} x \, dx \\ & = -57 e^{2 x-x^2}+9 e^{2 x-x^2} x-e^{5+2 x-x^2} \log (2+x)-9 \int e^{2 x-x^2} \, dx-18 \int e^{2 x-x^2} x \, dx+114 \int e^{2 x-x^2} \, dx-(87 e) \int e^{-\frac {1}{4} (2-2 x)^2} \, dx \\ & = -48 e^{2 x-x^2}+9 e^{2 x-x^2} x+\frac {87}{2} e \sqrt {\pi } \text {erf}(1-x)-e^{5+2 x-x^2} \log (2+x)-18 \int e^{2 x-x^2} \, dx-(9 e) \int e^{-\frac {1}{4} (2-2 x)^2} \, dx+(114 e) \int e^{-\frac {1}{4} (2-2 x)^2} \, dx \\ & = -48 e^{2 x-x^2}+9 e^{2 x-x^2} x-9 e \sqrt {\pi } \text {erf}(1-x)-e^{5+2 x-x^2} \log (2+x)-(18 e) \int e^{-\frac {1}{4} (2-2 x)^2} \, dx \\ & = -48 e^{2 x-x^2}+9 e^{2 x-x^2} x-e^{5+2 x-x^2} \log (2+x) \\ \end{align*}
Time = 1.95 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.85 \[ \int \frac {e^{2 x-x^2} \left (-174-e^5+141 x+78 x^2-18 x^3+e^5 \left (-4+2 x+2 x^2\right ) \log (2+x)\right )}{2+x} \, dx=e^{-((-2+x) x)} \left (-48+9 x-e^5 \log (2+x)\right ) \]
[In]
[Out]
Time = 0.16 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.93
method | result | size |
norman | \(\left (-48+9 x -\ln \left (2+x \right ) {\mathrm e}^{5}\right ) {\mathrm e}^{-x^{2}+2 x}\) | \(25\) |
parallelrisch | \(-\left (\ln \left (2+x \right ) {\mathrm e}^{5}+48-9 x \right ) {\mathrm e}^{-x^{2}+2 x}\) | \(25\) |
risch | \(-\ln \left (2+x \right ) {\mathrm e}^{-x^{2}+2 x +5}+3 \left (3 x -16\right ) {\mathrm e}^{-\left (-2+x \right ) x}\) | \(33\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.30 \[ \int \frac {e^{2 x-x^2} \left (-174-e^5+141 x+78 x^2-18 x^3+e^5 \left (-4+2 x+2 x^2\right ) \log (2+x)\right )}{2+x} \, dx=3 \, {\left (3 \, x - 16\right )} e^{\left (-x^{2} + 2 \, x\right )} - e^{\left (-x^{2} + 2 \, x + 5\right )} \log \left (x + 2\right ) \]
[In]
[Out]
Time = 0.18 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.74 \[ \int \frac {e^{2 x-x^2} \left (-174-e^5+141 x+78 x^2-18 x^3+e^5 \left (-4+2 x+2 x^2\right ) \log (2+x)\right )}{2+x} \, dx=\left (9 x - e^{5} \log {\left (x + 2 \right )} - 48\right ) e^{- x^{2} + 2 x} \]
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.15 \[ \int \frac {e^{2 x-x^2} \left (-174-e^5+141 x+78 x^2-18 x^3+e^5 \left (-4+2 x+2 x^2\right ) \log (2+x)\right )}{2+x} \, dx={\left (3 \, {\left (3 \, x - 16\right )} e^{\left (2 \, x\right )} - e^{\left (2 \, x + 5\right )} \log \left (x + 2\right )\right )} e^{\left (-x^{2}\right )} \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.59 \[ \int \frac {e^{2 x-x^2} \left (-174-e^5+141 x+78 x^2-18 x^3+e^5 \left (-4+2 x+2 x^2\right ) \log (2+x)\right )}{2+x} \, dx=9 \, x e^{\left (-x^{2} + 2 \, x\right )} - e^{\left (-x^{2} + 2 \, x + 5\right )} \log \left (x + 2\right ) - 48 \, e^{\left (-x^{2} + 2 \, x\right )} \]
[In]
[Out]
Time = 8.28 (sec) , antiderivative size = 24, normalized size of antiderivative = 0.89 \[ \int \frac {e^{2 x-x^2} \left (-174-e^5+141 x+78 x^2-18 x^3+e^5 \left (-4+2 x+2 x^2\right ) \log (2+x)\right )}{2+x} \, dx=-{\mathrm {e}}^{2\,x-x^2}\,\left (\ln \left (x+2\right )\,{\mathrm {e}}^5-9\,x+48\right ) \]
[In]
[Out]