Optimal. Leaf size=19 \[ \sqrt{\pi } \text{Erfi}(x)-\frac{e^{x^2}}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0152378, antiderivative size = 19, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222, Rules used = {2214, 2204} \[ \sqrt{\pi } \text{Erfi}(x)-\frac{e^{x^2}}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2214
Rule 2204
Rubi steps
\begin{align*} \int \frac{e^{x^2}}{x^2} \, dx &=-\frac{e^{x^2}}{x}+2 \int e^{x^2} \, dx\\ &=-\frac{e^{x^2}}{x}+\sqrt{\pi } \text{erfi}(x)\\ \end{align*}
Mathematica [A] time = 0.0043091, size = 19, normalized size = 1. \[ \sqrt{\pi } \text{Erfi}(x)-\frac{e^{x^2}}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.022, size = 17, normalized size = 0.9 \begin{align*} -{\frac{{{\rm e}^{{x}^{2}}}}{x}}+{\it erfi} \left ( x \right ) \sqrt{\pi } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.05658, size = 26, normalized size = 1.37 \begin{align*} -\frac{\sqrt{-x^{2}} \Gamma \left (-\frac{1}{2}, -x^{2}\right )}{2 \, x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.801298, size = 46, normalized size = 2.42 \begin{align*} \frac{\sqrt{\pi } x \operatorname{erfi}\left (x\right ) - e^{\left (x^{2}\right )}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.744633, size = 14, normalized size = 0.74 \begin{align*} \sqrt{\pi } \operatorname{erfi}{\left (x \right )} - \frac{e^{x^{2}}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{e^{\left (x^{2}\right )}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]