We have,
x2−3x+2x2−1
=x2−(2+1)x+2x2−12
=x2−2x−1x+2(x+1)(x−1)
=x(x−2)−1(x−2)(x+1)(x−1)
=(x−2)(x−1)(x+1)(x−1)
=(x−2)(x+1)
Hence, this is the answer.