In the answer, author uses the principal square root of $1 + \tan^2 x$ to evaluate the integral $\displaystyle \int {\sec^2 x \over (\sec x + \tan x)^{9/2}}$. Author rewrites $\sec x $ as $\sqrt{1 + \tan^2 x}$ and proceeds with it.
Since secant of an angle can be negative in second and third quadrant, I want to know why does using principal square root is justified here ?