Integrate ((10^6-n)(n+1)(1-x)^n-n)x, {x,1/2,1}