I just want to see if this is right. I'm not sure I went down the right path.

Find function f(x) and constant a such that

I set x=a and found that a=3. Then I used the fundamental theorem of calculus to get rid of the integral. That left me with

So my final answer is f(x) = x^3 - 3, and a=3. Is this right?