Fourier analysis — DFT, FFT algorithm (Cooley-Tukey)
4.10.26· Maths › Advanced Topics (Elite Level)
1. The Discrete Fourier Transform (DFT)
YEH formula kyun? (First principles se derivation)
HUM kya chahte hain: ko points par sabse simple periodic functions ka combination likhna — complex exponentials , har integer frequency ke liye ek.
Step 1 — Basis propose karo. Vectors define karo jinka components ho.
Yeh step kyun? points ke discrete grid par sirf distinct frequencies exist karti hain (frequency aur same samples dete hain kyunki ). Toh humein exactly basis vectors chahiye.
Step 2 — Dikhao ki yeh orthogonal hain. Inner product compute karo (conjugate ke saath): Yeh ek geometric series hai jiska ratio hai.
Yeh step kyun? Orthogonality ka matlab hai ki hum har coefficient ko independently extract kar sakte hain — koi linear system solve karne ki zaroorat nahi.
- Agar ho: har term hai, sum .
- Agar ho: lekin , toh .
Is tarah .
Step 3 — Project karo. likho (inverse). ke saath inner product lete hain aur orthogonality use karte hain toh sirf ek term bachta hai, jisse milta hai: Yahi DFT hai. Minus sign isliye aata hai kyunki project karte waqt conjugate lete hain.
2. Naive DFT ki cost
Har mein products ka sum hai; outputs hain complex multiplications. ke liye yeh ops hain — bahut slow. FFT isse fix karta hai.
3. The FFT — Cooley–Tukey (radix-2)
Maan lo even hai (radix-2 ko chahiye). Split karo: (even) aur (odd) lo, :
Key identity: .
Yeh kyun matter karta hai: , toh har inner sum exactly length ka DFT hai: jahaan , .
Free second half (woh symmetry jo speedup deti hai): aur period ke saath periodic hain, aur . Isliye:

Complexity (derive karo)
= -point FFT karne ka kaam. Hum do half-size FFTs karte hain plus butterflies ( combine): Master Theorem se (ya levels unroll karke, har level ka cost ): levels kyun? ko baar baar halve karte hue size 1 tak pahunchne mein steps lagte hain; har full level mein saare values ek baar touch hote hain.
4. Worked examples
5. Common mistakes (Steel-manned)
6. Active recall
Recall Flashcards
#flashcards/maths ke liye DFT formula kya hai? ::: with . DFT basis vectors independently usable kyun hain? ::: Yeh orthogonal hain: (geometric-series argument). inner product zero kyun hota hai? ::: Geometric series jiska ratio lekin hai, toh . Cooley–Tukey split — kaun se do sub-DFTs aate hain? ::: Even-indexed aur odd-indexed samples ke length- DFTs, aur . Key identity jo sub-sums ko half-size DFTs banati hai? ::: . Butterfly equations kya hain? ::: aur . almost free kyun aata hai? ::: , toh sirf sign flip hota hai. FFT recurrence aur uska solution? ::: . Naive DFT se speedup factor kya hai? ::: . Real input ke liye, aur mein kya relation hai? ::: (conjugate symmetry). IDFT mein kyun hai? ::: Basis vectors ka squared norm hai; normalization usse undo karta hai.
Recall Feynman: 12-saal ke bacche ko explain karo
Socho tumne piano par ek chord record kiya ek wiggly line ki tarah. DFT ek aisi machine hai jo sunte hain aur batati hai "itna C, itna E, itna G." Slow tarike se karna aisa hai jaise har note ko recording ke har moment ke against check karo — bahut saara checking. FFT ek smart shortcut hai: recording ko "even moments" aur "odd moments" mein split karta hai, har chote piece ko figure out karta hai, phir ek quick twist se glue karta hai. Baar baar split karne se bahut kam kaam hota hai — aur isi wajah se tumhara phone music bars ko real time mein naachte hua dikhata hai.
7. Connections
- Roots of Unity — aur cyclic structure jo DFT ko power karta hai.
- Geometric Series — basis orthogonality prove karta hai.
- Linear Algebra — Orthogonal Bases — DFT ek unitary (Fourier) matrix se change of basis hai.
- Divide and Conquer Algorithms — merge sort jaisi hi recurrence.
- Master Theorem — solve karta hai.
- Convolution Theorem — FFT polynomial/integer multiplication ko banata hai.
- Continuous Fourier Transform — DFT ka integral limit.
- Sampling & Aliasing (Nyquist) — kyun negative frequencies par wrap karta hai.