Let, $f:[0,\pi ]\to \mathbb R$ be a continuous function such that $f(0)=0$.
If $\int_{0}^{\pi}t^{n}f(t)dt=0$ for all $n\in\{0\}\cup \mathbb N$ then prove that $f \equiv0$.
Since, $f$ is continuous & $t^{n}$ is also continuous & $t^{n}$ keeps the positive sign throughout the interval $[0,\pi]$, so using $1^{st}$ Mean-Value-Theorem of Integral calculus $\exists$ $\xi\in [0,1]$ such that, $$\int_{0}^{\pi}t^{n}f(t)dt=f(\xi)\int_{0}^{\pi}t^{n}dt=f(\xi).\dfrac{\pi^{n+1}}{n+1}.$$
Using given condition we get $\exists$ $\xi \in[0,1]$ such that, $f(\xi)=0.$ From here how we can conclude that $f\equiv0$ ?
Or any other way to prove this?