integration of cos nx dx