\(\int x^2 \operatorname {FresnelS}(b x)^2 \, dx\) [36]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [A] (verified)
Fricas [A] (verification not implemented)
Sympy [F]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 10, antiderivative size = 124 \[ \int x^2 \operatorname {FresnelS}(b x)^2 \, dx=\frac {2 x}{3 b^2 \pi ^2}+\frac {x \cos \left (b^2 \pi x^2\right )}{6 b^2 \pi ^2}-\frac {5 \operatorname {FresnelC}\left (\sqrt {2} b x\right )}{6 \sqrt {2} b^3 \pi ^2}+\frac {2 x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) \operatorname {FresnelS}(b x)}{3 b \pi }+\frac {1}{3} x^3 \operatorname {FresnelS}(b x)^2-\frac {4 \operatorname {FresnelS}(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{3 b^3 \pi ^2} \] Output:

2/3*x/b^2/Pi^2+1/6*x*cos(b^2*Pi*x^2)/b^2/Pi^2-5/12*FresnelC(2^(1/2)*b*x)*2 
^(1/2)/b^3/Pi^2+2/3*x^2*cos(1/2*b^2*Pi*x^2)*FresnelS(b*x)/b/Pi+1/3*x^3*Fre 
snelS(b*x)^2-4/3*FresnelS(b*x)*sin(1/2*b^2*Pi*x^2)/b^3/Pi^2
 

Mathematica [A] (verified)

Time = 0.09 (sec) , antiderivative size = 100, normalized size of antiderivative = 0.81 \[ \int x^2 \operatorname {FresnelS}(b x)^2 \, dx=\frac {2 b x \left (4+\cos \left (b^2 \pi x^2\right )\right )-5 \sqrt {2} \operatorname {FresnelC}\left (\sqrt {2} b x\right )+4 b^3 \pi ^2 x^3 \operatorname {FresnelS}(b x)^2+8 \operatorname {FresnelS}(b x) \left (b^2 \pi x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right )-2 \sin \left (\frac {1}{2} b^2 \pi x^2\right )\right )}{12 b^3 \pi ^2} \] Input:

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

Output:

(2*b*x*(4 + Cos[b^2*Pi*x^2]) - 5*Sqrt[2]*FresnelC[Sqrt[2]*b*x] + 4*b^3*Pi^ 
2*x^3*FresnelS[b*x]^2 + 8*FresnelS[b*x]*(b^2*Pi*x^2*Cos[(b^2*Pi*x^2)/2] - 
2*Sin[(b^2*Pi*x^2)/2]))/(12*b^3*Pi^2)
 

Rubi [A] (verified)

Time = 0.66 (sec) , antiderivative size = 169, normalized size of antiderivative = 1.36, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.700, Rules used = {6984, 7008, 3866, 3833, 7014, 3838, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int x^2 \operatorname {FresnelS}(b x)^2 \, dx\)

\(\Big \downarrow \) 6984

\(\displaystyle \frac {1}{3} x^3 \operatorname {FresnelS}(b x)^2-\frac {2}{3} b \int x^3 \operatorname {FresnelS}(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )dx\)

\(\Big \downarrow \) 7008

