The function has zero mean and its cosine coefficients vanish:
Its sine coefficients are
so
Away from the corners, . Differentiating the Fourier series shows that and . Also,
Consequently
and
Evaluating the series for at gives the Leibniz formula for pi,
Evaluating the continuous Fourier series for at gives
and hence