IAE Academy

GATE EC · EE · IN

DTFT, DFT and FFT

The DTFT gives the spectrum of a discrete-time signal as a continuous function of digital frequency that repeats every . The DFT is equally spaced samples of that spectrum, computed from a finite block of data, and the FFT is a fast algorithm that computes exactly the same DFT. The working toolkit is small: a table of standard pairs, a few properties (Parseval, the shifts, the value at or ), circular convolution, DFT symmetry and the FFT operation counts. Fix the conventions first and the algebra stays short.

11 previous-year questions · 11 solved · 5 practice questions

The DTFT: definition, convention and existence

The discrete-time Fourier transform (DTFT) writes a sequence as a continuum of complex exponentials . Convention used throughout these notes: is the normalised digital frequency in rad/sample, the transform is written , and the sits in the inverse. Some texts write for this same variable, or use in cycles/sample; the form is given below. The notation is a reminder that the DTFT is the bilateral z-transform evaluated on the unit circle, whenever the ROC includes the unit circle.

Because for every integer , the DTFT is always periodic in with period . One period, (or ), carries all the information. Low frequencies sit near and near every multiple of ; the highest frequency a sequence can have is , the sequence . When comes from sampling at , a component at analog frequency (in Hz) appears at , read modulo : a component with lands at the same as a lower frequency (aliasing).

DTFT (ANALYSIS EQUATION)

Bilateral sum over all , with in rad/sample. Defined when the sum converges (see existence below).

INVERSE DTFT (SYNTHESIS EQUATION)

The integral may be taken over any interval of length . In the convention the belongs to the inverse.

CYCLES-PER-SAMPLE FORM

The same transform in cycles/sample: the period is instead of and there is no in the inverse. For a sampled signal, .

PERIODICITY

Holds for every sequence. So and are the same frequency.

LINK TO THE Z-TRANSFORM

is the bilateral z-transform. Valid only if the ROC of contains the unit circle . For an LTI system this is the frequency response , which exists as an ordinary function when the system is BIBO stable.

DTFT OF A SAMPLED SIGNAL

Here is the continuous-time Fourier transform of , with in Hz. The DTFT of the samples is the analog spectrum, scaled by , with replaced by and repeated every . If for the copies do not overlap, and for .

Existence. Three cases matter. (i) If is absolutely summable, the sum converges uniformly to a continuous function of ; every stable impulse response is in this class. (ii) If is only square summable (finite energy), the sum converges in the mean-square sense and may have jumps. The ideal low-pass sequence is the standard example, and truncating its sum produces the Gibbs overshoot near . (iii) Some sequences that are neither, such as , , and , have a DTFT only in the generalised sense, with impulses repeated every . Growing sequences such as have no DTFT at all, not even a generalised one; they need the z-transform.

SUFFICIENT CONDITION FOR EXISTENCE

Absolute summability is sufficient, not necessary: finite-energy sequences such as the sinc sequence also have a DTFT, in the mean-square sense.

VALUES AT SPECIAL POINTS

Put or in the analysis equation, or in the inverse. These evaluate such sums and integrals without finding at all.

EXAM TIP

Read the limits of a frequency integral. Because is -periodic, , but . Count how many periods the integral covers before applying the inverse formula.

Standard DTFT pairs

Learn these pairs in the convention. Every entry is periodic with period ; in the impulse entries the sum over makes that explicit. Sinc convention used here: , so and its zeros are at the non-zero integers.

Condition / note

All

Integer ; linear phase

(right-sided)

(left-sided)

; differentiation in frequency

Real , ; real and even

for , else

Length ; real and even; value at

for , else

Length ; the same kernel times a linear phase

for , for

; ideal low-pass; value at

(all )

Generalised

Generalised

Generalised

Generalised

Generalised; not absolutely summable

RIGHT-SIDED EXPONENTIAL

For real the magnitude is . With it peaks at at and falls to at (low-pass); for the roles swap (high-pass). For there is no DTFT as an ordinary function.

DIRICHLET KERNEL (LENGTH-N RECTANGULAR PULSE)

Value at (as a limit). Zeros at for integers that are not multiples of . The main lobe is rad/sample wide, null to null. Unlike the continuous-time sinc, the whole expression is periodic with period . The ratio on its own has period only for odd ; for even it changes sign after , and the linear-phase factor changes sign too, so the product is still -periodic.

