∫(cosx)^2dx = (1/2)∫(1+cos2x)dx = x/2+(1/4)sin2x+C
∫(sinx)^2dx = (1/2)∫(1-cos2x)dx = x/2-(1/4)sin2x+C