Optimal. Leaf size=70 \[ \frac {(a+b x) S(a+b x)^2}{b}-\frac {S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} \pi b}+\frac {2 S(a+b x) \cos \left (\frac {1}{2} \pi (a+b x)^2\right )}{\pi b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {6420, 6452, 3351} \[ \frac {(a+b x) S(a+b x)^2}{b}-\frac {S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} \pi b}+\frac {2 S(a+b x) \cos \left (\frac {1}{2} \pi (a+b x)^2\right )}{\pi b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3351
Rule 6420
Rule 6452
Rubi steps
\begin {align*} \int S(a+b x)^2 \, dx &=\frac {(a+b x) S(a+b x)^2}{b}-2 \int (a+b x) S(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right ) \, dx\\ &=\frac {(a+b x) S(a+b x)^2}{b}-\frac {2 \operatorname {Subst}\left (\int x S(x) \sin \left (\frac {\pi x^2}{2}\right ) \, dx,x,a+b x\right )}{b}\\ &=\frac {2 \cos \left (\frac {1}{2} \pi (a+b x)^2\right ) S(a+b x)}{b \pi }+\frac {(a+b x) S(a+b x)^2}{b}-\frac {\operatorname {Subst}\left (\int \sin \left (\pi x^2\right ) \, dx,x,a+b x\right )}{b \pi }\\ &=\frac {2 \cos \left (\frac {1}{2} \pi (a+b x)^2\right ) S(a+b x)}{b \pi }+\frac {(a+b x) S(a+b x)^2}{b}-\frac {S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} b \pi }\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 67, normalized size = 0.96 \[ \frac {2 \pi (a+b x) S(a+b x)^2-\sqrt {2} S\left (\sqrt {2} (a+b x)\right )+4 S(a+b x) \cos \left (\frac {1}{2} \pi (a+b x)^2\right )}{2 \pi b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.46, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\rm fresnels}\left (b x + a\right )^{2}, 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 {\rm fresnels}\left (b x + a\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 60, normalized size = 0.86 \[ \frac {\left (b x +a \right ) \mathrm {S}\left (b x +a \right )^{2}+\frac {2 \,\mathrm {S}\left (b x +a \right ) \cos \left (\frac {\pi \left (b x +a \right )^{2}}{2}\right )}{\pi }-\frac {\sqrt {2}\, \mathrm {S}\left (\left (b x +a \right ) \sqrt {2}\right )}{2 \pi }}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\rm fresnels}\left (b x + a\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\mathrm {FresnelS}\left (a+b\,x\right )}^2 \,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 S^{2}\left (a + b x\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________