Optimal. Leaf size=23 \[ \frac {x}{2}+\frac {\operatorname {FresnelC}\left (2^{3/4} x\right )}{2\ 2^{3/4}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3439, 3433}
\begin {gather*} \frac {\operatorname {FresnelC}\left (2^{3/4} x\right )}{2\ 2^{3/4}}+\frac {x}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3433
Rule 3439
Rubi steps
\begin {gather*} \begin {aligned} \text {Integral} &=\int \left (\frac {1}{2}+\frac {1}{2} \cos \left (\sqrt {2} \pi x^2\right )\right ) \, dx\\ &=\frac {x}{2}+\frac {1}{2} \int \cos \left (\sqrt {2} \pi x^2\right ) \, dx\\ &=\frac {x}{2}+\frac {\operatorname {FresnelC}\left (2^{3/4} x\right )}{2\ 2^{3/4}}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 22, normalized size = 0.96 \begin {gather*} \frac {1}{4} \left (2 x+\sqrt [4]{2} \operatorname {FresnelC}\left (2^{3/4} x\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(33\) vs.
\(2(15)=30\).
time = 0.12, size = 34, normalized size = 1.48
method | result | size |
default | \(\frac {x}{2}+\frac {\sqrt {2}\, \sqrt {\pi }\, \mathrm {C}\left (\frac {2 \sqrt {\pi }\, x}{\sqrt {\pi \sqrt {2}}}\right )}{4 \sqrt {\pi \sqrt {2}}}\) | \(34\) |
risch | \(\frac {x}{2}+\frac {\sqrt {\pi }\, \erf \left (\sqrt {i \pi \sqrt {2}}\, x \right )}{8 \sqrt {i \pi \sqrt {2}}}+\frac {\sqrt {\pi }\, \erf \left (\sqrt {-i \pi \sqrt {2}}\, x \right )}{8 \sqrt {-i \pi \sqrt {2}}}\) | \(57\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.45, size = 46, normalized size = 2.00 \begin {gather*} -\frac {2^{\frac {1}{4}} \pi ^{2} {\left (\left (i - 1\right ) \, \operatorname {erf}\left (\sqrt {i \, \sqrt {2} \pi } x\right ) - \left (i + 1\right ) \, \operatorname {erf}\left (\sqrt {-i \, \sqrt {2} \pi } x\right )\right )} - 8 \, \pi ^{2} x}{16 \, \pi ^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.61, size = 15, normalized size = 0.65 \begin {gather*} \frac {1}{4} \cdot 2^{\frac {1}{4}} \operatorname {C}\left (2^{\frac {3}{4}} x\right ) + \frac {1}{2} \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.48, size = 27, normalized size = 1.17 \begin {gather*} \frac {x}{2} + \frac {\sqrt [4]{2} C\left (2^{\frac {3}{4}} x\right ) \Gamma \left (\frac {1}{4}\right )}{16 \Gamma \left (\frac {5}{4}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 0.47, size = 42, normalized size = 1.83 \begin {gather*} -\left (\frac {1}{16} i + \frac {1}{16}\right ) \cdot 2^{\frac {1}{4}} \operatorname {erf}\left (\left (\frac {1}{2} i - \frac {1}{2}\right ) \, \sqrt {2} \sqrt {\sqrt {2} \pi } x\right ) + \left (\frac {1}{16} i - \frac {1}{16}\right ) \cdot 2^{\frac {1}{4}} \operatorname {erf}\left (-\left (\frac {1}{2} i + \frac {1}{2}\right ) \, \sqrt {2} \sqrt {\sqrt {2} \pi } x\right ) + \frac {1}{2} \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int {\cos \left (\frac {\sqrt {2}\,\Pi \,x^2}{2}\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Chatgpt [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {not solved} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________