Optimal. Leaf size=30 \[ -\frac {\tanh ^{-1}\left (\frac {\sin (2 x)}{\sqrt {2} \sqrt {1-\cos (2 x)}}\right )}{\sqrt {2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2649, 206} \[ -\frac {\tanh ^{-1}\left (\frac {\sin (2 x)}{\sqrt {2} \sqrt {1-\cos (2 x)}}\right )}{\sqrt {2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 2649
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {1-\cos (2 x)}} \, dx &=-\operatorname {Subst}\left (\int \frac {1}{2-x^2} \, dx,x,\frac {\sin (2 x)}{\sqrt {1-\cos (2 x)}}\right )\\ &=-\frac {\tanh ^{-1}\left (\frac {\sin (2 x)}{\sqrt {2} \sqrt {1-\cos (2 x)}}\right )}{\sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 33, normalized size = 1.10 \[ -\frac {\sin (x) \left (\log \left (\cos \left (\frac {x}{2}\right )\right )-\log \left (\sin \left (\frac {x}{2}\right )\right )\right )}{\sqrt {1-\cos (2 x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {1-\cos (2 x)}} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.84, size = 58, normalized size = 1.93 \[ \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 ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.64, size = 16, normalized size = 0.53 \[ \frac {\sqrt {2} \log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) \right |}\right )}{2 \, \mathrm {sgn}\left (\sin \relax (x)\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.14, size = 17, normalized size = 0.57
method | result | size |
default | \(-\frac {\sin \relax (x ) \arctanh \left (\cos \relax (x )\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 \relax (x )}{\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 \relax (x )}{\sqrt {-\left ({\mathrm e}^{2 i x}-1\right )^{2} {\mathrm e}^{-2 i x}}}\) | \(67\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.17, size = 101, normalized size = 3.37 \[ -\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 ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.24, size = 28, normalized size = 0.93 \[ -\frac {\sqrt {2}\,\sin \left (2\,x\right )\,\mathrm {atanh}\left (\sqrt {{\cos \relax (x)}^2}\right )}{2\,\sqrt {1-{\cos \left (2\,x\right )}^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {1 - \cos {\left (2 x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________