For two Riemann integrable, $2\pi$-periodic functions $u$ and $v$, we define
$$(u,v)=\frac{1}{2\pi}\int_{0}^{2\pi} u(x)\overline{v(x)} dx$$
where the complex number $(u,v)$ is called the scalar product of the functions $u$ and $v$.
Is is not at all clear to me why this definition works? What is the reason for multiplying one function/vector by the conjugate of another function/vector? And then why would we want to integrate the result of that multiplication?