Consider following quadratic equation whose roots are $a$ and $b$.
$$x^2 +ax +b = 0 $$
We need to find $a$ and $b$ provided that $a,b\neq0$
So it seems a pretty easy question and it is,
From product of roots we get $a=1$ From sum of roots we get $b=-2$
Now I decided solve with an other way as follows-
Since $a$ and $b$ are roots of equation, therefore they will satisfy it as follows-
$ a^2 + a^2 + b = 0$ and hence $2a^2=-b$
$b^2 + ab +b=0$
Substituting value of $b$ we get
$4a^4-2a^3-2a^2=0$
Since $a\neq0$ solving for a gives two values $a=1$ and $a=-1/2$
and therefore corresponding values of $b$ as $-2,-1/2$ and hence we get following two quadratic equations
$x^2+x-2=0$ and $2x^2-x-1=0$
The first one has roots $(1,-2)=(a,b)$ , therefore we got one answer
but second one has roots $(1,-1/2)\neq(a,b)$
Why does this happens with second equations that it's roots are not equal to $a,b$