Find a condition on $c$ so that the function $f(x) =\frac{x+c}{x^2-3x-c}$ has the whole of the real numbers as its range.
I'm not entirely sure how to approach this problem.
The answer is $-2<c<0$ , however, I don't know how to get to it.
So I was thinking for a line $y=k$
if $\frac{x+c}{x^2-3x-c} = k$
$x+c=kx^2-3kx-ck$
$kx^2-(3k+1)x-ck-c=0$
Solution is discriminant, $\Delta \ge 0$
$\therefore$
$(3k+1)^2+4k(ck+c) \ge 0$
$(9+4c)k^2+(6+4c)k+1 \ge 0$
However, we don't know $k$; do we take the discriminant of the discriminant???
Alternatively, it may be best to consider horizontal asymptotes.
$\lim_{x\to\pm\infty}f(x)=\frac{x}{x^2}=\frac{1}{x}=0$
I'm not entirely sure how the $-2<c$ comes into this. Any help is much appreciated.