3.258 \(\int e^{c+b^2 x^2} \text{Erfi}(b x)^n \, dx\)

Optimal. Leaf size=28 \[ \frac{\sqrt{\pi } e^c \text{Erfi}(b x)^{n+1}}{2 b (n+1)} \]

[Out]

(E^c*Sqrt[Pi]*Erfi[b*x]^(1 + n))/(2*b*(1 + n))

________________________________________________________________________________________

Rubi [A]  time = 0.0318396, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111, Rules used = {6375, 30} \[ \frac{\sqrt{\pi } e^c \text{Erfi}(b x)^{n+1}}{2 b (n+1)} \]

Antiderivative was successfully verified.

[In]

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

[Out]

(E^c*Sqrt[Pi]*Erfi[b*x]^(1 + n))/(2*b*(1 + n))

Rule 6375

Int[E^((c_.) + (d_.)*(x_)^2)*Erfi[(b_.)*(x_)]^(n_.), x_Symbol] :> Dist[(E^c*Sqrt[Pi])/(2*b), Subst[Int[x^n, x]
, x, Erfi[b*x]], x] /; FreeQ[{b, c, d, n}, x] && EqQ[d, b^2]

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rubi steps

\begin{align*} \int e^{c+b^2 x^2} \text{erfi}(b x)^n \, dx &=\frac{\left (e^c \sqrt{\pi }\right ) \operatorname{Subst}\left (\int x^n \, dx,x,\text{erfi}(b x)\right )}{2 b}\\ &=\frac{e^c \sqrt{\pi } \text{erfi}(b x)^{1+n}}{2 b (1+n)}\\ \end{align*}

Mathematica [A]  time = 0.0105179, size = 28, normalized size = 1. \[ \frac{\sqrt{\pi } e^c \text{Erfi}(b x)^{n+1}}{2 b (n+1)} \]

Antiderivative was successfully verified.

[In]

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

[Out]

(E^c*Sqrt[Pi]*Erfi[b*x]^(1 + n))/(2*b*(1 + n))

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]  time = 2.66277, size = 68, normalized size = 2.43 \begin{align*} \frac{\sqrt{\pi } \operatorname{erfi}\left (b x\right )^{n} \operatorname{erfi}\left (b x\right ) e^{c}}{2 \,{\left (b n + b\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*sqrt(pi)*erfi(b*x)^n*erfi(b*x)*e^c/(b*n + b)

________________________________________________________________________________________

Sympy [A]  time = 10.9657, size = 63, normalized size = 2.25 \begin{align*} \begin{cases} \tilde{\infty } x e^{c} & \text{for}\: b = 0 \wedge n = -1 \\0^{n} x e^{c} & \text{for}\: b = 0 \\\frac{\sqrt{\pi } e^{c} \log{\left (\operatorname{erfi}{\left (b x \right )} \right )}}{2 b} & \text{for}\: n = -1 \\\frac{\sqrt{\pi } e^{c} \operatorname{erfi}{\left (b x \right )} \operatorname{erfi}^{n}{\left (b x \right )}}{2 b n + 2 b} & \text{otherwise} \end{cases} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(b**2*x**2+c)*erfi(b*x)**n,x)

[Out]

Piecewise((zoo*x*exp(c), Eq(b, 0) & Eq(n, -1)), (0**n*x*exp(c), Eq(b, 0)), (sqrt(pi)*exp(c)*log(erfi(b*x))/(2*
b), Eq(n, -1)), (sqrt(pi)*exp(c)*erfi(b*x)*erfi(b*x)**n/(2*b*n + 2*b), True))

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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