Find functions which are the inverse of each of the following. State the domain and range of the inverse in each case.
a) f(x)=2-x, x>0
b) f(x)=x2+2x, x_>0
for the first one i got f-1(x)=(-lnx)/(ln2) with D: x>0, R: y>0
and the second one i got f-1(x)=-1+sqrt(x+1) with D: x_>-1, R: y_>0
thanks