f(x)=cos(x/2pi) and g(x)=1-x^2/2