Question:

If the function \(f(x)= \begin{cases}-2 \sin x & \text {, if } x \leq \frac{-\pi}{2} \\ A \sin x+B & , \text { if } \frac{-\pi}{2}< x<\frac{\pi}{2} \\ \cos x & , \text { if } x \geq \frac{\pi}{2}\end{cases}\) is continuous everywhere, then the values of \(A\) and \(B\) are respectively

Show Hint

Equate the values of the neighbouring pieces at \(x=-\pi/2\) and \(x=\pi/2\).
Updated On: Nov 16, 2026
  • \(1,-1\).
  • \(-1,1\).
  • \(1,1.\)
  • \(-1,-1\).
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Step 1: Understanding the Concept
For continuity at a join point, the values of the neighbouring pieces must be equal there.

Step 2: At x = -pi/2
Left piece: \(-2\sin\left(-\dfrac{\pi}{2}\right)=2\). Middle piece: \(-A+B\). So \(-A+B=2\).

Step 3: At x = pi/2
Middle piece: \(A+B\). Right piece: \(\cos\dfrac{\pi}{2}=0\). So \(A+B=0\).

Step 4: Solve
Adding the equations: \(2B=2\Rightarrow B=1\), then \(A=-1\).

Final Answer:
A is -1 and B is 1. \[ \boxed{\text{(B) }-1,1} \]
Was this answer helpful?
0
0