Write the function LaTeX:  \displaystyle f(x)=x^{2} - 2 x + 31 in vertex form and identify the vertex.

LaTeX:  \displaystyle h = -\frac{b}{2a} and LaTeX:  \displaystyle k=f(h) . Using each formula gives LaTeX:  \displaystyle h= 1 and LaTeX:  \displaystyle k = 30 . The vertex is located at LaTeX:  \displaystyle (1,30) and the vertex form is LaTeX:  \displaystyle f(x) = a(x-h)^2+k=\left(x - 1\right)^{2} + 30 .