3.38 \(\int S(b x)^2 \, dx\)

Optimal. Leaf size=55 \[ \frac {2 S(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b}+x S(b x)^2-\frac {S\left (\sqrt {2} b x\right )}{\sqrt {2} \pi b} \]

[Out]

2*cos(1/2*b^2*Pi*x^2)*FresnelS(b*x)/b/Pi+x*FresnelS(b*x)^2-1/2*FresnelS(b*x*2^(1/2))/b/Pi*2^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.667, Rules used = {6420, 12, 6452, 3351} \[ \frac {2 S(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b}+x S(b x)^2-\frac {S\left (\sqrt {2} b x\right )}{\sqrt {2} \pi b} \]

Antiderivative was successfully verified.

[In]

Int[FresnelS[b*x]^2,x]

[Out]

(2*Cos[(b^2*Pi*x^2)/2]*FresnelS[b*x])/(b*Pi) + x*FresnelS[b*x]^2 - FresnelS[Sqrt[2]*b*x]/(Sqrt[2]*b*Pi)

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 3351

Int[Sin[(d_.)*((e_.) + (f_.)*(x_))^2], x_Symbol] :> Simp[(Sqrt[Pi/2]*FresnelS[Sqrt[2/Pi]*Rt[d, 2]*(e + f*x)])/
(f*Rt[d, 2]), x] /; FreeQ[{d, e, f}, x]

Rule 6420

Int[FresnelS[(a_.) + (b_.)*(x_)]^2, x_Symbol] :> Simp[((a + b*x)*FresnelS[a + b*x]^2)/b, x] - Dist[2, Int[(a +
 b*x)*Sin[(Pi*(a + b*x)^2)/2]*FresnelS[a + b*x], x], x] /; FreeQ[{a, b}, x]

Rule 6452

Int[FresnelS[(b_.)*(x_)]*(x_)*Sin[(d_.)*(x_)^2], x_Symbol] :> -Simp[(Cos[d*x^2]*FresnelS[b*x])/(2*d), x] + Dis
t[1/(2*b*Pi), Int[Sin[2*d*x^2], x], x] /; FreeQ[{b, d}, x] && EqQ[d^2, (Pi^2*b^4)/4]

Rubi steps

\begin {align*} \int S(b x)^2 \, dx &=x S(b x)^2-2 \int b x S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right ) \, dx\\ &=x S(b x)^2-(2 b) \int x S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right ) \, dx\\ &=\frac {2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{b \pi }+x S(b x)^2-\frac {\int \sin \left (b^2 \pi x^2\right ) \, dx}{\pi }\\ &=\frac {2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{b \pi }+x S(b x)^2-\frac {S\left (\sqrt {2} b x\right )}{\sqrt {2} b \pi }\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 55, normalized size = 1.00 \[ \frac {2 S(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b}+x S(b x)^2-\frac {S\left (\sqrt {2} b x\right )}{\sqrt {2} \pi b} \]

Antiderivative was successfully verified.

[In]

Integrate[FresnelS[b*x]^2,x]

[Out]

(2*Cos[(b^2*Pi*x^2)/2]*FresnelS[b*x])/(b*Pi) + x*FresnelS[b*x]^2 - FresnelS[Sqrt[2]*b*x]/(Sqrt[2]*b*Pi)

________________________________________________________________________________________

fricas [F]  time = 0.49, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\rm fresnels}\left (b x\right )^{2}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(fresnels(b*x)^2,x, algorithm="fricas")

[Out]

integral(fresnels(b*x)^2, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\rm fresnels}\left (b x\right )^{2}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(fresnels(b*x)^2,x, algorithm="giac")

[Out]

integrate(fresnels(b*x)^2, x)

________________________________________________________________________________________

maple [A]  time = 0.03, size = 49, normalized size = 0.89 \[ \frac {b x \mathrm {S}\left (b x \right )^{2}+\frac {2 \,\mathrm {S}\left (b x \right ) \cos \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{\pi }-\frac {\sqrt {2}\, \mathrm {S}\left (b x \sqrt {2}\right )}{2 \pi }}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(FresnelS(b*x)^2,x)

[Out]

1/b*(b*x*FresnelS(b*x)^2+2*FresnelS(b*x)/Pi*cos(1/2*b^2*Pi*x^2)-1/2/Pi*2^(1/2)*FresnelS(b*x*2^(1/2)))

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\rm fresnels}\left (b x\right )^{2}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(fresnels(b*x)^2,x, algorithm="maxima")

[Out]

integrate(fresnels(b*x)^2, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \[ \int {\mathrm {FresnelS}\left (b\,x\right )}^2 \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(FresnelS(b*x)^2,x)

[Out]

int(FresnelS(b*x)^2, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int S^{2}\left (b x\right )\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(fresnels(b*x)**2,x)

[Out]

Integral(fresnels(b*x)**2, x)

________________________________________________________________________________________