integrate cos^2(pi*x/a)*(1+sin^2(pi*x/a))from -a/2 to a/2