Hi - I guess this is easy but I am having trouble solving it. I am supposed to find the inverse of the quadratic function

y = x^2 - 2x +1

Thanks in advance for any help, I am not sure if I can just factor it? The answer is supposed to be y = 1 +- srqrt X