Integrate[(2/Pi) x (Pi - x) Cos[0 x], {x, 0, Pi}]