\int y^n \sin^2{ay}dy=\int y^n\frac{1-\cos\frac{ay}{2}}{2}dy