vertex g(x) = -2x^2+3x+1