4.10.26 · D4 · HinglishAdvanced Topics (Elite Level)

ExercisesFourier analysis — DFT, FFT algorithm (Cooley-Tukey)

2,181 words10 min read↑ Read in English

4.10.26 · D4 · Maths › Advanced Topics (Elite Level) › Fourier analysis — DFT, FFT algorithm (Cooley-Tukey)

Poore note mein yahi do symbols baar baar aate hain. Shuru karne se pehle inhe plain words mein samajh lo:

Figure — Fourier analysis — DFT, FFT algorithm (Cooley-Tukey)

Level 1 — Recognition

Problem 1.1

, , aur ki values batao — koi exponential calculate mat karo, sirf "clockwise rotation kahan land karta hai" ka use karo.

Recall Solution 1.1

Upar figure mein tick marks wali clock imagine karo. Har step ek-aathvaan turn hota hai.

  • : zero steps liye, abhi bhi shuruat mein hi hain .
  • : chaar steps = aadha full turn = ke bilkul opposite wala point .
  • : aath steps = ek poora turn, waapis ghar . Humne kya use kiya: aur "aadha turn hota hai." Koi calculator nahi, sirf circle ki geometry.

Problem 1.2

DFT formula mein, kaun sa index input position hai aur kaun sa output frequency? words mein hamesha kya hota hai?

Recall Solution 1.2
  • = input position (kaunsa sample), yeh woh cheez hai jis par sum liya ja raha hai.
  • = output frequency (kaun sa coefficient tum bana rahe ho).
  • : sabhi samples ka seedha sum (yeh "DC term" hai, average ke barabar). Frequency zero par wave kabhi rotate nahi karti, isliye har sample weight ke saath count hota hai.

Level 2 — Application

Problem 2.1

(position par ek spike), ka DFT compute karo.

Recall Solution 2.1

Sirf nonzero hai, isliye har sum apne term par collapse ho jaata hai: Result: . Matlab: time mein ek bilkul sharp spike frequency mein bilkul flat hoti hai — yeh har frequency ko equally contain karti hai. Yeh "ek delta mein saari frequencies hoti hain" ka discrete cousin hai.

Problem 2.2

Constant signal , ka DFT compute karo.

Recall Solution 2.2

Yeh ratio ke saath ek Geometric Series hai.

  • : ratio , chaaron terms hain, sum .
  • : lekin , isliye .

Result: . Matlab: ek constant sirf frequency hai — Problem 2.1 ka bilkul mirror image. Time mein flat frequency mein single spike.

Problem 2.3

ka poora DFT directly compute karo.

Recall Solution 2.3

Yaad karo . Sirf bachte hain.

  • : .
  • : .
  • : .
  • : .

Result: . aur par do nonzero spikes ek discrete cosine-jaisi wave ka frequency pair hain.


Level 3 — Analysis

Problem 3.1

Prove karo ki real input ke liye, DFT satisfy karta hai (bar matlab complex conjugate). Phir batao ki kyun yeh ek real signal ka spectrum store karne ka kaam aadha kar deta hai.

Recall Solution 3.1

Definition se shuru karo frequency par: use karo (full turns kuch nahi karte): Ab conjugate. Kyunki real hai, , aur (conjugate karna rotation direction flip kar deta hai). Isliye Kyun kaam bachta hai: spectrum ka upper half sirf lower half ka conjugate mirror hai. store karo aur baaki free mein pata hai — real audio spectra isi tarah rakhe jaate hain.

Problem 3.2

Parent note ke orthogonality claim ko numerically verify karo ke liye: dikhao ki , jahan . Explain karo ki argument ki kaun si line ise zero banati hai.

Recall Solution 3.2

Yeh hai. Vanishing line: ratio nahi hai, phir bhi , isliye Geometric Series sum . Orthogonality aur kuch nahi sirf yeh geometric-series cancellation hai — wave poore turns complete karti hai aur average zero ho jaata hai.


