Write the quadratic function in vertex form. y = x2 – 2x + 5…