- #1
lesdes
- 12
- 0
Homework Statement
Find the Fourier series of the function ##f## given by ##f(x) = 1##, ##|x| \geq \frac{\pi}{2}## and ##f(x) = 0##, ##|x| \leq \frac{\pi}{2}## over the interval ##[-\pi, \pi]##.
Homework Equations
From my lecture notes, the Fourier series is
##f(t) = \frac{a_0}{2}*1 + \sum_{n=1}^\infty a_n cos(nt) + \sum_{n=1}^\infty b_n sin(nt) ##. Instead of ##\infty## we use ##N\leq20 000## because that is the limit of the human ear in Hz. (No clue why this is relevant because it is never mentioned or used again throughout the course; it is only mentioned in the lecture notes next to the definition)
The Fourier coefficients are given by
##a_k = \frac{1}{\pi} \int_{-\pi}^{\pi} f(t)cos(kt) \, dt##, and
##b_k = \frac{1}{\pi} \int_{-\pi}^{\pi} f(t)sin(kt) \, dt##.
Also there is this neat result that if ##f## is odd, then
##a_k = \frac{1}{\pi} \int_{-\pi}^{\pi} f(t)cos(kt) \, dt = 0##, and
##b_k = \frac{1}{\pi} \int_{-\pi}^{\pi} f(t)sin(kt) \, dt = \frac{2}{\pi} \int_{0}^{\pi} f(t)sin(kt) \, dt##.
If ##f## is even, then
##a_k = \frac{1}{\pi} \int_{-\pi}^{\pi} f(t)cos(kt) \, dt = \frac{2}{\pi} \int_{0}^{\pi} f(t)cos(kt)##, and
##b_k = \frac{1}{\pi} \int_{-\pi}^{\pi} f(t)sin(kt)\, dt = 0##.
The Attempt at a Solution
The computations of the Fourier coefficients seem simple enough. I am however confused as to what precisely the problem states.
Do I have to calculate the Fourier series for the function ##f(x) = 1## over the interval ##[-\pi, \pi]## with ##|x| \geq \frac{\pi}{2}## and then for a second function ##g(x) = 0## over the interval ##[-\pi, \pi]## with ##|x| \leq \frac{\pi}{2}##?
Or does this mean ##f(x) =
\begin{cases}
1 & \text{if } |x| \geq \frac{\pi}{2}\\
0 & \text{if } |x | \leq \frac{\pi}{2}
\end{cases}##.
If the former, then what do the conditions ##|x| \geq \frac{\pi}{2}## and ##|x| \leq \frac{\pi}{2}## mean? Do I still use the integrals from ##a = -\pi## and ##b = \pi## or does for example ##|x| \geq \frac{\pi}{2}## mean that the integral bounds are ##a = -\frac{\pi}{2}## and ##b = \frac{\pi}{2}##?
If the latter, then I have not really an idea on how to proceed.