Corrected g(x)