A month ago, I came up with a proof that
$\gamma = \frac12 + \int_0^{\frac1\pi} \arctan(\cot(\frac1x)) \,dx$
where $\gamma$ is the Euler-Mascheroni constant and $\arctan$ is the inverse $\tan$ function.
My proof is based on the idea, that $\lfloor x\rfloor = \frac {\arctan(\cot(x\pi))}\pi - \frac 12 + x$
Is that well known? Did somebody came up with it before? If so, where can i find some references? I want to know if there are any other ways to prove that.
Thank you in advance!
It's well known that $$\int_0^1 \left\{\frac1x\right\}\mathrm{d}x=1-\gamma$$ where $\{x\}=x-\lfloor x\rfloor$ is the fractional part of $x$ (see a proof here and also here) and we have that $$\frac1\pi\arctan{\left(\cot{\left(\frac\pi{x}\right)}\right)}=\frac12-\left\{\frac1x\right\}$$ for all $x\in\mathbb{R}$. Hence your identity is $$\begin{align} \gamma &=\frac12+\int_0^{1/\pi}\pi\left(\frac1\pi\arctan{\left(\cot{\left(\frac\pi{\pi x}\right)}\right)}\right)\mathrm{d}x\\ &=\frac12+\int_0^{1/\pi}\pi\left(\frac12-\left\{\frac1{\pi x}\right\}\right)\mathrm{d}x\\ &=\frac12+\int_0^1\left(\frac12-\left\{\frac1u\right\}\right)\mathrm{d}u\\ &=1-\int_0^1\left\{\frac1u\right\}\mathrm{d}u\\ &=1-(1-\gamma)\\ &=\gamma\\ \end{align}$$