Prove the following
$$\int^\infty_0 \frac{\tan(x)}{x}=\frac{\pi}{2} $$
This question was posted on some forum, but i think it should be rewritten as $$PV\int^\infty_0 \frac{\tan(x)}{x}=\frac{\pi}{2} $$ Because if the discontinuoities of the zeros of $\cos(x)$.
My attempt
Consider the following function
$$f(x) = \frac{\tan(x)}{x}$$
On the interval $\left(-\frac{\pi}{2},\frac{\pi}{2} \right)$, clearly the function is symmetric and positive around the origin.
Let us consider $x \in \left(0,\frac{\pi}{2} \right)$
$$f'(x) = \frac{\sec^2(x) (2x - \sin(2 x))}{2x^2} > 0$$
Note that $\lim_{x\to 0} f(x) = 1$, we deduce that the function is increasing on the interval $\left(0,\frac{\pi}{2} \right)$. Hence
$$\int^{\pi/2}_{-\pi/2}\frac{\tan(x)}{x}\,dx = 2 \int^{\pi/2}_0 \frac{\tan(x)}{x}\,dx >2 \int^{\pi/2}_0\,dx = \pi$$ Also note that
Near $\pi/2$ the integral acts like $\frac{1}{\pi/2-x}$ which diverges to inifnity. The visual of $f$ is on that interval
From the graph of $f$ on the real line it seems the integrals on left and right are also divergent to -infinity and contribute to the infinity at the middle to cause a convergent value.
Question
I need a proof if the principal value exists or not?


