3. (12%) A function f is continuous everywhere and satisfies the equation

$$\int_0^x f(t) dt = -\frac{1}{2} + x^2 + x \sin 2x + \frac{1}{2} \cos 2x$$

for all real x. Compute $f(\pi/4)$ and $f'(\pi/4)$.