I need to calculate $\int_{0}^{\pi\over 2}{dx\over {1+\sqrt{\tan x}}}$
In this section of the course where this problem is, we have seen 2 techniques: integration by parts and substitution, so I am assuming the solution has to make use of one of those somewhere.
Attempt to use integration by parts: We define $f(x):={1\over 1+\sqrt{\tan x}}$ and $g(x):=x$
We then have $\int_{0}^{\pi\over 2}{dx\over {1+\sqrt{\tan x}}}=\int_{0}^{\pi\over 2}fg'=(fg)({\pi\over 2})-(fg)(0)-\int_{0}^{\pi\over 2}f'g$
but f'(x) is a relatively complicated expression and doing this seems to only make matters worse.
Attempt to use substitution: We define $g(x):=\sqrt{\tan x}$ in an attempt to get the form $\int_{0}^{\pi\over 2}{g'(x)\over 1+g(x)}$
but then again this derivative is a complicated expression which only seems to make the problem tougher. I am just not seeing how to simplify.