The values of ‘a’ and ‘b’ such that the function defined by
\(f(x)=\begin{cases}3, & x \le 5\\ ax+b, & 5 \lt x \le 15\\ 18, & x \gt 15\end{cases}\)
is a continuous function, are:
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(a=\displaystyle\frac{3}{2},\ b=\frac{-9}{2}\)
Each piece is continuous on its own interval, so f is continuous everywhere if it is continuous at the joining points x = 5 and x = 15.
At x = 5: f(5) = 3 and the right-hand limit is 5a + b, so
\(5a + b = 3 \qquad (1)\)
At x = 15: f(15) = 15a + b and the right-hand limit is 18, so
\(15a + b = 18 \qquad (2)\)
Subtracting (1) from (2):
\(10a = 15\)
\( \displaystyle a = \frac{3}{2} \)
From (1):
\( \displaystyle b = 3 - \frac{15}{2} = -\frac{9}{2} \)