I want to solve the following:
Given the $2\pi$ periodic function $f$:
$$ f(x) = \begin{cases} 2\pi & for \;\; 0 < x < K \\ 0 & for \;\; K < x<2\pi \end{cases} $$
Where K is a constant between $0$ and $2\pi$.
Find the complex Fourier Series of $f$.
I am new to these kinds of problem and I need an informal, step-by-step explanation of how one finds the series. Thanks so much for helping me out!