Optimal. Leaf size=20 \[ -\frac {1}{2} x^2 \cos \left (x^2\right )+\frac {\sin \left (x^2\right )}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {3460, 3377,
2717} \begin {gather*} \frac {\sin \left (x^2\right )}{2}-\frac {1}{2} x^2 \cos \left (x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2717
Rule 3377
Rule 3460
Rubi steps
\begin {gather*} \begin {aligned} \text {Integral} &=\frac {1}{2} \text {Subst}\left (\int x \sin (x) \, dx,x,x^2\right )\\ &=-\frac {1}{2} x^2 \cos \left (x^2\right )+\frac {1}{2} \text {Subst}\left (\int \cos (x) \, dx,x,x^2\right )\\ &=-\frac {1}{2} x^2 \cos \left (x^2\right )+\frac {\sin \left (x^2\right )}{2}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 20, normalized size = 1.00 \begin {gather*} -\frac {1}{2} x^2 \cos \left (x^2\right )+\frac {\sin \left (x^2\right )}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 17, normalized size = 0.85
method | result | size |
derivativedivides | \(-\frac {x^{2} \cos \left (x^{2}\right )}{2}+\frac {\sin \left (x^{2}\right )}{2}\) | \(17\) |
default | \(-\frac {x^{2} \cos \left (x^{2}\right )}{2}+\frac {\sin \left (x^{2}\right )}{2}\) | \(17\) |
risch | \(-\frac {x^{2} \cos \left (x^{2}\right )}{2}+\frac {\sin \left (x^{2}\right )}{2}\) | \(17\) |
parallelrisch | \(-\frac {x^{2} \cos \left (x^{2}\right )}{2}+\frac {\sin \left (x^{2}\right )}{2}\) | \(17\) |
meijerg | \(\sqrt {\pi }\, \left (-\frac {x^{2} \cos \left (x^{2}\right )}{2 \sqrt {\pi }}+\frac {\sin \left (x^{2}\right )}{2 \sqrt {\pi }}\right )\) | \(27\) |
norman | \(\frac {-\frac {x^{2}}{2}+\frac {x^{2} \left (\tan ^{2}\left (\frac {x^{2}}{2}\right )\right )}{2}+\tan \left (\frac {x^{2}}{2}\right )}{1+\tan ^{2}\left (\frac {x^{2}}{2}\right )}\) | \(39\) |
parts | \(\frac {\sqrt {2}\, \sqrt {\pi }\, \mathrm {S}\left (\frac {\sqrt {2}\, x}{\sqrt {\pi }}\right ) x^{3}}{2}-\frac {3 \pi ^{2} \left (\frac {2 \,\mathrm {S}\left (\frac {\sqrt {2}\, x}{\sqrt {\pi }}\right ) \sqrt {2}\, x^{3}}{3 \pi ^{\frac {3}{2}}}+\frac {2 x^{2} \cos \left (x^{2}\right )}{3 \pi ^{2}}-\frac {2 \sin \left (x^{2}\right )}{3 \pi ^{2}}\right )}{4}\) | \(69\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.33, size = 16, normalized size = 0.80 \begin {gather*} -\frac {1}{2} \, x^{2} \cos \left (x^{2}\right ) + \frac {1}{2} \, \sin \left (x^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.60, size = 16, normalized size = 0.80 \begin {gather*} -\frac {1}{2} \, x^{2} \cos \left (x^{2}\right ) + \frac {1}{2} \, \sin \left (x^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.12, size = 15, normalized size = 0.75 \begin {gather*} - \frac {x^{2} \cos {\left (x^{2} \right )}}{2} + \frac {\sin {\left (x^{2} \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.50, size = 16, normalized size = 0.80 \begin {gather*} -\frac {1}{2} \, x^{2} \cos \left (x^{2}\right ) + \frac {1}{2} \, \sin \left (x^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.07, size = 16, normalized size = 0.80 \begin {gather*} \frac {\sin \left (x^2\right )}{2}-\frac {x^2\,\cos \left (x^2\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Chatgpt [A]
time = 1.00, size = 16, normalized size = 0.80 \begin {gather*} -\frac {x^{2} \cos \left (x^{2}\right )}{2}+\frac {\sin \left (x^{2}\right )}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________