i = Integrate[ Cos[ 2 Pi h x /a]^2, {x, -a/2, a/2}]

Simplify[ i, h ∈ Integers ]