integral from 0 to z+1 of 3(x-z-1)^2 dx