State the largest domain of each of the functions

f:x = 1/1-x and g:x = x-1/x
where x is real number
find the composite functions
i)fog
ii)gof^-1

i)fog: The largest domain of fog is (-∞, 1).

ii)gof^-1: The largest domain of gof^-1 is (-1, ∞).