Let \(f(x) = \frac{x^3 - 1}{x - 1}\). If \(g(x)\) is a polynomial in \(x\) such that \(f(g(x)) = f(x)f(x-1)\) for all \(x \neq 1,2\), then find \(g(x)\).
Two solutions: