Intuition behind the Fourier series I have a simple question:
What is the (analytical) intuition behind the Fourier series:
$f(t)=\frac{a_{0}}{2}+\sum_{k=1}^{\infty}\left(a_{k}\cos\left(kt\right)+b_{k}\sin\left(kt\right)\right)$
I have read in an article that this expression results from $f(t)=\sum_{k=1}^{\infty} d_n\cos (nt+\phi_n)$ using some trigonometric theorems. But the question is still: why can I write every function as the second expression?
 A: I assume that you are familiar with Taylor expansion. In principle this just says that all (analytic) functions can be written as a sum of polynomials. This is in the beginning not trivial at all, but seems to work just fine. I assume that you got used to this fact.
Same thing can be said about the Fourierseries. It's not obvious that this is indeed possible, but it might just work (and as mathematics show, it does indeed work). Fourierseries is in a way similar to Taylor series. We write a function as an infinite sum of other functions.
The space of all functions can be seen as a vector space (if you don't know this, maybe just ignore what's coming next). We can try to find, as with any vector space, a base. Apparently all the sin and cosine fucntions happen to be a base for this vector space.
A: Any function $ f(x)$, between limits $ a $ and $b$ can be expressed as sum of sinusoidals . This is based on the same logic as that of the Taylor/ Maclaurin series, but here for a bounded range of input.
You can basically prove it in reverse by determining the values of the constants by differentiating on both sides w.r.t x and substituting x=0.
A: The reason it works is that ∫ fn*(f1+f2+f3+...) = ∫ (fnf1) + ∫ (fnf2) + ∫ (fn*f3) +....and multiplying any 2 sine waves of frequency n1 and frequency n2 (of period p/n1 and p/n2) and integrating over one period p will always equal zero unless n1=n2. See graph of sin2(x) 
