Question:
Determine: $$\int\frac{\sqrt{\tan x}}{\sin x\cos x}dx$$
My book's attempt:
$$\int\frac{\sqrt{\tan x}}{\sin x\cos x}dx$$
$$=\int\frac{\sqrt{\frac{\sin x}{\cos x}}}{\sin x\cos x}dx$$
$$=\int\frac{\frac{\sqrt{\sin x}}{\sqrt{\cos x}}}{\sin x\cos x}dx\tag{1}$$
$$...$$
My book assumed in $(1)$ that $\sin x$ and $\cos x$ are both positive. However, the question didn't mention that we are in the first quadrant. From the question, we can only understand that $\tan x$ is positive (because of $\sqrt{\tan x}$): $x$ could be in the 1st or the third quadrant. So, isn't my book making an invalid move in $(1)$?