IDEAL LOW-PASS (SINC) SEQUENCE

(as a limit). The sequence is not absolutely summable but is square summable, with energy by Parseval. It is non-causal and infinitely long, so it cannot be realised exactly.

EXAM TIP

Building other ideal filters from the low-pass one. Delaying it to keeps the magnitude and adds the phase . A high-pass filter with cutoff is . A band-pass filter passing (with ) is , by the modulation property.

EXAM TIP

Check before quoting a pair. with has no ordinary DTFT, and with belongs to the left-sided sequence . The borderline case is , whose DTFT needs the extra impulse train.

DTFT properties and the frequency response

In the table, and . Every property can be checked from the analysis equation in one or two lines, which is the safest way to recover a sign under exam pressure.

Property

Sequence

DTFT

Linearity

Time shift

Frequency shift (modulation)

Cosine modulation

Time reversal

Conjugation

Convolution

Multiplication

Differentiation in frequency

First difference

Accumulation

Time expansion by

if divides , else

Downsampling by

Parseval

TIME SHIFT AND FREQUENCY SHIFT

A delay of samples adds the linear phase and leaves unchanged. Multiplying by shifts the spectrum by , which turns a low-pass sequence into a high-pass one.

TIME REVERSAL AND CONJUGATION

Combining them: .

SYMMETRY OF A REAL SEQUENCE

So and are even in , while and are odd. A real, even has a real, even ; a real, odd has a purely imaginary, odd . More generally, for real the even part transforms to and the odd part to .

CONVOLUTION THEOREM

Linear (aperiodic) convolution. This is why the output spectrum of an LTI system is the input spectrum times its frequency response.

MULTIPLICATION (PERIODIC CONVOLUTION)

The integral runs over one period only, so this is a periodic convolution. Windowing by smears with the window's kernel, which is the origin of spectral leakage.

DIFFERENTIATION IN FREQUENCY

Useful for and, together with Parseval, for .

PARSEVAL'S THEOREM

Energy in time equals the energy spread over one period of frequency. The general form is .

FREQUENCY RESPONSE FROM A DIFFERENCE EQUATION

Take the DTFT of both sides with the time-shift property (). Valid for a stable system; for a causal system that means all poles of inside the unit circle.

SINUSOIDAL RESPONSE OF A STABLE LTI SYSTEM

For real and an input applied for all . Evaluate at the input frequency in rad/sample; reduce modulo first if it is outside .

EXAM TIP

Take the centre of symmetry out as a delay. A real finite sequence symmetric about , i.e. ( may be a half-integer for an even length), has with real, because each pair of equal samples contributes . The rest is a cosine sum, which removes most of the algebra. The phase is linear, so the group delay is , apart from the points where changes sign and the phase jumps by .

WORKED EXAMPLE

Let for and elsewhere, and let . Find (a) in real form, (b) and , (c) , (d) , and (e) .

Solution
  1. (a) Pair the symmetric terms: . It is real and even because is real and even.

  2. (b) and . From (a): and .

  3. (c) , so ; a delay does not change the energy. By Parseval, .

  4. (d) This is the inverse DTFT at without the : .

  5. (e) is the DTFT of , so by Parseval .

  6. Check (e) directly: , and .

Answer: (a) ; (b) and ; (c) ; (d) ; (e) .

The DFT: definition, sampling the DTFT and the DFT matrix

The DTFT is a continuous function of , so a computer cannot store it. The discrete Fourier transform (DFT) takes a finite block of samples, for , and returns numbers , . Convention used throughout these notes: , so the forward DFT carries the negative exponent and the sits in the inverse, and means modulo , reduced to the range to . Both and behave as one period of a sequence with period , so every index is read modulo .

DFT

. is complex in general, even when is real.

INVERSE DFT (IDFT)

Some texts put in both directions (the unitary DFT), and then Parseval has no . These notes keep in the inverse only.

DFT AS SAMPLES OF THE DTFT

Exact when is zero outside ; a length- sequence with is zero-padded to . The samples are spaced apart over one period .

SAMPLING THE DTFT ALIASES IN TIME

If is longer than (or infinitely long), samples of its DTFT recover this time-aliased sum, not . It is the time-domain counterpart of the aliasing caused by sampling a signal too slowly.

DTFT OF A PERIODIC SEQUENCE (DISCRETE FOURIER SERIES)

is the -point DFT of one period, extended periodically in . A periodic sequence is not summable, so its DTFT is a train of impulses at the bin frequencies . If the Fourier-series coefficients are defined as , the same result reads . Check: gives at multiples of and elsewhere, hence .

FREQUENCY OF BIN K

For a sequence sampled at . Bins and correspond to : for , bin represents the negative frequency . For even , bin is .

TWIDDLE-FACTOR IDENTITIES

The first two hold for every ; the last three need even. Periodicity and half-period symmetry of are exactly the identities the FFT exploits. For : , , .

DFT MATRICES FOR N = 2 AND N = 4

with (row , column , both counted from ). is symmetric. With memorised, a 4-point DFT needs only additions, subtractions and multiplications by (a swap of real and imaginary parts with a sign change).

INVERSE AND POWERS OF THE DFT MATRIX

, so is unitary. Applying the DFT twice returns the circularly time-reversed sequence scaled by ; four applications return . Hence every eigenvalue of is one of , .

EXAM TIP

The double DFT reverses, it does not return. If is the -point DFT of , the DFT of the sequence is , not . For it is : index stays in place and the rest reverse.

EXAM TIP

samples of a DTFT are not always the DFT of the original sequence. If a question gives the DTFT of an infinitely long sequence and asks for the IDFT of of its samples, add the time-aliased copies. For with , the result is for .

DFT properties and circular convolution

Because the DFT treats both and as one period of a periodic sequence, every shift, reversal and convolution is circular: indices are taken modulo . In the table all sequences have length , , , and denotes -point circular convolution.

Property

Sequence ()

-point DFT

Linearity

Circular time shift

Circular frequency shift

Circular time reversal

Conjugation

Conjugate and reverse

Real part

Imaginary part

Duality

Circular convolution

Multiplication

Parseval

CONJUGATE SYMMETRY FOR A REAL SEQUENCE

For . So is real and, for even , is real. Only to need computing for even ( to for odd ); the rest are conjugates. If is real and circularly even, , then is real and circularly even; if it is real and circularly odd, , then is purely imaginary and circularly odd.

CIRCULAR CONVOLUTION

Both sequences are treated as length (zero-padded if shorter). Multiplying two -point DFTs and inverting always gives the circular convolution, not the linear one.

PARSEVAL'S RELATION FOR THE DFT

With and in the inverse, the is on the frequency side. Leaving it out gives an answer times too large.

VALUES AT K = 0, N = 0 AND N/2

The last two need even. is times the mean of , and is the mean of the .

Circular versus linear convolution. If has length and has length , their linear convolution has length . For , the -point circular convolution is the linear one wrapped around modulo : every sample of beyond index is added back onto the start. The two therefore agree exactly when nothing wraps, i.e. when . That is why linear filtering with the DFT (or FFT) needs both sequences zero-padded to at least points.

CIRCULAR CONVOLUTION IS ALIASED LINEAR CONVOLUTION

Valid whenever . For , only the first samples can differ from the linear result; samples to equal it.

LENGTH NEEDED FOR LINEAR CONVOLUTION BY DFT

and are the lengths of the two sequences. For a radix-2 FFT, take the next power of at or above .

Computing an -point circular convolution by hand (both sequences no longer than ):

  1. 1. Zero-pad both sequences to length .

  2. 2. Compute the ordinary linear convolution , of length , by the tabular or sliding method.

  3. 3. Wrap it: add to , to , and so on.

  4. 4. Check: , because .

  5. Alternative. Form the circulant matrix whose entry in row , column is : its first column is and each later column is the previous one shifted down by one place circularly. Then .

EXAM TIP

Two real DFTs for the price of one. For real and of length , form and compute one -point DFT . Then and .

EXAM TIP

A circular shift changes only the phase. is the same for and . For even , a circular shift by multiplies by .

WORKED EXAMPLE

and , both starting at . (a) Find the 4-point DFT and verify Parseval. (b) Find , the IDFT of with both DFTs 4-point. (c) Find the 5-point circular convolution , and the smallest for which the -point circular convolution equals the linear convolution.

