Skip to main content

4-point DFT by linear transformation

Short answer

The 4-point sequence is x[n] = {1, 2, 2, 1} for n=0..3. Using the DFT matrix with W₄ = −j: X[0]=6, X[1]=−1−j, X[2]=0, X[3]=−1+j. DFT = {6, −1−j, 0, −1+j}.

Determine the 4-point DFT of the signal x[n] = u[n] + u[n−1] − u[n−3] − u[n−4] using linear transformation method.

Find the sequence

x[n]=u[n]+u[n−1]−u[n−3]−u[n−4]x[n] = u[n] + u[n-1] - u[n-3] - u[n-4]. Evaluate it term by term:

nu[n]u[n−1]−u[n−3]−u[n−4]x[n]
010001
111002
211002
311−101
≥411−1−10

So x[n]={1,2,2,1}x[n] = \{1, 2, 2, 1\} for n=0,1,2,3n = 0, 1, 2, 3.

Linear transformation (matrix) method

XN=WNxNX_N = W_N x_N, where WNkn=e−j2πkn/NW_N^{kn} = e^{-j2\pi kn/N}. For N=4N = 4, W4=e−jπ/2=−jW_4 = e^{-j\pi/2} = -j, with W0=1W^0 = 1, W1=−jW^1 = -j, W2=−1W^2 = -1 and W3=jW^3 = j:

W4=[11111−j−1j1−11−11j−1−j]W_4 = \begin{bmatrix}1 & 1 & 1 & 1\\ 1 & -j & -1 & j\\ 1 & -1 & 1 & -1\\ 1 & j & -1 & -j\end{bmatrix} [X[0]X[1]X[2]X[3]]=[11111−j−1j1−11−11j−1−j][1221]\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}1\\2\\2\\1\end{bmatrix}

Row by row:

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

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

Check: X[3]=X∗[1]X[3] = X^*[1], as expected for a real sequence. By Parseval, ∑∣x[n]∣2=1+4+4+1=10\sum|x[n]|^2 = 1 + 4 + 4 + 1 = 10, and 14∑∣X[k]∣2=14(36+2+0+2)=10\frac{1}{4}\sum|X[k]|^2 = \frac{1}{4}(36 + 2 + 0 + 2) = 10.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 3 questions →