Given that $p, q$ are real numbers. Prove that if the equation $2x^2+2(p+q)x+p^2+q^2=0$ have real roots, $p$ must be equal to $q$.
What I tried:
If the equation has equal roots, then it can be rewritten as: $$2x^2 + 4px + 2p^2 = 0$$ Coefficients of the quadratic equation are: $a=2$, $b=4p$, $c=2p^2$. If the quadratic equation has equal roots than the determinant value must be zero. $$16p^2 - 16p^2 = 0 $$
Here I am coming to a dead end. What am I missing?
The discriminant of $2x^2+2(p+q)x+p^2+q^2$, which is $4(p+q)^2-8(p^2+q^2)$,
must be non-negative for the quadratic to have real roots.
I.e., we need $(p+q)^2\ge2(p^2+q^2)$ or $2pq\ge p^2+q^2$ or $0\ge (p-q)^2$.
But $(p-q)^2\le0$ only when $(p-q)^2=0$, which happens only when ...