Solution
  1. (a) With : ; ; . Since is real, .

  2. Parseval: , and . The two sides agree.

  3. (b) A product of 4-point DFTs inverts to the 4-point circular convolution. First the linear convolution, of length : , , , , , . So ; check: .

  4. Wrap modulo 4: , , , . So .

  5. Check through the DFTs: , so and , as found.

  6. (c) Wrap modulo 5: only folds, onto , so . Samples to already equal the linear result, as the rule predicts: corrupted sample.

  7. The smallest with no wrap-around is .

Answer: (a) , and both sides of Parseval equal ; (b) ; (c) , and .

Frequency resolution, zero padding and block convolution

Two different spacings are easy to confuse. The bin spacing (or Hz) is how finely the DTFT is sampled, and it shrinks when you zero-pad. The resolution is how close two spectral lines can be and still show as two peaks. It is set by the length of the actual data record: a record of samples is the signal multiplied by a length- window, whose Dirichlet kernel (main lobe wide) smears every line. Zero padding samples this smeared DTFT more densely, which gives a smoother plot, but it cannot separate lines the window has already merged.

BIN SPACING

is the DFT length, including any zero padding.

RECORD-LENGTH RESOLUTION (RECTANGULAR WINDOW)

is the number of genuine data samples and the observation time. This is a rule of thumb, not an exact threshold: the main lobe of the rectangular window is wide null to null, and whether two tones about apart show as two peaks also depends on their relative phase. Only a longer record improves it. Other windows lower the side lobes at the cost of a wider main lobe.

DFT OF A SINUSOID THAT LANDS EXACTLY ON A BIN

For an integer with , i.e. a whole number of cycles in the record. Likewise gives for integer . If the frequency falls between bins, energy spreads into every bin: spectral leakage.

EXAM TIP

Zero padding does not add information. Padding a 64-sample record to 1024 points gives 1024 samples of the same DTFT, and two tones closer than about still merge. What zero padding does buy: (i) a denser, easier-to-read spectrum; (ii) a length that suits a radix-2 FFT; (iii) the extra length that makes circular convolution equal linear convolution.

Filtering a long signal with the FFT. When the input is very long, or streaming, and the FIR filter has length , cut the input into blocks, filter each block with -point FFTs, and stitch the results together. With new input samples per block, . The two standard stitching methods are compared below.

Overlap-add

Overlap-save

Input blocks

Non-overlapping, samples each, zero-padded to

Length , each overlapping the previous block by samples, so new samples

Transform size

; zero-padded to

(the block length); zero-padded to

What each block gives

The full linear convolution of the block, samples long

An -point circular convolution whose first samples are wrapped (aliased)

Stitching

Add the overlapping output samples of neighbouring blocks

Discard the first output samples of each block; keep the last and place them end to end

Start

Nothing special

Put zeros in front of the first block

The FFT: radix-2 decimation in time and in frequency

A direct -point DFT computes outputs, each a sum of products: complex multiplications and complex additions. The fast Fourier transform (FFT) computes exactly the same (it is not an approximation) by splitting the DFT into smaller DFTs and reusing . The radix-2 algorithms need ; pad with zeros to the next power of if necessary. There are stages, each made of butterflies.

DECIMATION-IN-TIME (DIT) SPLIT

and are the -point DFTs of the even-indexed samples and the odd-indexed samples . Repeat the split until only 2-point DFTs remain.

DIT BUTTERFLY

The twiddle factor multiplies the lower input before the add and subtract. One complex multiplication and two complex additions per butterfly.

DECIMATION-IN-FREQUENCY (DIF) SPLIT

For . The first and second halves of the input are combined, and the even- and odd-indexed outputs each come from an -point DFT.

DIF BUTTERFLY

The twiddle factor multiplies the difference after the subtraction. Still one complex multiplication and two complex additions.

COST OF A DIRECT DFT

Complex multiplications and complex additions : each of the outputs needs products and additions.

COST OF A RADIX-2 FFT

stages of butterflies. The count includes trivial multiplications by and by , which a practical program skips; use the formula as stated unless a question says otherwise. One complex multiplication, done directly as , costs 4 real multiplications and 2 real additions.

