The domain is the set of values that are allowed to plug into our function and it is represented by the variabel x.. In our case, the domaini s {-1,0,1,2,3}. On the other hand, the range is the set of values that the function assumes after we plug an x value in.
Then, we need to substitute each x value into the given function f(x). So, for x=-1, we have

Similarly, for x=0, we get

For x=1, we obtain

Now, for x=2, we have

and finally, for x=3 we get

Therefore, the range is the following set:
