\(a,\Leftrightarrow\left(x+3\right)^2-4\left(x-3\right)\left(x+3\right)=0\\ \Leftrightarrow\left(x+3\right)\left(x+3-4x+12\right)=0\\ \Leftrightarrow\left(x+3\right)\left(15-3x\right)=0\\ \Leftrightarrow\left[{}\begin{matrix}x=-3\\x=5\end{matrix}\right.\)
\(b,=x^2\left(y-1\right)-\left(y-1\right)^2=\left(y-1\right)\left(x^2-y+1\right)\)