Convergence of $\int _0^{\pi }\frac{1}{\sqrt{\left|\tan x\right|}}dx$
I have a trouble when doing this question. I tried to separate the integral into two integrals like this: $$\int _0^{\frac{\pi }{2}\:}\frac{1}{\sqrt{\tan x}}dx+\int _{\frac{\pi }{2}}^{\pi\:}\frac{1}{\sqrt{-\tan x}}dx$$ As for the first integral, I can prove it converges, but for the second integral I can not find a way to prove it converges. I don't know if my separation is the right approach to solve this problem. Can anyone suggest me a way to do this or another approach to solve this problem? Thank you so much.