Find the set of values \(a\) for which the range of the function
\(f(x) = \frac{x^2 + a}{x + 1}\)
is the set of all real numbers.
The answer is (-inf, -2].