Given the function :

We will find the inverse of the function analytically as following :

Solve for x

make y in the place of x. so,

The graph of both function will be as shown in the following picture .
The given function f(x) = 5^x - 1 is the graph of the blue color
And the inverse with the red color
each function is written closer to its graph