If the function \(f(x) = ax^2+bx+sinx\) satisfies all the conditions of Rolle's theorem on \([0,π]\) and the slope of the tangent to the curve \(y = f(x)\) at \(x = \frac{π}{4}\) is zero, then \(a-b =\)
Show Hint
Rolle's theorem needs f(0) = f(pi). Combine that with f'(pi/4) = 0 to find a and b.
Step 1: Two equations, two unknowns:
Rolle: $a\pi^2 + b\pi = 0$, so $a\pi + b = 0$ (dividing by $\pi$).
Tangent: $\frac{a\pi}{2} + b + \frac{1}{\sqrt2} = 0$.
Step 2: Eliminate b:
Subtract the first from the second: $\frac{a\pi}{2} - a\pi + \frac{1}{\sqrt2} = 0$, so $a = \frac{2}{\sqrt2\,\pi} = \frac{\sqrt2}{\pi}$.
Then $b = -a\pi = -\sqrt2$.