To solve the equation about X, the square of x minus 2x plus 1 equals K (the square of x minus 1) (k is not equal to 0)

To solve the equation about X, the square of x minus 2x plus 1 equals K (the square of x minus 1) (k is not equal to 0)

x2-2x+1=k
(x-1)^2=k
1、k>0
x-1=±√k
x=1±√k
2、k