Optimal. Leaf size=69 \[ -\frac {\sqrt {\pi } e^c \text {erfi}(b x)^2}{8 b^3}+\frac {x e^{b^2 x^2+c} \text {erfi}(b x)}{2 b^2}-\frac {e^{2 b^2 x^2+c}}{4 \sqrt {\pi } b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {6387, 6375, 30, 2209} \[ \frac {x e^{b^2 x^2+c} \text {Erfi}(b x)}{2 b^2}-\frac {\sqrt {\pi } e^c \text {Erfi}(b x)^2}{8 b^3}-\frac {e^{2 b^2 x^2+c}}{4 \sqrt {\pi } b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 2209
Rule 6375
Rule 6387
Rubi steps
\begin {align*} \int e^{c+b^2 x^2} x^2 \text {erfi}(b x) \, dx &=\frac {e^{c+b^2 x^2} x \text {erfi}(b x)}{2 b^2}-\frac {\int e^{c+b^2 x^2} \text {erfi}(b x) \, dx}{2 b^2}-\frac {\int e^{c+2 b^2 x^2} x \, dx}{b \sqrt {\pi }}\\ &=-\frac {e^{c+2 b^2 x^2}}{4 b^3 \sqrt {\pi }}+\frac {e^{c+b^2 x^2} x \text {erfi}(b x)}{2 b^2}-\frac {\left (e^c \sqrt {\pi }\right ) \operatorname {Subst}(\int x \, dx,x,\text {erfi}(b x))}{4 b^3}\\ &=-\frac {e^{c+2 b^2 x^2}}{4 b^3 \sqrt {\pi }}+\frac {e^{c+b^2 x^2} x \text {erfi}(b x)}{2 b^2}-\frac {e^c \sqrt {\pi } \text {erfi}(b x)^2}{8 b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 58, normalized size = 0.84 \[ -\frac {e^c \left (-4 \sqrt {\pi } b x e^{b^2 x^2} \text {erfi}(b x)+2 e^{2 b^2 x^2}+\pi \text {erfi}(b x)^2\right )}{8 \sqrt {\pi } b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.58, size = 53, normalized size = 0.77 \[ \frac {{\left (4 \, \pi b x \operatorname {erfi}\left (b x\right ) e^{\left (b^{2} x^{2}\right )} - \sqrt {\pi } {\left (\pi \operatorname {erfi}\left (b x\right )^{2} + 2 \, e^{\left (2 \, b^{2} x^{2}\right )}\right )}\right )} e^{c}}{8 \, \pi b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{2} \operatorname {erfi}\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]
[Out]
________________________________________________________________________________________
maple [F] time = 0.18, size = 0, normalized size = 0.00 \[ \int {\mathrm e}^{b^{2} x^{2}+c} x^{2} \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 \[ \int x^{2} \operatorname {erfi}\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]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.32, size = 86, normalized size = 1.25 \[ \mathrm {erfi}\left (b\,x\right )\,\left (\frac {x\,{\mathrm {e}}^{b^2\,x^2+c}}{2\,b^2}-\frac {\sqrt {\pi }\,\mathrm {erfi}\left (\frac {b^2\,x}{\sqrt {b^2}}\right )\,{\mathrm {e}}^c}{4\,{\left (b^2\right )}^{3/2}}\right )-\frac {2\,{\mathrm {e}}^{2\,b^2\,x^2+c}-\pi \,{\mathrm {erfi}\left (\frac {b^2\,x}{\sqrt {b^2}}\right )}^2\,{\mathrm {e}}^c}{8\,b^3\,\sqrt {\pi }} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 3.79, size = 68, normalized size = 0.99 \[ \begin {cases} \frac {x e^{c} e^{b^{2} x^{2}} \operatorname {erfi}{\left (b x \right )}}{2 b^{2}} - \frac {e^{c} e^{2 b^{2} x^{2}}}{4 \sqrt {\pi } b^{3}} - \frac {\sqrt {\pi } e^{c} \operatorname {erfi}^{2}{\left (b x \right )}}{8 b^{3}} & \text {for}\: b \neq 0 \\0 & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________