Course contentsShow
← Mathematics
Lesson 2458 of 3,12149. Partial Differential Equations (Intro)Free lesson

Fourier Coefficients: The Formulas

Deriving the formulas for computing Fourier coefficients a₀, aₙ, and bₙ using orthogonality relations.

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:

f(x)=a0+∑n=1∞(ancos⁡(nx)+bnsin⁡(nx))f(x) = a_0 + \sum_{n=1}^{\infty} \left(a_n \cos(nx) + b_n \sin(nx)\right)

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:

∫−ππf(x) dx=2πa0\int_{-\pi}^{\pi} f(x)\,dx = 2\pi a_0

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:

∫−ππf(x)cos⁡(nx) dx=πan\int_{-\pi}^{\pi} f(x)\cos(nx)\,dx = \pi a_n

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.