Optimal. Leaf size=30 \[ \frac {1}{2} e^x x \cos (x)-\frac {1}{2} e^x \sin (x)+\frac {1}{2} e^x x \sin (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {4518, 4554,
4517} \begin {gather*} -\frac {1}{2} e^x \sin (x)+\frac {1}{2} e^x x \sin (x)+\frac {1}{2} e^x x \cos (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 4517
Rule 4518
Rule 4554
Rubi steps
\begin {align*} \int e^x x \cos (x) \, dx &=\frac {1}{2} e^x x \cos (x)+\frac {1}{2} e^x x \sin (x)-\int \left (\frac {1}{2} e^x \cos (x)+\frac {1}{2} e^x \sin (x)\right ) \, dx\\ &=\frac {1}{2} e^x x \cos (x)+\frac {1}{2} e^x x \sin (x)-\frac {1}{2} \int e^x \cos (x) \, dx-\frac {1}{2} \int e^x \sin (x) \, dx\\ &=\frac {1}{2} e^x x \cos (x)-\frac {1}{2} e^x \sin (x)+\frac {1}{2} e^x x \sin (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 18, normalized size = 0.60 \begin {gather*} \frac {1}{2} e^x (x \cos (x)+(-1+x) \sin (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 20, normalized size = 0.67
method | result | size |
default | \(\frac {{\mathrm e}^{x} x \cos \left (x \right )}{2}-\left (-\frac {x}{2}+\frac {1}{2}\right ) {\mathrm e}^{x} \sin \left (x \right )\) | \(20\) |
risch | \(\left (\frac {1}{8}-\frac {i}{8}\right ) \left (-1+i+2 x \right ) {\mathrm e}^{\left (1+i\right ) x}+\left (\frac {1}{8}+\frac {i}{8}\right ) \left (-1-i+2 x \right ) {\mathrm e}^{\left (1-i\right ) x}\) | \(36\) |
norman | \(\frac {{\mathrm e}^{x} x \tan \left (\frac {x}{2}\right )+\frac {{\mathrm e}^{x} x}{2}-{\mathrm e}^{x} \tan \left (\frac {x}{2}\right )-\frac {{\mathrm e}^{x} x \left (\tan ^{2}\left (\frac {x}{2}\right )\right )}{2}}{1+\tan ^{2}\left (\frac {x}{2}\right )}\) | \(45\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 3.27, size = 17, normalized size = 0.57 \begin {gather*} \frac {1}{2} \, x \cos \left (x\right ) e^{x} + \frac {1}{2} \, {\left (x - 1\right )} e^{x} \sin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.85, size = 17, normalized size = 0.57 \begin {gather*} \frac {1}{2} \, x \cos \left (x\right ) e^{x} + \frac {1}{2} \, {\left (x - 1\right )} e^{x} \sin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.17, size = 27, normalized size = 0.90 \begin {gather*} \frac {x e^{x} \sin {\left (x \right )}}{2} + \frac {x e^{x} \cos {\left (x \right )}}{2} - \frac {e^{x} \sin {\left (x \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.26, size = 15, normalized size = 0.50 \begin {gather*} \frac {1}{2} \, {\left (x \cos \left (x\right ) + {\left (x - 1\right )} \sin \left (x\right )\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.07, size = 17, normalized size = 0.57 \begin {gather*} \frac {{\mathrm {e}}^x\,\left (x\,\cos \left (x\right )-\sin \left (x\right )+x\,\sin \left (x\right )\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________