答えだけ知りたいならwolfalphaというサイトが便利ですhttp://www.wolframalpha.com/input/?i=A^2+Integrate[%281-cos%28%282+PI+n+x%29%2FL%29%29%2F2%2C+{x%2C+0%2C+L}]