Optimal. Leaf size=31 \[ \frac {1}{2} \left (\left (-2+\frac {10}{x}-x\right )^2+\frac {e^{-2+x^2}}{x}-x\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 37, normalized size of antiderivative = 1.19, number of steps used = 6, number of rules used = 3, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {12, 14, 2288} \begin {gather*} \frac {x^2}{2}+\frac {e^{x^2-2}}{2 x}+\frac {50}{x^2}+\frac {3 x}{2}-\frac {20}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 2288
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{2} \int \frac {-200+40 x+3 x^3+2 x^4+e^{-2+x^2} \left (-x+2 x^3\right )}{x^3} \, dx\\ &=\frac {1}{2} \int \left (\frac {e^{-2+x^2} \left (-1+2 x^2\right )}{x^2}+\frac {-200+40 x+3 x^3+2 x^4}{x^3}\right ) \, dx\\ &=\frac {1}{2} \int \frac {e^{-2+x^2} \left (-1+2 x^2\right )}{x^2} \, dx+\frac {1}{2} \int \frac {-200+40 x+3 x^3+2 x^4}{x^3} \, dx\\ &=\frac {e^{-2+x^2}}{2 x}+\frac {1}{2} \int \left (3-\frac {200}{x^3}+\frac {40}{x^2}+2 x\right ) \, dx\\ &=\frac {50}{x^2}-\frac {20}{x}+\frac {e^{-2+x^2}}{2 x}+\frac {3 x}{2}+\frac {x^2}{2}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 28, normalized size = 0.90 \begin {gather*} \frac {100+\left (-40+e^{-2+x^2}\right ) x+3 x^3+x^4}{2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.55, size = 26, normalized size = 0.84 \begin {gather*} \frac {x^{4} + 3 \, x^{3} + x e^{\left (x^{2} - 2\right )} - 40 \, x + 100}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 36, normalized size = 1.16 \begin {gather*} \frac {{\left (x^{4} e^{2} + 3 \, x^{3} e^{2} - 40 \, x e^{2} + x e^{\left (x^{2}\right )} + 100 \, e^{2}\right )} e^{\left (-2\right )}}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 31, normalized size = 1.00
method | result | size |
norman | \(\frac {50-20 x +\frac {3 x^{3}}{2}+\frac {x^{4}}{2}+\frac {{\mathrm e}^{2} x \,{\mathrm e}^{x^{2}-4}}{2}}{x^{2}}\) | \(31\) |
risch | \(\frac {x^{2}}{2}+\frac {3 x}{2}+\frac {-40 x +100}{2 x^{2}}+\frac {{\mathrm e}^{x^{2}-2}}{2 x}\) | \(31\) |
default | \(\frac {x^{2}}{2}+\frac {3 x}{2}+\frac {50}{x^{2}}-\frac {20}{x}+\frac {{\mathrm e}^{2} {\mathrm e}^{-4} \sqrt {\pi }\, \erfi \relax (x )}{2}-\frac {{\mathrm e}^{2} {\mathrm e}^{-4} \left (-\frac {{\mathrm e}^{x^{2}}}{x}+\sqrt {\pi }\, \erfi \relax (x )\right )}{2}\) | \(53\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.38, size = 51, normalized size = 1.65 \begin {gather*} -\frac {1}{2} i \, \sqrt {\pi } \operatorname {erf}\left (i \, x\right ) e^{\left (-2\right )} + \frac {1}{2} \, x^{2} + \frac {\sqrt {-x^{2}} e^{\left (-2\right )} \Gamma \left (-\frac {1}{2}, -x^{2}\right )}{4 \, x} + \frac {3}{2} \, x - \frac {20}{x} + \frac {50}{x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.09, size = 27, normalized size = 0.87 \begin {gather*} \frac {3\,x}{2}+\frac {x\,\left (\frac {{\mathrm {e}}^{x^2-2}}{2}-20\right )+50}{x^2}+\frac {x^2}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.13, size = 32, normalized size = 1.03 \begin {gather*} \frac {x^{2}}{2} + \frac {3 x}{2} + \frac {e^{2} e^{x^{2} - 4}}{2 x} + \frac {100 - 40 x}{2 x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________