integrate xcosx from 0 to pi