Sorry in advance if this is a little basic. It's just some simple algebra, but I'm repeatedly getting an answer that differs from the one in my textbook. I can see that the answer is incorrect, but I can't see where I'm going wrong in my working - even though it must be something pretty elementary. I have that:
$$f(x) = \frac{x-3}{x+2}$$
i.e.
$$y = \frac{x-3}{x+2}$$
So:
\begin{align*} y(x+2) & = x - 3\\ y(x+2) + 3 & = x \end{align*}
Multiplying those brackets out, I get:
$$x = yx + 2y + 3$$
And it should follow that:
$$f^{-1}(x) = x^2 + 2x + 3$$
But clearly $f^{-1}(f(x)) \neq x$.
The answer in my textbook (which I know to be correct) is $f^{-1}(x) = \frac{3+2x}{1-x}$. I can follow how they've arrived at this answer, but I can't see what I did incorrectly. Can someone point out my error?
Let's start from here:
You concluded that: $x = yx + 2y + 3$, you should continue simplification:
$x = yx + 2y + 3 \to x-xy=2y+3 \to x(1-y)=2y+3 \to x=\dfrac{2y+3}{1-y}$
$\to f^{-1}(x)=\dfrac{2x+3}{1-x}$