Since f is compactly supported, it is supported in some [−R,R] with R>0. Thus, because the power series for ex converges uniformly on compact sets and f is bounded, we have
which is identically 0 for t≥0 by assumption. Thus, by uniqueness of power series, it follows that
∫−RRx2nf(x)dx=0
for all n≥0. Via the change of variables x↦−x, we also get
∫−RRx2nf(−x)dx=0⟹∫−RRx2n(f(x)+f(−x))dx=0.
If we set g(x)=f(x)+f(−x), then clearly g is even, and so x2n+1g(x) is an odd function. Hence,
∫−RRx2n+1g(x)dx=0
by symmetry, i.e., ∫−RRxng(x)dx for all n≥0. Since g is continuous and [−R,R] is compact, Stone-Weierstrass gives us a sequence of polynomials {pn}n such that pn→g uniformly. Then
0=∫−RRpn(x)g(x)dxn→∞∫−RR∣g(x)∣2dx,
so because g is continuous, we have g(x)=0 everywhere, i.e., f(x)=−f(−x) for every x∈R.