TITLE: If $f(x) = \frac{x}{x+1}$ and $g(x) = 2x-1$, find $(g\circ f) (x)$.
QUESTION [6 upvotes]: If $f(x) = \frac{x}{x+1}$ and $g(x) = 2x-1$, find $(g\circ f)(x)$. 
My answer is $\frac{x-1}{x+1}$. However, the answer key in the book states $\frac{2x}{x+1}$. How is that? Is the book wrong?

REPLY [4 votes]: Wolframalpha and me agree with you, if
$$f(x)=\frac{x}{x+1}, g(x)=2x-1 $$ then
$$g \circ f(x)=g(f(x))= 2f(x)-1 = \frac{2x}{x+1}-1= \frac{2x-x-1}{x+1}= \frac{x-1}{x+1}.$$