The inverse functions of y = (x-1) square, X ≤ 1 and y = 1 / (1-x), x > 1

The inverse functions of y = (x-1) square, X ≤ 1 and y = 1 / (1-x), x > 1

y=(x-1)2
Square both sides at the same time, because x ≤ 1, so X-1 ≤ 0
Change 1-x = radical y, get x = 1-radical y, replace x with y
Y = 1 - radical x, x > 0
y=1/(1-x)
It can be reduced to 1-x = 1 / y, shift term: x = 1-1 / y, also y = 1-1 / x, X