Optimal. Leaf size=91 \[ -\frac {i b e^{-i c} x^2 \, _2F_2\left (1,1;\frac {3}{2},2;b^2 x^2\right )}{2 \sqrt {\pi }}+\frac {i \sqrt {\pi } e^{i c} \text {erfc}(b x)^2}{8 b}+\frac {i \sqrt {\pi } e^{-i c} \text {erfi}(b x)}{4 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {6405, 6377, 2204, 6376, 6374, 30} \[ -\frac {i b e^{-i c} x^2 \, _2F_2\left (1,1;\frac {3}{2},2;b^2 x^2\right )}{2 \sqrt {\pi }}+\frac {i \sqrt {\pi } e^{i c} \text {Erfc}(b x)^2}{8 b}+\frac {i \sqrt {\pi } e^{-i c} \text {Erfi}(b x)}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 2204
Rule 6374
Rule 6376
Rule 6377
Rule 6405
Rubi steps
\begin {align*} \int \text {erfc}(b x) \sin \left (c+i b^2 x^2\right ) \, dx &=-\left (\frac {1}{2} i \int e^{i c-b^2 x^2} \text {erfc}(b x) \, dx\right )+\frac {1}{2} i \int e^{-i c+b^2 x^2} \text {erfc}(b x) \, dx\\ &=\frac {1}{2} i \int e^{-i c+b^2 x^2} \, dx-\frac {1}{2} i \int e^{-i c+b^2 x^2} \text {erf}(b x) \, dx+\frac {\left (i e^{i c} \sqrt {\pi }\right ) \operatorname {Subst}(\int x \, dx,x,\text {erfc}(b x))}{4 b}\\ &=\frac {i e^{i c} \sqrt {\pi } \text {erfc}(b x)^2}{8 b}+\frac {i e^{-i c} \sqrt {\pi } \text {erfi}(b x)}{4 b}-\frac {i b e^{-i c} x^2 \, _2F_2\left (1,1;\frac {3}{2},2;b^2 x^2\right )}{2 \sqrt {\pi }}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.67, size = 94, normalized size = 1.03 \[ \frac {(\sin (c)+i \cos (c)) \left (-4 b^2 x^2 \, _2F_2\left (1,1;\frac {3}{2},2;b^2 x^2\right )+\pi \left (\text {erf}(b x)^2 (\cos (2 c)+i \sin (2 c))-2 \text {erf}(b x) (\cos (2 c)+i \sin (2 c))+2 \text {erfi}(b x)\right )\right )}{8 \sqrt {\pi } b} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.53, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {1}{2} \, {\left ({\left (i \, \operatorname {erf}\left (b x\right ) - i\right )} e^{\left (-2 \, b^{2} x^{2} + 2 i \, c\right )} - i \, \operatorname {erf}\left (b x\right ) + i\right )} e^{\left (b^{2} x^{2} - i \, c\right )}, x\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 \operatorname {erfc}\left (b x\right ) \sin \left (i \, b^{2} x^{2} + c\right )\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.23, size = 0, normalized size = 0.00 \[ \int \mathrm {erfc}\left (b x \right ) \sin \left (i b^{2} x^{2}+c \right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {i \, \sqrt {\pi } \cos \relax (c) \operatorname {erfc}\left (b x\right )^{2}}{8 \, b} - \frac {\sqrt {\pi } \operatorname {erfc}\left (b x\right )^{2} \sin \relax (c)}{8 \, b} + \frac {1}{2} i \, \cos \relax (c) \int \operatorname {erfc}\left (b x\right ) e^{\left (b^{2} x^{2}\right )}\,{d x} + \frac {1}{2} \, \int \operatorname {erfc}\left (b x\right ) e^{\left (b^{2} x^{2}\right )}\,{d x} \sin \relax (c) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \sin \left (b^2\,x^2\,1{}\mathrm {i}+c\right )\,\mathrm {erfc}\left (b\,x\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sin {\left (i b^{2} x^{2} + c \right )} \operatorname {erfc}{\left (b x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________