Optimal. Leaf size=27 \[ \frac {\tanh ^{-1}\left (\frac {\sin (2 x)}{\sqrt {2} \sqrt {\cos (2 x)+1}}\right )}{\sqrt {2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2649, 206} \[ \frac {\tanh ^{-1}\left (\frac {\sin (2 x)}{\sqrt {2} \sqrt {\cos (2 x)+1}}\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 = 47, normalized size = 1.74 \[ -\frac {\cos (x) \left (\log \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )-\log \left (\sin \left (\frac {x}{2}\right )+\cos \left (\frac {x}{2}\right )\right )\right )}{\sqrt {\cos (2 x)+1}} \]
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 = 1.15, size = 55, normalized size = 2.04 \[ \frac {1}{4} \, \sqrt {2} \log \left (-\frac {\cos \left (2 \, x\right )^{2} - 2 \, \sqrt {2} \sqrt {\cos \left (2 \, x\right ) + 1} \sin \left (2 \, x\right ) - 2 \, \cos \left (2 \, x\right ) - 3}{\cos \left (2 \, x\right )^{2} + 2 \, \cos \left (2 \, x\right ) + 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.63, size = 41, normalized size = 1.52 \[ \frac {\sqrt {2} \log \left ({\left | \frac {1}{\sin \relax (x)} + \sin \relax (x) + 2 \right |}\right )}{8 \, \mathrm {sgn}\left (\cos \relax (x)\right )} - \frac {\sqrt {2} \log \left ({\left | \frac {1}{\sin \relax (x)} + \sin \relax (x) - 2 \right |}\right )}{8 \, \mathrm {sgn}\left (\cos \relax (x)\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.09, size = 9, normalized size = 0.33
method | result | size |
default | \(\frac {\sqrt {2}\, \mathrm {am}^{-1}\left (x | 1\right )}{2}\) | \(9\) |
risch | \(-\frac {\sqrt {2}\, \ln \left ({\mathrm e}^{i x}-i\right ) \cos \relax (x )}{\sqrt {\left (1+{\mathrm e}^{2 i x}\right )^{2} {\mathrm e}^{-2 i x}}}+\frac {\sqrt {2}\, \ln \left ({\mathrm e}^{i x}+i\right ) \cos \relax (x )}{\sqrt {\left (1+{\mathrm e}^{2 i x}\right )^{2} {\mathrm e}^{-2 i x}}}\) | \(67\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.14, size = 41, normalized size = 1.52 \[ \frac {1}{4} \, \sqrt {2} \log \left (\cos \relax (x)^{2} + \sin \relax (x)^{2} + 2 \, \sin \relax (x) + 1\right ) - \frac {1}{4} \, \sqrt {2} \log \left (\cos \relax (x)^{2} + \sin \relax (x)^{2} - 2 \, \sin \relax (x) + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 13, normalized size = 0.48 \[ \frac {\sqrt {2}\,\mathrm {asinh}\left (\frac {\sin \relax (x)}{\cos \relax (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 {\cos {\left (2 x \right )} + 1}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________