The n-th moment of a real valued function $f$ is defined as: $m_n(f)=\int_{-\infty}^{+\infty}x^nf(x)dx$. I heard that a function $f$ is uniquely determined by its moments. I would be quite surprised if this worked for any $f$. Is it true? And in that case, does anyone know how to re-build $f$ from its moments?
Thanks
This is a classic problem in undergraduate analysis: to use the Weierstrass approximation theorem to show that if $f$ is continuous on $[a,b]$ and $\int_a^b x^n f(x)\ dx=0$ for all natural numbers $n$, then $f=0$. (Can you see that this implies that the moments of a function are unique, by linearity of integration?)
– Jul 20 '15 at 23:32