Question:medium

If the function

\[f(x)=\left\{\begin{array}{cc} x+a \sqrt{2} \sin x & \text { if } 0 \leq x \leq \frac{\pi}{4} \\ 2 x \cot x+b & \text { if } \frac{\pi}{4} < x \leq \frac{\pi}{2} \\ a \cos 2 x-b \sin x & \text { if } \frac{\pi}{2} < x \leq \pi \end{array}\right.\]

is continuous in \([0, \pi]\) then \(a-b=\)

Show Hint

Equate the left and right limits at x = pi/4 and x = pi/2 to get two equations in a and b.
Updated On: Nov 13, 2026
  • \(\frac{\pi}{4}\)
  • \(\frac{\pi}{12}\)
  • \(\frac{5\pi}{12}\)
  • \(\frac{7\pi}{12}\)
Show Solution

The Correct Option is A

Solution and Explanation

Step 1: Write both conditions
Continuity at $\dfrac\pi4$: $a-b=\dfrac\pi4$. Continuity at $\dfrac\pi2$: $b=-a-b$, that is $a=-2b$.

Step 2: Solve
$-2b-b=\dfrac\pi4\Rightarrow b=-\dfrac{\pi}{12}$ and $a=\dfrac{\pi}{6}$.

Step 3: Find a - b
$a-b=\dfrac\pi6+\dfrac\pi{12}=\dfrac\pi4$.

Final Answer:
Solving both continuity conditions gives a - b = pi/4. \[ \boxed{\text{(A) }\dfrac{\pi}{4}} \]
Was this answer helpful?
0