# Given f(x), create g(x) so that f(g(x)) = x

Let $f(x)=\dfrac{x}{x-7}$. Find a function $y=g(x)$ so that $(f\circ g)(x)=x$.

Does anyone have any ideas on how to do this? I've exhausted all sorts of possibilities and I am now clueless. (On a side note, this is not homework, but rather an optional online assignment I was given. It's really puzzling me.)

-
Replace the $x$ with $y$ and the $f(x)$ with $x$, and solve for $y$. – J. M. Sep 10 '11 at 13:17

So you want $$\frac{g(x)}{g(x)-7}= x \Longrightarrow g(x)= x\cdot g(x) - 7x$$
Solve for $g(x)$ from here.
$$x \cdot g(x)- g(x) = 7x \Longrightarrow g(x) \cdot \bigl(x-1\bigr) = 7x$$