integrate (1-x)*cos(w*x) dx from 0 to 1