Integrand size = 64, antiderivative size = 23 \[ \int \frac {16 e^4+e^{4+2 x} x^2+e^{4+x} (-4+4 x)}{-32+16 x+e^x \left (-20 x+8 x^2\right )+e^{2 x} \left (-3 x^2+x^3\right )} \, dx=e^4 \log \left (2-x+\frac {x}{4 e^{-x}+x}\right ) \]
[Out]
\[ \int \frac {16 e^4+e^{4+2 x} x^2+e^{4+x} (-4+4 x)}{-32+16 x+e^x \left (-20 x+8 x^2\right )+e^{2 x} \left (-3 x^2+x^3\right )} \, dx=\int \frac {16 e^4+e^{4+2 x} x^2+e^{4+x} (-4+4 x)}{-32+16 x+e^x \left (-20 x+8 x^2\right )+e^{2 x} \left (-3 x^2+x^3\right )} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \int \frac {e^4 \left (-16+4 e^x-4 e^x x-e^{2 x} x^2\right )}{32-16 x-e^x \left (-20 x+8 x^2\right )-e^{2 x} \left (-3 x^2+x^3\right )} \, dx \\ & = e^4 \int \frac {-16+4 e^x-4 e^x x-e^{2 x} x^2}{32-16 x-e^x \left (-20 x+8 x^2\right )-e^{2 x} \left (-3 x^2+x^3\right )} \, dx \\ & = e^4 \int \left (\frac {1}{-3+x}+\frac {4 (1+x)}{x \left (4+e^x x\right )}-\frac {4 \left (6+2 x-4 x^2+x^3\right )}{(-3+x) x \left (-8+4 x-3 e^x x+e^x x^2\right )}\right ) \, dx \\ & = e^4 \log (3-x)+\left (4 e^4\right ) \int \frac {1+x}{x \left (4+e^x x\right )} \, dx-\left (4 e^4\right ) \int \frac {6+2 x-4 x^2+x^3}{(-3+x) x \left (-8+4 x-3 e^x x+e^x x^2\right )} \, dx \\ & = e^4 \log (3-x)+\left (4 e^4\right ) \int \left (\frac {1}{4+e^x x}+\frac {1}{x \left (4+e^x x\right )}\right ) \, dx-\left (4 e^4\right ) \int \left (-\frac {1}{-8+4 x-3 e^x x+e^x x^2}+\frac {1}{(-3+x) \left (-8+4 x-3 e^x x+e^x x^2\right )}-\frac {2}{x \left (-8+4 x-3 e^x x+e^x x^2\right )}+\frac {x}{-8+4 x-3 e^x x+e^x x^2}\right ) \, dx \\ & = e^4 \log (3-x)+\left (4 e^4\right ) \int \frac {1}{4+e^x x} \, dx+\left (4 e^4\right ) \int \frac {1}{x \left (4+e^x x\right )} \, dx+\left (4 e^4\right ) \int \frac {1}{-8+4 x-3 e^x x+e^x x^2} \, dx-\left (4 e^4\right ) \int \frac {1}{(-3+x) \left (-8+4 x-3 e^x x+e^x x^2\right )} \, dx-\left (4 e^4\right ) \int \frac {x}{-8+4 x-3 e^x x+e^x x^2} \, dx+\left (8 e^4\right ) \int \frac {1}{x \left (-8+4 x-3 e^x x+e^x x^2\right )} \, dx \\ \end{align*}
Time = 1.71 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.52 \[ \int \frac {16 e^4+e^{4+2 x} x^2+e^{4+x} (-4+4 x)}{-32+16 x+e^x \left (-20 x+8 x^2\right )+e^{2 x} \left (-3 x^2+x^3\right )} \, dx=e^4 \left (-2 \text {arctanh}\left (5-2 x+\frac {3 e^x x}{2}-\frac {e^x x^2}{2}\right )+\log (-3+x)\right ) \]
[In]
[Out]
Time = 0.55 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.43
method | result | size |
norman | \({\mathrm e}^{4} \ln \left ({\mathrm e}^{x} x^{2}-3 \,{\mathrm e}^{x} x +4 x -8\right )-{\mathrm e}^{4} \ln \left ({\mathrm e}^{x} x +4\right )\) | \(33\) |
parallelrisch | \({\mathrm e}^{4} \ln \left ({\mathrm e}^{x} x^{2}-3 \,{\mathrm e}^{x} x +4 x -8\right )-{\mathrm e}^{4} \ln \left ({\mathrm e}^{x} x +4\right )\) | \(33\) |
risch | \({\mathrm e}^{4} \ln \left (-3+x \right )+{\mathrm e}^{4} \ln \left ({\mathrm e}^{x}+\frac {4 x -8}{x \left (-3+x \right )}\right )-{\mathrm e}^{4} \ln \left ({\mathrm e}^{x}+\frac {4}{x}\right )\) | \(42\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 62 vs. \(2 (21) = 42\).
Time = 0.26 (sec) , antiderivative size = 62, normalized size of antiderivative = 2.70 \[ \int \frac {16 e^4+e^{4+2 x} x^2+e^{4+x} (-4+4 x)}{-32+16 x+e^x \left (-20 x+8 x^2\right )+e^{2 x} \left (-3 x^2+x^3\right )} \, dx=e^{4} \log \left (x - 3\right ) + e^{4} \log \left (\frac {4 \, {\left (x - 2\right )} e^{4} + {\left (x^{2} - 3 \, x\right )} e^{\left (x + 4\right )}}{x^{2} - 3 \, x}\right ) - e^{4} \log \left (\frac {x e^{\left (x + 4\right )} + 4 \, e^{4}}{x}\right ) \]
[In]
[Out]
Exception generated. \[ \int \frac {16 e^4+e^{4+2 x} x^2+e^{4+x} (-4+4 x)}{-32+16 x+e^x \left (-20 x+8 x^2\right )+e^{2 x} \left (-3 x^2+x^3\right )} \, dx=\text {Exception raised: PolynomialError} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 52 vs. \(2 (21) = 42\).
Time = 0.24 (sec) , antiderivative size = 52, normalized size of antiderivative = 2.26 \[ \int \frac {16 e^4+e^{4+2 x} x^2+e^{4+x} (-4+4 x)}{-32+16 x+e^x \left (-20 x+8 x^2\right )+e^{2 x} \left (-3 x^2+x^3\right )} \, dx=e^{4} \log \left (x - 3\right ) + e^{4} \log \left (\frac {{\left (x^{2} - 3 \, x\right )} e^{x} + 4 \, x - 8}{x^{2} - 3 \, x}\right ) - e^{4} \log \left (\frac {x e^{x} + 4}{x}\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 66 vs. \(2 (21) = 42\).
Time = 0.28 (sec) , antiderivative size = 66, normalized size of antiderivative = 2.87 \[ \int \frac {16 e^4+e^{4+2 x} x^2+e^{4+x} (-4+4 x)}{-32+16 x+e^x \left (-20 x+8 x^2\right )+e^{2 x} \left (-3 x^2+x^3\right )} \, dx=e^{4} \log \left ({\left (x + 4\right )}^{2} e^{\left (x + 4\right )} + 4 \, {\left (x + 4\right )} e^{4} - 11 \, {\left (x + 4\right )} e^{\left (x + 4\right )} - 24 \, e^{4} + 28 \, e^{\left (x + 4\right )}\right ) - e^{4} \log \left ({\left (x + 4\right )} e^{\left (x + 4\right )} + 4 \, e^{4} - 4 \, e^{\left (x + 4\right )}\right ) \]
[In]
[Out]
Time = 14.50 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.30 \[ \int \frac {16 e^4+e^{4+2 x} x^2+e^{4+x} (-4+4 x)}{-32+16 x+e^x \left (-20 x+8 x^2\right )+e^{2 x} \left (-3 x^2+x^3\right )} \, dx={\mathrm {e}}^4\,\left (\ln \left (4\,x+x^2\,{\mathrm {e}}^x-3\,x\,{\mathrm {e}}^x-8\right )-\ln \left (x\,{\mathrm {e}}^x+4\right )\right ) \]
[In]
[Out]