Optimal. Leaf size=118 \[ -\frac {b e^{c+2 b^2 x^2}}{3 \sqrt {\pi } x^2}-\frac {e^{c+b^2 x^2} \text {Erfi}(b x)}{3 x^3}-\frac {2 b^2 e^{c+b^2 x^2} \text {Erfi}(b x)}{3 x}+\frac {1}{3} b^3 e^c \sqrt {\pi } \text {Erfi}(b x)^2+\frac {4 b^3 e^c \text {Ei}\left (2 b^2 x^2\right )}{3 \sqrt {\pi }} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 118, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.263, Rules used = {6528, 6510, 30,
2241, 2245} \begin {gather*} \frac {1}{3} \sqrt {\pi } b^3 e^c \text {Erfi}(b x)^2-\frac {2 b^2 e^{b^2 x^2+c} \text {Erfi}(b x)}{3 x}-\frac {e^{b^2 x^2+c} \text {Erfi}(b x)}{3 x^3}-\frac {b e^{2 b^2 x^2+c}}{3 \sqrt {\pi } x^2}+\frac {4 b^3 e^c \text {Ei}\left (2 b^2 x^2\right )}{3 \sqrt {\pi }} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 2241
Rule 2245
Rule 6510
Rule 6528
Rubi steps
\begin {align*} \int \frac {e^{c+b^2 x^2} \text {erfi}(b x)}{x^4} \, dx &=-\frac {e^{c+b^2 x^2} \text {erfi}(b x)}{3 x^3}+\frac {1}{3} \left (2 b^2\right ) \int \frac {e^{c+b^2 x^2} \text {erfi}(b x)}{x^2} \, dx+\frac {(2 b) \int \frac {e^{c+2 b^2 x^2}}{x^3} \, dx}{3 \sqrt {\pi }}\\ &=-\frac {b e^{c+2 b^2 x^2}}{3 \sqrt {\pi } x^2}-\frac {e^{c+b^2 x^2} \text {erfi}(b x)}{3 x^3}-\frac {2 b^2 e^{c+b^2 x^2} \text {erfi}(b x)}{3 x}+\frac {1}{3} \left (4 b^4\right ) \int e^{c+b^2 x^2} \text {erfi}(b x) \, dx+2 \frac {\left (4 b^3\right ) \int \frac {e^{c+2 b^2 x^2}}{x} \, dx}{3 \sqrt {\pi }}\\ &=-\frac {b e^{c+2 b^2 x^2}}{3 \sqrt {\pi } x^2}-\frac {e^{c+b^2 x^2} \text {erfi}(b x)}{3 x^3}-\frac {2 b^2 e^{c+b^2 x^2} \text {erfi}(b x)}{3 x}+\frac {4 b^3 e^c \text {Ei}\left (2 b^2 x^2\right )}{3 \sqrt {\pi }}+\frac {1}{3} \left (2 b^3 e^c \sqrt {\pi }\right ) \text {Subst}(\int x \, dx,x,\text {erfi}(b x))\\ &=-\frac {b e^{c+2 b^2 x^2}}{3 \sqrt {\pi } x^2}-\frac {e^{c+b^2 x^2} \text {erfi}(b x)}{3 x^3}-\frac {2 b^2 e^{c+b^2 x^2} \text {erfi}(b x)}{3 x}+\frac {1}{3} b^3 e^c \sqrt {\pi } \text {erfi}(b x)^2+\frac {4 b^3 e^c \text {Ei}\left (2 b^2 x^2\right )}{3 \sqrt {\pi }}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 91, normalized size = 0.77 \begin {gather*} -\frac {e^c \left (e^{b^2 x^2} \sqrt {\pi } \left (1+2 b^2 x^2\right ) \text {Erfi}(b x)-b^3 \pi x^3 \text {Erfi}(b x)^2+b x \left (e^{2 b^2 x^2}-4 b^2 x^2 \text {Ei}\left (2 b^2 x^2\right )\right )\right )}{3 \sqrt {\pi } x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.15, size = 0, normalized size = 0.00 \[\int \frac {{\mathrm e}^{b^{2} x^{2}+c} \erfi \left (b x \right )}{x^{4}}\, dx\]
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.36, size = 85, normalized size = 0.72 \begin {gather*} -\frac {{\left ({\left (\pi + 2 \, \pi b^{2} x^{2}\right )} \operatorname {erfi}\left (b x\right ) e^{\left (b^{2} x^{2}\right )} - \sqrt {\pi } {\left (\pi b^{3} x^{3} \operatorname {erfi}\left (b x\right )^{2} + 4 \, b^{3} x^{3} {\rm Ei}\left (2 \, b^{2} x^{2}\right ) - b x e^{\left (2 \, b^{2} x^{2}\right )}\right )}\right )} e^{c}}{3 \, \pi x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} e^{c} \int \frac {e^{b^{2} x^{2}} \operatorname {erfi}{\left (b x \right )}}{x^{4}}\, dx \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 [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {e}}^{b^2\,x^2+c}\,\mathrm {erfi}\left (b\,x\right )}{x^4} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________