Question:

If function \( f \) is continuous at point \( x = \pi \) and \[ f(x) = \begin{cases} kx + 1, & x \le \pi \\ \cos x, & x>\pi \end{cases} \] then the value of \( k \) is ______

Show Hint

For piecewise functions, always equate LHL and RHL at the boundary point.
Updated On: Apr 2, 2026
  • \( \frac{2}{\pi} \)
  • \( -\frac{2}{\pi} \)
  • \( \frac{1}{\pi} \)
  • \( 0 \)
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Concept: For continuity at \( x = a \): \[ \text{LHL} = \text{RHL} = f(a) \]
Step 1: Left-hand limit. \[ \lim_{x \to \pi^-} f(x) = k\pi + 1 \]
Step 2: Right-hand limit. \[ \lim_{x \to \pi^+} f(x) = \cos \pi = -1 \]
Step 3: Equate. \[ k\pi + 1 = -1 \] \[ k\pi = -2 \Rightarrow k = -\frac{2}{\pi} \]
Was this answer helpful?
0
0