SPEED-UP IN MULTIPLICATIONS

For example for .

Stages

Direct: mult. / add.

FFT: mult. / add.

Mult. ratio

/

/

/

/

/

/

/

/

Decimation in time (DIT)

Decimation in frequency (DIF)

Split first

Input samples: even and odd

Output samples: even and odd

Input order (in-place form)

Bit-reversed

Natural

Output order (in-place form)

Natural

Bit-reversed

Twiddle factor

Multiplies the lower input before the add and subtract

Multiplies the difference after the add and subtract

Cost

mult., add.

The same

Bit reversal and stage structure. Write the index in bits and reverse the bits. For : and , so the DIT input order is . Indices whose bit pattern reads the same both ways ( for ) stay in place. In the DIT graph with bit-reversed input, stage () uses the twiddles , , so the first stage is plain 2-point DFTs with . Each stage can overwrite its inputs with its outputs (in-place computation), so only complex storage locations are needed.

EXAM TIP

Counting questions. Stages ; butterflies per stage ; total butterflies , the same as the multiplication count because each butterfly has one multiplication. An -point IDFT costs the same as a DFT plus a scaling by : conjugate , run the forward FFT, conjugate the result and divide by , since .

WORKED EXAMPLE

A signal is sampled at kHz and samples are recorded. They are zero-padded to and a radix-2 FFT is computed. Find (a) the bin spacing; (b) the bin indices of a kHz component and of its mirror image; (c) the number of stages, butterflies, complex multiplications and complex additions, and the saving over a direct DFT; (d) whether tones at Hz and Hz can be relied on to appear as two separate peaks.

Solution
  1. (a) Hz.

  2. (b) . The signal is real, so the mirror is at , which represents kHz.

  3. (c) stages, butterflies per stage, butterflies in all. Complex multiplications ; complex additions .

  4. A direct 1024-point DFT needs complex multiplications, so the FFT needs times fewer, which is .

  5. (d) Resolution is set by the record length: s, so Hz. The tones are only Hz apart, less than the Hz half-width of the main lobe, so the two lobes overlap heavily. Depending on the tones' relative phase the spectrum shows one merged peak, or two humps that do not sit at Hz and Hz; either way the tones are not resolved.

  6. The Hz bin spacing does not decide this, and padding to would not help either. The rule of thumb asks for a record of at least samples ( s), and in practice somewhat more, because at a separation of exactly some relative phases still merge the two peaks.

Answer: (a) Hz; (b) and ; (c) stages, butterflies per stage, complex multiplications, complex additions, times fewer multiplications than a direct DFT; (d) no: Hz is below the Hz resolution of a s record, whatever the zero padding.

PREVIOUS-YEAR QUESTIONS

11 questions from the EC, EE and IN papers

Try each question first, then open the answer. We placed each question under a topic ourselves; the exam paper does not label topics.

See these papers in full: GATE ECE 2024 · GATE ECE 2023 · GATE ECE 2022 · GATE ECE 2020 · GATE ECE 2018 · GATE EE 2023 · GATE IN 2025 · GATE IN 2024 · GATE IN 2020 · GATE IN 2018

GATE 2025 IN Q.54

GATE 2025 · INQ.54 · 2 marks · NAT

Let represent the discrete time Fourier transform of a 4-length sequence , where , , , and . is sampled at to generate a periodic sequence in with period 3, where represents an integer. Let represent another sequence such that its discrete Fourier transform is given as for . The value of is ______ (in integer).

Answer and solution
See the question in the paper
GATE 2025 IN Q.54: answer and solution

GATE 2024 IN Q.53

GATE 2024 · INQ.53 · 2 marks · NAT

The 4-point DFTs of two sequences and are and , respectively. Assuming represents the 4-point circular convolution of and , the value of is ________ (rounded off to nearest integer).

Note: The DFT of a -point sequence is defined as

Answer and solution
See the question in the paper
GATE 2024 IN Q.53: answer and solution

GATE 2023 EC Q.48

GATE 2023 · ECQ.48 · 2 marks · MCQ

Let an input having discrete time Fourier transform be passed through an LTI system. The frequency response of the LTI system is . The output of the system is

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
See the question in the paper
GATE 2023 EC Q.48: answer and solution

