Optimal. Leaf size=184 \[ \frac {15 x^2}{4 b^5 \pi ^3}-\frac {x^6}{12 b \pi }+\frac {7 x^2 \cos \left (b^2 \pi x^2\right )}{4 b^5 \pi ^3}+\frac {5 x^3 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{b^4 \pi ^2}+\frac {15 S(b x)^2}{2 b^7 \pi ^3}-\frac {15 x S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^6 \pi ^3}+\frac {x^5 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^2 \pi }-\frac {11 \sin \left (b^2 \pi x^2\right )}{2 b^7 \pi ^4}+\frac {x^4 \sin \left (b^2 \pi x^2\right )}{4 b^3 \pi ^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 184, normalized size of antiderivative = 1.00, number of steps
used = 16, number of rules used = 9, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.450, Rules used = {6597, 3460,
3390, 30, 3377, 2717, 6589, 2714, 6575} \begin {gather*} \frac {15 S(b x)^2}{2 \pi ^3 b^7}+\frac {15 x^2}{4 \pi ^3 b^5}+\frac {x^5 S(b x) \sin \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b^2}-\frac {11 \sin \left (\pi b^2 x^2\right )}{2 \pi ^4 b^7}-\frac {15 x S(b x) \sin \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi ^3 b^6}+\frac {7 x^2 \cos \left (\pi b^2 x^2\right )}{4 \pi ^3 b^5}+\frac {5 x^3 S(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi ^2 b^4}+\frac {x^4 \sin \left (\pi b^2 x^2\right )}{4 \pi ^2 b^3}-\frac {x^6}{12 \pi b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 2714
Rule 2717
Rule 3377
Rule 3390
Rule 3460
Rule 6575
Rule 6589
Rule 6597
Rubi steps
\begin {align*} \int x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x) \, dx &=\frac {x^5 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^2 \pi }-\frac {5 \int x^4 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right ) \, dx}{b^2 \pi }-\frac {\int x^5 \sin ^2\left (\frac {1}{2} b^2 \pi x^2\right ) \, dx}{b \pi }\\ &=\frac {5 x^3 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{b^4 \pi ^2}+\frac {x^5 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^2 \pi }-\frac {15 \int x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x) \, dx}{b^4 \pi ^2}-\frac {5 \int x^3 \sin \left (b^2 \pi x^2\right ) \, dx}{2 b^3 \pi ^2}-\frac {\text {Subst}\left (\int x^2 \sin ^2\left (\frac {1}{2} b^2 \pi x\right ) \, dx,x,x^2\right )}{2 b \pi }\\ &=\frac {5 x^3 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{b^4 \pi ^2}-\frac {15 x S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^6 \pi ^3}+\frac {x^5 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^2 \pi }+\frac {15 \int S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right ) \, dx}{b^6 \pi ^3}+\frac {15 \int x \sin ^2\left (\frac {1}{2} b^2 \pi x^2\right ) \, dx}{b^5 \pi ^3}-\frac {5 \text {Subst}\left (\int x \sin \left (b^2 \pi x\right ) \, dx,x,x^2\right )}{4 b^3 \pi ^2}-\frac {\text {Subst}\left (\int x^2 \, dx,x,x^2\right )}{4 b \pi }+\frac {\text {Subst}\left (\int x^2 \cos \left (b^2 \pi x\right ) \, dx,x,x^2\right )}{4 b \pi }\\ &=-\frac {x^6}{12 b \pi }+\frac {5 x^2 \cos \left (b^2 \pi x^2\right )}{4 b^5 \pi ^3}+\frac {5 x^3 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{b^4 \pi ^2}-\frac {15 x S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^6 \pi ^3}+\frac {x^5 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^2 \pi }+\frac {x^4 \sin \left (b^2 \pi x^2\right )}{4 b^3 \pi ^2}+\frac {15 \text {Subst}(\int x \, dx,x,S(b x))}{b^7 \pi ^3}-\frac {5 \text {Subst}\left (\int \cos \left (b^2 \pi x\right ) \, dx,x,x^2\right )}{4 b^5 \pi ^3}+\frac {15 \text {Subst}\left (\int \sin ^2\left (\frac {1}{2} b^2 \pi x\right ) \, dx,x,x^2\right )}{2 b^5 \pi ^3}-\frac {\text {Subst}\left (\int x \sin \left (b^2 \pi x\right ) \, dx,x,x^2\right )}{2 b^3 \pi ^2}\\ &=\frac {15 x^2}{4 b^5 \pi ^3}-\frac {x^6}{12 b \pi }+\frac {7 x^2 \cos \left (b^2 \pi x^2\right )}{4 b^5 \pi ^3}+\frac {5 x^3 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{b^4 \pi ^2}+\frac {15 S(b x)^2}{2 b^7 \pi ^3}-\frac {15 x S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^6 \pi ^3}+\frac {x^5 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^2 \pi }-\frac {5 \sin \left (b^2 \pi x^2\right )}{b^7 \pi ^4}+\frac {x^4 \sin \left (b^2 \pi x^2\right )}{4 b^3 \pi ^2}-\frac {\text {Subst}\left (\int \cos \left (b^2 \pi x\right ) \, dx,x,x^2\right )}{2 b^5 \pi ^3}\\ &=\frac {15 x^2}{4 b^5 \pi ^3}-\frac {x^6}{12 b \pi }+\frac {7 x^2 \cos \left (b^2 \pi x^2\right )}{4 b^5 \pi ^3}+\frac {5 x^3 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{b^4 \pi ^2}+\frac {15 S(b x)^2}{2 b^7 \pi ^3}-\frac {15 x S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^6 \pi ^3}+\frac {x^5 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^2 \pi }-\frac {11 \sin \left (b^2 \pi x^2\right )}{2 b^7 \pi ^4}+\frac {x^4 \sin \left (b^2 \pi x^2\right )}{4 b^3 \pi ^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 184, normalized size = 1.00 \begin {gather*} \frac {15 x^2}{4 b^5 \pi ^3}-\frac {x^6}{12 b \pi }+\frac {7 x^2 \cos \left (b^2 \pi x^2\right )}{4 b^5 \pi ^3}+\frac {5 x^3 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) S(b x)}{b^4 \pi ^2}+\frac {15 S(b x)^2}{2 b^7 \pi ^3}-\frac {15 x S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^6 \pi ^3}+\frac {x^5 S(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^2 \pi }-\frac {11 \sin \left (b^2 \pi x^2\right )}{2 b^7 \pi ^4}+\frac {x^4 \sin \left (b^2 \pi x^2\right )}{4 b^3 \pi ^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.19, size = 0, normalized size = 0.00 \[\int x^{6} \cos \left (\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 [A]
time = 0.34, size = 141, normalized size = 0.77 \begin {gather*} -\frac {\pi ^{3} b^{6} x^{6} - 60 \, \pi ^{2} b^{3} x^{3} \cos \left (\frac {1}{2} \, \pi b^{2} x^{2}\right ) \operatorname {S}\left (b x\right ) - 42 \, \pi b^{2} x^{2} \cos \left (\frac {1}{2} \, \pi b^{2} x^{2}\right )^{2} - 24 \, \pi b^{2} x^{2} - 90 \, \pi \operatorname {S}\left (b x\right )^{2} - 6 \, {\left ({\left (\pi ^{2} b^{4} x^{4} - 22\right )} \cos \left (\frac {1}{2} \, \pi b^{2} x^{2}\right ) + 2 \, {\left (\pi ^{3} b^{5} x^{5} - 15 \, \pi b x\right )} \operatorname {S}\left (b x\right )\right )} \sin \left (\frac {1}{2} \, \pi b^{2} x^{2}\right )}{12 \, \pi ^{4} b^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 5.46, size = 264, normalized size = 1.43 \begin {gather*} \begin {cases} - \frac {x^{6} \sin ^{2}{\left (\frac {\pi b^{2} x^{2}}{2} \right )}}{12 \pi b} - \frac {x^{6} \cos ^{2}{\left (\frac {\pi b^{2} x^{2}}{2} \right )}}{12 \pi b} + \frac {x^{5} \sin {\left (\frac {\pi b^{2} x^{2}}{2} \right )} S\left (b x\right )}{\pi b^{2}} + \frac {x^{4} \sin {\left (\frac {\pi b^{2} x^{2}}{2} \right )} \cos {\left (\frac {\pi b^{2} x^{2}}{2} \right )}}{2 \pi ^{2} b^{3}} + \frac {5 x^{3} \cos {\left (\frac {\pi b^{2} x^{2}}{2} \right )} S\left (b x\right )}{\pi ^{2} b^{4}} + \frac {2 x^{2} \sin ^{2}{\left (\frac {\pi b^{2} x^{2}}{2} \right )}}{\pi ^{3} b^{5}} + \frac {11 x^{2} \cos ^{2}{\left (\frac {\pi b^{2} x^{2}}{2} \right )}}{2 \pi ^{3} b^{5}} - \frac {15 x \sin {\left (\frac {\pi b^{2} x^{2}}{2} \right )} S\left (b x\right )}{\pi ^{3} b^{6}} - \frac {11 \sin {\left (\frac {\pi b^{2} x^{2}}{2} \right )} \cos {\left (\frac {\pi b^{2} x^{2}}{2} \right )}}{\pi ^{4} b^{7}} + \frac {15 S^{2}\left (b x\right )}{2 \pi ^{3} b^{7}} & \text {for}\: b \neq 0 \\0 & \text {otherwise} \end {cases} \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 x^6\,\mathrm {FresnelS}\left (b\,x\right )\,\cos \left (\frac {\Pi \,b^2\,x^2}{2}\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________