The following defines function with a constant $b$ to be determined by using the continuity of a function: $$f(x)=\begin{cases} \dfrac{x-b}{b+1}, \quad x<0\\[1.75ex] x^2+b, \quad x>0 \end{cases}$$
In short, for what value of $b$ is $f(x)$ continuous for every $x$.
What I did was to determine the right hand and left hand limit at zero to find that $b=0$ or $b=-2$ but I find this weird.