Find the integer $m$ in $x^{2}+mx+n=0$ if the only solution is $x=-3$.
I understand that you get $(x+3)^{2}=x^{2}+6x+9$ and get the value of $m$ this way, but why, when you plug $x=-3$ do you get a family of solutions for $m$?
$(-3)^{2}+m(-3)+n=0$
$3m=9+n$
$m=3+\frac{n}{3}$
This will yield a family of solutions as long as $n$ is a multiple of $3$. How can I constrain $m$ to get the solution $m=6$?
You need also $$m^2-4n=0,$$ which gives $$m^2-4(3m-9)=0$$ or $$(m-6)^2=0$$ or $m=6.$