If quadratic equations $x^2+px+q=0$ and $x^2+qx+p=0$ have a common root, prove that: either $p=q$ or $p+q+1=0$.
My attempt:
Let $\alpha $ be the common root of these equations. Since one root is common, we know: $$(q-p)(p^2-q^2)=(q-p)^2.$$ How do I get to the proof from here?
If you can obtain $$(q-p)(p^2-q^2)=(q-p)^2$$ Since $p^2-q^2=(q-p)(-p-q)$, we have $$(q-p)^2(-p-q)=(q-p)^2$$
Hence $(q-p)^2(1+p+q)=0$.
Hence $q=p$ or $1+p+q =0$