we know that
To calculate the range of a function, the maximum and minimum value of the function must be calculated.
the value of f(x) maximum is equal to 1
the value of f(x) minimum is equal to -2
so
the range is the interval [1,-2]
the answer is
[1,-2]