int (cos(x))^k