Optimal. Leaf size=283 \[ \frac {b e^c \text {erf}\left (x \sqrt {b^2-d}\right )}{d^3 \sqrt {b^2-d}}-\frac {b e^c \text {erf}\left (x \sqrt {b^2-d}\right )}{2 d^2 \left (b^2-d\right )^{3/2}}+\frac {b x e^{c-x^2 \left (b^2-d\right )}}{\sqrt {\pi } d^2 \left (b^2-d\right )}+\frac {3 b e^c \text {erf}\left (x \sqrt {b^2-d}\right )}{8 d \left (b^2-d\right )^{5/2}}-\frac {3 b x e^{c-x^2 \left (b^2-d\right )}}{4 \sqrt {\pi } d \left (b^2-d\right )^2}-\frac {b x^3 e^{c-x^2 \left (b^2-d\right )}}{2 \sqrt {\pi } d \left (b^2-d\right )}+\frac {\text {erfc}(b x) e^{c+d x^2}}{d^3}-\frac {x^2 \text {erfc}(b x) e^{c+d x^2}}{d^2}+\frac {x^4 \text {erfc}(b x) e^{c+d x^2}}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.37, antiderivative size = 283, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {6386, 6383, 2205, 2212} \[ -\frac {b e^c \text {Erf}\left (x \sqrt {b^2-d}\right )}{2 d^2 \left (b^2-d\right )^{3/2}}+\frac {b e^c \text {Erf}\left (x \sqrt {b^2-d}\right )}{d^3 \sqrt {b^2-d}}+\frac {b x e^{c-x^2 \left (b^2-d\right )}}{\sqrt {\pi } d^2 \left (b^2-d\right )}+\frac {3 b e^c \text {Erf}\left (x \sqrt {b^2-d}\right )}{8 d \left (b^2-d\right )^{5/2}}-\frac {b x^3 e^{c-x^2 \left (b^2-d\right )}}{2 \sqrt {\pi } d \left (b^2-d\right )}-\frac {3 b x e^{c-x^2 \left (b^2-d\right )}}{4 \sqrt {\pi } d \left (b^2-d\right )^2}-\frac {x^2 \text {Erfc}(b x) e^{c+d x^2}}{d^2}+\frac {\text {Erfc}(b x) e^{c+d x^2}}{d^3}+\frac {x^4 \text {Erfc}(b x) e^{c+d x^2}}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2205
Rule 2212
Rule 6383
Rule 6386
Rubi steps
\begin {align*} \int e^{c+d x^2} x^5 \text {erfc}(b x) \, dx &=\frac {e^{c+d x^2} x^4 \text {erfc}(b x)}{2 d}-\frac {2 \int e^{c+d x^2} x^3 \text {erfc}(b x) \, dx}{d}+\frac {b \int e^{c-\left (b^2-d\right ) x^2} x^4 \, dx}{d \sqrt {\pi }}\\ &=-\frac {b e^{c-\left (b^2-d\right ) x^2} x^3}{2 \left (b^2-d\right ) d \sqrt {\pi }}-\frac {e^{c+d x^2} x^2 \text {erfc}(b x)}{d^2}+\frac {e^{c+d x^2} x^4 \text {erfc}(b x)}{2 d}+\frac {2 \int e^{c+d x^2} x \text {erfc}(b x) \, dx}{d^2}-\frac {(2 b) \int e^{c-\left (b^2-d\right ) x^2} x^2 \, dx}{d^2 \sqrt {\pi }}+\frac {(3 b) \int e^{c+\left (-b^2+d\right ) x^2} x^2 \, dx}{2 \left (b^2-d\right ) d \sqrt {\pi }}\\ &=\frac {b e^{c-\left (b^2-d\right ) x^2} x}{\left (b^2-d\right ) d^2 \sqrt {\pi }}-\frac {3 b e^{c-\left (b^2-d\right ) x^2} x}{4 \left (b^2-d\right )^2 d \sqrt {\pi }}-\frac {b e^{c-\left (b^2-d\right ) x^2} x^3}{2 \left (b^2-d\right ) d \sqrt {\pi }}+\frac {e^{c+d x^2} \text {erfc}(b x)}{d^3}-\frac {e^{c+d x^2} x^2 \text {erfc}(b x)}{d^2}+\frac {e^{c+d x^2} x^4 \text {erfc}(b x)}{2 d}+\frac {(2 b) \int e^{c-\left (b^2-d\right ) x^2} \, dx}{d^3 \sqrt {\pi }}-\frac {b \int e^{c+\left (-b^2+d\right ) x^2} \, dx}{\left (b^2-d\right ) d^2 \sqrt {\pi }}+\frac {(3 b) \int e^{c+\left (-b^2+d\right ) x^2} \, dx}{4 \left (b^2-d\right )^2 d \sqrt {\pi }}\\ &=\frac {b e^{c-\left (b^2-d\right ) x^2} x}{\left (b^2-d\right ) d^2 \sqrt {\pi }}-\frac {3 b e^{c-\left (b^2-d\right ) x^2} x}{4 \left (b^2-d\right )^2 d \sqrt {\pi }}-\frac {b e^{c-\left (b^2-d\right ) x^2} x^3}{2 \left (b^2-d\right ) d \sqrt {\pi }}+\frac {b e^c \text {erf}\left (\sqrt {b^2-d} x\right )}{\sqrt {b^2-d} d^3}-\frac {b e^c \text {erf}\left (\sqrt {b^2-d} x\right )}{2 \left (b^2-d\right )^{3/2} d^2}+\frac {3 b e^c \text {erf}\left (\sqrt {b^2-d} x\right )}{8 \left (b^2-d\right )^{5/2} d}+\frac {e^{c+d x^2} \text {erfc}(b x)}{d^3}-\frac {e^{c+d x^2} x^2 \text {erfc}(b x)}{d^2}+\frac {e^{c+d x^2} x^4 \text {erfc}(b x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.45, size = 138, normalized size = 0.49 \[ \frac {e^c \left (\frac {2 b d x e^{x^2 \left (d-b^2\right )} \left (b^2 \left (4-2 d x^2\right )+d \left (2 d x^2-7\right )\right )}{\sqrt {\pi } \left (b^2-d\right )^2}+\frac {b \left (8 b^4-20 b^2 d+15 d^2\right ) \text {erfi}\left (x \sqrt {d-b^2}\right )}{\left (d-b^2\right )^{5/2}}+4 e^{d x^2} \left (d^2 x^4-2 d x^2+2\right ) \text {erfc}(b x)\right )}{8 d^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 356, normalized size = 1.26 \[ \frac {\pi {\left (8 \, b^{5} - 20 \, b^{3} d + 15 \, b d^{2}\right )} \sqrt {b^{2} - d} \operatorname {erf}\left (\sqrt {b^{2} - d} x\right ) e^{c} - 2 \, \sqrt {\pi } {\left (2 \, {\left (b^{5} d^{2} - 2 \, b^{3} d^{3} + b d^{4}\right )} x^{3} - {\left (4 \, b^{5} d - 11 \, b^{3} d^{2} + 7 \, b d^{3}\right )} x\right )} e^{\left (-b^{2} x^{2} + d x^{2} + c\right )} + 4 \, {\left (\pi {\left (b^{6} d^{2} - 3 \, b^{4} d^{3} + 3 \, b^{2} d^{4} - d^{5}\right )} x^{4} - 2 \, \pi {\left (b^{6} d - 3 \, b^{4} d^{2} + 3 \, b^{2} d^{3} - d^{4}\right )} x^{2} + 2 \, \pi {\left (b^{6} - 3 \, b^{4} d + 3 \, b^{2} d^{2} - d^{3}\right )} - {\left (\pi {\left (b^{6} d^{2} - 3 \, b^{4} d^{3} + 3 \, b^{2} d^{4} - d^{5}\right )} x^{4} - 2 \, \pi {\left (b^{6} d - 3 \, b^{4} d^{2} + 3 \, b^{2} d^{3} - d^{4}\right )} x^{2} + 2 \, \pi {\left (b^{6} - 3 \, b^{4} d + 3 \, b^{2} d^{2} - d^{3}\right )}\right )} \operatorname {erf}\left (b x\right )\right )} e^{\left (d x^{2} + c\right )}}{8 \, \pi {\left (b^{6} d^{3} - 3 \, b^{4} d^{4} + 3 \, b^{2} d^{5} - d^{6}\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^{5} \operatorname {erfc}\left (b x\right ) e^{\left (d x^{2} + c\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 376, normalized size = 1.33 \[ \frac {\frac {{\mathrm e}^{c} \left (\frac {{\mathrm e}^{d \,x^{2}} b^{6} x^{4}}{2 d}-\frac {2 b^{2} \left (\frac {b^{4} x^{2} {\mathrm e}^{d \,x^{2}}}{2 d}-\frac {b^{4} {\mathrm e}^{d \,x^{2}}}{2 d^{2}}\right )}{d}\right )}{b^{5}}-\frac {\erf \left (b x \right ) {\mathrm e}^{c} \left (\frac {{\mathrm e}^{d \,x^{2}} b^{6} x^{4}}{2 d}-\frac {2 b^{2} \left (\frac {b^{4} x^{2} {\mathrm e}^{d \,x^{2}}}{2 d}-\frac {b^{4} {\mathrm e}^{d \,x^{2}}}{2 d^{2}}\right )}{d}\right )}{b^{5}}+\frac {{\mathrm e}^{c} \left (\frac {b^{2} \left (\frac {b^{3} x^{3} {\mathrm e}^{\left (-1+\frac {d}{b^{2}}\right ) b^{2} x^{2}}}{-2+\frac {2 d}{b^{2}}}-\frac {3 \left (\frac {b x \,{\mathrm e}^{\left (-1+\frac {d}{b^{2}}\right ) b^{2} x^{2}}}{-2+\frac {2 d}{b^{2}}}-\frac {\sqrt {\pi }\, \erf \left (\sqrt {1-\frac {d}{b^{2}}}\, b x \right )}{4 \left (-1+\frac {d}{b^{2}}\right ) \sqrt {1-\frac {d}{b^{2}}}}\right )}{2 \left (-1+\frac {d}{b^{2}}\right )}\right )}{d}+\frac {b^{6} \sqrt {\pi }\, \erf \left (\sqrt {1-\frac {d}{b^{2}}}\, b x \right )}{d^{3} \sqrt {1-\frac {d}{b^{2}}}}-\frac {2 b^{4} \left (\frac {b x \,{\mathrm e}^{\left (-1+\frac {d}{b^{2}}\right ) b^{2} x^{2}}}{-2+\frac {2 d}{b^{2}}}-\frac {\sqrt {\pi }\, \erf \left (\sqrt {1-\frac {d}{b^{2}}}\, b x \right )}{4 \left (-1+\frac {d}{b^{2}}\right ) \sqrt {1-\frac {d}{b^{2}}}}\right )}{d^{2}}\right )}{\sqrt {\pi }\, b^{5}}}{b} \]
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^{5} \operatorname {erfc}\left (b x\right ) e^{\left (d 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.00 \[ \int x^5\,{\mathrm {e}}^{d\,x^2+c}\,\mathrm {erfc}\left (b\,x\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________