integral of x cos(kx) from -pi to pi