rewrite function in vertex form y=x^2-4x+12