I have the following question when I was reading a lecture note, (which can be found here: https://www.math.ucdavis.edu/~hunter/book/ch7.pdf)
If $f$ is a function on the 1-dimension torus, which is in the form of $\sum_{n\in\mathbb{Z}}c_n e^{inx}$ with $c_n\in\mathbb{R}$ and $\sum_{n\in \mathbb{Z}}n^2 c_n^2<\infty.$ Is the weak derivative of $f$ always $\sum_{n\in\mathbb{Z}}inc_n e^{inx}$?
From the lecture note, it defines the Sobolev space on the torus to be $H^1(\mathbb{T})=\left\{f\in L^2: f(x)=\sum_{n\in\mathbb{Z}}c_n e^{inx}, \sum_{n\in \mathbb{Z}}n^2 c_n^2<\infty\right\}$. And it also "defines" the weak derivative of a function in the space to be $\sum_{n\in\mathbb{Z}}inc_n e^{inx}$. However I want to make sure it fits with the definition of weak derivative I learned before, so I was trying to show that $$ \int_{\mathbb{T}}(\sum_{n\in\mathbb{Z}}inc_n e^{inx})\phi=-\int_{\mathbb{T}}(\sum_{n\in\mathbb{Z}}c_n e^{inx})\phi', $$ by integration by parts and using Dominated Convergence theorem to pass the limit, but I couldn't find the integrable function to bound $|\sum_{n\in\mathbb{Z}}c_n e^{inx}|$ and $|\sum_{n\in\mathbb{Z}}inc_n e^{inx}|$ almost everywhere under the assumption that $\sum_{n\in \mathbb{Z}}n^2 c_n^2<\infty.$ Could I ask is it the right way to see it? If it's not, how can we explain that the derivative of the infinite sum can be done term by term? Thanks for any help.