Optimal. Leaf size=23 \[ \sqrt{\pi } \text{Erfi}(a+x)-\frac{e^{(a+x)^2}}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0481148, antiderivative size = 23, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.08, Rules used = {2220, 2204} \[ \sqrt{\pi } \text{Erfi}(a+x)-\frac{e^{(a+x)^2}}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2220
Rule 2204
Rubi steps
\begin{align*} \int \left (\frac{e^{(a+x)^2}}{x^2}-\frac{2 a e^{(a+x)^2}}{x}\right ) \, dx &=-\left ((2 a) \int \frac{e^{(a+x)^2}}{x} \, dx\right )+\int \frac{e^{(a+x)^2}}{x^2} \, dx\\ &=-\frac{e^{(a+x)^2}}{x}+2 \int e^{(a+x)^2} \, dx\\ &=-\frac{e^{(a+x)^2}}{x}+\sqrt{\pi } \text{erfi}(a+x)\\ \end{align*}
Mathematica [A] time = 0.0752959, size = 23, normalized size = 1. \[ \sqrt{\pi } \text{Erfi}(a+x)-\frac{e^{(a+x)^2}}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.137, size = 0, normalized size = 0. \begin{align*} \int{\frac{{{\rm e}^{ \left ( a+x \right ) ^{2}}}}{{x}^{2}}}-2\,{\frac{a{{\rm e}^{ \left ( a+x \right ) ^{2}}}}{x}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -\frac{2 \, a e^{\left ({\left (a + x\right )}^{2}\right )}}{x} + \frac{e^{\left ({\left (a + x\right )}^{2}\right )}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.733647, size = 70, normalized size = 3.04 \begin{align*} \frac{\sqrt{\pi } x \operatorname{erfi}\left (a + x\right ) - e^{\left (a^{2} + 2 \, a x + x^{2}\right )}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \left (\int - \frac{e^{x^{2}} e^{2 a x}}{x^{2}}\, dx + \int \frac{2 a e^{x^{2}} e^{2 a x}}{x}\, dx\right ) e^{a^{2}} \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{2 \, a e^{\left ({\left (a + x\right )}^{2}\right )}}{x} + \frac{e^{\left ({\left (a + x\right )}^{2}\right )}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]