You said "thus" but did not complete your statement.
Notice the LHS has $\displaystyle x$ as a product and the RHS has $\displaystyle x$ as a product. Thus, I divided the x's from the two sides. And was let with $\displaystyle g(x)$ what I was looking for.