The inverse functions of y = log (a) x + 1 and y = log (a) (x + 1) are?

The inverse functions of y = log (a) x + 1 and y = log (a) (x + 1) are?

y=log(a)x+1
The range is r
log(a)x=y-1
x=a^(y-1)
So the inverse function y = a ^ (x-1), X ∈ R
y=log(a)(x+1)
The range is r
x+1=a^y
x=-1+a^y
So the inverse function y = - 1 + A ^ x, X ∈ R