if we can say
$$a(x) = \sum\limits_{n=1}^{\infty} a_{n} \sin(n x) =0, \forall x$$
does this generally imply that all constant coefficients $a_i$ should be zero, or can I construct any number of solutions that may provide the right cancellations to make it zero?
My intuition for superposition of different modes of $\sin(nx)$ is that if $a_i$ is always same-signed (I might be able to show this in my application), then this should be unique, but if each coefficient can have a different sign then it could be anything.
I was looking for someone to confirm or deny what I was thinking, and maybe point me towards more mathematical ideas about why that is so.
Note that $$\int_0^{2\pi}\sin(m\theta)\sin(n\theta)\,d\theta=\frac12\int_0^{2\pi}\cos((n-m)\theta) - \cos((n+m)\theta)\,d\theta = 0$$if $m\ne \pm n$. And when $m = n$, the integral is $\pi$.
Now, what is $\int_0^{2\pi}a(x)\sin(mx)\,dx$?