Question:medium

If \(f(x)=\begin{cases} \frac{\tan x-\cot x}{x-\frac{\pi }{4}}, & x\neq \frac{\pi }{4} \\ a, & x=\frac{\pi }{4} \end{cases}\), then the value of \({}'a'\) so that \(f(x)\) is continuous at \(x=\pi /4\) is...

Show Hint

For continuity, a must equal the limit as x approaches pi/4, which is a 0/0 form solved by differentiating.
Updated On: Nov 12, 2026
  • \(2\)
  • \(4\)
  • \(3\)
  • \(1\)
Show Solution

The Correct Option is B

Solution and Explanation

Step 1: Use the definition of the derivative
The limit equals the derivative of $g(x)=\tan x-\cot x$ at $x=\dfrac{\pi}{4}$, since $g(\pi/4)=0$.

Step 2: Differentiate
$g'(x)=\sec^2x+\csc^2x$.

Step 3: Substitute
$g'\left(\dfrac{\pi}{4}\right)=2+2=4$, so $a=4$.

Final Answer:
The value of $a$ is 4. \[ \boxed{\text{(B) }4} \]
Was this answer helpful?
0