derivative of (1+sin(pi/2*(x-1)))/2 from 0 to 4