\(\displaystyle \frac {1}{3} x^3 \operatorname {FresnelS}(b x)^2-\frac {2}{3} b \left (\frac {2 \int x \cos \left (\frac {1}{2} b^2 \pi x^2\right ) \operatorname {FresnelS}(b x)dx}{\pi b^2}+\frac {\int x^2 \sin \left (b^2 \pi x^2\right )dx}{2 \pi b}-\frac {x^2 \operatorname {FresnelS}(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b^2}\right )\)

\(\Big \downarrow \) 3866

\(\displaystyle \frac {1}{3} x^3 \operatorname {FresnelS}(b x)^2-\frac {2}{3} b \left (\frac {2 \int x \cos \left (\frac {1}{2} b^2 \pi x^2\right ) \operatorname {FresnelS}(b x)dx}{\pi b^2}+\frac {\frac {\int \cos \left (b^2 \pi x^2\right )dx}{2 \pi b^2}-\frac {x \cos \left (\pi b^2 x^2\right )}{2 \pi b^2}}{2 \pi b}-\frac {x^2 \operatorname {FresnelS}(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b^2}\right )\)

\(\Big \downarrow \) 3833

\(\displaystyle \frac {1}{3} x^3 \operatorname {FresnelS}(b x)^2-\frac {2}{3} b \left (\frac {2 \int x \cos \left (\frac {1}{2} b^2 \pi x^2\right ) \operatorname {FresnelS}(b x)dx}{\pi b^2}-\frac {x^2 \operatorname {FresnelS}(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b^2}+\frac {\frac {\operatorname {FresnelC}\left (\sqrt {2} b x\right )}{2 \sqrt {2} \pi b^3}-\frac {x \cos \left (\pi b^2 x^2\right )}{2 \pi b^2}}{2 \pi b}\right )\)

\(\Big \downarrow \) 7014

\(\displaystyle \frac {1}{3} x^3 \operatorname {FresnelS}(b x)^2-\frac {2}{3} b \left (\frac {2 \left (\frac {\operatorname {FresnelS}(b x) \sin \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b^2}-\frac {\int \sin ^2\left (\frac {1}{2} b^2 \pi x^2\right )dx}{\pi b}\right )}{\pi b^2}-\frac {x^2 \operatorname {FresnelS}(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b^2}+\frac {\frac {\operatorname {FresnelC}\left (\sqrt {2} b x\right )}{2 \sqrt {2} \pi b^3}-\frac {x \cos \left (\pi b^2 x^2\right )}{2 \pi b^2}}{2 \pi b}\right )\)

\(\Big \downarrow \) 3838

\(\displaystyle \frac {1}{3} x^3 \operatorname {FresnelS}(b x)^2-\frac {2}{3} b \left (\frac {2 \left (\frac {\operatorname {FresnelS}(b x) \sin \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b^2}-\frac {\int \left (\frac {1}{2}-\frac {1}{2} \cos \left (b^2 \pi x^2\right )\right )dx}{\pi b}\right )}{\pi b^2}-\frac {x^2 \operatorname {FresnelS}(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b^2}+\frac {\frac {\operatorname {FresnelC}\left (\sqrt {2} b x\right )}{2 \sqrt {2} \pi b^3}-\frac {x \cos \left (\pi b^2 x^2\right )}{2 \pi b^2}}{2 \pi b}\right )\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {1}{3} x^3 \operatorname {FresnelS}(b x)^2-\frac {2}{3} b \left (\frac {2 \left (\frac {\operatorname {FresnelS}(b x) \sin \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b^2}-\frac {\frac {x}{2}-\frac {\operatorname {FresnelC}\left (\sqrt {2} b x\right )}{2 \sqrt {2} b}}{\pi b}\right )}{\pi b^2}-\frac {x^2 \operatorname {FresnelS}(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b^2}+\frac {\frac {\operatorname {FresnelC}\left (\sqrt {2} b x\right )}{2 \sqrt {2} \pi b^3}-\frac {x \cos \left (\pi b^2 x^2\right )}{2 \pi b^2}}{2 \pi b}\right )\)

Input:

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

Output:

(x^3*FresnelS[b*x]^2)/3 - (2*b*((-1/2*(x*Cos[b^2*Pi*x^2])/(b^2*Pi) + Fresn 
elC[Sqrt[2]*b*x]/(2*Sqrt[2]*b^3*Pi))/(2*b*Pi) - (x^2*Cos[(b^2*Pi*x^2)/2]*F 
resnelS[b*x])/(b^2*Pi) + (2*(-((x/2 - FresnelC[Sqrt[2]*b*x]/(2*Sqrt[2]*b)) 
/(b*Pi)) + (FresnelS[b*x]*Sin[(b^2*Pi*x^2)/2])/(b^2*Pi)))/(b^2*Pi)))/3
 

Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

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

rule 3838
Int[((a_.) + (b_.)*Sin[(c_.) + (d_.)*((e_.) + (f_.)*(x_))^(n_)])^(p_), x_Sy 
mbol] :> Int[ExpandTrigReduce[(a + b*Sin[c + d*(e + f*x)^n])^p, x], x] /; F 
reeQ[{a, b, c, d, e, f}, x] && IGtQ[p, 1] && IGtQ[n, 1]
 

rule 3866
Int[((e_.)*(x_))^(m_.)*Sin[(c_.) + (d_.)*(x_)^(n_)], x_Symbol] :> Simp[(-e^ 
(n - 1))*(e*x)^(m - n + 1)*(Cos[c + d*x^n]/(d*n)), x] + Simp[e^n*((m - n + 
1)/(d*n))   Int[(e*x)^(m - n)*Cos[c + d*x^n], x], x] /; FreeQ[{c, d, e}, x] 
 && IGtQ[n, 0] && LtQ[n, m + 1]
 

rule 6984
Int[FresnelS[(b_.)*(x_)]^2*(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)*(Fresnel 
S[b*x]^2/(m + 1)), x] - Simp[2*(b/(m + 1))   Int[x^(m + 1)*Sin[(Pi/2)*b^2*x 
^2]*FresnelS[b*x], x], x] /; FreeQ[b, x] && IntegerQ[m] && NeQ[m, -1]
 

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

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

Time = 0.62 (sec) , antiderivative size = 122, normalized size of antiderivative = 0.98

method result size
derivativedivides \(\frac {\frac {\operatorname {FresnelS}\left (b x \right )^{2} b^{3} x^{3}}{3}-2 \,\operatorname {FresnelS}\left (b x \right ) \left (-\frac {b^{2} x^{2} \cos \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{3 \pi }+\frac {2 \sin \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{3 \pi ^{2}}\right )+\frac {2 b x}{3 \pi ^{2}}-\frac {\sqrt {2}\, \operatorname {FresnelC}\left (\sqrt {2}\, b x \right )}{3 \pi ^{2}}-\frac {-\frac {b x \cos \left (b^{2} \pi \,x^{2}\right )}{2 \pi }+\frac {\sqrt {2}\, \operatorname {FresnelC}\left (\sqrt {2}\, b x \right )}{4 \pi }}{3 \pi }}{b^{3}}\) \(122\)
default \(\frac {\frac {\operatorname {FresnelS}\left (b x \right )^{2} b^{3} x^{3}}{3}-2 \,\operatorname {FresnelS}\left (b x \right ) \left (-\frac {b^{2} x^{2} \cos \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{3 \pi }+\frac {2 \sin \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{3 \pi ^{2}}\right )+\frac {2 b x}{3 \pi ^{2}}-\frac {\sqrt {2}\, \operatorname {FresnelC}\left (\sqrt {2}\, b x \right )}{3 \pi ^{2}}-\frac {-\frac {b x \cos \left (b^{2} \pi \,x^{2}\right )}{2 \pi }+\frac {\sqrt {2}\, \operatorname {FresnelC}\left (\sqrt {2}\, b x \right )}{4 \pi }}{3 \pi }}{b^{3}}\) \(122\)

Input:

int(x^2*FresnelS(b*x)^2,x,method=_RETURNVERBOSE)
 

Output:

1/b^3*(1/3*FresnelS(b*x)^2*b^3*x^3-2*FresnelS(b*x)*(-1/3/Pi*b^2*x^2*cos(1/ 
2*b^2*Pi*x^2)+2/3/Pi^2*sin(1/2*b^2*Pi*x^2))+2/3*b*x/Pi^2-1/3/Pi^2*2^(1/2)* 
FresnelC(2^(1/2)*b*x)-1/3/Pi*(-1/2/Pi*b*x*cos(b^2*Pi*x^2)+1/4/Pi*2^(1/2)*F 
resnelC(2^(1/2)*b*x)))
 

Fricas [A] (verification not implemented)

Time = 0.09 (sec) , antiderivative size = 111, normalized size of antiderivative = 0.90 \[ \int x^2 \operatorname {FresnelS}(b x)^2 \, dx=\frac {4 \, \pi ^{2} b^{4} x^{3} \operatorname {S}\left (b x\right )^{2} + 8 \, \pi b^{3} x^{2} \cos \left (\frac {1}{2} \, \pi b^{2} x^{2}\right ) \operatorname {S}\left (b x\right ) + 4 \, b^{2} x \cos \left (\frac {1}{2} \, \pi b^{2} x^{2}\right )^{2} + 6 \, b^{2} x - 16 \, b \operatorname {S}\left (b x\right ) \sin \left (\frac {1}{2} \, \pi b^{2} x^{2}\right ) - 5 \, \sqrt {2} \sqrt {b^{2}} \operatorname {C}\left (\sqrt {2} \sqrt {b^{2}} x\right )}{12 \, \pi ^{2} b^{4}} \] Input:

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

Output:

1/12*(4*pi^2*b^4*x^3*fresnel_sin(b*x)^2 + 8*pi*b^3*x^2*cos(1/2*pi*b^2*x^2) 
*fresnel_sin(b*x) + 4*b^2*x*cos(1/2*pi*b^2*x^2)^2 + 6*b^2*x - 16*b*fresnel 
_sin(b*x)*sin(1/2*pi*b^2*x^2) - 5*sqrt(2)*sqrt(b^2)*fresnel_cos(sqrt(2)*sq 
rt(b^2)*x))/(pi^2*b^4)
 

Sympy [F]

\[ \int x^2 \operatorname {FresnelS}(b x)^2 \, dx=\int x^{2} S^{2}\left (b x\right )\, dx \] Input:

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

Output:

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

Maxima [F]

\[ \int x^2 \operatorname {FresnelS}(b x)^2 \, dx=\int { x^{2} \operatorname {S}\left (b x\right )^{2} \,d x } \] Input:

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

Output:

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

Giac [F]

\[ \int x^2 \operatorname {FresnelS}(b x)^2 \, dx=\int { x^{2} \operatorname {S}\left (b x\right )^{2} \,d x } \] Input:

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

Output:

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

Mupad [F(-1)]

Timed out. \[ \int x^2 \operatorname {FresnelS}(b x)^2 \, dx=\int x^2\,{\mathrm {FresnelS}\left (b\,x\right )}^2 \,d x \] Input:

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

Output:

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

Reduce [F]

\[ \int x^2 \operatorname {FresnelS}(b x)^2 \, dx=\int x^{2} \mathrm {FresnelS}\left (b x \right )^{2}d x \] Input:

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

Output:

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