Optimal. Leaf size=54 \[ x \text {FresnelC}(b x)^2+\frac {S\left (\sqrt {2} b x\right )}{\sqrt {2} b \pi }-\frac {2 \text {FresnelC}(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b \pi } \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 54, 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 = {6556, 12, 6588,
3432} \begin {gather*} -\frac {2 \text {FresnelC}(b x) \sin \left (\frac {1}{2} \pi b^2 x^2\right )}{\pi b}+x \text {FresnelC}(b x)^2+\frac {S\left (\sqrt {2} b x\right )}{\sqrt {2} \pi b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 3432
Rule 6556
Rule 6588
Rubi steps
\begin {align*} \int C(b x)^2 \, dx &=x C(b x)^2-2 \int b x \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x) \, dx\\ &=x C(b x)^2-(2 b) \int x \cos \left (\frac {1}{2} b^2 \pi x^2\right ) C(b x) \, dx\\ &=x C(b x)^2-\frac {2 C(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b \pi }+\frac {\int \sin \left (b^2 \pi x^2\right ) \, dx}{\pi }\\ &=x C(b x)^2+\frac {S\left (\sqrt {2} b x\right )}{\sqrt {2} b \pi }-\frac {2 C(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b \pi }\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 54, normalized size = 1.00 \begin {gather*} x \text {FresnelC}(b x)^2+\frac {S\left (\sqrt {2} b x\right )}{\sqrt {2} b \pi }-\frac {2 \text {FresnelC}(b x) \sin \left (\frac {1}{2} b^2 \pi x^2\right )}{b \pi } \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.40, size = 49, normalized size = 0.91
method | result | size |
derivativedivides | \(\frac {\FresnelC \left (b x \right )^{2} b x -\frac {2 \FresnelC \left (b x \right ) \sin \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{\pi }+\frac {\sqrt {2}\, \mathrm {S}\left (b x \sqrt {2}\right )}{2 \pi }}{b}\) | \(49\) |
default | \(\frac {\FresnelC \left (b x \right )^{2} b x -\frac {2 \FresnelC \left (b x \right ) \sin \left (\frac {b^{2} \pi \,x^{2}}{2}\right )}{\pi }+\frac {\sqrt {2}\, \mathrm {S}\left (b x \sqrt {2}\right )}{2 \pi }}{b}\) | \(49\) |
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.36, size = 59, normalized size = 1.09 \begin {gather*} \frac {2 \, \pi b^{2} x \operatorname {C}\left (b x\right )^{2} - 4 \, b \operatorname {C}\left (b x\right ) \sin \left (\frac {1}{2} \, \pi b^{2} x^{2}\right ) + \sqrt {2} \sqrt {b^{2}} \operatorname {S}\left (\sqrt {2} \sqrt {b^{2}} x\right )}{2 \, \pi b^{2}} \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 C^{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.02 \begin {gather*} \int {\mathrm {FresnelC}\left (b\,x\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________