Step 1: Understanding the Question:
The piecewise function f(x) must be continuous on [0, π], so we enforce continuity conditions at the boundary points x = π/4 and x = π/2 to determine a and b.
Step 2: Key Formula or Approach:
Continuity at a point x = c requires Left-Hand Limit = Right-Hand Limit = f(c). We equate the adjoining piecewise expressions at each junction.
Step 3: Detailed Explanation:
At x = π/4: (π/4) + a = (π/2) + b → a – b = π/4. At x = π/2: b = –a – b → a = –2b. Solving the system yields b = –π/12 and a = π/6.
Step 4: Final Answer:
The values are a = π/6, b = –π/12, corresponding to option (D).