2. Well, swap the $\displaystyle x$ and $\displaystyle y$ in $\displaystyle f(x)$, and see if you can rearrange it to get $\displaystyle g(x)$.