Optimal. Leaf size=97 \[ -\frac {e^{c+2 b^2 x^2} x}{4 b^3 \sqrt {\pi }}-\frac {e^{c+b^2 x^2} \text {Erfi}(b x)}{2 b^4}+\frac {e^{c+b^2 x^2} x^2 \text {Erfi}(b x)}{2 b^2}+\frac {5 e^c \text {Erfi}\left (\sqrt {2} b x\right )}{8 \sqrt {2} b^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {6522, 6519,
2235, 2243} \begin {gather*} \frac {5 e^c \text {Erfi}\left (\sqrt {2} b x\right )}{8 \sqrt {2} b^4}+\frac {x^2 e^{b^2 x^2+c} \text {Erfi}(b x)}{2 b^2}-\frac {e^{b^2 x^2+c} \text {Erfi}(b x)}{2 b^4}-\frac {x e^{2 b^2 x^2+c}}{4 \sqrt {\pi } b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2235
Rule 2243
Rule 6519
Rule 6522
Rubi steps
\begin {align*} \int e^{c+b^2 x^2} x^3 \text {erfi}(b x) \, dx &=\frac {e^{c+b^2 x^2} x^2 \text {erfi}(b x)}{2 b^2}-\frac {\int e^{c+b^2 x^2} x \text {erfi}(b x) \, dx}{b^2}-\frac {\int e^{c+2 b^2 x^2} x^2 \, dx}{b \sqrt {\pi }}\\ &=-\frac {e^{c+2 b^2 x^2} x}{4 b^3 \sqrt {\pi }}-\frac {e^{c+b^2 x^2} \text {erfi}(b x)}{2 b^4}+\frac {e^{c+b^2 x^2} x^2 \text {erfi}(b x)}{2 b^2}+\frac {\int e^{c+2 b^2 x^2} \, dx}{4 b^3 \sqrt {\pi }}+\frac {\int e^{c+2 b^2 x^2} \, dx}{b^3 \sqrt {\pi }}\\ &=-\frac {e^{c+2 b^2 x^2} x}{4 b^3 \sqrt {\pi }}-\frac {e^{c+b^2 x^2} \text {erfi}(b x)}{2 b^4}+\frac {e^{c+b^2 x^2} x^2 \text {erfi}(b x)}{2 b^2}+\frac {5 e^c \text {erfi}\left (\sqrt {2} b x\right )}{8 \sqrt {2} b^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 77, normalized size = 0.79 \begin {gather*} \frac {e^c \left (-4 b e^{2 b^2 x^2} x+8 e^{b^2 x^2} \sqrt {\pi } \left (-1+b^2 x^2\right ) \text {Erfi}(b x)+5 \sqrt {2 \pi } \text {Erfi}\left (\sqrt {2} b x\right )\right )}{16 b^4 \sqrt {\pi }} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.14, size = 0, normalized size = 0.00 \[\int {\mathrm e}^{b^{2} x^{2}+c} x^{3} \erfi \left (b x \right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 82, normalized size = 0.85 \begin {gather*} -\frac {4 \, \sqrt {\pi } b^{2} x e^{\left (2 \, b^{2} x^{2} + c\right )} - 5 \, \sqrt {2} \pi \sqrt {b^{2}} \operatorname {erfi}\left (\sqrt {2} \sqrt {b^{2}} x\right ) e^{c} - 8 \, {\left (\pi b^{3} x^{2} - \pi b\right )} \operatorname {erfi}\left (b x\right ) e^{\left (b^{2} x^{2} + c\right )}}{16 \, \pi b^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} e^{c} \int x^{3} e^{b^{2} x^{2}} \operatorname {erfi}{\left (b x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.44, size = 117, normalized size = 1.21 \begin {gather*} \frac {\sqrt {2}\,{\mathrm {e}}^c\,\mathrm {erfi}\left (\sqrt {2}\,x\,\sqrt {b^2}\right )}{16\,b\,{\left (b^2\right )}^{3/2}}-\frac {x\,{\mathrm {e}}^{2\,b^2\,x^2+c}}{4\,b^3\,\sqrt {\pi }}-\mathrm {erfi}\left (b\,x\right )\,\left (\frac {{\mathrm {e}}^{b^2\,x^2+c}}{2\,b^4}-\frac {x^2\,{\mathrm {e}}^{b^2\,x^2+c}}{2\,b^2}\right )-\frac {\sqrt {2}\,\mathrm {erf}\left (\sqrt {2}\,x\,\sqrt {-b^2}\right )\,{\mathrm {e}}^c}{4\,b\,{\left (-b^2\right )}^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________