# Help interpreting strange spectrum

I am sampling a sinusoidal signal with an oscilloscope and viewing its spectrum using the FFT mode. The signal in time domain is this:

and I am getting this spectrum:

The peak above the red line is clearly the 30 kHz sine signal but, what are all those peaks below the red line? They are clearly not harmonics of my signal... There are peaks even at frequencies below the fundamental... Might this be caused by aliasing? Or what is this?

EDIT:

If the input is a square wave like this one:

I get this spectrum:

EDIT 2:

Following the guidelines in the answer of Ali Chen I have verified that all those "strange peaks" are due to aliasing, just sweeping the frequency and watching how the spectrum moved. I had prepared a gif but cannot find how to embed it here. So I left a link to the gif.

• You seriously need to watch: Fourier Transform by 3blue1brown. Stunningly good. And I think you will understand better.
– jonk
May 17, 2018 at 3:47
• One thing is a perfect sine, continuous from -infinity to + infinity. Another thing is sampling a signal (that may have spurious noise frequency added, but that's not the crucial point) at intervals deltat between tstart and tend. Even in the continuous realm, the Fourier transform of a sine times a rectangle is different from the Fourier transform of a perfect sine. May 17, 2018 at 5:23
• See if this can be of help: download.ni.com/evaluation/pxi/… May 17, 2018 at 5:29
• Intermodulation and aliasing. May 17, 2018 at 10:43

The multitude of spurious frequencies in your FF transform are reflections of undersampled higher harmonics of your signal. These are aliases, as you rightfully noted. See this EDN article for better explanations.

You are not using any cut-off filters on your signal, so all harmonics above the Nyquist frequency are "folded" back into the main frequency window. If you slightly move your main frequency, you will see that some peaks will move left, some move right, since they are coming from different folds.

• "You are not using any cut-off filters on your signal", how can you tell? May 17, 2018 at 5:08
• @HarrySvensson, How can I tell? By the undistorted shape of rectangular wave, and by huge amount of aliased peaks. May 17, 2018 at 6:20
• Ah, clever. I forgot about the infinite series for the rectangular wave. May 17, 2018 at 6:22
• Interesting. I often wondered why I sometimes see peaks moving in the "wrong" direction on my SDR waterfall graph, now I know, thanks :).
– user98663
May 17, 2018 at 9:52

The peak above the red line is clearly the 30 kHz sine signal but, what are all those peaks below the red line? They are clearly not harmonics of my signal... There are peaks even at frequencies below the fundamental... Might this be caused by aliasing?

Here's your so-called "sinusoidal signal": -

Does that look "very" sinusoidal to anyone?

All those little artefacts will produce harmonics in the spectrum and those harmonics that are above the nyquist sampling rate will be pushed down into the base-band and may be seen as spectral lines below your "sine wave" fundamental frequency.

I see 30/60/90 KHz.

I see 15, 45, 75 KHz.

I see baseband trash, at dc - 4KHz, with 10 spectral lines of spacing 500Hertz, that get modulated at -65dB down, probably as Amplitude Modulation or Frequency Modulation (phase noise or jitter)

What is the source of your signal?