I need to prove or disprove this:
If $P\in \mathbb R[X]$ polynomial with $P(1)=0$ and $P(-2)=5$ then $\gcd(P,x^2+x-2)=x-1$.
We know that $(x-1)\mid P$ and $(x+2)\nmid P$.
Both $(x-1),(x+2)\mid x+2+x-2$ since $x+2+x-2=(x-1)(x+2)$.
Now if $M\mid S$ and $M\mid T$ then $M\mid\gcd(S,T)$ so $(x-1)\mid\gcd(P,x^2+x-2)$.
I don't really know how to go from here. I think the statement is incorrect but I can't find an example to support that.
Thanks!