There are a few ways to write domain & range.
For domain (x values)
-5<x<=5
(So exclude -5 because it's a hole, but include 5)
Another way to write this is (-5,5]
NOTICE that it's a parentheses & also a bracket. Parentheses means DON'T INCLUDE and [ ] means that it is included.
For range (y values)
-2<=y<=2
(There's a hole at (-5,-2) but there are other places where -2 is included in the function)
Another way to write this is [-2,2]