Solution
= Solution
For distinct positive integers $m,n$, the product-to-sum identity gives
$$
\sin(nx)\sin(mx)=\frac12[\cos((n-m)x)-\cos((n+m)x)].
$$
Both cosine integrals vanish over $[-\pi,\pi]$, so
$$
\boxed{\langle f_n,f_m\rangle=0\quad(m\ne n).}
$$
If one index is zero, the corresponding function is identically zero and the same answer follows immediately.