Optimal. Leaf size=35 \[ \frac{6 \sin \left (\frac{x}{2}\right )}{13 \sqrt [3]{e^x}}-\frac{30 \cos \left (\frac{x}{2}\right )}{13 \sqrt [3]{e^x}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.111145, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {2281, 6742, 4433, 4432} \[ \frac{6 \sin \left (\frac{x}{2}\right )}{13 \sqrt [3]{e^x}}-\frac{30 \cos \left (\frac{x}{2}\right )}{13 \sqrt [3]{e^x}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2281
Rule 6742
Rule 4433
Rule 4432
Rubi steps
\begin{align*} \int \frac{\cos \left (\frac{x}{2}\right )+\sin \left (\frac{x}{2}\right )}{\sqrt [3]{e^x}} \, dx &=\frac{e^{x/3} \int e^{-x/3} \left (\cos \left (\frac{x}{2}\right )+\sin \left (\frac{x}{2}\right )\right ) \, dx}{\sqrt [3]{e^x}}\\ &=\frac{\left (6 e^{x/3}\right ) \operatorname{Subst}\left (\int e^{-2 x} (\cos (3 x)+\sin (3 x)) \, dx,x,\frac{x}{6}\right )}{\sqrt [3]{e^x}}\\ &=\frac{\left (6 e^{x/3}\right ) \operatorname{Subst}\left (\int \left (e^{-2 x} \cos (3 x)+e^{-2 x} \sin (3 x)\right ) \, dx,x,\frac{x}{6}\right )}{\sqrt [3]{e^x}}\\ &=\frac{\left (6 e^{x/3}\right ) \operatorname{Subst}\left (\int e^{-2 x} \cos (3 x) \, dx,x,\frac{x}{6}\right )}{\sqrt [3]{e^x}}+\frac{\left (6 e^{x/3}\right ) \operatorname{Subst}\left (\int e^{-2 x} \sin (3 x) \, dx,x,\frac{x}{6}\right )}{\sqrt [3]{e^x}}\\ &=-\frac{30 \cos \left (\frac{x}{2}\right )}{13 \sqrt [3]{e^x}}+\frac{6 \sin \left (\frac{x}{2}\right )}{13 \sqrt [3]{e^x}}\\ \end{align*}
Mathematica [A] time = 0.0585615, size = 26, normalized size = 0.74 \[ \frac{6 \left (\sin \left (\frac{x}{2}\right )-5 \cos \left (\frac{x}{2}\right )\right )}{13 \sqrt [3]{e^x}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.014, size = 22, normalized size = 0.6 \begin{align*} -{\frac{30}{13}{{\rm e}^{-{\frac{x}{3}}}}\cos \left ({\frac{x}{2}} \right ) }+{\frac{6}{13}{{\rm e}^{-{\frac{x}{3}}}}\sin \left ({\frac{x}{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.929995, size = 53, normalized size = 1.51 \begin{align*} -\frac{6}{13} \,{\left (3 \, \cos \left (\frac{1}{2} \, x\right ) + 2 \, \sin \left (\frac{1}{2} \, x\right )\right )} e^{\left (-\frac{1}{3} \, x\right )} - \frac{6}{13} \,{\left (2 \, \cos \left (\frac{1}{2} \, x\right ) - 3 \, \sin \left (\frac{1}{2} \, x\right )\right )} e^{\left (-\frac{1}{3} \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.17471, size = 80, normalized size = 2.29 \begin{align*} -\frac{30}{13} \, \cos \left (\frac{1}{2} \, x\right ) e^{\left (-\frac{1}{3} \, x\right )} + \frac{6}{13} \, e^{\left (-\frac{1}{3} \, x\right )} \sin \left (\frac{1}{2} \, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.829124, size = 29, normalized size = 0.83 \begin{align*} \frac{6 \sin{\left (\frac{x}{2} \right )}}{13 \sqrt [3]{e^{x}}} - \frac{30 \cos{\left (\frac{x}{2} \right )}}{13 \sqrt [3]{e^{x}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.0828, size = 53, normalized size = 1.51 \begin{align*} -\frac{6}{13} \,{\left (3 \, \cos \left (\frac{1}{2} \, x\right ) + 2 \, \sin \left (\frac{1}{2} \, x\right )\right )} e^{\left (-\frac{1}{3} \, x\right )} - \frac{6}{13} \,{\left (2 \, \cos \left (\frac{1}{2} \, x\right ) - 3 \, \sin \left (\frac{1}{2} \, x\right )\right )} e^{\left (-\frac{1}{3} \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]