\(\lim\limits_{x\rightarrow1^-}y=\lim\limits_{x\rightarrow1^-}\left(2x+a\right)=a+2\)
\(\lim\limits_{x\rightarrow1^+}y=\lim\limits_{x\rightarrow1^+}\left(x^2+2ax+a+b\right)=3a+b+1\)
Hàm liên tục tại \(x=1\Leftrightarrow a+2=3a+b+1\Leftrightarrow2a+b=1\)
\(y'\left(1^+\right)=2\)
\(y'\left(1^-\right)=\left(2x+2a\right)_{x=1^-}=2a+2\)
\(\Rightarrow\left\{{}\begin{matrix}2a+b=1\\2a+2=2\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}a=0\\b=1\end{matrix}\right.\)