Question
If
$f(x)=\left\{\begin{array}{cl}\frac{\sin (a+1) x+2 \sin x}{x}, & x<0 \\ 2, & x=0 \\ \frac{\sqrt{1+b x}-1}{x}, & x>0\end{array}\right.$
is continuous at $x=0$, then find the values of $a$ and $b$.
$f(x)=\left\{\begin{array}{cl}\frac{\sin (a+1) x+2 \sin x}{x}, & x<0 \\ 2, & x=0 \\ \frac{\sqrt{1+b x}-1}{x}, & x>0\end{array}\right.$
is continuous at $x=0$, then find the values of $a$ and $b$.
