DFT of Sine Function: Why 2 Values at K=K0 & -K0?

Click For Summary
The discussion centers on the Discrete Fourier Transform (DFT) of the sine function, specifically why it yields two values at k=K0 and k=-K0 despite sine having a single frequency component. This phenomenon arises because the DFT is complex, representing both positive and negative frequency components, with sine being anti-symmetric. If the sine function does not fit an integer number of cycles within the data length N, additional components will appear in the DFT. The inner product of sine and cosine functions of the same frequency is zero, illustrating their orthogonality. Overall, the DFT's structure necessitates both real and imaginary parts to fully represent the frequency content of the signal.
amaresh92
Messages
163
Reaction score
0
why does the DFT of sin(2∏nKo/N) give two value at k=K0 and k=-K0 though sin has only one frequency component and the DFT is complex , what does it mean? frequency can't have any phase the why it is complex?
thanks
 
Engineering news on Phys.org
amaresh92 said:
why does the DFT of sin(2∏nKo/N) give two value at k=K0 and k=-K0 though sin has only one frequency component and the DFT is complex , what does it mean?


it means that

\sin \left( 2 \pi \frac{K_0}{N} n \right) = \frac{1}{2j}\left( e^{j 2 \pi \frac{K_0}{N} n} - e^{j 2 \pi \frac{-K_0}{N} n} \right) \


frequency can't have any phase the why it is complex?

can't quite decode that question.
 
i was going to mention that, with the DFT, unless you apply the periodic nature of the results and move the component at N - K_0 to a bin you create at -K_0, you won't see the component at -K_0. [strike] the other thing to mention, is that you will see other components if your sine function does not have an exact integer number of cycles in the length N data passed to the DFT. in other words N = k \times K_0 where k is an integer. if you don't do that, you will see more than two components. [/strike] the other thing to mention, is that you will see other components if your sine function does not have an exact integer number of cycles in the length N data passed to the DFT. in other words K_0 must an integer to see just two components at K_0 and at N - K_0.
 
Last edited:
The bilateral Fourier transform applied to a sine function would result in a magnitude plot with two peaks like delta functions.

The Fourier transform is essentially the inner product of a function with both sine and cosine functions for all frequencies. This includes negative frequencies.

Cosine is unchanged when the sign of the argument is flipped, and sine is anti-symmetric about zero. It may be useful to know that the negative frequency components of a real function have conjugate symmetry; the signs of the cosine parts are the same for both positive and negative frequency components, where as the signs of the sine components are flipped (one is equal to negative one times the other).

Nonetheless, over all real times and frequencies, the inner product of a sine wave with a +/-sine wave of the same frequency and the inner product of a cosine wave with a +/-cosine wave of the same frequency will be nonzero, where as the inner product of two sine waves of different frequencies (with any relative phase) will be equal to zero. This is why the magnitude plot would have two peaks; most of the inner products are zero, and only for the matching negative and positive frequencies would the inner product not be zero. For the DFT similar reasoning would be applicable.
 
Last edited:
MisterX said:
Nonetheless, over all real times and frequencies, the inner product of a sine wave with a +/-sine wave of the same frequency and the inner product of a cosine wave with a +/-cosine wave of the same frequency will be nonzero, where as the inner product of two sine waves of different frequencies (with any relative phase) will be equal to zero. This is why the magnitude plot would have two peaks; most of the inner products are zero, and only for the matching negative and positive frequencies would the inner product not be zero.

what's the inner product of a sine with a cosine of exactly the same frequency? don't they both have exactly the same negative and positive frequencies?
 
Sine and cosine waves of the same (magnitude of) frequency are orthogonal; their inner products are zero. There is an easy way to show the following
\int _{- \pi} ^{ \pi} cos(\theta)sin(\theta)d\theta = -\int _{0} ^{ \pi} cos(\theta)sin(\theta)d\theta + \int _{0} ^{ \pi} cos(\theta)sin(\theta)d\theta = 0

As such, it would take two sets of real components to express the result of a Fourier transform in general. This explains why each element of the Fourier transform has a cosine part, also known as a the real part, and a sine part, known as the imaginary part.
 
Last edited:
I am trying to understand how transferring electric from the powerplant to my house is more effective using high voltage. The suggested explanation that the current is equal to the power supply divided by the voltage, and hence higher voltage leads to lower current and as a result to a lower power loss on the conductives is very confusing me. I know that the current is determined by the voltage and the resistance, and not by a power capability - which defines a limit to the allowable...

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
4
Views
2K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 40 ·
2
Replies
40
Views
6K
  • · Replies 5 ·
Replies
5
Views
7K