- #1
ThinkingOutLoud
- 2
- 0
- Homework Statement
- Find the N-point Discrete Fourier Transform of x(n) = cos(2*pi*n/N)
- Relevant Equations
- DFT: x(k) = series from n=0 to N-1 of x(n) * exp^(-j*2*pi*n*k/N) for k=0 to N-1
IDFT: x(n) = series from k=0 to N-1 of x(k) *(1/N)* exp ^(+j*2*pi*n*k/N) for n = 0 to N-1
Hello,
This is a more general question than anything, but I am curious how to compute the DFT of a cosine wave.
Somebody tried to explain this to me as follows:
start by trying to find an x(k) who's IDFT equals cos(2*pi*n/N).
x(k) = (N/2) * (dirac-delat(k+1) _ dirac-delta(k-1)) only has values at k=1 and k=-1.
Thus the IDFT of x(k) is,
x(n) = series from k=0 to N-1 of (N/2) * (dirac-delat(k+1) _ dirac-delta(k-1))*(1/N)* exp ^(+j*2*pi*n*k/N) for n = 0 to N-1
this only has values at k= 1 and -1, so things simplify to
x(n) = (N/N) * (1/2) * (exp ^(+j*2*pi*n*1/N) + exp ^(+j*2*pi*n*(-1)/N) )
using eulers equation this becomes for cosine (.5*e^ja = cos(a) + i sin(a)
x(n) =cos(2*pi*n/N) which is the correct result (yay :)
However, what I don't understand is how we can justify evaluating k at -1 since our series technically goes from k=0 to N-1.
This makes me think that my solution is wrong. What are your thoughts?
Thanks,
:)
This is a more general question than anything, but I am curious how to compute the DFT of a cosine wave.
Somebody tried to explain this to me as follows:
start by trying to find an x(k) who's IDFT equals cos(2*pi*n/N).
x(k) = (N/2) * (dirac-delat(k+1) _ dirac-delta(k-1)) only has values at k=1 and k=-1.
Thus the IDFT of x(k) is,
x(n) = series from k=0 to N-1 of (N/2) * (dirac-delat(k+1) _ dirac-delta(k-1))*(1/N)* exp ^(+j*2*pi*n*k/N) for n = 0 to N-1
this only has values at k= 1 and -1, so things simplify to
x(n) = (N/N) * (1/2) * (exp ^(+j*2*pi*n*1/N) + exp ^(+j*2*pi*n*(-1)/N) )
using eulers equation this becomes for cosine (.5*e^ja = cos(a) + i sin(a)
x(n) =cos(2*pi*n/N) which is the correct result (yay :)
However, what I don't understand is how we can justify evaluating k at -1 since our series technically goes from k=0 to N-1.
This makes me think that my solution is wrong. What are your thoughts?
Thanks,
:)