For y = Ax2+Bx+C, the x-coordinate of the vertex is -B/(2A).
So, for y = x2+bx+c, since the vertex is (2,-6), we have -b/(2(1)) = 2.
b = -4
Thus, y = x2 - 4x + c
Since the vertex is a point on the graph, we have -6 = 22 - 4(2) + c
-6 = -4 + c
c = -2
So, y = x2 - 4x - 2