The given function is
[tex]y=-x^2+2x+3[/tex]We have to complete the square to find the vertex form. First, we move the independent term
[tex]\begin{gathered} -x^2+2x=-3 \\ x^2-2x=3 \end{gathered}[/tex]Then, we take the linear coefficient to divide it by 2 and elevate it to the square power
[tex](\frac{2}{2})^2=1^2=1[/tex]Then, we add this number on both sides
[tex]\begin{gathered} x^2-2x+1=3+1 \\ \end{gathered}[/tex]Now, we factor the trinomial.
[tex](x-1)^2=4[/tex]Then, we move the power to the other side and we express it as a function.