Optimal. Leaf size=71 \[ \frac {x}{b^3 \sqrt {\pi }}+\frac {x^3}{3 b \sqrt {\pi }}-\frac {e^{-b^2 x^2} \text {Erfi}(b x)}{2 b^4}-\frac {e^{-b^2 x^2} x^2 \text {Erfi}(b x)}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {6522, 6519, 8,
30} \begin {gather*} \frac {x}{\sqrt {\pi } b^3}-\frac {x^2 e^{-b^2 x^2} \text {Erfi}(b x)}{2 b^2}-\frac {e^{-b^2 x^2} \text {Erfi}(b x)}{2 b^4}+\frac {x^3}{3 \sqrt {\pi } b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 30
Rule 6519
Rule 6522
Rubi steps
\begin {align*} \int e^{-b^2 x^2} x^3 \text {erfi}(b x) \, dx &=-\frac {e^{-b^2 x^2} x^2 \text {erfi}(b x)}{2 b^2}+\frac {\int e^{-b^2 x^2} x \text {erfi}(b x) \, dx}{b^2}+\frac {\int x^2 \, dx}{b \sqrt {\pi }}\\ &=\frac {x^3}{3 b \sqrt {\pi }}-\frac {e^{-b^2 x^2} \text {erfi}(b x)}{2 b^4}-\frac {e^{-b^2 x^2} x^2 \text {erfi}(b x)}{2 b^2}+\frac {\int 1 \, dx}{b^3 \sqrt {\pi }}\\ &=\frac {x}{b^3 \sqrt {\pi }}+\frac {x^3}{3 b \sqrt {\pi }}-\frac {e^{-b^2 x^2} \text {erfi}(b x)}{2 b^4}-\frac {e^{-b^2 x^2} x^2 \text {erfi}(b x)}{2 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 51, normalized size = 0.72 \begin {gather*} \frac {\frac {2 b x \left (3+b^2 x^2\right )}{\sqrt {\pi }}-3 e^{-b^2 x^2} \left (1+b^2 x^2\right ) \text {Erfi}(b x)}{6 b^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 72, normalized size = 1.01
method | result | size |
default | \(\frac {\left (2 b^{3} x^{3} {\mathrm e}^{b^{2} x^{2}}-3 \erfi \left (b x \right ) \sqrt {\pi }\, b^{2} x^{2}+6 \,{\mathrm e}^{b^{2} x^{2}} b x -3 \erfi \left (b x \right ) \sqrt {\pi }\right ) {\mathrm e}^{-b^{2} x^{2}}}{6 b^{4} \sqrt {\pi }}\) | \(72\) |
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.39, size = 59, normalized size = 0.83 \begin {gather*} \frac {{\left (2 \, \sqrt {\pi } {\left (b^{3} x^{3} + 3 \, b x\right )} e^{\left (b^{2} x^{2}\right )} - 3 \, {\left (\pi + \pi b^{2} x^{2}\right )} \operatorname {erfi}\left (b x\right )\right )} e^{\left (-b^{2} x^{2}\right )}}{6 \, \pi b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 21.18, size = 63, normalized size = 0.89 \begin {gather*} \begin {cases} \frac {x^{3}}{3 \sqrt {\pi } b} - \frac {x^{2} e^{- b^{2} x^{2}} \operatorname {erfi}{\left (b x \right )}}{2 b^{2}} + \frac {x}{\sqrt {\pi } b^{3}} - \frac {e^{- b^{2} x^{2}} \operatorname {erfi}{\left (b x \right )}}{2 b^{4}} & \text {for}\: b \neq 0 \\0 & \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.18, size = 56, normalized size = 0.79 \begin {gather*} \frac {\frac {b^2\,x^3}{3}+x}{b^3\,\sqrt {\pi }}-\mathrm {erfi}\left (b\,x\right )\,\left (\frac {{\mathrm {e}}^{-b^2\,x^2}}{2\,b^4}+\frac {x^2\,{\mathrm {e}}^{-b^2\,x^2}}{2\,b^2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________