3.169 \(\int e^{c+b^2 x^2} x \text {erfc}(b x) \, dx\)

Optimal. Leaf size=36 \[ \frac {e^{b^2 x^2+c} \text {erfc}(b x)}{2 b^2}+\frac {e^c x}{\sqrt {\pi } b} \]

[Out]

1/2*exp(b^2*x^2+c)*erfc(b*x)/b^2+exp(c)*x/b/Pi^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {6383, 8} \[ \frac {e^{b^2 x^2+c} \text {Erfc}(b x)}{2 b^2}+\frac {e^c x}{\sqrt {\pi } b} \]

Antiderivative was successfully verified.

[In]

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

[Out]

(E^c*x)/(b*Sqrt[Pi]) + (E^(c + b^2*x^2)*Erfc[b*x])/(2*b^2)

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 6383

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

Rubi steps

\begin {align*} \int e^{c+b^2 x^2} x \text {erfc}(b x) \, dx &=\frac {e^{c+b^2 x^2} \text {erfc}(b x)}{2 b^2}+\frac {\int e^c \, dx}{b \sqrt {\pi }}\\ &=\frac {e^c x}{b \sqrt {\pi }}+\frac {e^{c+b^2 x^2} \text {erfc}(b x)}{2 b^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 36, normalized size = 1.00 \[ \frac {e^{b^2 x^2+c} \text {erfc}(b x)}{2 b^2}+\frac {e^c x}{\sqrt {\pi } b} \]

Antiderivative was successfully verified.

[In]

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

[Out]

(E^c*x)/(b*Sqrt[Pi]) + (E^(c + b^2*x^2)*Erfc[b*x])/(2*b^2)

________________________________________________________________________________________

fricas [A]  time = 0.96, size = 38, normalized size = 1.06 \[ \frac {2 \, \sqrt {\pi } b x e^{c} + {\left (\pi - \pi \operatorname {erf}\left (b x\right )\right )} e^{\left (b^{2} x^{2} + c\right )}}{2 \, \pi b^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*(2*sqrt(pi)*b*x*e^c + (pi - pi*erf(b*x))*e^(b^2*x^2 + c))/(pi*b^2)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x \operatorname {erfc}\left (b x\right ) e^{\left (b^{2} x^{2} + c\right )}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.09, size = 51, normalized size = 1.42 \[ \frac {2 \,{\mathrm e}^{b^{2} x^{2}+c} {\mathrm e}^{-b^{2} x^{2}} x b +{\mathrm e}^{b^{2} x^{2}+c} \mathrm {erfc}\left (b x \right ) \sqrt {\pi }}{2 b^{2} \sqrt {\pi }} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*(2*exp(b^2*x^2+c)*exp(-b^2*x^2)*x*b+exp(b^2*x^2+c)*erfc(b*x)*Pi^(1/2))/b^2/Pi^(1/2)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x \operatorname {erfc}\left (b x\right ) e^{\left (b^{2} x^{2} + c\right )}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.17, size = 30, normalized size = 0.83 \[ \frac {x\,{\mathrm {e}}^c}{b\,\sqrt {\pi }}+\frac {{\mathrm {e}}^{b^2\,x^2}\,{\mathrm {e}}^c\,\mathrm {erfc}\left (b\,x\right )}{2\,b^2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(x*exp(c))/(b*pi^(1/2)) + (exp(b^2*x^2)*exp(c)*erfc(b*x))/(2*b^2)

________________________________________________________________________________________

sympy [A]  time = 13.39, size = 41, normalized size = 1.14 \[ \begin {cases} \frac {x e^{c}}{\sqrt {\pi } b} + \frac {e^{c} e^{b^{2} x^{2}} \operatorname {erfc}{\left (b x \right )}}{2 b^{2}} & \text {for}\: b \neq 0 \\\frac {x^{2} e^{c}}{2} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(b**2*x**2+c)*x*erfc(b*x),x)

[Out]

Piecewise((x*exp(c)/(sqrt(pi)*b) + exp(c)*exp(b**2*x**2)*erfc(b*x)/(2*b**2), Ne(b, 0)), (x**2*exp(c)/2, True))

________________________________________________________________________________________