a, TH1: x≥1, khi đó ta có phương trình:
x+1+x-1=1+x²-1
⇔2x=x²
⇔2x-x²=0
⇔x(2-x)=0
⇔\(\left[ \begin{array}{l}x=0\\2-x=0\end{array} \right.\) =>\(\left[ \begin{array}{l}x=0\\x=2\end{array} \right.\)
TH2: x<1, khi đó ta có phương trình:
-x+1-x-1=1+x²-1
⇔-2x=x²
⇔-2x-x²=0
⇔x(-2-x)=0
⇔\(\left[ \begin{array}{l}x=0\\-2-x=0\end{array} \right.\) =>\(\left[ \begin{array}{l}x=0\\x=-2\end{array} \right.\)
Vậy S={0;2;-2}