For \(|x|\le1\), \(|x|\ge x^2\); for \(1\le|x|\le2\), \(x^2\ge|x|\). So on \([-2,2]\): \(f=-x\) on \([-1,0]\), \(x\) on \([0,1]\), \(x^2\) on \([1,2]\) (symmetric on the left).
At \(x=0\): slopes \(-1\) and \(+1\): not differentiable.
At \(x=1\): slopes \(1\) and \(2x=2\): not differentiable (similarly \(x=-1\)).
At \(x=2\): left slope \(2x=4\), right slope \(-2\) (and \(f\) is continuous: \(4=8-4\)): not differentiable (similarly \(x=-2\)).
Elsewhere \(f\) is smooth.
\(S=\{-2,-1,0,1,2\}\).
Answer: (2) equals \(\{-2,-1,0,1,2\}\)