Calculation of integrals $$\displaystyle \int \sqrt{\sec 2x-1}\;dx,\>\>\>\>\>\displaystyle \int \sqrt{\sec 2x+1}\;dx$$
$\bf{My\; solution}$:
Let $$\displaystyle I = \int \sqrt{\sec 2x-1}\;dx = \int \sqrt{\frac{1-\cos 2x}{\cos 2x}}\;dx $$ $$\displaystyle = \int \sqrt{\frac{1-\cos 2x}{\cos 2x}\times \frac{1+\cos 2x}{1+\cos 2x}}dx = \int \frac{\sin (2x)}{\sqrt{\cos 2x\cdot (1+\cos 2x)}}dx$$
Now, let $\cos (2x) = t$. Then $\sin (2x)dx = -2dt$. So Integral $$\displaystyle I =-2\int\frac{1}{\sqrt{t\cdot (1+t)}}dt=-2\int\frac{1}{\sqrt{(t+\frac{1}{2})^2+(\frac{1}{2})^2}}dt$$
So $I = -2\cdot \ln \left|\left(t+\frac{1}{2}\right)+\sqrt{t^2+t}\right|+\mathcal{C} = -2\cdot \ln \left|\left(\cos 2x+\frac{1}{2}\right)+\sqrt{\cos^2(2x)+\cos (2x)}\right|+\mathcal{C}$
Is there is any other methods?
Thanks
In the step when you completed squares, it should be $-(1/2)^2$ because in the previous step we had $t + t^2$ inside sqrt. so if u expand $(t+1/2)^2 - (1/2)^2$ u get $t+t^2$ which is how it must be.