g(x) = sqrt(cos(x))