Determine if this is a bijection and find the inverse function.f : R− {−2} →R− {1}wheref(x) = (x+ 1)=(x+ 2).

I have the ans sheet: It's a bijection with inversef-1(x) = (2x −1)=(1− x).

But i dont know how to get the ans. Please help me :(