Answer
$$y=\left(\frac{1}{2}\right)^x$$
Work Step by Step
Switching the elements of the domain and the range (in other words, the dependent and independent variables), we find that the inverse is:
$$x=\log _{\frac{1}{2}}\left(y\right) \\ y=\left(\frac{1}{2}\right)^x$$