Integrand size = 12, antiderivative size = 30 \[ \int \frac {1}{\sqrt {1-\cos (2 x)}} \, dx=-\frac {\text {arctanh}\left (\frac {\sin (2 x)}{\sqrt {2} \sqrt {1-\cos (2 x)}}\right )}{\sqrt {2}} \]
[Out]
Time = 0.01 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2728, 212} \[ \int \frac {1}{\sqrt {1-\cos (2 x)}} \, dx=-\frac {\text {arctanh}\left (\frac {\sin (2 x)}{\sqrt {2} \sqrt {1-\cos (2 x)}}\right )}{\sqrt {2}} \]
[In]
[Out]
Rule 212
Rule 2728
Rubi steps \begin{align*} \text {integral}& = -\text {Subst}\left (\int \frac {1}{2-x^2} \, dx,x,\frac {\sin (2 x)}{\sqrt {1-\cos (2 x)}}\right ) \\ & = -\frac {\text {arctanh}\left (\frac {\sin (2 x)}{\sqrt {2} \sqrt {1-\cos (2 x)}}\right )}{\sqrt {2}} \\ \end{align*}
Time = 0.04 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.10 \[ \int \frac {1}{\sqrt {1-\cos (2 x)}} \, dx=-\frac {\left (\log \left (\cos \left (\frac {x}{2}\right )\right )-\log \left (\sin \left (\frac {x}{2}\right )\right )\right ) \sin (x)}{\sqrt {1-\cos (2 x)}} \]
[In]
[Out]
Time = 0.36 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.57
method | result | size |
default | \(-\frac {\sin \left (x \right ) \operatorname {arctanh}\left (\cos \left (x \right )\right ) \sqrt {2}}{\sqrt {2-2 \cos \left (2 x \right )}}\) | \(17\) |
risch | \(-\frac {\sqrt {2}\, \ln \left ({\mathrm e}^{i x}+1\right ) \sin \left (x \right )}{\sqrt {-\left ({\mathrm e}^{2 i x}-1\right )^{2} {\mathrm e}^{-2 i x}}}+\frac {\sqrt {2}\, \ln \left ({\mathrm e}^{i x}-1\right ) \sin \left (x \right )}{\sqrt {-\left ({\mathrm e}^{2 i x}-1\right )^{2} {\mathrm e}^{-2 i x}}}\) | \(67\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 58 vs. \(2 (25) = 50\).
Time = 0.25 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.93 \[ \int \frac {1}{\sqrt {1-\cos (2 x)}} \, dx=\frac {1}{4} \, \sqrt {2} \log \left (-\frac {{\left (\cos \left (2 \, x\right ) + 3\right )} \sin \left (2 \, x\right ) - 2 \, {\left (\sqrt {2} \cos \left (2 \, x\right ) + \sqrt {2}\right )} \sqrt {-\cos \left (2 \, x\right ) + 1}}{{\left (\cos \left (2 \, x\right ) - 1\right )} \sin \left (2 \, x\right )}\right ) \]
[In]
[Out]
\[ \int \frac {1}{\sqrt {1-\cos (2 x)}} \, dx=\int \frac {1}{\sqrt {1 - \cos {\left (2 x \right )}}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 101 vs. \(2 (25) = 50\).
Time = 0.32 (sec) , antiderivative size = 101, normalized size of antiderivative = 3.37 \[ \int \frac {1}{\sqrt {1-\cos (2 x)}} \, dx=-\frac {1}{4} \, \sqrt {2} \log \left (\cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, x\right ), \cos \left (2 \, x\right )\right )\right )^{2} + \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, x\right ), \cos \left (2 \, x\right )\right )\right )^{2} + 2 \, \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, x\right ), \cos \left (2 \, x\right )\right )\right ) + 1\right ) + \frac {1}{4} \, \sqrt {2} \log \left (\cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, x\right ), \cos \left (2 \, x\right )\right )\right )^{2} + \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, x\right ), \cos \left (2 \, x\right )\right )\right )^{2} - 2 \, \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, x\right ), \cos \left (2 \, x\right )\right )\right ) + 1\right ) \]
[In]
[Out]
none
Time = 0.34 (sec) , antiderivative size = 16, normalized size of antiderivative = 0.53 \[ \int \frac {1}{\sqrt {1-\cos (2 x)}} \, dx=\frac {\sqrt {2} \log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) \right |}\right )}{2 \, \mathrm {sgn}\left (\sin \left (x\right )\right )} \]
[In]
[Out]
Time = 0.27 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.93 \[ \int \frac {1}{\sqrt {1-\cos (2 x)}} \, dx=-\frac {\sqrt {2}\,\sin \left (2\,x\right )\,\mathrm {atanh}\left (\sqrt {{\cos \left (x\right )}^2}\right )}{2\,\sqrt {1-{\cos \left (2\,x\right )}^2}} \]
[In]
[Out]