Optimal. Leaf size=59 \[ -\frac {x^2 e^{-b^2 x^2}}{3 \sqrt {\pi } b}-\frac {e^{-b^2 x^2}}{3 \sqrt {\pi } b^3}+\frac {1}{3} x^3 \text {erfc}(b x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {6362, 2212, 2209} \[ -\frac {x^2 e^{-b^2 x^2}}{3 \sqrt {\pi } b}-\frac {e^{-b^2 x^2}}{3 \sqrt {\pi } b^3}+\frac {1}{3} x^3 \text {Erfc}(b x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2209
Rule 2212
Rule 6362
Rubi steps
\begin {align*} \int x^2 \text {erfc}(b x) \, dx &=\frac {1}{3} x^3 \text {erfc}(b x)+\frac {(2 b) \int e^{-b^2 x^2} x^3 \, dx}{3 \sqrt {\pi }}\\ &=-\frac {e^{-b^2 x^2} x^2}{3 b \sqrt {\pi }}+\frac {1}{3} x^3 \text {erfc}(b x)+\frac {2 \int e^{-b^2 x^2} x \, dx}{3 b \sqrt {\pi }}\\ &=-\frac {e^{-b^2 x^2}}{3 b^3 \sqrt {\pi }}-\frac {e^{-b^2 x^2} x^2}{3 b \sqrt {\pi }}+\frac {1}{3} x^3 \text {erfc}(b x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 42, normalized size = 0.71 \[ \frac {1}{3} \left (x^3 \text {erfc}(b x)-\frac {e^{-b^2 x^2} \left (b^2 x^2+1\right )}{\sqrt {\pi } b^3}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 52, normalized size = 0.88 \[ -\frac {\pi b^{3} x^{3} \operatorname {erf}\left (b x\right ) - \pi b^{3} x^{3} + \sqrt {\pi } {\left (b^{2} x^{2} + 1\right )} e^{\left (-b^{2} x^{2}\right )}}{3 \, \pi b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.42, size = 41, normalized size = 0.69 \[ -\frac {1}{3} \, x^{3} \operatorname {erf}\left (b x\right ) + \frac {1}{3} \, x^{3} - \frac {{\left (b^{2} x^{2} + 1\right )} e^{\left (-b^{2} x^{2}\right )}}{3 \, \sqrt {\pi } b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 54, normalized size = 0.92 \[ \frac {\frac {b^{3} x^{3} \mathrm {erfc}\left (b x \right )}{3}+\frac {-\frac {{\mathrm e}^{-b^{2} x^{2}} b^{2} x^{2}}{3}-\frac {{\mathrm e}^{-b^{2} x^{2}}}{3}}{\sqrt {\pi }}}{b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.33, size = 36, normalized size = 0.61 \[ \frac {1}{3} \, x^{3} \operatorname {erfc}\left (b x\right ) - \frac {{\left (b^{2} x^{2} + 1\right )} e^{\left (-b^{2} x^{2}\right )}}{3 \, \sqrt {\pi } b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.15, size = 50, normalized size = 0.85 \[ \frac {x^3\,\mathrm {erfc}\left (b\,x\right )}{3}-\frac {\frac {{\mathrm {e}}^{-b^2\,x^2}}{3\,\sqrt {\pi }}+\frac {b^2\,x^2\,{\mathrm {e}}^{-b^2\,x^2}}{3\,\sqrt {\pi }}}{b^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.55, size = 54, normalized size = 0.92 \[ \begin {cases} \frac {x^{3} \operatorname {erfc}{\left (b x \right )}}{3} - \frac {x^{2} e^{- b^{2} x^{2}}}{3 \sqrt {\pi } b} - \frac {e^{- b^{2} x^{2}}}{3 \sqrt {\pi } b^{3}} & \text {for}\: b \neq 0 \\\frac {x^{3}}{3} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________