Optimal. Leaf size=25 \[ \frac {\sin (x)}{3 (1+\cos (x))^2}+\frac {\sin (x)}{3 (1+\cos (x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 25, normalized size of antiderivative = 1.00, 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 = {2729, 2727}
\begin {gather*} \frac {\sin (x)}{3 (\cos (x)+1)}+\frac {\sin (x)}{3 (\cos (x)+1)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2727
Rule 2729
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.01, size = 16, normalized size = 0.64 \begin {gather*} \frac {(2+\cos (x)) \sin (x)}{3 (1+\cos (x))^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 1.85, size = 14, normalized size = 0.56 \begin {gather*} \frac {\left (3+\text {Tan}\left [\frac {x}{2}\right ]^2\right ) \text {Tan}\left [\frac {x}{2}\right ]}{6} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 16, normalized size = 0.64
method | result | size |
default | \(\frac {\left (\tan ^{3}\left (\frac {x}{2}\right )\right )}{6}+\frac {\tan \left (\frac {x}{2}\right )}{2}\) | \(16\) |
norman | \(\frac {\left (\tan ^{3}\left (\frac {x}{2}\right )\right )}{6}+\frac {\tan \left (\frac {x}{2}\right )}{2}\) | \(16\) |
risch | \(\frac {2 i \left (1+3 \,{\mathrm e}^{i x}\right )}{3 \left (1+{\mathrm e}^{i x}\right )^{3}}\) | \(22\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 23, normalized size = 0.92 \begin {gather*} \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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 20, normalized size = 0.80 \begin {gather*} \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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.19, size = 14, normalized size = 0.56 \begin {gather*} \frac {\tan ^{3}{\left (\frac {x}{2} \right )}}{6} + \frac {\tan {\left (\frac {x}{2} \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 21, normalized size = 0.84 \begin {gather*} \frac {2}{4} \left (\frac {1}{3} \tan ^{3}\left (\frac {x}{2}\right )+\tan \left (\frac {x}{2}\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.16, size = 14, normalized size = 0.56 \begin {gather*} \frac {\mathrm {tan}\left (\frac {x}{2}\right )\,\left ({\mathrm {tan}\left (\frac {x}{2}\right )}^2+3\right )}{6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________