Optimal. Leaf size=142 \[ -\frac {b e^{c+\left (b^2+d\right ) x^2} x}{2 d \left (b^2+d\right ) \sqrt {\pi }}-\frac {e^{c+d x^2} \text {Erfi}(b x)}{2 d^2}+\frac {e^{c+d x^2} x^2 \text {Erfi}(b x)}{2 d}+\frac {b e^c \text {Erfi}\left (\sqrt {b^2+d} x\right )}{4 d \left (b^2+d\right )^{3/2}}+\frac {b e^c \text {Erfi}\left (\sqrt {b^2+d} x\right )}{2 d^2 \sqrt {b^2+d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 142, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {6522, 6519,
2235, 2243} \begin {gather*} \frac {b e^c \text {Erfi}\left (x \sqrt {b^2+d}\right )}{2 d^2 \sqrt {b^2+d}}+\frac {b e^c \text {Erfi}\left (x \sqrt {b^2+d}\right )}{4 d \left (b^2+d\right )^{3/2}}-\frac {b x e^{x^2 \left (b^2+d\right )+c}}{2 \sqrt {\pi } d \left (b^2+d\right )}-\frac {\text {Erfi}(b x) e^{c+d x^2}}{2 d^2}+\frac {x^2 \text {Erfi}(b x) e^{c+d x^2}}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2235
Rule 2243
Rule 6519
Rule 6522
Rubi steps
\begin {align*} \int e^{c+d x^2} x^3 \text {erfi}(b x) \, dx &=\frac {e^{c+d x^2} x^2 \text {erfi}(b x)}{2 d}-\frac {\int e^{c+d x^2} x \text {erfi}(b x) \, dx}{d}-\frac {b \int e^{c+\left (b^2+d\right ) x^2} x^2 \, dx}{d \sqrt {\pi }}\\ &=-\frac {b e^{c+\left (b^2+d\right ) x^2} x}{2 d \left (b^2+d\right ) \sqrt {\pi }}-\frac {e^{c+d x^2} \text {erfi}(b x)}{2 d^2}+\frac {e^{c+d x^2} x^2 \text {erfi}(b x)}{2 d}+\frac {b \int e^{c+\left (b^2+d\right ) x^2} \, dx}{d^2 \sqrt {\pi }}+\frac {b \int e^{c+\left (b^2+d\right ) x^2} \, dx}{2 d \left (b^2+d\right ) \sqrt {\pi }}\\ &=-\frac {b e^{c+\left (b^2+d\right ) x^2} x}{2 d \left (b^2+d\right ) \sqrt {\pi }}-\frac {e^{c+d x^2} \text {erfi}(b x)}{2 d^2}+\frac {e^{c+d x^2} x^2 \text {erfi}(b x)}{2 d}+\frac {b e^c \text {erfi}\left (\sqrt {b^2+d} x\right )}{4 d \left (b^2+d\right )^{3/2}}+\frac {b e^c \text {erfi}\left (\sqrt {b^2+d} x\right )}{2 d^2 \sqrt {b^2+d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 91, normalized size = 0.64 \begin {gather*} \frac {e^c \left (-\frac {2 b d e^{\left (b^2+d\right ) x^2} x}{\left (b^2+d\right ) \sqrt {\pi }}+2 e^{d x^2} \left (-1+d x^2\right ) \text {Erfi}(b x)+\frac {\left (2 b^3+3 b d\right ) \text {Erfi}\left (\sqrt {b^2+d} x\right )}{\left (b^2+d\right )^{3/2}}\right )}{4 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.24, size = 0, normalized size = 0.00 \[\int {\mathrm e}^{d \,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.36, size = 151, normalized size = 1.06 \begin {gather*} -\frac {\pi {\left (2 \, b^{3} + 3 \, b d\right )} \sqrt {-b^{2} - d} \operatorname {erf}\left (\sqrt {-b^{2} - d} x\right ) e^{c} + 2 \, \sqrt {\pi } {\left (b^{3} d + b d^{2}\right )} x e^{\left (b^{2} x^{2} + d x^{2} + c\right )} - 2 \, {\left (\pi {\left (b^{4} d + 2 \, b^{2} d^{2} + d^{3}\right )} x^{2} - \pi {\left (b^{4} + 2 \, b^{2} d + d^{2}\right )}\right )} \operatorname {erfi}\left (b x\right ) e^{\left (d x^{2} + c\right )}}{4 \, \pi {\left (b^{4} d^{2} + 2 \, b^{2} d^{3} + d^{4}\right )}} \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^{d 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.59, size = 128, normalized size = 0.90 \begin {gather*} \frac {b\,\mathrm {erfi}\left (x\,\sqrt {b^2+d}\right )\,{\mathrm {e}}^c}{4\,d\,{\left (b^2+d\right )}^{3/2}}-\mathrm {erfi}\left (b\,x\right )\,\left (\frac {{\mathrm {e}}^{d\,x^2+c}}{2\,d^2}-\frac {x^2\,{\mathrm {e}}^{d\,x^2+c}}{2\,d}\right )-\frac {b\,x\,{\mathrm {e}}^{b^2\,x^2+d\,x^2+c}}{2\,\sqrt {\pi }\,\left (b^2\,d+d^2\right )}+\frac {b\,{\mathrm {e}}^c\,\mathrm {erf}\left (x\,\sqrt {-b^2-d}\right )}{2\,d^2\,\sqrt {-b^2-d}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________