[tex]\text{The vertex formula:}\\\\f(x)=a(x-h)^2+k\\\\(h;\ k)-\text{the coordinates of the vertex}[/tex]
[tex]\text{We have:}\\\\\text{the vertex}\ (2;\ -1)\to h=2;\ k=-1\\\\\text{y-intercept}\ (0;\ 7)\to f(0)=7[/tex]
[tex]\text{substitute:}\\\\f(x)=a(x-2)^2-1\\\f(0)=7\to a(0-2)^2-1=7\ \ \ |+1\\\\4a=8\ \ \ |:4\\\\a=2[/tex]
[tex]\text{Answer in the vertex form:}\\\\f(x)=2(x-2)^2-1\\\\\text{Answer in the standard form:}\\\\f(x)=2x^2-8x+7[/tex]