plot g = x^2 + sin(500*x)^2 from x=-1 to x=1