If the given function f(x), defined as
\(f(x)=\begin{cases}5, & \text{if } x \le 2\\ ax+b, & \text{if } 2 \lt x \lt 10\\ 21, & \text{if } x \ge 10\end{cases}\)
is continuous, then value of \(2a+b\) is:
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → 5
Each piece is a polynomial, so f can fail to be continuous only where the definition changes, at x = 2 and x = 10. At each of these points the left-hand limit must equal the right-hand limit.
At x = 2:
\( \displaystyle \lim_{x \to 2^-} f(x) = 5 \)
\( \displaystyle \lim_{x \to 2^+} f(x) = \lim_{x \to 2^+} (ax + b) = 2a + b \)
So
\(2a + b = 5 \qquad (1)\)
This is already the value asked for. The condition at x = 10 shows that such a and b exist:
\(10a + b = 21 \qquad (2)\)
Subtracting (1) from (2):
\(8a = 16,\quad a = 2,\quad b = 1\)
and \(2a + b = 4 + 1 = 5\).