Optimal. Leaf size=239 \[ -\frac {48 x}{7 b^6 \pi ^4}+\frac {6 x^5}{35 b^2 \pi ^2}-\frac {21 x \cos \left (b^2 \pi x^2\right )}{8 b^6 \pi ^4}+\frac {x^5 \cos \left (b^2 \pi x^2\right )}{14 b^2 \pi ^2}+\frac {531 \text {FresnelC}\left (\sqrt {2} b x\right )}{56 \sqrt {2} b^7 \pi ^4}-\frac {48 x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b^5 \pi ^3}+\frac {2 x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b \pi }+\frac {1}{7} x^7 S(b x)^2+\frac {96 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{7 b^7 \pi ^4}-\frac {12 x^4 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{7 b^3 \pi ^2}-\frac {17 x^3 \sin \left (b^2 \pi x^2\right )}{28 b^4 \pi ^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 239, normalized size of antiderivative = 1.00, number of steps
used = 19, number of rules used = 10, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 1.000, Rules used = {6565, 6589,
6597, 3472, 30, 3467, 3466, 3433, 6595, 3438} \begin {gather*} \frac {531 \text {FresnelC}\left (\sqrt {2} b x\right )}{56 \sqrt {2} \pi ^4 b^7}-\frac {48 x}{7 \pi ^4 b^6}+\frac {2 x^6 S(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{7 \pi b}+\frac {6 x^5}{35 \pi ^2 b^2}+\frac {x^5 \cos \left (\pi b^2 x^2\right )}{14 \pi ^2 b^2}+\frac {96 S(b x) \sin \left (\frac {1}{2} \pi b^2 x^2\right )}{7 \pi ^4 b^7}-\frac {21 x \cos \left (\pi b^2 x^2\right )}{8 \pi ^4 b^6}-\frac {48 x^2 S(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{7 \pi ^3 b^5}-\frac {17 x^3 \sin \left (\pi b^2 x^2\right )}{28 \pi ^3 b^4}-\frac {12 x^4 S(b x) \sin \left (\frac {1}{2} \pi b^2 x^2\right )}{7 \pi ^2 b^3}+\frac {1}{7} x^7 S(b x)^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 3433
Rule 3438
Rule 3466
Rule 3467
Rule 3472
Rule 6565
Rule 6589
Rule 6595
Rule 6597
Rubi steps
\begin {align*} \int x^6 S(b x)^2 \, dx &=\frac {1}{7} x^7 S(b x)^2-\frac {1}{7} (2 b) \int x^7 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right ) \, dx\\ &=\frac {2 x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b \pi }+\frac {1}{7} x^7 S(b x)^2-\frac {\int x^6 \sin \left (b^2 \pi x^2\right ) \, dx}{7 \pi }-\frac {12 \int x^5 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x) \, dx}{7 b \pi }\\ &=\frac {x^5 \cos \left (b^2 \pi x^2\right )}{14 b^2 \pi ^2}+\frac {2 x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b \pi }+\frac {1}{7} x^7 S(b x)^2-\frac {12 x^4 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{7 b^3 \pi ^2}+\frac {48 \int x^3 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right ) \, dx}{7 b^3 \pi ^2}-\frac {5 \int x^4 \cos \left (b^2 \pi x^2\right ) \, dx}{14 b^2 \pi ^2}+\frac {12 \int x^4 \sin ^2\left (\frac {1}{2} b^2 \pi x^2\right ) \, dx}{7 b^2 \pi ^2}\\ &=\frac {x^5 \cos \left (b^2 \pi x^2\right )}{14 b^2 \pi ^2}-\frac {48 x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b^5 \pi ^3}+\frac {2 x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b \pi }+\frac {1}{7} x^7 S(b x)^2-\frac {12 x^4 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{7 b^3 \pi ^2}-\frac {5 x^3 \sin \left (b^2 \pi x^2\right )}{28 b^4 \pi ^3}+\frac {96 \int x \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x) \, dx}{7 b^5 \pi ^3}+\frac {15 \int x^2 \sin \left (b^2 \pi x^2\right ) \, dx}{28 b^4 \pi ^3}+\frac {24 \int x^2 \sin \left (b^2 \pi x^2\right ) \, dx}{7 b^4 \pi ^3}+\frac {6 \int x^4 \, dx}{7 b^2 \pi ^2}-\frac {6 \int x^4 \cos \left (b^2 \pi x^2\right ) \, dx}{7 b^2 \pi ^2}\\ &=\frac {6 x^5}{35 b^2 \pi ^2}-\frac {111 x \cos \left (b^2 \pi x^2\right )}{56 b^6 \pi ^4}+\frac {x^5 \cos \left (b^2 \pi x^2\right )}{14 b^2 \pi ^2}-\frac {48 x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b^5 \pi ^3}+\frac {2 x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b \pi }+\frac {1}{7} x^7 S(b x)^2+\frac {96 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{7 b^7 \pi ^4}-\frac {12 x^4 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{7 b^3 \pi ^2}-\frac {17 x^3 \sin \left (b^2 \pi x^2\right )}{28 b^4 \pi ^3}+\frac {15 \int \cos \left (b^2 \pi x^2\right ) \, dx}{56 b^6 \pi ^4}+\frac {12 \int \cos \left (b^2 \pi x^2\right ) \, dx}{7 b^6 \pi ^4}-\frac {96 \int \sin ^2\left (\frac {1}{2} b^2 \pi x^2\right ) \, dx}{7 b^6 \pi ^4}+\frac {9 \int x^2 \sin \left (b^2 \pi x^2\right ) \, dx}{7 b^4 \pi ^3}\\ &=\frac {6 x^5}{35 b^2 \pi ^2}-\frac {21 x \cos \left (b^2 \pi x^2\right )}{8 b^6 \pi ^4}+\frac {x^5 \cos \left (b^2 \pi x^2\right )}{14 b^2 \pi ^2}+\frac {15 C\left (\sqrt {2} b x\right )}{56 \sqrt {2} b^7 \pi ^4}+\frac {6 \sqrt {2} C\left (\sqrt {2} b x\right )}{7 b^7 \pi ^4}-\frac {48 x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b^5 \pi ^3}+\frac {2 x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b \pi }+\frac {1}{7} x^7 S(b x)^2+\frac {96 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{7 b^7 \pi ^4}-\frac {12 x^4 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{7 b^3 \pi ^2}-\frac {17 x^3 \sin \left (b^2 \pi x^2\right )}{28 b^4 \pi ^3}+\frac {9 \int \cos \left (b^2 \pi x^2\right ) \, dx}{14 b^6 \pi ^4}-\frac {96 \int \left (\frac {1}{2}-\frac {1}{2} \cos \left (b^2 \pi x^2\right )\right ) \, dx}{7 b^6 \pi ^4}\\ &=-\frac {48 x}{7 b^6 \pi ^4}+\frac {6 x^5}{35 b^2 \pi ^2}-\frac {21 x \cos \left (b^2 \pi x^2\right )}{8 b^6 \pi ^4}+\frac {x^5 \cos \left (b^2 \pi x^2\right )}{14 b^2 \pi ^2}+\frac {51 C\left (\sqrt {2} b x\right )}{56 \sqrt {2} b^7 \pi ^4}+\frac {6 \sqrt {2} C\left (\sqrt {2} b x\right )}{7 b^7 \pi ^4}-\frac {48 x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b^5 \pi ^3}+\frac {2 x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b \pi }+\frac {1}{7} x^7 S(b x)^2+\frac {96 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{7 b^7 \pi ^4}-\frac {12 x^4 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{7 b^3 \pi ^2}-\frac {17 x^3 \sin \left (b^2 \pi x^2\right )}{28 b^4 \pi ^3}+\frac {48 \int \cos \left (b^2 \pi x^2\right ) \, dx}{7 b^6 \pi ^4}\\ &=-\frac {48 x}{7 b^6 \pi ^4}+\frac {6 x^5}{35 b^2 \pi ^2}-\frac {21 x \cos \left (b^2 \pi x^2\right )}{8 b^6 \pi ^4}+\frac {x^5 \cos \left (b^2 \pi x^2\right )}{14 b^2 \pi ^2}+\frac {51 C\left (\sqrt {2} b x\right )}{56 \sqrt {2} b^7 \pi ^4}+\frac {30 \sqrt {2} C\left (\sqrt {2} b x\right )}{7 b^7 \pi ^4}-\frac {48 x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b^5 \pi ^3}+\frac {2 x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{7 b \pi }+\frac {1}{7} x^7 S(b x)^2+\frac {96 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{7 b^7 \pi ^4}-\frac {12 x^4 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{7 b^3 \pi ^2}-\frac {17 x^3 \sin \left (b^2 \pi x^2\right )}{28 b^4 \pi ^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.21, size = 171, normalized size = 0.72 \begin {gather*} \frac {2655 \sqrt {2} \text {FresnelC}\left (\sqrt {2} b x\right )+80 b^7 \pi ^4 x^7 S(b x)^2+160 S(b x) \left (b^2 \pi x^2 \left (-24+b^4 \pi ^2 x^4\right ) \cos \left (\frac {1}{2} b^2 \pi x^2\right )-6 \left (-8+b^4 \pi ^2 x^4\right ) \sin \left (\frac {1}{2} b^2 \pi x^2\right )\right )+2 b x \left (5 \left (-147+4 b^4 \pi ^2 x^4\right ) \cos \left (b^2 \pi x^2\right )-2 \left (960-24 b^4 \pi ^2 x^4+85 b^2 \pi x^2 \sin \left (b^2 \pi x^2\right )\right )\right )}{560 b^7 \pi ^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.65, size = 324, normalized size = 1.36
method | result | size |
derivativedivides | \(\frac {\frac {\mathrm {S}\left (b x \right )^{2} b^{7} x^{7}}{7}-2 \,\mathrm {S}\left (b x \right ) \left (-\frac {b^{6} x^{6} \cos \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{7 \pi }+\frac {\frac {6 b^{4} x^{4} \sin \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{7 \pi }-\frac {24 \left (-\frac {b^{2} x^{2} \cos \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{\pi }+\frac {2 \sin \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{\pi ^{2}}\right )}{7 \pi }}{\pi }\right )+\frac {\frac {6}{35} \pi ^{2} b^{5} x^{5}-\frac {48}{7} b x}{\pi ^{4}}-\frac {6 \left (\frac {\pi \,b^{3} x^{3} \sin \left (b^{2} \pi \,x^{2}\right )}{2}-\frac {3 \pi \left (-\frac {b x \cos \left (b^{2} \pi \,x^{2}\right )}{2 \pi }+\frac {\sqrt {2}\, \FresnelC \left (b x \sqrt {2}\right )}{4 \pi }\right )}{2}-4 \sqrt {2}\, \FresnelC \left (b x \sqrt {2}\right )\right )}{7 \pi ^{4}}-\frac {-\frac {\pi \,b^{5} x^{5} \cos \left (b^{2} \pi \,x^{2}\right )}{2}+\frac {5 \pi \left (\frac {b^{3} x^{3} \sin \left (b^{2} \pi \,x^{2}\right )}{2 \pi }-\frac {3 \left (-\frac {b x \cos \left (b^{2} \pi \,x^{2}\right )}{2 \pi }+\frac {\sqrt {2}\, \FresnelC \left (b x \sqrt {2}\right )}{4 \pi }\right )}{2 \pi }\right )}{2}+\frac {12 b x \cos \left (b^{2} \pi \,x^{2}\right )}{\pi }-\frac {6 \sqrt {2}\, \FresnelC \left (b x \sqrt {2}\right )}{\pi }}{7 \pi ^{3}}}{b^{7}}\) | \(324\) |
default | \(\frac {\frac {\mathrm {S}\left (b x \right )^{2} b^{7} x^{7}}{7}-2 \,\mathrm {S}\left (b x \right ) \left (-\frac {b^{6} x^{6} \cos \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{7 \pi }+\frac {\frac {6 b^{4} x^{4} \sin \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{7 \pi }-\frac {24 \left (-\frac {b^{2} x^{2} \cos \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{\pi }+\frac {2 \sin \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{\pi ^{2}}\right )}{7 \pi }}{\pi }\right )+\frac {\frac {6}{35} \pi ^{2} b^{5} x^{5}-\frac {48}{7} b x}{\pi ^{4}}-\frac {6 \left (\frac {\pi \,b^{3} x^{3} \sin \left (b^{2} \pi \,x^{2}\right )}{2}-\frac {3 \pi \left (-\frac {b x \cos \left (b^{2} \pi \,x^{2}\right )}{2 \pi }+\frac {\sqrt {2}\, \FresnelC \left (b x \sqrt {2}\right )}{4 \pi }\right )}{2}-4 \sqrt {2}\, \FresnelC \left (b x \sqrt {2}\right )\right )}{7 \pi ^{4}}-\frac {-\frac {\pi \,b^{5} x^{5} \cos \left (b^{2} \pi \,x^{2}\right )}{2}+\frac {5 \pi \left (\frac {b^{3} x^{3} \sin \left (b^{2} \pi \,x^{2}\right )}{2 \pi }-\frac {3 \left (-\frac {b x \cos \left (b^{2} \pi \,x^{2}\right )}{2 \pi }+\frac {\sqrt {2}\, \FresnelC \left (b x \sqrt {2}\right )}{4 \pi }\right )}{2 \pi }\right )}{2}+\frac {12 b x \cos \left (b^{2} \pi \,x^{2}\right )}{\pi }-\frac {6 \sqrt {2}\, \FresnelC \left (b x \sqrt {2}\right )}{\pi }}{7 \pi ^{3}}}{b^{7}}\) | \(324\) |
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 [A]
time = 0.38, size = 184, normalized size = 0.77 \begin {gather*} \frac {80 \, \pi ^{4} b^{8} x^{7} \operatorname {S}\left (b x\right )^{2} + 56 \, \pi ^{2} b^{6} x^{5} - 2370 \, b^{2} x + 20 \, {\left (4 \, \pi ^{2} b^{6} x^{5} - 147 \, b^{2} x\right )} \cos \left (\frac {1}{2} \, \pi b^{2} x^{2}\right )^{2} + 160 \, {\left (\pi ^{3} b^{7} x^{6} - 24 \, \pi b^{3} x^{2}\right )} \cos \left (\frac {1}{2} \, \pi b^{2} x^{2}\right ) \operatorname {S}\left (b x\right ) + 2655 \, \sqrt {2} \sqrt {b^{2}} \operatorname {C}\left (\sqrt {2} \sqrt {b^{2}} x\right ) - 40 \, {\left (17 \, \pi b^{4} x^{3} \cos \left (\frac {1}{2} \, \pi b^{2} x^{2}\right ) + 24 \, {\left (\pi ^{2} b^{5} x^{4} - 8 \, b\right )} \operatorname {S}\left (b x\right )\right )} \sin \left (\frac {1}{2} \, \pi b^{2} x^{2}\right )}{560 \, \pi ^{4} b^{8}} \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 x^{6} S^{2}\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.00 \begin {gather*} \int x^6\,{\mathrm {FresnelS}\left (b\,x\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________