To find the range of this function, simply plug each of the end values into the original equation. In this case, with x of -2, the function becomes f(x) = 6+1 or 7, and with x of 7, the function becomes f(x) = -21+1 or -20. As such, the range of the function is -21 <= f(x) <= 7.