Why only odd cosine terms in this Fourier series?

  • #1
zenterix
702
84
Homework Statement
Consider the function with period ##2\pi## given by

$$f(t)=\begin{cases} \frac{\pi}{4},\ \ \ \ \ t\in [-\pi/2,\pi/2] \\ -\frac{\pi}{4},\ \ \ \ \ t\in [\pi/2,3\pi/2] \\ 0, \ \ \ \ \ t=\pm\frac{\pi}{2}\end{cases}$$

Compute the Fourier coefficients for this function.
Relevant Equations
Since the function is even, there are only cosine terms in the Fourier series.

My question is what is an explanation for the fact that the Fourier series only has odd cosine terms.
This is part of a problem in a problem set in MIT OCW's 18.03 "Differential Equations" course.

This problem uses a nice online applet made for playing with Fourier coefficients.

I was able to solve everything which mainly involved finding the coefficients both by tinkering with the UI and visually arriving at them and also by computing them directly.

As we play with the UI, we quickly see that the even terms aren't useful in approximating the function with Fourier terms.

We are asked why this might be.

I am not sure why.

Below are my calculations and answers to the problems, for the record.

Part (a) are the coefficients I found by playing with the applet.

Part (b) is the calculation of the coefficients.

So of course, from the math we see that the even cosine terms disappear because of the integrals involved. But is there some kind of intuitive reason?

Note that the problem set has solutions, but they don't answer the question that I am asking here.

1709608007477.png
 
Physics news on Phys.org
  • #2
The even cosine terms are all ##\pi##-periodic whereas your function is ##\pi##-anti-periodic (##f(t+\pi) = -f(t)##).
 
  • Like
Likes PeroK

FAQ: Why only odd cosine terms in this Fourier series?

Why do only odd cosine terms appear in this Fourier series?

In some cases, the function being analyzed has certain symmetries that result in the elimination of even cosine terms. For example, if the function is an odd function (f(-x) = -f(x)), the Fourier series will only contain odd harmonics (sine terms). Conversely, if the function is even (f(-x) = f(x)), the Fourier series will contain only cosine terms, and the coefficients for even terms might be zero due to specific boundary conditions or symmetries.

What kind of symmetry causes only odd cosine terms to appear in the Fourier series?

When a function exhibits half-wave symmetry, meaning it repeats with a phase shift of π, only odd harmonics appear in its Fourier series. This type of symmetry effectively cancels out the contributions from even harmonics, leaving only the odd ones.

Can you provide an example of a function that results in only odd cosine terms in its Fourier series?

A common example is the square wave function, which is an odd function. Its Fourier series contains only sine terms with odd coefficients. If we consider a modified version of the square wave that is shifted and scaled to be even, the resulting Fourier series would contain only odd cosine terms.

Is it possible for both sine and cosine terms to be present in a Fourier series with only odd coefficients?

Yes, it is possible for both sine and cosine terms to be present with only odd coefficients if the function has a combination of symmetries. For instance, a function that is neither purely even nor purely odd but has periodicity and specific symmetry properties might lead to a Fourier series where both sine and cosine terms are present, but only with odd coefficients.

How does the interval over which the function is defined affect the presence of only odd cosine terms?

The interval over which the function is defined can significantly influence the Fourier series components. If the function is defined over an interval that enforces half-wave symmetry, such as (0, π) or (-π, π), this can lead to the presence of only odd cosine terms. The specific boundary conditions and the periodicity of the function play crucial roles in determining the harmonic content of the Fourier series.

Back
Top