Connection between the sawtooth Fourier series and the Euler-Mascheroni constant?

27 Views Asked by At

I've been studying the slope of the sawtooth waveform $$\sum_{n=1}^\infty \frac{sin(nx)}{x}$$ And found that, for $x \in (0, 2\pi)$, its graph seems to line up perfectly with the line $$y = \frac{x}{2}+\gamma+1$$ Where $\gamma$ is the Euler-Mascheroni constant, $\approx.57721566...$ What is this constant doing here?