Evaluate the integral. $$\int_0^{\frac{\pi}{2}}\frac{\tan{x}}{\tan(\frac{x}{2})}\,dx$$
I tried to solve it with $u = \tan{x/2}$, but i got divergent part of the solution. How can I integrate it, such that, when boundaries are plugged in, the result will be able to be calculated.
hint
with $ t=\tan(\frac x2) $,
$$dx=2\frac{dt}{1+t^2}$$
$$\tan(x)=\frac{2t}{1-t^2}$$
$ I $ becomes $$I=4\int_0^1\frac{dt}{(1-t^2)(1+t^2)}$$
$$=2\int_0^1(\frac{1}{1-t^2}+\frac{1}{1+t^2})dt$$
$$=\int_0^1(\frac{1}{1-t}+\frac{1}{1+t}+\frac{2}{1+t^2})dt$$ $$=+\infty$$ $ I $ is then divergent.