\(a,4+x^2+4x=0\)
\(\Leftrightarrow x^2+4x+4=0\)
\(\Leftrightarrow\left(x+2\right)^2=0\)
\(\Leftrightarrow x+2=0\)
\(\Leftrightarrow x=-2\)
Vậy \(S=\left\{-2\right\}\)
\(b,-6x+9+x^2=0\)
\(\Leftrightarrow x^2-6x+9=0\)
\(\Leftrightarrow\left(x-3\right)^2=0\)
\(\Leftrightarrow x-3=0\)
\(\Leftrightarrow x=3\)
Vậy \(S=\left\{3\right\}\)