We are given the following function
The standard form of a quadratic function is given by
Comparing the given function with the standard form, we see that
a = -1
b = 2
c = -2
It is usually preferred to write the function in vertex form for graphing
The vertex form is given by
Where h is the vertex (maximum/minimum point of the graph) and is given by
Where k is given by
So, we have
a = -1
h= 1
k = -1
Therefore, the vertex form of the given function is