How do I solve this, first I have to factor $\frac{2x}{x-1}+\frac{3x+1}{x-1}-\frac{1+9x+2{x}^{2}}{{x}^{2}-1}$

the solution is

$\frac{3x}{x+1}$

The only advance that I have done is factor ${x}^{2}-1$=$(x-1)$$(x+1)$

do not know how can I factor $1+9x+2{x}^{2}$ can someone please guide me in how to solve this exercise.

the solution is

$\frac{3x}{x+1}$

The only advance that I have done is factor ${x}^{2}-1$=$(x-1)$$(x+1)$

do not know how can I factor $1+9x+2{x}^{2}$ can someone please guide me in how to solve this exercise.