Fourier Expansion of cosine
April 10, 2026 · Luciano Muratore
Following our discussion on the Z-transform and system stability, we return to the continuous domain to perform a detailed derivation of a specific Fourier expansion. This analysis demonstrates how parity and trigonometric identities simplify the process of representing periodic functions.
1. Objective
Given α∈R∖Z, we consider the 2π-periodic function:
f(x)=cos(αx)
Our goal is to compute its real Fourier series representation:
f(x)=2a0+∑n=1∞ancos(nx)+∑n=1∞bnsin(nx)
2. The Fourier Coefficients
The coefficients for a 2π-periodic function are defined by the following integrals:
- Cosine coefficients: an=π1∫−ππcos(αx)cos(nx)dx
- Sine coefficients: bn=π1∫−ππcos(αx)sin(nx)dx
- DC Component: a0=π1∫−ππcos(αx)dx
3. Computation of bn
By applying a parity argument, we can immediately simplify our work:
- cos(αx) is an even function.
- sin(nx) is an odd function.
- The product of an even and an odd function is odd.
Mathematical Property
∫−ππg(x)dx=0 if g is odd.
Consequently, we conclude that bn=0 for all n≥1.
4. Computation of a0
Evaluating the integral for the constant term:
a0=π1∫−ππcos(αx)dx=π1[αsin(αx)]−ππ=απsin(απ)−sin(−απ)
Since sin(−u)=−sin(u), we obtain:
a0=απ2sin(απ)
5. Computation of an
To solve for an, we utilize the following Key Identity:
Trigonometric Product-to-Sum
cosAcosB=21(cos(A−B)+cos(A+B))
Applying this with A=αx and B=nx:
cos(αx)cos(nx)=21(cos((α−n)x)+cos((α+n)x))
The integral becomes:
an=2π1∫−ππ(cos((α−n)x)+cos((α+n)x))dx
Recall that ∫−ππcos(kx)dx=k2sin(kπ) for k=0. Applying this to both terms:
an=2π1(α−n2sin((α−n)π)+α+n2sin((α+n)π))
6. Simplifying sin((α±n)π)
Using the identity sin(u±v)=sinucosv±cosusinv:
sin((α±n)π)=sin(απ)cos(nπ)±cos(απ)sin(nπ)
Since sin(nπ)=0 and cos(nπ)=(−1)n, we have:
sin((α±n)π)=(−1)nsin(απ)
Substituting this back into the expression for an:
an=π(−1)nsin(απ)(α−n1+α+n1)
Combining the terms (α−n1+α+n1)=α2−n2α+n+α−n=α2−n22α, we arrive at the final result:
an=π(α2−n2)2α(−1)nsin(απ)
7. Final Fourier Series Expansion
The full expansion of cos(αx) for α∈/Z is:
cos(αx)=απsin(απ)+∑n=1∞π(α2−n2)2α(−1)nsin(απ)cos(nx)
This series converges to the periodic extension of cos(αx) and illustrates how non-integer frequencies are “distributed” across the integer harmonics of the Fourier basis.