Integrand size = 8, antiderivative size = 71 \[ \int x \text {erf}(b x)^2 \, dx=\frac {e^{-2 b^2 x^2}}{2 b^2 \pi }+\frac {e^{-b^2 x^2} x \text {erf}(b x)}{b \sqrt {\pi }}-\frac {\text {erf}(b x)^2}{4 b^2}+\frac {1}{2} x^2 \text {erf}(b x)^2 \]
[Out]
Time = 0.06 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.625, Rules used = {6499, 6520, 6508, 30, 2240} \[ \int x \text {erf}(b x)^2 \, dx=\frac {x e^{-b^2 x^2} \text {erf}(b x)}{\sqrt {\pi } b}-\frac {\text {erf}(b x)^2}{4 b^2}+\frac {e^{-2 b^2 x^2}}{2 \pi b^2}+\frac {1}{2} x^2 \text {erf}(b x)^2 \]
[In]
[Out]
Rule 30
Rule 2240
Rule 6499
Rule 6508
Rule 6520
Rubi steps \begin{align*} \text {integral}& = \frac {1}{2} x^2 \text {erf}(b x)^2-\frac {(2 b) \int e^{-b^2 x^2} x^2 \text {erf}(b x) \, dx}{\sqrt {\pi }} \\ & = \frac {e^{-b^2 x^2} x \text {erf}(b x)}{b \sqrt {\pi }}+\frac {1}{2} x^2 \text {erf}(b x)^2-\frac {2 \int e^{-2 b^2 x^2} x \, dx}{\pi }-\frac {\int e^{-b^2 x^2} \text {erf}(b x) \, dx}{b \sqrt {\pi }} \\ & = \frac {e^{-2 b^2 x^2}}{2 b^2 \pi }+\frac {e^{-b^2 x^2} x \text {erf}(b x)}{b \sqrt {\pi }}+\frac {1}{2} x^2 \text {erf}(b x)^2-\frac {\text {Subst}(\int x \, dx,x,\text {erf}(b x))}{2 b^2} \\ & = \frac {e^{-2 b^2 x^2}}{2 b^2 \pi }+\frac {e^{-b^2 x^2} x \text {erf}(b x)}{b \sqrt {\pi }}-\frac {\text {erf}(b x)^2}{4 b^2}+\frac {1}{2} x^2 \text {erf}(b x)^2 \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 64, normalized size of antiderivative = 0.90 \[ \int x \text {erf}(b x)^2 \, dx=\frac {2 e^{-2 b^2 x^2}+4 b e^{-b^2 x^2} \sqrt {\pi } x \text {erf}(b x)+\pi \left (-1+2 b^2 x^2\right ) \text {erf}(b x)^2}{4 b^2 \pi } \]
[In]
[Out]
Time = 0.24 (sec) , antiderivative size = 72, normalized size of antiderivative = 1.01
method | result | size |
parallelrisch | \(\frac {2 \operatorname {erf}\left (b x \right )^{2} x^{2} \pi ^{\frac {3}{2}} b^{2}+4 \,{\mathrm e}^{-b^{2} x^{2}} x \,\operatorname {erf}\left (b x \right ) b \pi -\operatorname {erf}\left (b x \right )^{2} \pi ^{\frac {3}{2}}+2 \,{\mathrm e}^{-2 b^{2} x^{2}} \sqrt {\pi }}{4 \pi ^{\frac {3}{2}} b^{2}}\) | \(72\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 59, normalized size of antiderivative = 0.83 \[ \int x \text {erf}(b x)^2 \, dx=\frac {4 \, \sqrt {\pi } b x \operatorname {erf}\left (b x\right ) e^{\left (-b^{2} x^{2}\right )} - {\left (\pi - 2 \, \pi b^{2} x^{2}\right )} \operatorname {erf}\left (b x\right )^{2} + 2 \, e^{\left (-2 \, b^{2} x^{2}\right )}}{4 \, \pi b^{2}} \]
[In]
[Out]
Time = 0.18 (sec) , antiderivative size = 65, normalized size of antiderivative = 0.92 \[ \int x \text {erf}(b x)^2 \, dx=\begin {cases} \frac {x^{2} \operatorname {erf}^{2}{\left (b x \right )}}{2} + \frac {x e^{- b^{2} x^{2}} \operatorname {erf}{\left (b x \right )}}{\sqrt {\pi } b} - \frac {\operatorname {erf}^{2}{\left (b x \right )}}{4 b^{2}} + \frac {e^{- 2 b^{2} x^{2}}}{2 \pi b^{2}} & \text {for}\: b \neq 0 \\0 & \text {otherwise} \end {cases} \]
[In]
[Out]
\[ \int x \text {erf}(b x)^2 \, dx=\int { x \operatorname {erf}\left (b x\right )^{2} \,d x } \]
[In]
[Out]
\[ \int x \text {erf}(b x)^2 \, dx=\int { x \operatorname {erf}\left (b x\right )^{2} \,d x } \]
[In]
[Out]
Time = 0.14 (sec) , antiderivative size = 67, normalized size of antiderivative = 0.94 \[ \int x \text {erf}(b x)^2 \, dx=\frac {\frac {{\mathrm {e}}^{-2\,b^2\,x^2}}{2}+b\,x\,\sqrt {\pi }\,{\mathrm {e}}^{-b^2\,x^2}\,\mathrm {erf}\left (b\,x\right )}{b^2\,\pi }-\frac {\frac {{\mathrm {erf}\left (b\,x\right )}^2}{4}-\frac {b^2\,x^2\,{\mathrm {erf}\left (b\,x\right )}^2}{2}}{b^2} \]
[In]
[Out]