An inverse function produces points (y,x) for every point (x,y) produced by the parent function. So to find the inverse function, you solve for the independent variable and when done switch the variable labels....
y=x+5 subtract 5 from both sides
y-5=x now switch labels
y=x-5
So if f(x)=x+5
f^-1(x)=x-5