My question is probably very stupid, but I've been strugling for a while on it now...
In need to find the Fourier transform of $1+\cos^3(2\pi ft)$.
I wrote that : $$\cos^3(2\pi ft)=\frac{\cos(6\pi ft)+3\cos(2\pi ft)}{4}$$ And so I have: $$\delta(f) +\frac 18 \bigg[\delta(f-3f_0)+\delta(f-3f_0)\bigg] +\frac 38 \bigg[\delta(f-f_0)+\delta(f-f_0)\bigg]$$
So, on my spectrum, I should have a dirac at $0$, a smaller one at $f_0$ and a smaller at $3f_0$...
But when I process it with matlab (using fast fourier transform), I get this :
(With a frequency of $10\textrm{ kHz}$).
So the dirac I thought would be at $3f_0$ is in fact at $\frac{f_0}{2}$. What am I missing ?