Cho hàm số y = f ( x ) = { x^ 2 + a x + b k h i | x | < 2 x ( 2 − x ) khi | x | ≥ 2 Tìm giá trị của các tham số a và b sao cho hàm số y = f ( x ) liên tục trên R .
\(\begin{array}{l}\mathop {\lim }\limits_{x \to - {2^ - }} f(x) = \mathop {\lim }\limits_{x \to - {2^ - }} [x(2 - x)] = - 8 = f( - 2)\\\mathop {\lim }\limits_{x \to - {2^ + }} f(x) = \mathop {\lim }\limits_{x \to - {2^ + }} \left( {{x^2} + ax + b} \right) = 4 - 2a + b\\\mathop {\lim }\limits_{x \to {2^ + }} f(x) = \mathop {\lim }\limits_{x \to {2^ + }} [x(2 - x)] = 0 = f(2)\\\mathop {\lim }\limits_{x \to {2^ - }} f(x) = \mathop {\lim }\limits_{x \to {2^ - }} \left( {{x^2} + ax + b} \right) = 4 + 2a + b\end{array}\)
Hàm số liên tục tại \(x = - 2\) và \(x = 2\) khi và chỉ khi
\( \Leftrightarrow \left\{ {\begin{array}{*{20}{l}}{4 - 2a + b = - 8}\\{4 + 2a + b = 0}\end{array} \Leftrightarrow \left\{ {\begin{array}{*{20}{l}}{ - 2a + b = - 12}\\{2a + b = - 4}\end{array} \Leftrightarrow \left\{ {\begin{array}{*{20}{l}}{a = 2}\\{b = - 8}\end{array}} \right.} \right.} \right.\)
Vậy \(a = 2,b = - 8\) là các giá trị cần tìm.