integrate x*cos(n*Pi*x/2) from x=0 to x=1