Integrand size = 11, antiderivative size = 14 \[ \int \csc (2 x) (1-\tan (x)) \, dx=\frac {1}{2} \log (\tan (x))-\frac {\tan (x)}{2} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {12} \[ \int \csc (2 x) (1-\tan (x)) \, dx=\frac {1}{2} \log (\tan (x))-\frac {\tan (x)}{2} \]
[In]
[Out]
Rule 12
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {1}{2} \left (-1+\frac {1}{x}\right ) \, dx,x,\tan (x)\right ) \\ & = \frac {1}{2} \text {Subst}\left (\int \left (-1+\frac {1}{x}\right ) \, dx,x,\tan (x)\right ) \\ & = \frac {1}{2} \log (\tan (x))-\frac {\tan (x)}{2} \\ \end{align*}
Time = 0.06 (sec) , antiderivative size = 21, normalized size of antiderivative = 1.50 \[ \int \csc (2 x) (1-\tan (x)) \, dx=-\frac {1}{2} \log (\cos (x))+\frac {1}{2} \log (\sin (x))-\frac {\tan (x)}{2} \]
[In]
[Out]
Time = 0.20 (sec) , antiderivative size = 11, normalized size of antiderivative = 0.79
method | result | size |
derivativedivides | \(\frac {\ln \left (\tan \left (x \right )\right )}{2}-\frac {\tan \left (x \right )}{2}\) | \(11\) |
default | \(\frac {\ln \left (\tan \left (x \right )\right )}{2}-\frac {\tan \left (x \right )}{2}\) | \(11\) |
norman | \(\frac {\ln \left (\tan \left (x \right )\right )}{2}-\frac {\tan \left (x \right )}{2}\) | \(11\) |
parallelrisch | \(\ln \left (\sqrt {\tan }\left (x \right )\right )-\frac {\tan \left (x \right )}{2}\) | \(11\) |
risch | \(-\frac {i}{{\mathrm e}^{2 i x}+1}+\frac {\ln \left ({\mathrm e}^{2 i x}-1\right )}{2}-\frac {\ln \left ({\mathrm e}^{2 i x}+1\right )}{2}\) | \(34\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 32 vs. \(2 (10) = 20\).
Time = 0.25 (sec) , antiderivative size = 32, normalized size of antiderivative = 2.29 \[ \int \csc (2 x) (1-\tan (x)) \, dx=\frac {1}{4} \, \log \left (\frac {\tan \left (x\right )^{2}}{\tan \left (x\right )^{2} + 1}\right ) - \frac {1}{4} \, \log \left (\frac {1}{\tan \left (x\right )^{2} + 1}\right ) - \frac {1}{2} \, \tan \left (x\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 27 vs. \(2 (10) = 20\).
Time = 0.50 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.93 \[ \int \csc (2 x) (1-\tan (x)) \, dx=\frac {\log {\left (\cos {\left (2 x \right )} - 1 \right )}}{4} - \frac {\log {\left (\cos {\left (2 x \right )} + 1 \right )}}{4} - \frac {\sin {\left (x \right )}}{2 \cos {\left (x \right )}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 47 vs. \(2 (10) = 20\).
Time = 0.22 (sec) , antiderivative size = 47, normalized size of antiderivative = 3.36 \[ \int \csc (2 x) (1-\tan (x)) \, dx=-\frac {\sin \left (2 \, x\right )}{\cos \left (2 \, x\right )^{2} + \sin \left (2 \, x\right )^{2} + 2 \, \cos \left (2 \, x\right ) + 1} - \frac {1}{4} \, \log \left (\cos \left (2 \, x\right ) + 1\right ) + \frac {1}{4} \, \log \left (\cos \left (2 \, x\right ) - 1\right ) \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 11, normalized size of antiderivative = 0.79 \[ \int \csc (2 x) (1-\tan (x)) \, dx=\frac {1}{2} \, \log \left ({\left | \tan \left (x\right ) \right |}\right ) - \frac {1}{2} \, \tan \left (x\right ) \]
[In]
[Out]
Time = 0.28 (sec) , antiderivative size = 10, normalized size of antiderivative = 0.71 \[ \int \csc (2 x) (1-\tan (x)) \, dx=\frac {\ln \left (\mathrm {tan}\left (x\right )\right )}{2}-\frac {\mathrm {tan}\left (x\right )}{2} \]
[In]
[Out]