How to convert the quadratic function y = x ^ 2-2x + 3 to y = (X-H) ^ 2 + k

How to convert the quadratic function y = x ^ 2-2x + 3 to y = (X-H) ^ 2 + k

y=x^2-2x+3=(x2-2x+1)+2=(x-1)2+2