Level 4 — Synthesis

Problem 4.1

ka FFT ek Cooley–Tukey split (even/odd) use karke compute karo, aur result interpret karo. Twiddles jo tumhe chahiye ho sakti hain: .

Recall Solution 4.1

Even aur odd positions mein split karo.

  • Even part .
  • Odd part .

Even part ka length-4 DFT sabhi zeros hai: for all . Odd part ka length-4 DFT hai (Problem 2.2 logic se, ab ): , yani .

Butterfly recombine aur for :

  • : ; .
  • : , isliye aur .

Result: . Interpretation: signal "constant " plus "sabse fast wave " hai. Yeh par DC spike (value ) aur par Nyquist spike (value ) ke roop mein dikhte hain — dekho Nyquist. Har doosri frequency bilkul absent hai.

Problem 4.2

Recurrence use karke, radix-2 FFT ke liye kitne exact complex multiplications (twiddle multiplies) karta hai yeh count karo, aur naïve DFT ke se compare karo.

Recall Solution 4.2

Har level par count karo. levels mein se har ek par butterflies hain, aur har butterfly mein ek twiddle multiply hoti hai. Isliye FFT multiply count hai (Inme se kuch se trivial multiplies hain; inhe bhi count karke hum paate hain.) Naïve DFT: complex multiplies. Ratio: kam, pehle se hi itne chote size par. par wahi formula parent note ka speedup deta hai.


Level 5 — Mastery

Problem 5.1

Do length-4 sequences aur ko polynomials ke coefficients maana jaata hai, aur tum unka circular convolution (length 4) chahte ho. Convolution Theorem use karo: transform karo, pointwise multiply karo, inverse-transform karo. Phir direct convolution se verify karo.

Recall Solution 5.1

Circular convolution definition: .

DFT ke through route (theorem: time mein convolution = frequency mein pointwise product). Pehle with : Phir : Pointwise product :

  • .
  • .
  • .
  • (real inputs conjugate symmetry, Problem 3.1).

Inverse DFT , with :

  • .
  • .

Toh . Direct check (polynomial multiply phir mod 4 wrap): , coefficients — kuch wrap nahi hota, toh match karta hai. ✓ Humne kya prove kiya: frequency domain mein multiply karna time mein convolve karne jaisa hi hai. Yahi reason hai ki FFT polynomial aur integer multiplication ko fast banata hai.

Problem 5.2

Ek DFT convention question with a numeric consequence. Physicist Alice forward DFT mein factor aage laati hai aur inverse par koi factor nahi; parent note iska ulta use karta hai. ke liye, Alice ka compute karo aur confirm karo ki yeh parent ke ka times hai.

Recall Solution 5.2

Parent ka . Alice ke forward transform mein hai: . Indeed . ✓ Kyun matter karta hai: factor (ek basis vector ka squared norm, Linear Algebra — Orthogonal Bases se) ko kahin na kahin rehna hi hai. Chahe yeh forward map par ho, inverse par, ya ke roop mein dono par split ho — yeh sirf convention hai — lekin tumhe pata hona chahiye ki tumhari library kaun sa use karti hai warna tumhare amplitudes ke factor se galat ho jaate hain.


Recap

Recall Self-test checklist

Kaun sa time-domain signal totally flat spectrum deta hai? ::: Ek single spike — uska DFT sabhi s hota hai. Constant signal se kaun sa spectrum aata hai? ::: par ek single spike: . Spectrum ki real-input symmetry? ::: . Radix-2 FFT ke multiplies ka butterfly count? ::: . Convolution ko fast arithmetic mein kaise badlate ho? ::: Dono ko transform karo, pointwise multiply karo, inverse-transform karo (Convolution Theorem). DFT se linear (circular nahi) convolution pane ke liye kya karna chahiye? ::: Zero-pad karo length tak taaki koi wraparound na ho.