When calculating the coefficients ( c_k ) in a Fourier cosine series, it's essential to consider the interval over which the function is defined and the period of the resulting periodic extension. The confusion arises from the choice of ( L ) and how it relates to the period and the argument of the cosine function in the series.
Understanding the Fourier Cosine Series Basis Functions:
The standard Fourier cosine series for a function defined on the interval ([0, L]) is given by:
[
f(x) = a_0 + \sum_{k=1}^\infty a_k \cos\left(\frac{k\pi x}{L}\right)
]
Here, the basis functions are (\cos\left(\frac{k\pi x}{L}\right)), and they are orthogonal over ([0, L]). The factor (\frac{k\pi x}{L}) ensures that the cosine functions complete an integer number of half-periods over the interval ([0, L]).
Period and Interval Relationship:
When we extend ( f(x) ) to be an even periodic function outside ([0, L]), the period (T) of the extended function is (2L). This is because the function repeats every (2L) units due to the even extension.
Resolving the Confusion:
In the scenario you mentioned, you might think that if the interval is ([0, 2\pi]), then ( L = 2\pi ), leading to:
[
\cos\left(\frac{k\pi x}{L}\right) = \cos\left(\frac{k\pi x}{2\pi}\right) = \cos\left(\frac{kx}{2}\right)
]
However, if we proceed with this ( L = 2\pi ), the period of the extended function becomes ( T = 2L = 4\pi ), not (2\pi). This is inconsistent with the standard Fourier series on the interval ([0, 2\pi]), which assumes a period of (2\pi).
Correct Choice of ( L ):
To align with the standard Fourier series where the period is (2\pi), we should set ( L = \pi ). Then, the basis functions become:
[
\cos\left(\frac{k\pi x}{L}\right) = \cos\left(\frac{k\pi x}{\pi}\right) = \cos(kx)
]
This choice ensures that the cosine functions have arguments of (kx), matching the frequencies in the standard Fourier series for functions with period (2\pi).
Conclusion:
The reason the cosine term has ( kx ) and not ( \frac{kx}{2} ) is because:
- We set ( L = \pi ) when working over the interval ([0, \pi]) or ([-\pi, \pi]) with a period of (2\pi).
- The basis functions then naturally become (\cos(kx)), matching the standard Fourier series representation.
- Setting ( L = 2\pi ) would incorrectly imply a period of (4\pi), which is not consistent with the periodicity of the function in this context.
Key Takeaway:
When dealing with Fourier series, always ensure that the ( L ) in your basis functions corresponds to half the period of the function you're dealing with. For functions with period (2\pi), ( L ) should be set to ( \pi ), resulting in basis functions (\cos(kx)) and (\sin(kx)).
Example:
Suppose ( f(x) ) is defined on ([0, \pi]) and we want to find its cosine series. The basis functions are:
[
\cos\left(\frac{k\pi x}{L}\right) = \cos\left(\frac{k\pi x}{\pi}\right) = \cos(kx)
]
Therefore, when calculating the coefficients ( c_k ), the cosine term has ( kx ), not ( \frac{kx}{2} ).
References:
- Fourier Series and Orthogonal Functions
- Periodicity in Fourier Series
- Relationship between Interval Length and Period in Fourier Series