`x^2+5x+6=0`
`<=>x^2+2x+3x+6=0`
`<=>(x^2+2x)+(3x+6)=0`
`<=>x(x+2)+3(x+2)=0`
`<=>(x+3)(x+2)=0`
`<=>` \(\left[ \begin{array}{l}x+3=0\\x+2=0\end{array} \right.\) `<=>` \(\left[ \begin{array}{l}x=-3\\x=-2\end{array} \right.\)
Vậy phương trình trên có nghiệm `S={-3;-2}`