The sum of values of a and b such that the function \(f(x)\) defined by
\(f(x)=\begin{cases}3, & x \le 1\\ ax+b, & 1 \lt x \lt 5\\ 10, & x \ge 5\end{cases}\) is a continuous function is
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → 3
Each piece is a polynomial, so f can fail to be continuous only at x = 1 and x = 5. There the limit from the other side must equal the value of the function.
At x = 1:
\(f(1) = 3\)
\( \displaystyle \lim_{x\to 1^+}(ax+b) = a+b \)
\(a+b = 3 \quad \ldots(1)\)
At x = 5:
\(f(5) = 10\)
\( \displaystyle \lim_{x\to 5^-}(ax+b) = 5a+b \)
\(5a+b = 10 \quad \ldots(2)\)
Subtracting (1) from (2):
\( \displaystyle 4a = 7,\quad a = \frac{7}{4} \)
\( \displaystyle b = 3-\frac{7}{4} = \frac{5}{4} \)
\( \displaystyle a+b = \frac{7}{4}+\frac{5}{4} = 3 \)