Đáp án:
$S=\{-5,9\}$
Giải thích các bước giải:
$x^2-4x-45=0$
$\to x^2-9x+5x-45=0$
$\to x(x-9)+5(x-9)=0$
$\to (x-9)(x+5)=0$
$\to \left[ \begin{array}{l}x-9=0\\x+5=0\end{array} \right.$
$\to \left[ \begin{array}{l}x=9\\x=-5\end{array} \right.$
Vậy $S=\{-5,9\}$