Class 12 Maths, Worked in Full Past papersGet updates
CBSE Sample Paper 2025-26 · Section A · 1 mark

Q7: kk for continuity of kx+1kx + 1 and cos⁡x\cos x at x=πx = \pi

The question

If a function defined by f(x)={kx+1,x≤πcos⁡x,x>πf(x) = \begin{cases} kx + 1, & x \le \pi \\ \cos x, & x > \pi \end{cases} is continuous at x=πx = \pi⁠, then the value of kk is

(A) π\pi

(B) −1π\frac{-1}{\pi}

(C) 00

(D) −2π\frac{-2}{\pi}

Exam answer

ff is continuous at x=πx = \pi⁠, so

lim⁡x→π−(kx+1)=lim⁡x→π+cos⁡x\begin{aligned} &\lim_{x \to \pi^-}(kx + 1) = \lim_{x \to \pi^+}\cos x \end{aligned}
Why?

Continuity at x=πx = \pi means the left-hand limit, the right-hand limit and f(π)f(\pi) are all equal.

Just left of π\pi (and at π\pi itself, since x≤πx \le \pi⁠) the rule is kx+1kx + 1⁠. Just right of π\pi it is cos⁡x\cos x⁠. So each side uses its own formula.

⇒ kπ+1=cos⁡π=−1\begin{aligned} \Rightarrow\ &k\pi + 1 = \cos\pi = -1 \end{aligned}
Why?

kx+1kx + 1 and cos⁡x\cos x are both continuous, so each limit is found by putting x=πx = \pi⁠. The left side, kπ+1k\pi + 1⁠, is also f(π)f(\pi)⁠.

Watch out: cos⁡π=−1\cos\pi = -1⁠, not 0 or 1.

⇒ kπ=−1−1=−2⇒ k=−2π\begin{aligned} \Rightarrow\ &k\pi = -1 - 1 = -2 \\ \Rightarrow\ &k = \frac{-2}{\pi} \end{aligned}
Why?

Subtract 1 from both sides, then divide by π\pi⁠.

Answer: (D) −2π\dfrac{-2}{\pi}

Where this comes from

Chapter 5, Continuity and Differentiability: Continuity of a piecewise function.

Question type: Find kk so that ff is continuous

How to spot it: click to see

Type 2. Find kk so that ff is continuous

Spot it: a function in pieces with an unknown kk (or aa and bb⁠), and the words "find the value of kk".

Here: kx+1kx + 1 gives LHL kπ+1k\pi + 1⁠, and cos⁡x\cos x gives RHL cos⁡π=−1\cos\pi = -1⁠. Set kπ+1=−1k\pi + 1 = -1⁠: k=−2πk = -\frac{2}{\pi}⁠.

Found an error?

Tell us if something on this page is wrong or unclear. Send feedback on this question →