Skip to main content

4-point DFT of {3, −2, 1}

Short answer

Zero-pad to length 4: {3, −2, 1, 0}. Using the 4-point DFT matrix (W₄ = −j) gives X[0]=2, X[1]=2+2j, X[2]=6, X[3]=2−2j. DFT = {2, 2+2j, 6, 2−2j}.

Compute the 4-point DFT for x[n] = {3, −2, 1}.

The sequence has 3 samples, so for a 4-point DFT it is padded with one zero: x[n]={3,−2,1,0}x[n] = \{3, -2, 1, 0\} for n=0,1,2,3n = 0, 1, 2, 3.

Formula

X[k]=∑n=0N−1x[n]e−j2πkn/N,N=4,e−jπkn/2=(−j)knX[k] = \sum_{n=0}^{N-1}x[n]e^{-j2\pi kn/N}, \qquad N = 4, \quad e^{-j\pi kn/2} = (-j)^{kn}

The twiddle factor is W4=e−jπ/2=−jW_4 = e^{-j\pi/2} = -j, with W0=1W^0 = 1, W1=−jW^1 = -j, W2=−1W^2 = -1, W3=jW^3 = j.

Matrix form

[X[0]X[1]X[2]X[3]]=[11111−j−1j1−11−11j−1−j][3−210]\begin{bmatrix}X[0]\\X[1]\\X[2]\\X[3]\end{bmatrix} = \begin{bmatrix}1 & 1 & 1 & 1\\ 1 & -j & -1 & j\\ 1 & -1 & 1 & -1\\ 1 & j & -1 & -j\end{bmatrix}\begin{bmatrix}3\\-2\\1\\0\end{bmatrix}

Each value

X[0]=3+(−2)+1+0=2X[1]=3+(−2)(−j)+1(−1)+0(j)=3+2j−1=2+2jX[2]=3+(−2)(−1)+1(1)+0(−1)=3+2+1=6X[3]=3+(−2)(j)+1(−1)+0(−j)=3−2j−1=2−2j\begin{aligned} X[0] &= 3 + (-2) + 1 + 0 = 2 \\ X[1] &= 3 + (-2)(-j) + 1(-1) + 0(j) = 3 + 2j - 1 = 2 + 2j \\ X[2] &= 3 + (-2)(-1) + 1(1) + 0(-1) = 3 + 2 + 1 = 6 \\ X[3] &= 3 + (-2)(j) + 1(-1) + 0(-j) = 3 - 2j - 1 = 2 - 2j \end{aligned}

Result

k0123
X[k]22 + 2j62 − 2j
|X[k]|22.82862.828
∠X[k]045°0−45°

Answer: X[k]={2, 2+2j, 6, 2−2j}X[k] = \{2,\ 2 + 2j,\ 6,\ 2 - 2j\}.

Checks:

  • X[3]=X∗[1]X[3] = X^*[1], as required for a real sequence.
  • X[0]=∑x[n]=2X[0] = \sum x[n] = 2.
  • Parseval: ∑∣x[n]∣2=9+4+1=14\sum|x[n]|^2 = 9 + 4 + 1 = 14, and 14(4+8+36+8)=14\frac{1}{4}(4 + 8 + 36 + 8) = 14.
  • Inverse DFT: x[0]=14∑X[k]=14(2+2+2j+6+2−2j)=3x[0] = \frac{1}{4}\sum X[k] = \frac{1}{4}(2 + 2 + 2j + 6 + 2 - 2j) = 3. Correct.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 3 questions →