Optimal. Leaf size=80 \[ -\frac {e^c x}{b^3 \sqrt {\pi }}+\frac {e^c x^3}{3 b \sqrt {\pi }}-\frac {e^{c+b^2 x^2} \text {Erfc}(b x)}{2 b^4}+\frac {e^{c+b^2 x^2} x^2 \text {Erfc}(b x)}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.263, Rules used = {6521, 6518, 8,
12, 30} \begin {gather*} -\frac {e^c x}{\sqrt {\pi } b^3}+\frac {x^2 e^{b^2 x^2+c} \text {Erfc}(b x)}{2 b^2}-\frac {e^{b^2 x^2+c} \text {Erfc}(b x)}{2 b^4}+\frac {e^c x^3}{3 \sqrt {\pi } b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 12
Rule 30
Rule 6518
Rule 6521
Rubi steps
\begin {align*} \int e^{c+b^2 x^2} x^3 \text {erfc}(b x) \, dx &=\frac {e^{c+b^2 x^2} x^2 \text {erfc}(b x)}{2 b^2}-\frac {\int e^{c+b^2 x^2} x \text {erfc}(b x) \, dx}{b^2}+\frac {\int e^c x^2 \, dx}{b \sqrt {\pi }}\\ &=-\frac {e^{c+b^2 x^2} \text {erfc}(b x)}{2 b^4}+\frac {e^{c+b^2 x^2} x^2 \text {erfc}(b x)}{2 b^2}-\frac {\int e^c \, dx}{b^3 \sqrt {\pi }}+\frac {e^c \int x^2 \, dx}{b \sqrt {\pi }}\\ &=-\frac {e^c x}{b^3 \sqrt {\pi }}+\frac {e^c x^3}{3 b \sqrt {\pi }}-\frac {e^{c+b^2 x^2} \text {erfc}(b x)}{2 b^4}+\frac {e^{c+b^2 x^2} x^2 \text {erfc}(b x)}{2 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 58, normalized size = 0.72 \begin {gather*} \frac {e^c \left (2 b x \left (-3+b^2 x^2\right )+3 e^{b^2 x^2} \sqrt {\pi } \left (-1+b^2 x^2\right ) \text {Erfc}(b x)\right )}{6 b^4 \sqrt {\pi }} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.47, size = 99, normalized size = 1.24
method | result | size |
default | \(\frac {\frac {{\mathrm e}^{c} \left (\frac {b^{2} x^{2} {\mathrm e}^{b^{2} x^{2}}}{2}-\frac {{\mathrm e}^{b^{2} x^{2}}}{2}\right )}{b^{3}}-\frac {\erf \left (b x \right ) {\mathrm e}^{c} \left (\frac {b^{2} x^{2} {\mathrm e}^{b^{2} x^{2}}}{2}-\frac {{\mathrm e}^{b^{2} x^{2}}}{2}\right )}{b^{3}}+\frac {{\mathrm e}^{c} \left (\frac {1}{3} b^{3} x^{3}-b x \right )}{\sqrt {\pi }\, b^{3}}}{b}\) | \(99\) |
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 = 68, normalized size = 0.85 \begin {gather*} \frac {2 \, \sqrt {\pi } {\left (b^{3} x^{3} - 3 \, b x\right )} e^{c} - 3 \, {\left (\pi - \pi b^{2} x^{2} - {\left (\pi - \pi b^{2} x^{2}\right )} \operatorname {erf}\left (b x\right )\right )} e^{\left (b^{2} x^{2} + c\right )}}{6 \, \pi b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 8.79, size = 83, normalized size = 1.04 \begin {gather*} \begin {cases} \frac {x^{3} e^{c}}{3 \sqrt {\pi } b} + \frac {x^{2} e^{c} e^{b^{2} x^{2}} \operatorname {erfc}{\left (b x \right )}}{2 b^{2}} - \frac {x e^{c}}{\sqrt {\pi } b^{3}} - \frac {e^{c} e^{b^{2} x^{2}} \operatorname {erfc}{\left (b x \right )}}{2 b^{4}} & \text {for}\: b \neq 0 \\\frac {x^{4} e^{c}}{4} & \text {otherwise} \end {cases} \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.16, size = 63, normalized size = 0.79 \begin {gather*} -\frac {{\mathrm {e}}^c\,\left (6\,b\,x-2\,b^3\,x^3+3\,\sqrt {\pi }\,{\mathrm {e}}^{b^2\,x^2}\,\mathrm {erfc}\left (b\,x\right )-3\,b^2\,x^2\,\sqrt {\pi }\,{\mathrm {e}}^{b^2\,x^2}\,\mathrm {erfc}\left (b\,x\right )\right )}{6\,b^4\,\sqrt {\pi }} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________