Optimal. Leaf size=62 \[ \frac {b e^{-i c} x^2 \, _2F_2\left (1,1;\frac {3}{2},2;b^2 x^2\right )}{2 \sqrt {\pi }}+\frac {\sqrt {\pi } e^{i c} \text {erf}(b x)^2}{8 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 62, 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 = {6407, 6376, 6373, 30} \[ \frac {b e^{-i c} x^2 \, _2F_2\left (1,1;\frac {3}{2},2;b^2 x^2\right )}{2 \sqrt {\pi }}+\frac {\sqrt {\pi } e^{i c} \text {Erf}(b x)^2}{8 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 6373
Rule 6376
Rule 6407
Rubi steps
\begin {align*} \int \cos \left (c+i b^2 x^2\right ) \text {erf}(b x) \, dx &=\frac {1}{2} \int e^{i c-b^2 x^2} \text {erf}(b x) \, dx+\frac {1}{2} \int e^{-i c+b^2 x^2} \text {erf}(b x) \, dx\\ &=\frac {b e^{-i c} x^2 \, _2F_2\left (1,1;\frac {3}{2},2;b^2 x^2\right )}{2 \sqrt {\pi }}+\frac {\left (e^{i c} \sqrt {\pi }\right ) \operatorname {Subst}(\int x \, dx,x,\text {erf}(b x))}{4 b}\\ &=\frac {e^{i c} \sqrt {\pi } \text {erf}(b x)^2}{8 b}+\frac {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 [F] time = 0.77, size = 0, normalized size = 0.00 \[ \int \cos \left (c+i b^2 x^2\right ) \text {erf}(b x) \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.56, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {1}{2} \, {\left (\operatorname {erf}\left (b x\right ) e^{\left (-2 \, b^{2} x^{2} + 2 i \, c\right )} + \operatorname {erf}\left (b x\right )\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 \cos \left (i \, b^{2} x^{2} + c\right ) \operatorname {erf}\left (b x\right )\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.08, size = 0, normalized size = 0.00 \[ \int \cos \left (i b^{2} x^{2}+c \right ) \erf \left (b x \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 {\sqrt {\pi } \cos \relax (c) \operatorname {erf}\left (b x\right )^{2}}{8 \, b} + \frac {i \, \sqrt {\pi } \operatorname {erf}\left (b x\right )^{2} \sin \relax (c)}{8 \, b} + \frac {1}{2} \, \cos \relax (c) \int \operatorname {erf}\left (b x\right ) e^{\left (b^{2} x^{2}\right )}\,{d x} - \frac {1}{2} i \, \int \operatorname {erf}\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.02 \[ \int \cos \left (b^2\,x^2\,1{}\mathrm {i}+c\right )\,\mathrm {erf}\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 \cos {\left (i b^{2} x^{2} + c \right )} \operatorname {erf}{\left (b x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________