Optimal. Leaf size=10 \[ \sin (x)-\frac{1}{2} \tanh ^{-1}(\sin (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0218386, antiderivative size = 10, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {388, 206} \[ \sin (x)-\frac{1}{2} \tanh ^{-1}(\sin (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 388
Rule 206
Rubi steps
\begin{align*} \int \cot (2 x) \sin (x) \, dx &=\operatorname{Subst}\left (\int \frac{1-2 x^2}{2-2 x^2} \, dx,x,\sin (x)\right )\\ &=\sin (x)-\operatorname{Subst}\left (\int \frac{1}{2-2 x^2} \, dx,x,\sin (x)\right )\\ &=-\frac{1}{2} \tanh ^{-1}(\sin (x))+\sin (x)\\ \end{align*}
Mathematica [A] time = 0.0090133, size = 10, normalized size = 1. \[ \sin (x)-\frac{1}{2} \tanh ^{-1}(\sin (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.026, size = 12, normalized size = 1.2 \begin{align*} \sin \left ( x \right ) -{\frac{\ln \left ( \sec \left ( x \right ) +\tan \left ( x \right ) \right ) }{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.49586, size = 50, normalized size = 5. \begin{align*} -\frac{1}{4} \, \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} + 2 \, \sin \left (x\right ) + 1\right ) + \frac{1}{4} \, \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} - 2 \, \sin \left (x\right ) + 1\right ) + \sin \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.41989, size = 73, normalized size = 7.3 \begin{align*} -\frac{1}{4} \, \log \left (\sin \left (x\right ) + 1\right ) + \frac{1}{4} \, \log \left (-\sin \left (x\right ) + 1\right ) + \sin \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 1.20567, size = 19, normalized size = 1.9 \begin{align*} \frac{\log{\left (\sin{\left (x \right )} - 1 \right )}}{4} - \frac{\log{\left (\sin{\left (x \right )} + 1 \right )}}{4} + \sin{\left (x \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.12964, size = 26, normalized size = 2.6 \begin{align*} -\frac{1}{4} \, \log \left (\sin \left (x\right ) + 1\right ) + \frac{1}{4} \, \log \left (-\sin \left (x\right ) + 1\right ) + \sin \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]