Algebra Examples

Determine if a Polynomial g(x)=2(x-1)^2(x^2+1)
I am unable to solve this problem.