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

In summary, the DFT of sin(2∏nKo/N) gives two values at k=K0 and k=-K0, even though sin only has one frequency component. This is because the DFT includes both positive and negative frequencies, and the inner product of a sine function with a +/-sine function of the same frequency is nonzero. The DFT is also complex because it requires two sets of real components to express the result.
  • #1
amaresh92
163
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
  • #2
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

[tex] \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) \ [/tex]


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

can't quite decode that question.
 
  • #3
i was going to mention that, with the DFT, unless you apply the periodic nature of the results and move the component at [itex]N - K_0[/itex] to a bin you create at [itex] -K_0 [/itex], you won't see the component at [itex]-K_0[/itex]. [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 [itex]N[/itex] data passed to the DFT. in other words [itex]N = k \times K_0[/itex] where [itex]k[/itex] 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 [itex]N[/itex] data passed to the DFT. in other words [itex]K_0[/itex] must an integer to see just two components at [itex]K_0[/itex] and at [itex]N - K_0[/itex].
 
Last edited:
  • #4
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:
  • #5
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?
 
  • #6
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
[itex]\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[/itex]

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:

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

What is DFT of Sine Function?

The Discrete Fourier Transform (DFT) of a sine function is a mathematical operation that decomposes a discrete-time signal into its constituent frequency components. It is commonly used in digital signal processing and has applications in various fields such as engineering, physics, and mathematics.

Why does the DFT of Sine Function have 2 values at K=K0 & -K0?

This is because the DFT is a complex-valued function and therefore has both a magnitude and a phase. When the input signal is a pure sine wave, the DFT will have two non-zero values at symmetric frequencies, corresponding to the positive and negative frequencies of the sine wave. This is known as the complex conjugate property of the DFT.

What is the significance of the values at K=K0 & -K0 in the DFT of Sine Function?

The values at K=K0 & -K0 represent the magnitude and phase of the input sine wave at the corresponding frequency. The magnitude represents the amplitude of the sine wave, while the phase represents the starting point of the wave. These values are important in analyzing and manipulating signals in digital signal processing.

Can the DFT of Sine Function have more than 2 values at K=K0 & -K0?

Yes, it is possible for the DFT of a sine function to have more than 2 non-zero values at symmetric frequencies. This can happen when the input signal is not a pure sine wave, but a combination of multiple sine waves with different frequencies and amplitudes. In this case, the DFT will have non-zero values at all the corresponding frequencies.

How is the DFT of Sine Function useful in practical applications?

The DFT of a sine function has numerous practical applications, such as in digital filter design, spectral analysis, and signal processing. It allows us to analyze the frequency components of a signal and filter out unwanted frequencies. It is also used in image and audio compression techniques, as well as in solving differential equations in physics and engineering problems.

Similar threads

  • Electrical Engineering
Replies
4
Views
903
  • Atomic and Condensed Matter
Replies
1
Views
676
Replies
4
Views
2K
  • Electrical Engineering
Replies
29
Views
6K
  • Classical Physics
Replies
13
Views
998
  • Engineering and Comp Sci Homework Help
Replies
8
Views
2K
Replies
5
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
2K
  • General Engineering
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
6K
Back
Top