Optimal. Leaf size=26 \[ e^{\frac {1}{e^4}-\frac {-3+2 x}{\frac {4}{x}+x}} (2+x) \]
________________________________________________________________________________________
Rubi [F] time = 4.17, 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 {\exp \left (\frac {4+x^2+e^4 \left (3 x-2 x^2\right )}{e^4 \left (4+x^2\right )}\right ) \left (40-20 x-14 x^2-3 x^3+x^4\right )}{16+8 x^2+x^4} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {\exp \left (\frac {4+x^2+e^4 \left (3 x-2 x^2\right )}{e^4 \left (4+x^2\right )}\right ) \left (40-20 x-14 x^2-3 x^3+x^4\right )}{\left (4+x^2\right )^2} \, dx\\ &=\int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) \left (40-20 x-14 x^2-3 x^3+x^4\right )}{\left (4+x^2\right )^2} \, dx\\ &=\int \left (\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )-\frac {8 \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) (-14+x)}{\left (4+x^2\right )^2}+\frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) (-22-3 x)}{4+x^2}\right ) \, dx\\ &=-\left (8 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) (-14+x)}{\left (4+x^2\right )^2} \, dx\right )+\int \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) \, dx+\int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) (-22-3 x)}{4+x^2} \, dx\\ &=-\left (8 \int \left (-\frac {14 \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{\left (4+x^2\right )^2}+\frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) x}{\left (4+x^2\right )^2}\right ) \, dx\right )+\int \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) \, dx+\int \left (\frac {\left (\frac {3}{2}-\frac {11 i}{2}\right ) \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i-x}-\frac {\left (\frac {3}{2}+\frac {11 i}{2}\right ) \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i+x}\right ) \, dx\\ &=\left (-\frac {3}{2}-\frac {11 i}{2}\right ) \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i+x} \, dx+\left (\frac {3}{2}-\frac {11 i}{2}\right ) \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i-x} \, dx-8 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) x}{\left (4+x^2\right )^2} \, dx+112 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{\left (4+x^2\right )^2} \, dx+\int \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) \, dx\\ &=\left (-\frac {3}{2}-\frac {11 i}{2}\right ) \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i+x} \, dx+\left (\frac {3}{2}-\frac {11 i}{2}\right ) \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i-x} \, dx-8 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) x}{\left (4+x^2\right )^2} \, dx+112 \int \left (-\frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{16 (2 i-x)^2}-\frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{16 (2 i+x)^2}-\frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{8 \left (-4-x^2\right )}\right ) \, dx+\int \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) \, dx\\ &=\left (-\frac {3}{2}-\frac {11 i}{2}\right ) \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i+x} \, dx+\left (\frac {3}{2}-\frac {11 i}{2}\right ) \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i-x} \, dx-7 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{(2 i-x)^2} \, dx-7 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{(2 i+x)^2} \, dx-8 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) x}{\left (4+x^2\right )^2} \, dx-14 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{-4-x^2} \, dx+\int \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) \, dx\\ &=\left (-\frac {3}{2}-\frac {11 i}{2}\right ) \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i+x} \, dx+\left (\frac {3}{2}-\frac {11 i}{2}\right ) \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i-x} \, dx-7 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{(2 i-x)^2} \, dx-7 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{(2 i+x)^2} \, dx-8 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) x}{\left (4+x^2\right )^2} \, dx-14 \int \left (-\frac {i \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{4 (2 i-x)}-\frac {i \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{4 (2 i+x)}\right ) \, dx+\int \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) \, dx\\ &=\left (-\frac {3}{2}-\frac {11 i}{2}\right ) \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i+x} \, dx+\frac {7}{2} i \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i-x} \, dx+\frac {7}{2} i \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i+x} \, dx+\left (\frac {3}{2}-\frac {11 i}{2}\right ) \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{2 i-x} \, dx-7 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{(2 i-x)^2} \, dx-7 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right )}{(2 i+x)^2} \, dx-8 \int \frac {\exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) x}{\left (4+x^2\right )^2} \, dx+\int \exp \left (\frac {4+3 e^4 x+\left (1-2 e^4\right ) x^2}{e^4 \left (4+x^2\right )}\right ) \, dx\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.62, size = 24, normalized size = 0.92 \begin {gather*} e^{\frac {1}{e^4}+\frac {(3-2 x) x}{4+x^2}} (2+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.52, size = 33, normalized size = 1.27 \begin {gather*} {\left (x + 2\right )} e^{\left (\frac {{\left (x^{2} - {\left (2 \, x^{2} - 3 \, x\right )} e^{4} + 4\right )} e^{\left (-4\right )}}{x^{2} + 4}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.49, size = 49, normalized size = 1.88 \begin {gather*} x e^{\left (-\frac {2 \, x^{2} - 3 \, x}{x^{2} + 4} + e^{\left (-4\right )}\right )} + 2 \, e^{\left (-\frac {2 \, x^{2} - 3 \, x}{x^{2} + 4} + e^{\left (-4\right )}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.14, size = 36, normalized size = 1.38
method | result | size |
risch | \(\left (2+x \right ) {\mathrm e}^{-\frac {\left (2 x^{2} {\mathrm e}^{4}-3 x \,{\mathrm e}^{4}-x^{2}-4\right ) {\mathrm e}^{-4}}{x^{2}+4}}\) | \(36\) |
gosper | \(\left (2+x \right ) {\mathrm e}^{-\frac {\left (2 x^{2} {\mathrm e}^{4}-3 x \,{\mathrm e}^{4}-x^{2}-4\right ) {\mathrm e}^{-4}}{x^{2}+4}}\) | \(38\) |
norman | \(\frac {x^{3} {\mathrm e}^{\frac {\left (\left (-2 x^{2}+3 x \right ) {\mathrm e}^{4}+x^{2}+4\right ) {\mathrm e}^{-4}}{x^{2}+4}}+4 x \,{\mathrm e}^{\frac {\left (\left (-2 x^{2}+3 x \right ) {\mathrm e}^{4}+x^{2}+4\right ) {\mathrm e}^{-4}}{x^{2}+4}}+2 x^{2} {\mathrm e}^{\frac {\left (\left (-2 x^{2}+3 x \right ) {\mathrm e}^{4}+x^{2}+4\right ) {\mathrm e}^{-4}}{x^{2}+4}}+8 \,{\mathrm e}^{\frac {\left (\left (-2 x^{2}+3 x \right ) {\mathrm e}^{4}+x^{2}+4\right ) {\mathrm e}^{-4}}{x^{2}+4}}}{x^{2}+4}\) | \(144\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {{\left (x^{4} - 3 \, x^{3} - 14 \, x^{2} - 20 \, x + 40\right )} e^{\left (\frac {{\left (x^{2} - {\left (2 \, x^{2} - 3 \, x\right )} e^{4} + 4\right )} e^{\left (-4\right )}}{x^{2} + 4}\right )}}{x^{4} + 8 \, x^{2} + 16}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.40, size = 54, normalized size = 2.08 \begin {gather*} {\mathrm {e}}^{-\frac {2\,x^2}{x^2+4}}\,{\mathrm {e}}^{\frac {x^2\,{\mathrm {e}}^{-4}}{x^2+4}}\,{\mathrm {e}}^{\frac {4\,{\mathrm {e}}^{-4}}{x^2+4}}\,{\mathrm {e}}^{\frac {3\,x}{x^2+4}}\,\left (x+2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.24, size = 29, normalized size = 1.12 \begin {gather*} \left (x + 2\right ) e^{\frac {x^{2} + \left (- 2 x^{2} + 3 x\right ) e^{4} + 4}{\left (x^{2} + 4\right ) e^{4}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________