https://www.youtube.com/watch?v=k8FXF1KjzY0
Can someone explain what is represented by the patterns traced out by the circles in the left part of this animation? If these circles can be thought of as lying in the complex plane they are represented by $e^{i\omega_0kt}$ for different $k$. The Fourier coefficient $\hat{f}(k)$ of the function being expanded should be a complex number specifying the magnitude and phase of these circles, in order for their sum to approach this function. So shouldn't these circles be drawing the function? Why is the function the projection on the imaginary axis? This is like ignoring all the cosine terms no? But why do that and why is the sum of the circles not $f$?
If the addition of the circles is the way to represent $f$ using its Fourier decomposition shouldn't the complex value that results from this addition at each point in time represent $f$ at that time? For another example, youtube.com/watch?v=8Q0NxFt-s7Y what is happening in this animation? Why not take only y here?
The Fourier series for a square wave that is $-1$ for $-\pi < t < 0$ and is $1$ for $0 < t < \pi$ is a sine series. This sine series in $t$ is the imaginary part of an exponential series, which is what they are plotting. So, they consider only the sum of the exponentials with positive imaginary argument $e^{int}$, and they look only at the vertical component. They add the exponentials as you would add vectors in $\mathbb{R}^2$, which is the same as complex addition. Then they plot the height, which is the imaginary component, as a function of $t$, and that is the graph on the right. But I guess they are plotting the graph on the right backwards in time, because the earlier values of time are to the right.