Optimal. Leaf size=218 \[ -\frac {4 x^3}{b^5 \pi ^3}+\frac {x^7}{14 b \pi }+\frac {17 x^3 \cos \left (b^2 \pi x^2\right )}{8 b^5 \pi ^3}+\frac {24 x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) \text {FresnelC}(b x)}{b^6 \pi ^3}-\frac {x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) \text {FresnelC}(b x)}{b^2 \pi }+\frac {531 S\left (\sqrt {2} b x\right )}{16 \sqrt {2} b^8 \pi ^4}-\frac {48 \text {FresnelC}(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^8 \pi ^4}+\frac {6 x^4 \text {FresnelC}(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^4 \pi ^2}-\frac {147 x \sin \left (b^2 \pi x^2\right )}{16 b^7 \pi ^4}+\frac {x^5 \sin \left (b^2 \pi x^2\right )}{4 b^3 \pi ^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 218, normalized size of antiderivative = 1.00, number of steps
used = 18, number of rules used = 8, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {6598, 6590,
6588, 3432, 3473, 30, 3467, 3466} \begin {gather*} \frac {531 S\left (\sqrt {2} b x\right )}{16 \sqrt {2} \pi ^4 b^8}-\frac {4 x^3}{\pi ^3 b^5}-\frac {x^6 \text {FresnelC}(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b^2}-\frac {48 \text {FresnelC}(b x) \sin \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi ^4 b^8}-\frac {147 x \sin \left (\pi b^2 x^2\right )}{16 \pi ^4 b^7}+\frac {24 x^2 \text {FresnelC}(b x) \cos \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi ^3 b^6}+\frac {17 x^3 \cos \left (\pi b^2 x^2\right )}{8 \pi ^3 b^5}+\frac {6 x^4 \text {FresnelC}(b x) \sin \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi ^2 b^4}+\frac {x^5 \sin \left (\pi b^2 x^2\right )}{4 \pi ^2 b^3}+\frac {x^7}{14 \pi b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 3432
Rule 3466
Rule 3467
Rule 3473
Rule 6588
Rule 6590
Rule 6598
Rubi steps
\begin {align*} \int x^7 C(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right ) \, dx &=-\frac {x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x)}{b^2 \pi }+\frac {6 \int x^5 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x) \, dx}{b^2 \pi }+\frac {\int x^6 \cos ^2\left (\frac {1}{2} b^2 \pi x^2\right ) \, dx}{b \pi }\\ &=-\frac {x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x)}{b^2 \pi }+\frac {6 x^4 C(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^4 \pi ^2}-\frac {24 \int x^3 C(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right ) \, dx}{b^4 \pi ^2}-\frac {3 \int x^4 \sin \left (b^2 \pi x^2\right ) \, dx}{b^3 \pi ^2}+\frac {\int x^6 \, dx}{2 b \pi }+\frac {\int x^6 \cos \left (b^2 \pi x^2\right ) \, dx}{2 b \pi }\\ &=\frac {x^7}{14 b \pi }+\frac {3 x^3 \cos \left (b^2 \pi x^2\right )}{2 b^5 \pi ^3}+\frac {24 x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x)}{b^6 \pi ^3}-\frac {x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x)}{b^2 \pi }+\frac {6 x^4 C(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^4 \pi ^2}+\frac {x^5 \sin \left (b^2 \pi x^2\right )}{4 b^3 \pi ^2}-\frac {48 \int x \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x) \, dx}{b^6 \pi ^3}-\frac {9 \int x^2 \cos \left (b^2 \pi x^2\right ) \, dx}{2 b^5 \pi ^3}-\frac {24 \int x^2 \cos ^2\left (\frac {1}{2} b^2 \pi x^2\right ) \, dx}{b^5 \pi ^3}-\frac {5 \int x^4 \sin \left (b^2 \pi x^2\right ) \, dx}{4 b^3 \pi ^2}\\ &=\frac {x^7}{14 b \pi }+\frac {17 x^3 \cos \left (b^2 \pi x^2\right )}{8 b^5 \pi ^3}+\frac {24 x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x)}{b^6 \pi ^3}-\frac {x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x)}{b^2 \pi }-\frac {48 C(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^8 \pi ^4}+\frac {6 x^4 C(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^4 \pi ^2}-\frac {9 x \sin \left (b^2 \pi x^2\right )}{4 b^7 \pi ^4}+\frac {x^5 \sin \left (b^2 \pi x^2\right )}{4 b^3 \pi ^2}+\frac {9 \int \sin \left (b^2 \pi x^2\right ) \, dx}{4 b^7 \pi ^4}+\frac {24 \int \sin \left (b^2 \pi x^2\right ) \, dx}{b^7 \pi ^4}-\frac {15 \int x^2 \cos \left (b^2 \pi x^2\right ) \, dx}{8 b^5 \pi ^3}-\frac {12 \int x^2 \, dx}{b^5 \pi ^3}-\frac {12 \int x^2 \cos \left (b^2 \pi x^2\right ) \, dx}{b^5 \pi ^3}\\ &=-\frac {4 x^3}{b^5 \pi ^3}+\frac {x^7}{14 b \pi }+\frac {17 x^3 \cos \left (b^2 \pi x^2\right )}{8 b^5 \pi ^3}+\frac {24 x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x)}{b^6 \pi ^3}-\frac {x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x)}{b^2 \pi }+\frac {9 S\left (\sqrt {2} b x\right )}{4 \sqrt {2} b^8 \pi ^4}+\frac {12 \sqrt {2} S\left (\sqrt {2} b x\right )}{b^8 \pi ^4}-\frac {48 C(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^8 \pi ^4}+\frac {6 x^4 C(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^4 \pi ^2}-\frac {147 x \sin \left (b^2 \pi x^2\right )}{16 b^7 \pi ^4}+\frac {x^5 \sin \left (b^2 \pi x^2\right )}{4 b^3 \pi ^2}+\frac {15 \int \sin \left (b^2 \pi x^2\right ) \, dx}{16 b^7 \pi ^4}+\frac {6 \int \sin \left (b^2 \pi x^2\right ) \, dx}{b^7 \pi ^4}\\ &=-\frac {4 x^3}{b^5 \pi ^3}+\frac {x^7}{14 b \pi }+\frac {17 x^3 \cos \left (b^2 \pi x^2\right )}{8 b^5 \pi ^3}+\frac {24 x^2 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x)}{b^6 \pi ^3}-\frac {x^6 \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x)}{b^2 \pi }+\frac {51 S\left (\sqrt {2} b x\right )}{16 \sqrt {2} b^8 \pi ^4}+\frac {15 \sqrt {2} S\left (\sqrt {2} b x\right )}{b^8 \pi ^4}-\frac {48 C(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^8 \pi ^4}+\frac {6 x^4 C(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b^4 \pi ^2}-\frac {147 x \sin \left (b^2 \pi x^2\right )}{16 b^7 \pi ^4}+\frac {x^5 \sin \left (b^2 \pi x^2\right )}{4 b^3 \pi ^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 163, normalized size = 0.75 \begin {gather*} \frac {-896 b^3 \pi x^3+16 b^7 \pi ^3 x^7+476 b^3 \pi x^3 \cos \left (b^2 \pi x^2\right )+3717 \sqrt {2} S\left (\sqrt {2} b x\right )-224 \text {FresnelC}(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 )-2058 b x \sin \left (b^2 \pi x^2\right )+56 b^5 \pi ^2 x^5 \sin \left (b^2 \pi x^2\right )}{224 b^8 \pi ^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.85, size = 322, normalized size = 1.48
method | result | size |
default | \(\frac {\frac {\FresnelC \left (b x \right ) \left (-\frac {b^{6} x^{6} \cos \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{\pi }+\frac {\frac {6 b^{4} x^{4} \sin \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{\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 )}{\pi }}{\pi }\right )}{b^{7}}-\frac {-\frac {\frac {1}{7} \pi ^{2} b^{7} x^{7}-8 b^{3} x^{3}}{2 \pi ^{3}}+\frac {-\frac {3 \pi \,b^{3} x^{3} \cos \left (b^{2} \pi \,x^{2}\right )}{2}+\frac {9 \pi \left (\frac {b x \sin \left (b^{2} \pi \,x^{2}\right )}{2 \pi }-\frac {\sqrt {2}\, \mathrm {S}\left (b x \sqrt {2}\right )}{4 \pi }\right )}{2}-12 \sqrt {2}\, \mathrm {S}\left (b x \sqrt {2}\right )}{\pi ^{4}}-\frac {\frac {\pi \,b^{5} x^{5} \sin \left (b^{2} \pi \,x^{2}\right )}{2}-\frac {5 \pi \left (-\frac {b^{3} x^{3} \cos \left (b^{2} \pi \,x^{2}\right )}{2 \pi }+\frac {\frac {3 b x \sin \left (b^{2} \pi \,x^{2}\right )}{4 \pi }-\frac {3 \sqrt {2}\, \mathrm {S}\left (b x \sqrt {2}\right )}{8 \pi }}{\pi }\right )}{2}-\frac {12 b x \sin \left (b^{2} \pi \,x^{2}\right )}{\pi }+\frac {6 \sqrt {2}\, \mathrm {S}\left (b x \sqrt {2}\right )}{\pi }}{2 \pi ^{3}}}{b^{7}}}{b}\) | \(322\) |
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.37, size = 169, normalized size = 0.78 \begin {gather*} \frac {16 \, \pi ^{3} b^{8} x^{7} + 952 \, \pi b^{4} x^{3} \cos \left (\frac {1}{2} \, \pi b^{2} x^{2}\right )^{2} - 1372 \, \pi b^{4} x^{3} - 224 \, {\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 {C}\left (b x\right ) + 3717 \, \sqrt {2} \sqrt {b^{2}} \operatorname {S}\left (\sqrt {2} \sqrt {b^{2}} x\right ) + 28 \, {\left ({\left (4 \, \pi ^{2} b^{6} x^{5} - 147 \, b^{2} x\right )} \cos \left (\frac {1}{2} \, \pi b^{2} x^{2}\right ) + 48 \, {\left (\pi ^{2} b^{5} x^{4} - 8 \, b\right )} \operatorname {C}\left (b x\right )\right )} \sin \left (\frac {1}{2} \, \pi b^{2} x^{2}\right )}{224 \, \pi ^{4} b^{9}} \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^{7} \sin {\left (\frac {\pi b^{2} x^{2}}{2} \right )} C\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^7\,\mathrm {FresnelC}\left (b\,x\right )\,\sin \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]
________________________________________________________________________________________