integrate x * k * sin(pi*x/k) from 0 to k