Integrand size = 49, antiderivative size = 32 \[ \int \frac {2-4 x-2 x^2+e^{2+x} \left (1+2 x+x^2\right )+e^x \left (30+60 x+30 x^2\right )}{1+2 x+x^2} \, dx=5+e^5+e^{2+x}+2 \left (5 \left (5+3 e^x\right )-x\right )-\frac {4}{1+x} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 21, normalized size of antiderivative = 0.66, number of steps used = 7, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.082, Rules used = {27, 6820, 2225, 697} \[ \int \frac {2-4 x-2 x^2+e^{2+x} \left (1+2 x+x^2\right )+e^x \left (30+60 x+30 x^2\right )}{1+2 x+x^2} \, dx=-2 x+30 e^x+e^{x+2}-\frac {4}{x+1} \]
[In]
[Out]
Rule 27
Rule 697
Rule 2225
Rule 6820
Rubi steps \begin{align*} \text {integral}& = \int \frac {2-4 x-2 x^2+e^{2+x} \left (1+2 x+x^2\right )+e^x \left (30+60 x+30 x^2\right )}{(1+x)^2} \, dx \\ & = \int \left (30 e^x+e^{2+x}-\frac {2 \left (-1+2 x+x^2\right )}{(1+x)^2}\right ) \, dx \\ & = -\left (2 \int \frac {-1+2 x+x^2}{(1+x)^2} \, dx\right )+30 \int e^x \, dx+\int e^{2+x} \, dx \\ & = 30 e^x+e^{2+x}-2 \int \left (1-\frac {2}{(1+x)^2}\right ) \, dx \\ & = 30 e^x+e^{2+x}-2 x-\frac {4}{1+x} \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 21, normalized size of antiderivative = 0.66 \[ \int \frac {2-4 x-2 x^2+e^{2+x} \left (1+2 x+x^2\right )+e^x \left (30+60 x+30 x^2\right )}{1+2 x+x^2} \, dx=30 e^x+e^{2+x}-2 x-\frac {4}{1+x} \]
[In]
[Out]
Time = 0.10 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.62
method | result | size |
parts | \(-2 x -\frac {4}{1+x}+30 \,{\mathrm e}^{x}+{\mathrm e}^{2+x}\) | \(20\) |
risch | \(-2 x -\frac {4}{1+x}+{\mathrm e}^{2} {\mathrm e}^{x}+30 \,{\mathrm e}^{x}\) | \(21\) |
norman | \(\frac {\left ({\mathrm e}^{2}+30\right ) {\mathrm e}^{x}+\left ({\mathrm e}^{2}+30\right ) x \,{\mathrm e}^{x}-2 x^{2}-2}{1+x}\) | \(29\) |
parallelrisch | \(-\frac {2 x^{2}-30 \,{\mathrm e}^{x} x -x \,{\mathrm e}^{2+x}+2-30 \,{\mathrm e}^{x}-{\mathrm e}^{2+x}}{1+x}\) | \(37\) |
default | \({\mathrm e}^{2} \left (-\frac {{\mathrm e}^{x}}{1+x}-{\mathrm e}^{-1} \operatorname {Ei}_{1}\left (-1-x \right )\right )+{\mathrm e}^{2} \left ({\mathrm e}^{x}-\frac {{\mathrm e}^{x}}{1+x}+{\mathrm e}^{-1} \operatorname {Ei}_{1}\left (-1-x \right )\right )-\frac {4}{1+x}-2 x +30 \,{\mathrm e}^{x}+\frac {2 \,{\mathrm e}^{2} {\mathrm e}^{x}}{1+x}\) | \(76\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.16 \[ \int \frac {2-4 x-2 x^2+e^{2+x} \left (1+2 x+x^2\right )+e^x \left (30+60 x+30 x^2\right )}{1+2 x+x^2} \, dx=-\frac {{\left (2 \, {\left (x^{2} + x + 2\right )} e^{2} - {\left ({\left (x + 1\right )} e^{2} + 30 \, x + 30\right )} e^{\left (x + 2\right )}\right )} e^{\left (-2\right )}}{x + 1} \]
[In]
[Out]
Time = 0.08 (sec) , antiderivative size = 15, normalized size of antiderivative = 0.47 \[ \int \frac {2-4 x-2 x^2+e^{2+x} \left (1+2 x+x^2\right )+e^x \left (30+60 x+30 x^2\right )}{1+2 x+x^2} \, dx=- 2 x + \left (e^{2} + 30\right ) e^{x} - \frac {4}{x + 1} \]
[In]
[Out]
\[ \int \frac {2-4 x-2 x^2+e^{2+x} \left (1+2 x+x^2\right )+e^x \left (30+60 x+30 x^2\right )}{1+2 x+x^2} \, dx=\int { -\frac {2 \, x^{2} - {\left (x^{2} + 2 \, x + 1\right )} e^{\left (x + 2\right )} - 30 \, {\left (x^{2} + 2 \, x + 1\right )} e^{x} + 4 \, x - 2}{x^{2} + 2 \, x + 1} \,d x } \]
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.22 \[ \int \frac {2-4 x-2 x^2+e^{2+x} \left (1+2 x+x^2\right )+e^x \left (30+60 x+30 x^2\right )}{1+2 x+x^2} \, dx=-\frac {2 \, x^{2} - x e^{\left (x + 2\right )} - 30 \, x e^{x} + 2 \, x - e^{\left (x + 2\right )} - 30 \, e^{x} + 4}{x + 1} \]
[In]
[Out]
Time = 0.12 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.56 \[ \int \frac {2-4 x-2 x^2+e^{2+x} \left (1+2 x+x^2\right )+e^x \left (30+60 x+30 x^2\right )}{1+2 x+x^2} \, dx={\mathrm {e}}^x\,\left ({\mathrm {e}}^2+30\right )-2\,x-\frac {4}{x+1} \]
[In]
[Out]