Answer
$ f^{-1}(x)=\dfrac{x-b}{m}$
($m\ne 0$)
Work Step by Step
In order to compute the inverse function, we must "interchange" $y$ and $x$ and then solve for the "new" $y$ (which is $f^{-1}(x)$).
Here, we have: $y=mx+b, m \ne 0$
Switch $x$ to $f^{-1} (x)$ and $y$ to $x$ in the function to obtain the inverse.
$x=mf^{-1}(x)+b\\ (x-b)=mf^{-1}(x) \\ f^{-1}(x)=\dfrac{x-b}{m}$