Let $f : [0;1] \to \mathbb{R}$ be a continuous function such that $f(0) = 0$. Which of the following statements are true?
a. If $\int_ 0^{\pi} f(t) \cos nt\, dt = 0,$ for all $n \in {0} \cup \mathbb{N}$, then $f= 0$.
b. If $\int_ 0^{\pi} f(t) \sin nt\, dt = 0,$ for all $n \in \mathbb{N}$, then $f= 0$.
c. If $\int_ 0^{\pi} f(t)\,t^n\, dt = 0,$ for all $n \in \{0\} \cup \mathbb{N}$, then $f= 0$.
My thoughts:-
(a) it is not true as we can take $f(t)=\sin{nt}$.
(b)no idea.
(c)it is true.
Does my answers correct?
and what about (b)
All the three are correct.
c. is true due to Stone-Weierstrass Theorem.
For a. extend $f$ to $[-\pi,\pi]$ as an even function. Then, if a. holds for $\cos nx$ in $[-\pi,\pi]$, by symmetry, and for $\sin nx$ since $f$ is even.
For b. extend $f$ to $[-\pi,\pi]$ as an odd function.
For a. and b. we use the fact that: If $f:[-\pi,\pi]\to\mathbb R$ is continuous and $$ \int_{\pi}^\pi f(x)\,\cos nx\,dx=\int_{\pi}^\pi f(x)\,\sin nx\,dx=0, \quad\text{for every}\,\, n\in\mathbb N, $$ then $f$ is constant.