Function of g is g:x→x-1 over x+2,x not equal to -2.

Find g^2

1 answer

g(x) = (x-1)/(x+2)

If by g^2 you mean g(g(x)), then

g(g) = (g-1)/(g+2)
= ((x-1)/(x+2) - 1) / ((x-1)/(x+2) + 2)
= -1/(x+1)