GATE 2023 EE Q.50

GATE 2023 · EEQ.50 · 2 marks · NAT

The discrete-time Fourier transform of a signal is . Consider that is a periodic signal of period such that

Note that . The magnitude of the Fourier series coefficient is ________ (Round off to 3 decimal places).

Answer and solution
See the question in the paper
GATE 2023 EE Q.50: answer and solution

GATE 2022 EC Q.55

GATE 2022 · ECQ.55 · 2 marks · NAT

For a vector , the 8-point discrete Fourier transform (DFT) is denoted by , where

Here, . If and , then the value of is ________ (rounded off to one decimal place).

Answer and solution
See the question in the paper
GATE 2022 EC Q.55: answer and solution

GATE 2020 EC Q.29

GATE 2020 · ECQ.29 · 2 marks · MCQ

A finite duration discrete-time signal is obtained by sampling the continuous-time signal at sampling instants , . The 8-point discrete Fourier transform (DFT) of is defined as

Which one of the following statements is TRUE?

  1. (A)

    All are non-zero.

  2. (B)

    Only is non-zero.

  3. (C)

    Only and are non-zero.

  4. (D)

    Only and are non-zero.

Answer and solution
See the question in the paper
GATE 2020 EC Q.29: answer and solution

PRACTICE

5 questions to test yourself

PRACTICE 11 mark · MCQ

Let be the 4-point DFT of , . The 4-point DFT of the sequence , , is

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution

Answer: (B)

  1. Applying the DFT twice gives times the circularly reversed sequence: .

  2. ; multiplying by gives .

  3. Direct check of the first value: , and its DFT at is the sum .

  4. A leaves out the reversal and C leaves out the factor .

PRACTICE 22 marks · NAT

and , both starting at . and are their 4-point DFTs ( zero-padded to length 4), and is the 4-point IDFT of . The value of is ______.

Answer and solution

Answer: (accepted range )

  1. The IDFT of a product of 4-point DFTs is the 4-point circular convolution, not the linear one.

  2. Linear convolution, of length : . Check: the sum is .

  3. Wrap modulo 4: .

  4. Direct check: . The full result is .

PRACTICE 31 mark · NAT

A real sequence , , has 4-point DFT values , and , with . The value of is ______.

Answer and solution

Answer: (accepted range )

  1. is real, so .

  2. Parseval: .

  3. Check: the IDFT gives , whose energy is .

PRACTICE 42 marks · MSQ

has DTFT , with in rad/sample. Which of the following statements is/are correct?

  1. (A)

  2. (B)

  3. (C)

    is largest at

  4. (D)

    If , , is the 4-point IDFT of the samples , , then

Answer and solution

Answer: (A), (B), (D)

  1. A: . At , , so . Correct.

  2. B: By Parseval the integral equals . Correct.

  3. C: , which is largest at (value , so ) and smallest at . Incorrect.

  4. D: Sampling the DTFT at 4 points aliases in time: . At the non-zero terms are , so . Correct.

PRACTICE 52 marks · MSQ

A signal sampled at kHz is recorded for samples. The record is zero-padded to and a radix-2 decimation-in-time FFT (bit-reversed input, natural-order output) is computed. Which of the following statements is/are correct?

  1. (A)

    The DFT bin spacing is Hz.

  2. (B)

    Zero-padding from to points allows two tones Hz apart to be resolved, which a -point DFT could not do.

  3. (C)

    The FFT requires complex multiplications, counting trivial ones.

  4. (D)

    With the flow-graph inputs numbered to , the sample is applied at input position .

Answer and solution

Answer: (A), (C), (D)

  1. A: Hz. Correct.

  2. B: Resolution depends on the record length, Hz, and zero padding does not change it. Incorrect.

  3. C: . Correct.

  4. D: In bits, reverses to . Correct.

OFFICIAL GATE 2027 SYLLABUS WORDING

Copied from the GATE 2027 syllabus; see all 2027 syllabi.

GATE EC

DTFT, DFT

GATE EE

Applications of Fourier Transform for … discrete time signals

GATE IN

DFT and FFT

Preparing in Kolkata? IAE Academy's course for GATE ECE, GATE EE or GATE IN.