Discrete Fourier transform mirrored?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 9K views
lordchaos
Messages
5
Reaction score
0
Why does a discrete Fourier transform seems to produce two peaks for a single sine wave? It seems to be the case that the spectrum ends halfway through the transform and then reappears as a mirror image; why is that? And what is the use of this mirror image? If I want to recover the frequency, phase and magnitude of an oscillation, do I need to use any data from this mirror image?
 
Mathematics news on Phys.org
because

[tex]\cos(\omega t + \phi) = \frac{1}{2} \left( e^{+i \omega t} + e^{-i \omega t} \right)[/tex]

so there is a frequency component at [itex]+\omega[/itex] and at [itex]-\omega[/itex].

because of aliasing due to sampling, negative frequencies are displayed in the upper half of the output of the DFT.
 
Thanks for that. Does this affect how I should extract the magnitude & phase from the transform? Or is it OK to throw the second half away for that purpose?
 
if your input to the DFT is real (i.e. they are complex numbers, but the imaginary part is zero), then yes, the second half is a mirror image of the first half. the real part (or the magnitude) of the DFT output has even symmetry and the imaginary part (or the phase) has odd symmetry.
 
Thanks for your help!