Fourier Series: I don't understand where I am wrong --

Click For Summary
SUMMARY

The discussion centers on the confusion surrounding the calculation of Fourier series coefficients for a piecewise function defined as f(t) = 1 for -π/2 < t < π/2 and f(t) = -1 for π/2 < t < 3π/2. The user correctly identifies the function as even and applies the symmetry formulas for Fourier series, leading to the calculation of a0 and an. However, both coefficients result in zero due to the equal areas under the curve that cancel each other out, indicating a misunderstanding of the function's representation in the Fourier series context.

PREREQUISITES
  • Understanding of Fourier series and their coefficients
  • Knowledge of piecewise functions and their integration
  • Familiarity with the concept of even and odd functions
  • Proficiency in calculus, particularly integration techniques
NEXT STEPS
  • Study the properties of Fourier series, focusing on even and odd functions
  • Learn about the implications of symmetry in Fourier series calculations
  • Explore integration techniques for piecewise functions
  • Review examples of Fourier series with non-zero coefficients to understand the conditions for non-zero results
USEFUL FOR

Students studying Fourier series, mathematics educators, and anyone seeking to deepen their understanding of piecewise functions and their Fourier representations.

thegreengineer
Messages
54
Reaction score
3
Good afternoon people. Recently I started taking a course at my college about Fourier series but I got extremely confused. Here's what's going on. In school we were asigned to use the symmetry formulas to find the Fourier series of the following:

<br /> f\left ( t \right )=\begin{cases}<br /> 1 &amp; \text{ if } \frac{-\pi}{2}&lt;t&lt;\frac{\pi}{2} \\<br /> -1 &amp; \text{ if } \frac{\pi}{2}&lt;t&lt;\frac{3\pi}{2}<br /> \end{cases}<br />

When I graphed this in Grapher I got this:
https://scontent-lax3-1.xx.fbcdn.net/v/t1.0-9/13407101_1738656489752221_1878293657018401357_n.jpg?oh=d155347d56369cb604569b1ed009554f&oe=57D60153
So judging it by its symmetry I see that this is an even function. Therefore:
a_{0}=\frac{2}{T}\int_{0}^{\frac{T}{2}}f\left ( t \right )dt
a_{n}=\frac{4}{T}\int_{0}^{\frac{T}{2}}f\left ( t \right )cos\left ( n\omega_0 t\right )dt
b_{n}=0
Therefore, since this is an even function it can be represented through a summation of cosines:
f\left ( t \right )=\frac{a_0}{2}+\sum_{n=1}^{\infty }a_{n}cos\left ( n\omega_0t \right )

Next, in the integrals for both a0 and an we have the limit from 0 to T/2. According to my professor, this means we take this piecewise function from 0 to half the period. I calculated the period as the subtraction of 3π/2 and -π/2 and I get a period of 2π. Therefore T/2=2π/2=π. So the integrals become:
a_{0}=\frac{1}{\pi}\int_{0}^{\pi}f\left ( t \right )dt
a_{n}=\frac{2}{\pi}\int_{0}^{\pi}f\left ( t \right )cos\left ( n\omega_0 t\right )dt.

So now here is where my struggle begins. When I calculate a0 and an I get this problem. Let's suppose I calculate a0 first. So I need to see which pieces of that piecewise function are in the interval for the integrals (i.e. between 0 and π as we previously calcuated). These functions are 1 and -1; since 1 is in the interval from 0 to π/2, and -1 is in the interval from π/2 to π. So a0 becomes:
a_{0}=\frac{1}{\pi}\int_{0}^{\frac{\pi}{2}}(1)dt+\frac{1}{\pi}\int_{\frac{\pi}{2}}^{\pi}(-1)dt
When I calculate it I get that a0=0. This same thing occurs when I calculate an:
a_{n}=\frac{2}{\pi}\int_{0}^{\frac{\pi}{2}}(1)cos\left ( nt \right )dt+\frac{2}{\pi}\int_{\frac{\pi}{2}}^{\pi}(-1)cos\left ( nt \right )dt.
It also becomes zero because the only thing we are doing is multiplying the cosines to the original, but the integrals themselves still add to zero.
It's logical for those integrals to be zero because the areas that result from below those curves are equal but are opposite in sign so when I add them they cancel each other.
I don't know where I'm wrong in this: whether if its that the symmetry is not even or that the formulas are wrong, that's how they taught this in college. I wonder how to solve this and how to prevent this from happen.
Thanks for your answers.
 
Physics news on Phys.org
MarcusAu314 said:
a_{n}=\frac{2}{\pi}\int_{0}^{\frac{\pi}{2}}(1)cos\left ( nt \right )dt+\frac{2}{\pi}\int_{\frac{\pi}{2}}^{\pi}(-1)cos\left ( nt \right )dt.
It also becomes zero

I don't think so.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K