Fourier Coefficients: The Formulas
You'll learn how to calculate the exact coefficients that build a Fourier series using integration and orthogonality.
The Core Idea
You already know that trigonometric functions like sine and cosine are orthogonal over a period (say, from -π to π). This orthogonality is the key that unlocks the Fourier series. If we assume a function f(x) can be written as:
then we need formulas to find those mystery coefficients a₀, aₙ, and bₙ.
Deriving the Formulas
For a₀: Integrate both sides of the series from -π to π. All sine and cosine terms integrate to zero (by orthogonality), leaving only:
So: a₀ = (1/2π) ∫₋πᵖⁱ f(x) dx
For aₙ: Multiply both sides by cos(mx) and integrate. Orthogonality kills all terms except when n = m, giving:
So: aₙ = (1/π) ∫₋πᵖⁱ f(x)cos(nx) dx
For bₙ: Similarly, multiply by sin(mx) and integrate:
bₙ = (1/π) ∫₋πᵖⁱ f(x)sin(nx) dx
Think of this like isolating ingredients in a recipe: orthogonality lets you "filter out" each coefficient independently by choosing the right trigonometric function to multiply by.
Key Takeaway: The Fourier coefficients are computed using integrals of the function multiplied by sines and cosines; orthogonality ensures each coefficient is isolated cleanly without interference from other terms.