Optimal. Leaf size=14 \[ \cos (x)-x \cos (x)+\sin (x)+x \sin (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.571, Rules used = {14, 3377, 2718,
2717} \begin {gather*} x \sin (x)+\sin (x)-x \cos (x)+\cos (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2717
Rule 2718
Rule 3377
Rubi steps
\begin {align*} \int x (\cos (x)+\sin (x)) \, dx &=\int (x \cos (x)+x \sin (x)) \, dx\\ &=\int x \cos (x) \, dx+\int x \sin (x) \, dx\\ &=-x \cos (x)+x \sin (x)+\int \cos (x) \, dx-\int \sin (x) \, dx\\ &=\cos (x)-x \cos (x)+\sin (x)+x \sin (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 14, normalized size = 1.00 \begin {gather*} \cos (x)-x \cos (x)+\sin (x)+x \sin (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 15, normalized size = 1.07
method | result | size |
default | \(\cos \left (x \right )-x \cos \left (x \right )+\sin \left (x \right )+x \sin \left (x \right )\) | \(15\) |
risch | \(\left (1-x \right ) \cos \left (x \right )+\left (1+x \right ) \sin \left (x \right )\) | \(16\) |
norman | \(\frac {x \left (\tan ^{2}\left (\frac {x}{2}\right )\right )-x +2 x \tan \left (\frac {x}{2}\right )+2 \tan \left (\frac {x}{2}\right )+2}{1+\tan ^{2}\left (\frac {x}{2}\right )}\) | \(38\) |
meijerg | \(2 \sqrt {\pi }\, \left (-\frac {1}{2 \sqrt {\pi }}+\frac {\cos \left (x \right )}{2 \sqrt {\pi }}+\frac {x \sin \left (x \right )}{2 \sqrt {\pi }}\right )+2 \sqrt {\pi }\, \left (-\frac {x \cos \left (x \right )}{2 \sqrt {\pi }}+\frac {\sin \left (x \right )}{2 \sqrt {\pi }}\right )\) | \(49\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.95, size = 14, normalized size = 1.00 \begin {gather*} -x \cos \left (x\right ) + x \sin \left (x\right ) + \cos \left (x\right ) + \sin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.54, size = 14, normalized size = 1.00 \begin {gather*} -{\left (x - 1\right )} \cos \left (x\right ) + {\left (x + 1\right )} \sin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 15, normalized size = 1.07 \begin {gather*} x \sin {\left (x \right )} - x \cos {\left (x \right )} + \sin {\left (x \right )} + \cos {\left (x \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 14, normalized size = 1.00 \begin {gather*} -x \cos \left (x\right ) + x \sin \left (x\right ) + \cos \left (x\right ) + \sin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 14, normalized size = 1.00 \begin {gather*} \cos \left (x\right )+\sin \left (x\right )-x\,\cos \left (x\right )+x\,\sin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________