\(\left(x-5\right)^2-7\left(5-x\right)=0\)
\(\Leftrightarrow\left(x-5\right)^2+7\left(x-5\right)=0\)
\(\Leftrightarrow\left(x-5\right)\left[\left(x-5\right)+7\right]=0\)
\(\Leftrightarrow\left(x-5\right)\left(x+2\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x-5=0\\x+2=0\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=5\\x=-2\end{matrix}\right.\)
Vậy \(S=\left\{5;-2\right\}\)
\(\Leftrightarrow\left(x-5\right)^2+7\left(x-5\right)=0\\ \Leftrightarrow\left(x-5\right)\left(x-5+7\right)=0\\ \Leftrightarrow\left(x-5\right)\left(x+2\right)=0\\ \Leftrightarrow\left[{}\begin{matrix}x-5=0\\x+2=0\end{matrix}\right.\\ \Leftrightarrow\left[{}\begin{matrix}x=5\\x=-2\end{matrix}\right.\)