Optimal. Leaf size=101 \[ \frac {\cos (c) \text {FresnelC}(b x) S(b x)}{2 b}-\frac {1}{8} i b x^2 \cos (c) \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i b^2 \pi x^2\right )+\frac {1}{8} i b x^2 \cos (c) \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i b^2 \pi x^2\right )-\frac {S(b x)^2 \sin (c)}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 101, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {6583, 6581,
6575, 30} \begin {gather*} -\frac {1}{8} i b x^2 \cos (c) \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i b^2 \pi x^2\right )+\frac {1}{8} i b x^2 \cos (c) \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i b^2 \pi x^2\right )+\frac {\cos (c) \text {FresnelC}(b x) S(b x)}{2 b}-\frac {\sin (c) S(b x)^2}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 6575
Rule 6581
Rule 6583
Rubi steps
\begin {align*} \int \cos \left (c+\frac {1}{2} b^2 \pi x^2\right ) S(b x) \, dx &=\cos (c) \int \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x) \, dx-\sin (c) \int S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right ) \, dx\\ &=\frac {\cos (c) C(b x) S(b x)}{2 b}-\frac {1}{8} i b x^2 \cos (c) \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i b^2 \pi x^2\right )+\frac {1}{8} i b x^2 \cos (c) \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i b^2 \pi x^2\right )-\frac {\sin (c) \text {Subst}(\int x \, dx,x,S(b x))}{b}\\ &=\frac {\cos (c) C(b x) S(b x)}{2 b}-\frac {1}{8} i b x^2 \cos (c) \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i b^2 \pi x^2\right )+\frac {1}{8} i b x^2 \cos (c) \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i b^2 \pi x^2\right )-\frac {S(b x)^2 \sin (c)}{2 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 0.03, size = 0, normalized size = 0.00 \begin {gather*} \int \cos \left (c+\frac {1}{2} b^2 \pi x^2\right ) S(b x) \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.46, size = 0, normalized size = 0.00 \[\int \cos \left (c +\frac {b^{2} \pi \,x^{2}}{2}\right ) \mathrm {S}\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 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \cos {\left (\frac {\pi b^{2} x^{2}}{2} + c \right )} S\left (b x\right )\, 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 \cos \left (\frac {\Pi \,b^2\,x^2}{2}+c\right )\,\mathrm {FresnelS}\left (b\,x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________