plot y=cos^2(x)