3.73 \(\int \frac{e^{c+b^2 x^2} \text{Erf}(b x)}{x^2} \, dx\)

Optimal. Leaf size=66 \[ \frac{2 b^3 e^c x^2 \text{HypergeometricPFQ}\left (\{1,1\},\left \{\frac{3}{2},2\right \},b^2 x^2\right )}{\sqrt{\pi }}-\frac{e^{b^2 x^2+c} \text{Erf}(b x)}{x}+\frac{2 b e^c \log (x)}{\sqrt{\pi }} \]

[Out]

-((E^(c + b^2*x^2)*Erf[b*x])/x) + (2*b^3*E^c*x^2*HypergeometricPFQ[{1, 1}, {3/2, 2}, b^2*x^2])/Sqrt[Pi] + (2*b
*E^c*Log[x])/Sqrt[Pi]

________________________________________________________________________________________

Rubi [A]  time = 0.0643943, antiderivative size = 66, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.21, Rules used = {6391, 6376, 12, 29} \[ \frac{2 b^3 e^c x^2 \, _2F_2\left (1,1;\frac{3}{2},2;b^2 x^2\right )}{\sqrt{\pi }}-\frac{e^{b^2 x^2+c} \text{Erf}(b x)}{x}+\frac{2 b e^c \log (x)}{\sqrt{\pi }} \]

Antiderivative was successfully verified.

[In]

Int[(E^(c + b^2*x^2)*Erf[b*x])/x^2,x]

[Out]

-((E^(c + b^2*x^2)*Erf[b*x])/x) + (2*b^3*E^c*x^2*HypergeometricPFQ[{1, 1}, {3/2, 2}, b^2*x^2])/Sqrt[Pi] + (2*b
*E^c*Log[x])/Sqrt[Pi]

Rule 6391

Int[E^((c_.) + (d_.)*(x_)^2)*Erf[(a_.) + (b_.)*(x_)]*(x_)^(m_), x_Symbol] :> Simp[(x^(m + 1)*E^(c + d*x^2)*Erf
[a + b*x])/(m + 1), x] + (-Dist[(2*d)/(m + 1), Int[x^(m + 2)*E^(c + d*x^2)*Erf[a + b*x], x], x] - Dist[(2*b)/(
(m + 1)*Sqrt[Pi]), Int[x^(m + 1)*E^(-a^2 + c - 2*a*b*x - (b^2 - d)*x^2), x], x]) /; FreeQ[{a, b, c, d}, x] &&
ILtQ[m, -1]

Rule 6376

Int[E^((c_.) + (d_.)*(x_)^2)*Erf[(b_.)*(x_)], x_Symbol] :> Simp[(b*E^c*x^2*HypergeometricPFQ[{1, 1}, {3/2, 2},
 b^2*x^2])/Sqrt[Pi], x] /; FreeQ[{b, c, d}, x] && EqQ[d, b^2]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rubi steps

\begin{align*} \int \frac{e^{c+b^2 x^2} \text{erf}(b x)}{x^2} \, dx &=-\frac{e^{c+b^2 x^2} \text{erf}(b x)}{x}+\left (2 b^2\right ) \int e^{c+b^2 x^2} \text{erf}(b x) \, dx+\frac{(2 b) \int \frac{e^c}{x} \, dx}{\sqrt{\pi }}\\ &=-\frac{e^{c+b^2 x^2} \text{erf}(b x)}{x}+\frac{2 b^3 e^c x^2 \, _2F_2\left (1,1;\frac{3}{2},2;b^2 x^2\right )}{\sqrt{\pi }}+\frac{\left (2 b e^c\right ) \int \frac{1}{x} \, dx}{\sqrt{\pi }}\\ &=-\frac{e^{c+b^2 x^2} \text{erf}(b x)}{x}+\frac{2 b^3 e^c x^2 \, _2F_2\left (1,1;\frac{3}{2},2;b^2 x^2\right )}{\sqrt{\pi }}+\frac{2 b e^c \log (x)}{\sqrt{\pi }}\\ \end{align*}

Mathematica [A]  time = 0.198308, size = 74, normalized size = 1.12 \[ \frac{e^c \left (-2 b^3 x^3 \text{HypergeometricPFQ}\left (\{1,1\},\left \{\frac{3}{2},2\right \},-b^2 x^2\right )+\text{Erf}(b x) \left (\pi b x \text{Erfi}(b x)-\sqrt{\pi } e^{b^2 x^2}\right )+2 b x \log (x)\right )}{\sqrt{\pi } x} \]

Antiderivative was successfully verified.

[In]

Integrate[(E^(c + b^2*x^2)*Erf[b*x])/x^2,x]

[Out]

(E^c*(Erf[b*x]*(-(E^(b^2*x^2)*Sqrt[Pi]) + b*Pi*x*Erfi[b*x]) - 2*b^3*x^3*HypergeometricPFQ[{1, 1}, {3/2, 2}, -(
b^2*x^2)] + 2*b*x*Log[x]))/(Sqrt[Pi]*x)

________________________________________________________________________________________

Maple [F]  time = 0.117, size = 0, normalized size = 0. \begin{align*} \int{\frac{{{\rm e}^{{b}^{2}{x}^{2}+c}}{\it Erf} \left ( bx \right ) }{{x}^{2}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(b^2*x^2+c)*erf(b*x)/x^2,x)

[Out]

int(exp(b^2*x^2+c)*erf(b*x)/x^2,x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{erf}\left (b x\right ) e^{\left (b^{2} x^{2} + c\right )}}{x^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(b^2*x^2+c)*erf(b*x)/x^2,x, algorithm="maxima")

[Out]

integrate(erf(b*x)*e^(b^2*x^2 + c)/x^2, x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\operatorname{erf}\left (b x\right ) e^{\left (b^{2} x^{2} + c\right )}}{x^{2}}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(b^2*x^2+c)*erf(b*x)/x^2,x, algorithm="fricas")

[Out]

integral(erf(b*x)*e^(b^2*x^2 + c)/x^2, x)

________________________________________________________________________________________

Sympy [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(b**2*x**2+c)*erf(b*x)/x**2,x)

[Out]

Exception raised: AttributeError

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{erf}\left (b x\right ) e^{\left (b^{2} x^{2} + c\right )}}{x^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(b^2*x^2+c)*erf(b*x)/x^2,x, algorithm="giac")

[Out]

integrate(erf(b*x)*e^(b^2*x^2 + c)/x^2, x)