integral (x^(2)+x+1)*sin x/2