I'm fairly new to the DFT, and I'm trying to get a deeper understanding of what I'm looking at when I look at the polar magnitude of its output.
I have two sinusoids. I generated sinusoid b by just dropping its amplitude linearly to zero over time, and then I generated sinusoid a by just taking the mean amplitude from b. In code, I essentially did:
amp = np.linspace(1.4, 0, N)
sinusoid_b = amp * get_sinusoid(freq=750, len=N)
sinusoid_a = np.mean(amp) * get_sinusoid(freq=750, len=N)
Now, when I take the DFT of these two and plot the polar magnitude, the spectrums are very similar but not quite the same:
This makes sense to me, but at the same time it doesn't. On one hand, I should be able to synthesize two different signals from these two DFTs, so they should be a little different somehow. On the other, since the average amplitudes of the sinusoids over the DFT area is the same, I also would kind of expect the magnitude spectrum to be the same. What exactly am I looking at with the polar magnitude? Is it not the average amplitude of the sinusoids over the area the DFT was taken on?

