This is a really good question.
The inverse function is the reflection of the function in the line y=x
You can find it by swapping the position of the xs and ys in an equation
for example
y=3x+4
the inverse function would be
x=3y+4
and when rearranged this gives y=(1/3)(x-4)