The simplest periodic functions are cos(nωx) and sin(nωx). All of them share the period T (they fit a whole number n of cycles inside one period). So they are perfect Lego bricks for anything of period T.
Why are these true? Use product-to-sum, e.g. cosAcosB=21[cos(A−B)+cos(A+B)]. Each piece is cos(kπx/L) with integer k; integrating a full number of cycles over [−L,L] gives 0, unlessk=0 (a constant), which survives.
What does it mean for f to be periodic with period T?
f(x+T)=f(x) for all x; smallest such T>0 is the fundamental period.
What single property of sines/cosines lets us extract Fourier coefficients?
Orthogonality: integrals of products of distinct sines/cosines over one period are zero.
Formula for an (period 2L)?
an=L1∫−LLf(x)cosLnπxdx.
Formula for bn (period 2L)?
bn=L1∫−LLf(x)sinLnπxdx.
Why is the constant term written a0/2?
So that a0 uses the same L1 formula as other an; then a0/2 equals the average of f.
If f is even, which coefficients vanish?
All bn=0 (only cosines survive).
If f is odd, which coefficients vanish?
All an=0 (only sines survive).
What does the Fourier series converge to at a jump discontinuity?
The midpoint 21[f(x+)+f(x−)].
What is the Gibbs phenomenon?
Persistent ~9% overshoot of the partial sums near a jump that doesn't vanish as terms increase.
Fourier series of the square wave (±1, period 2π)?
π4∑odd nnsinnx — odd harmonics only.
Why do PDE solvers need Fourier series?
Separation of variables gives sine/cosine modes; matching an arbitrary initial condition requires expanding it in those modes.
Recall Feynman: explain to a 12-year-old
Imagine you have a weird wiggly line that repeats forever, like a heartbeat monitor. You also have a box of "pure musical notes," each a smooth wave. Fourier's amazing discovery: you can recreate that weird wiggle perfectly by playing the right mix of those pure notes — some loud, some soft, some high-pitched, some low. The "recipe card" for the mix is found by a clever sliding-and-adding trick (integration) that asks "how much of this note is hiding in my wiggle?" Because the notes never get confused with each other (orthogonality), each question gives one clean answer.
Socho tumhare paas koi bhi repeating (periodic) function hai — jaise square wave ya heartbeat pattern. Fourier ka kamaal yeh hai ki is tedhe-medhe shape ko tum pure waves yaani sin aur cos ko mila-jhula ke banaa sakte ho. Har wave ka apna "kitna chahiye" amount hota hai — usi ko hum coefficient an aur bn bolte hain. Yeh waves Lego blocks ki tarah hain, aur Fourier series unka recipe card hai.
Coefficients nikalne ka raaz hai orthogonality. Matlab agar tum do alag waves ko multiply karke ek period par integrate karo, answer zero aata hai. Isi wajah se jab hum poori series ko cos(mπx/L) se multiply karke integrate karte hain, toh saare terms gayab ho jaate hain, sirf ek bachta hai — aur wahi humein am de deta hai. Bilkul vectors mein i^⋅j^=0 jaisa funda hai.
Yeh PDEs mein kyun zaroori hai? Jab hum heat ya wave equation ko separation of variables se solve karte hain, solutions sin(nπx/L) wale forms mein aate hain. Lekin initial condition f(x) koi bhi shape ho sakta hai. Toh us shape ko inhi sine/cosine ke sum mein todna padta hai — yahi Fourier series karti hai. Bina iske PDE ka initial condition match hi nahi hoga.
Do shortcuts yaad rakho: agar function even hai toh sirf cosines (bn=0), aur odd hai toh sirf sines (an=0) — aadha kaam bach gaya. Aur ek warning: jahan function mein sudden jump hai, wahan series exact value nahi, balki midpoint deti hai, aur thoda overshoot karti hai jise Gibbs phenomenon bolte hain. Yeh galti exam mein bahut log karte hain, toh dhyan rakhna.