Optimal. Leaf size=29 \[ 1-e^{2+x}-x+\frac {x}{\log ^2\left (4 \left (e^x+\frac {2}{x}+x\right )\right )} \]
________________________________________________________________________________________
Rubi [F] time = 3.21, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {4-2 x^2-2 e^x x^2+\left (2+e^x x+x^2\right ) \log \left (\frac {8+4 e^x x+4 x^2}{x}\right )+\left (-2-e^x x-x^2+e^{2+x} \left (-2-e^x x-x^2\right )\right ) \log ^3\left (\frac {8+4 e^x x+4 x^2}{x}\right )}{\left (2+e^x x+x^2\right ) \log ^3\left (\frac {8+4 e^x x+4 x^2}{x}\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {4-2 x^2-2 e^x x^2+\left (2+e^x x+x^2\right ) \log \left (\frac {8+4 e^x x+4 x^2}{x}\right )+\left (-2-e^x x-x^2+e^{2+x} \left (-2-e^x x-x^2\right )\right ) \log ^3\left (\frac {8+4 e^x x+4 x^2}{x}\right )}{\left (2+e^x x+x^2\right ) \log ^3\left (\frac {4 \left (2+e^x x+x^2\right )}{x}\right )} \, dx\\ &=\int \left (-e^{2+x}+\frac {2 \left (2+2 x-x^2+x^3\right )}{\left (2+e^x x+x^2\right ) \log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )}+\frac {-2 x+\log \left (4 \left (e^x+\frac {2}{x}+x\right )\right )-\log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )}{\log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )}\right ) \, dx\\ &=2 \int \frac {2+2 x-x^2+x^3}{\left (2+e^x x+x^2\right ) \log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )} \, dx-\int e^{2+x} \, dx+\int \frac {-2 x+\log \left (4 \left (e^x+\frac {2}{x}+x\right )\right )-\log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )}{\log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )} \, dx\\ &=-e^{2+x}+2 \int \left (\frac {2}{\left (2+e^x x+x^2\right ) \log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )}+\frac {2 x}{\left (2+e^x x+x^2\right ) \log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )}-\frac {x^2}{\left (2+e^x x+x^2\right ) \log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )}+\frac {x^3}{\left (2+e^x x+x^2\right ) \log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )}\right ) \, dx+\int \left (-1-\frac {2 x}{\log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )}+\frac {1}{\log ^2\left (4 \left (e^x+\frac {2}{x}+x\right )\right )}\right ) \, dx\\ &=-e^{2+x}-x-2 \int \frac {x}{\log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )} \, dx-2 \int \frac {x^2}{\left (2+e^x x+x^2\right ) \log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )} \, dx+2 \int \frac {x^3}{\left (2+e^x x+x^2\right ) \log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )} \, dx+4 \int \frac {1}{\left (2+e^x x+x^2\right ) \log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )} \, dx+4 \int \frac {x}{\left (2+e^x x+x^2\right ) \log ^3\left (4 \left (e^x+\frac {2}{x}+x\right )\right )} \, dx+\int \frac {1}{\log ^2\left (4 \left (e^x+\frac {2}{x}+x\right )\right )} \, dx\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.12, size = 28, normalized size = 0.97 \begin {gather*} -e^{2+x}-x+\frac {x}{\log ^2\left (4 \left (e^x+\frac {2}{x}+x\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.66, size = 63, normalized size = 2.17 \begin {gather*} -\frac {{\left (x + e^{\left (x + 2\right )}\right )} \log \left (\frac {4 \, {\left ({\left (x^{2} + 2\right )} e^{2} + x e^{\left (x + 2\right )}\right )} e^{\left (-2\right )}}{x}\right )^{2} - x}{\log \left (\frac {4 \, {\left ({\left (x^{2} + 2\right )} e^{2} + x e^{\left (x + 2\right )}\right )} e^{\left (-2\right )}}{x}\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.47, size = 64, normalized size = 2.21 \begin {gather*} -\frac {x \log \left (\frac {4 \, {\left (x^{2} + x e^{x} + 2\right )}}{x}\right )^{2} + e^{\left (x + 2\right )} \log \left (\frac {4 \, {\left (x^{2} + x e^{x} + 2\right )}}{x}\right )^{2} - x}{\log \left (\frac {4 \, {\left (x^{2} + x e^{x} + 2\right )}}{x}\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.40, size = 160, normalized size = 5.52
method | result | size |
risch | \(-{\mathrm e}^{2+x}-x -\frac {4 x}{\left (\pi \,\mathrm {csgn}\left (\frac {i}{x}\right ) \mathrm {csgn}\left (i \left ({\mathrm e}^{x} x +x^{2}+2\right )\right ) \mathrm {csgn}\left (\frac {i \left ({\mathrm e}^{x} x +x^{2}+2\right )}{x}\right )-\pi \,\mathrm {csgn}\left (\frac {i}{x}\right ) \mathrm {csgn}\left (\frac {i \left ({\mathrm e}^{x} x +x^{2}+2\right )}{x}\right )^{2}-\pi \,\mathrm {csgn}\left (i \left ({\mathrm e}^{x} x +x^{2}+2\right )\right ) \mathrm {csgn}\left (\frac {i \left ({\mathrm e}^{x} x +x^{2}+2\right )}{x}\right )^{2}+\pi \mathrm {csgn}\left (\frac {i \left ({\mathrm e}^{x} x +x^{2}+2\right )}{x}\right )^{3}+4 i \ln \relax (2)-2 i \ln \relax (x )+2 i \ln \left ({\mathrm e}^{x} x +x^{2}+2\right )\right )^{2}}\) | \(160\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.73, size = 163, normalized size = 5.62 \begin {gather*} -\frac {{\left (x + e^{\left (x + 2\right )}\right )} \log \left (x^{2} + x e^{x} + 2\right )^{2} - 4 \, x \log \relax (2) \log \relax (x) + x \log \relax (x)^{2} + {\left (4 \, \log \relax (2)^{2} - 1\right )} x + {\left (4 \, e^{2} \log \relax (2)^{2} - 4 \, e^{2} \log \relax (2) \log \relax (x) + e^{2} \log \relax (x)^{2}\right )} e^{x} + 2 \, {\left ({\left (2 \, e^{2} \log \relax (2) - e^{2} \log \relax (x)\right )} e^{x} + 2 \, x \log \relax (2) - x \log \relax (x)\right )} \log \left (x^{2} + x e^{x} + 2\right )}{4 \, \log \relax (2)^{2} + 2 \, {\left (2 \, \log \relax (2) - \log \relax (x)\right )} \log \left (x^{2} + x e^{x} + 2\right ) + \log \left (x^{2} + x e^{x} + 2\right )^{2} - 4 \, \log \relax (2) \log \relax (x) + \log \relax (x)^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.66, size = 483, normalized size = 16.66 \begin {gather*} \frac {\frac {x\,\left (x\,{\mathrm {e}}^x+x^2+2\right )}{2\,\left (x^2\,{\mathrm {e}}^x+x^2-2\right )}+\frac {x\,\ln \left (\frac {4\,x\,{\mathrm {e}}^x+4\,x^2+8}{x}\right )\,\left (x\,{\mathrm {e}}^x+x^2+2\right )\,\left (4\,x^2\,{\mathrm {e}}^x+2\,x^3\,{\mathrm {e}}^x-2\,x^4\,{\mathrm {e}}^x+x^5\,{\mathrm {e}}^x+4\,x\,{\mathrm {e}}^x+8\,x^2-x^4+4\right )}{2\,{\left (x^2\,{\mathrm {e}}^x+x^2-2\right )}^3}}{\ln \left (\frac {4\,x\,{\mathrm {e}}^x+4\,x^2+8}{x}\right )}-{\mathrm {e}}^{x+2}-x+\frac {x-\frac {x\,\ln \left (\frac {4\,x\,{\mathrm {e}}^x+4\,x^2+8}{x}\right )\,\left (x\,{\mathrm {e}}^x+x^2+2\right )}{2\,\left (x^2\,{\mathrm {e}}^x+x^2-2\right )}}{{\ln \left (\frac {4\,x\,{\mathrm {e}}^x+4\,x^2+8}{x}\right )}^2}-\frac {-x^7+2\,x^6-4\,x^4-8\,x^3+16\,x^2+24\,x+16}{2\,\left (x^2\,{\mathrm {e}}^x+x^2-2\right )\,\left (-x^4+2\,x^2+4\,x\right )}-\frac {-x^{12}+4\,x^{11}-5\,x^{10}-4\,x^9-2\,x^8+20\,x^7-28\,x^6+88\,x^4+144\,x^3+64\,x^2}{2\,x^2\,\left (-x^4+2\,x^2+4\,x\right )\,\left (x^4\,{\mathrm {e}}^{2\,x}+{\left (x^2-2\right )}^2+2\,x^2\,{\mathrm {e}}^x\,\left (x^2-2\right )\right )}-\frac {x^{16}-2\,x^{15}+x^{14}-24\,x^{11}+8\,x^{10}+16\,x^9+144\,x^6+192\,x^5+64\,x^4}{2\,x^4\,\left (-x^4+2\,x^2+4\,x\right )\,\left (x^6\,{\mathrm {e}}^{3\,x}+{\left (x^2-2\right )}^3+3\,x^4\,{\mathrm {e}}^{2\,x}\,\left (x^2-2\right )+3\,x^2\,{\mathrm {e}}^x\,{\left (x^2-2\right )}^2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.32, size = 27, normalized size = 0.93 \begin {gather*} - x + \frac {x}{\log {\left (\frac {4 x^{2} + 4 x e^{x} + 8}{x} \right )}^{2}} - e^{2} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________