I am trying to solve exercises for the coming exam, and I am stuck on this exercise:
Evaluate the integral $$\int_{-\pi}^\pi \Big|\sum^\infty_{n=1} \frac{1}{2^n} \mathrm{e}^{inx}\,\Big|^2 \operatorname d\!x$$
A page before it intoduced the Parseval's identity, so I guess it is related to it.
I tried to solve it, but whan ever it try is bad.
Can you please give me some hints? Thanks!
Define $$g(x) = \sum\limits_{n = 1}^{\infty} \frac{e^{inx}}{2^n}$$
This is absolutely convergent everywhere, and defines a continuous function (by, for example, the Weierstrass $M$-test). The Fourier coefficients of $g$ are easy to compute: Define $$c_n = \frac{1}{2\pi}\int_{-\pi}^{\pi} g(x) e^{-inx} dx$$
By orthogonality of the functions $\{e^{inx}\}$, we find that
$$c_n = \frac{1}{2\pi} \int_{-\pi}^{\pi} \sum_{k = 1}^{\infty} \frac{e^{i(k - n)x}}{2^k} dx = \frac{1}{2\pi} \frac{2\pi}{2^n} = \frac{1}{2^n}$$ Then Parseval's identity shows that
$$\int_{-\pi}^{\pi} |g(x)|^2 dx = 2\pi \sum\limits_{n = 1}^{\infty} |c_n|^2 = 2\pi \sum_{n = 1}^{\infty} 4^{-n} = \frac{2\pi}{3}$$