Let $f:[0,1]\to \Bbb R$ be a bounded, Lebesgue measurable function with satisfies $$\int_{[0,1]}f(x)x^kdx=\frac{1}{(k+2)(k+3)}=\frac{1}{k+2}-\frac{1}{k+3} $$ for each $k\in \Bbb N \cup{0}$. Show that $f(x)=x-x^2$ almost everywhere(with respect to Lebesgue measure) on $[0,1]$.
This problem looks obvious by calculus. I don't know where to start. I cannot thinks a theorem in Lebesgue integration I can use. Could someone kindly provide a hint? Thanks!
It is easy to prove. We know that if $\int_A (f-g)d\mu=0$ then $f=g\hspace 3mm a.e. on A$ then we have to prove that $$\int_{[0,1]}(f(x)-(x-x^2))x^kdx=0$$ But we have $$\int_{[0,1]}((x-x^2)x^k)dx=\frac{1}{k+2}-\frac{1}{k+3}$$ So the problem is solved.