Optimal. Leaf size=76 \[ -\frac {e^c x^2 \, _2F_2\left (1,1;\frac {3}{2},2;b^2 x^2\right )}{2 \sqrt {\pi } b}+\frac {x e^{b^2 x^2+c} \text {erf}(b x)}{2 b^2}-\frac {e^c x^2}{2 \sqrt {\pi } b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 76, 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 = {6385, 6376, 12, 30} \[ -\frac {e^c x^2 \, _2F_2\left (1,1;\frac {3}{2},2;b^2 x^2\right )}{2 \sqrt {\pi } b}+\frac {x e^{b^2 x^2+c} \text {Erf}(b x)}{2 b^2}-\frac {e^c x^2}{2 \sqrt {\pi } b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 30
Rule 6376
Rule 6385
Rubi steps
\begin {align*} \int e^{c+b^2 x^2} x^2 \text {erf}(b x) \, dx &=\frac {e^{c+b^2 x^2} x \text {erf}(b x)}{2 b^2}-\frac {\int e^{c+b^2 x^2} \text {erf}(b x) \, dx}{2 b^2}-\frac {\int e^c x \, dx}{b \sqrt {\pi }}\\ &=\frac {e^{c+b^2 x^2} x \text {erf}(b x)}{2 b^2}-\frac {e^c x^2 \, _2F_2\left (1,1;\frac {3}{2},2;b^2 x^2\right )}{2 b \sqrt {\pi }}-\frac {e^c \int x \, dx}{b \sqrt {\pi }}\\ &=-\frac {e^c x^2}{2 b \sqrt {\pi }}+\frac {e^{c+b^2 x^2} x \text {erf}(b x)}{2 b^2}-\frac {e^c x^2 \, _2F_2\left (1,1;\frac {3}{2},2;b^2 x^2\right )}{2 b \sqrt {\pi }}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.22, size = 80, normalized size = 1.05 \[ \frac {e^c \left (2 b^2 x^2 \, _2F_2\left (1,1;\frac {3}{2},2;-b^2 x^2\right )+\text {erf}(b x) \left (2 \sqrt {\pi } b x e^{b^2 x^2}-\pi \text {erfi}(b x)\right )-2 b^2 x^2\right )}{4 \sqrt {\pi } b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.61, size = 0, normalized size = 0.00 \[ {\rm integral}\left (x^{2} \operatorname {erf}\left (b x\right ) e^{\left (b^{2} x^{2} + c\right )}, x\right ) \]
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 {erf}\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.16, size = 0, normalized size = 0.00 \[ \int {\mathrm e}^{b^{2} x^{2}+c} x^{2} \erf \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 {erf}\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 [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int x^2\,{\mathrm {e}}^{b^2\,x^2+c}\,\mathrm {erf}\left (b\,x\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: AttributeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________