Fourier series a0 term... Confused about a detail
With the Fourier series, I understand how to derive the equations.
However one small detail that confuses me is the a0 term.
In the derivation you end up with something like this
Integral f(x)cos(nx) = Integral a_n cos(nx) *cos (nx)
When you do the integral of the right hand side to isolate the a_nterm, you end up with an n in the denominator. But setting n=0 will not work. You can plug n=0 before integration so the cost terms becomes 1 but this seems arbitrary.
I keep wondering what detail I'm missing. Is this the reason books always show the a0 term separate instead of lumping it with the f(x) = SUM a_n * cos(nx) + b_n * sin(nx) general form?
Posted Jan 9, 2022, 7:26 PM UTC · edited
The a0 term is just the average value of the function over the interval. Its formula is the integral of the function over an interval (a, b), divided by the length of the interval, b - a. It's the zeroeth order Fourier approximation if you want to think of it that way. It's a constant value which best approximates the function over the interval.
This is why it's often written separately from other terms, you don't need to multiply by a sine or cosine term.
I always thought the a0 term was a side case of the ancos(nx) terms ie a0cos(0x)
I was looking to find the most "compact" or general form of the summation so there's less to memorize. For now I can memorize the a0 term must its own integral.
Thanks for the reply
Most compact is f(x) = sum_(k = -infinity, infinity)Ff(k)e^(ikx). If f is in L^2, this sum converges in L^2. More hypotheses on f give different kinds of convergence.
This is just saying that the exponentials e^(ikx) form a Hilbert space Orthonotmal basis of L^2( S^1). It's also usually easier to compute integrals f(x)e^(ikx) as opposed to their real and imaginary parts as you have split it up