Optimal. Leaf size=25 \[ \frac{\sin (x)}{3 (\cos (x)+1)}+\frac{\sin (x)}{3 (\cos (x)+1)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.013607, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 6, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {2650, 2648} \[ \frac{\sin (x)}{3 (\cos (x)+1)}+\frac{\sin (x)}{3 (\cos (x)+1)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2650
Rule 2648
Rubi steps
\begin{align*} \int \frac{1}{(1+\cos (x))^2} \, dx &=\frac{\sin (x)}{3 (1+\cos (x))^2}+\frac{1}{3} \int \frac{1}{1+\cos (x)} \, dx\\ &=\frac{\sin (x)}{3 (1+\cos (x))^2}+\frac{\sin (x)}{3 (1+\cos (x))}\\ \end{align*}
Mathematica [A] time = 0.0088695, size = 16, normalized size = 0.64 \[ \frac{\sin (x) (\cos (x)+2)}{3 (\cos (x)+1)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 16, normalized size = 0.6 \begin{align*}{\frac{1}{6} \left ( \tan \left ({\frac{x}{2}} \right ) \right ) ^{3}}+{\frac{1}{2}\tan \left ({\frac{x}{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.964996, size = 31, normalized size = 1.24 \begin{align*} \frac{\sin \left (x\right )}{2 \,{\left (\cos \left (x\right ) + 1\right )}} + \frac{\sin \left (x\right )^{3}}{6 \,{\left (\cos \left (x\right ) + 1\right )}^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.11919, size = 69, normalized size = 2.76 \begin{align*} \frac{{\left (\cos \left (x\right ) + 2\right )} \sin \left (x\right )}{3 \,{\left (\cos \left (x\right )^{2} + 2 \, \cos \left (x\right ) + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.408357, size = 14, normalized size = 0.56 \begin{align*} \frac{\tan ^{3}{\left (\frac{x}{2} \right )}}{6} + \frac{\tan{\left (\frac{x}{2} \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10102, size = 20, normalized size = 0.8 \begin{align*} \frac{1}{6} \, \tan \left (\frac{1}{2} \, x\right )^{3} + \frac{1}{2} \, \tan \left (\frac{1}{2} \, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]