Optimal. Leaf size=30 \[ -\frac{1}{2} e^x \sin (x)+\frac{1}{2} e^x x \sin (x)+\frac{1}{2} e^x x \cos (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0387418, antiderivative size = 30, normalized size of antiderivative = 1., 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 = {4433, 4466, 4432} \[ -\frac{1}{2} e^x \sin (x)+\frac{1}{2} e^x x \sin (x)+\frac{1}{2} e^x x \cos (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4433
Rule 4466
Rule 4432
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.0262369, size = 18, normalized size = 0.6 \[ \frac{1}{2} e^x ((x-1) \sin (x)+x \cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 20, normalized size = 0.7 \begin{align*}{\frac{{{\rm e}^{x}}x\cos \left ( x \right ) }{2}}- \left ( -{\frac{x}{2}}+{\frac{1}{2}} \right ){{\rm e}^{x}}\sin \left ( x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.940203, size = 23, normalized size = 0.77 \begin{align*} \frac{1}{2} \, x \cos \left (x\right ) e^{x} + \frac{1}{2} \,{\left (x - 1\right )} e^{x} \sin \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.92316, size = 58, normalized size = 1.93 \begin{align*} \frac{1}{2} \, x \cos \left (x\right ) e^{x} + \frac{1}{2} \,{\left (x - 1\right )} e^{x} \sin \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.793402, size = 27, normalized size = 0.9 \begin{align*} \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11615, size = 20, normalized size = 0.67 \begin{align*} \frac{1}{2} \,{\left (x \cos \left (x\right ) +{\left (x - 1\right )} \sin \left (x\right )\right )} e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]