Let $a,b \in N $ and $a \neq b$
If $(a-1)x^2-(a^2+2)x+a^2+2a=0$
and
$(b-1)x^2-(b^2+2)x+b^2+2b=0$
have a common root then the value of $ab$ is ?
I tried using Cramer's rule for common root but that did not simplify to anything and on subtracting the equations I again ended up with a quadratic, on solving the quadratic I got
$$x=\frac{a^2-b^2\pm\sqrt{(b^2-a^2)^2-4(a-b)(a^2-b^2+2a-2b)}}{2(a-b)}$$ which does not simplify either.
Any hints on how should I solve this.
solving the two quadratic equations we get $$x_1=\frac{a+2}{a-1},x_2=a$$ $$x_3=\frac{b+2}{b-1},x_4=b$$ if we have $$x_1=x_3$$ we have $$(a+2)(b-1)=(b+2)(a-1)$$ solving this we obtain $a=b$ can you solve the other cases?