Finding the Fourier Series of a step function

Click For Summary
The Fourier series for a step function includes a constant term of 1/4, which represents the average value of the function over the interval [-π, π]. The confusion arises from the calculation of a_0, which is determined by integrating the function over the specified interval. The correct interpretation is that the constant term in the series is a_0/2, not a_0 itself. The function takes the value of 1 on one-fourth of the interval, leading to the average of 1/4. This understanding clarifies the discrepancy noted in the textbook answer.
Tony Hau
Messages
107
Reaction score
30
Homework Statement
Given : ## f(x) = \begin{cases}
0, & -\pi \lt x \lt 0 \\
1, & 0 \lt x \lt \frac{\pi}{2} \\
0, & \frac{\pi}{2} \lt x \lt \pi
\end{cases} ##,
Find the Fourier Series of ##f(x)##.
Relevant Equations
##a_n =\frac{1}{\pi} \int_{-\pi}^{\pi} f(x) \cos(nx)dx##
##b_n =\frac{1}{\pi} \int_{-\pi}^{\pi} f(x) \sin(nx)dx##
The answer in the textbook writes: $$ f(x) = \frac{1}{4} +\frac{1}{\pi}(\frac{\cos(x)}{1}-\frac{\cos(3x)}{3}+\frac{\cos(5x)}{5} \dots) + \frac{1}{\pi}(\frac{\sin(x)}{1}-\frac{2\sin(2x)}{2}+\frac{\sin(3x)}{3} + \frac{\sin(5x)}{5}\dots)$$

I am ok with the two trigonometric series in the answer. However, I don't understand where that ##\frac{1}{4}## comes from.
Since the formula for ##a_0## is ##a_0 =\frac{1}{\pi} \int_{0}^{\frac{\pi}{2}} dx##, which gives ##\frac{1}{2}##, isn't that constant equal to ##\frac{1}{2}## instead of ##\frac{1}{4}##.
 
Physics news on Phys.org
Tony Hau said:
Since the formula for ##a_0## is ##a_0 =\frac{1}{\pi} \int_{0}^{\frac{\pi}{2}} dx##, which gives ##\frac{1}{2}##, isn't that constant equal to ##\frac{1}{2}## instead of ##\frac{1}{4}##.
The first term is the series is ##a_0/2##, not ##a_0##.
 
  • Like
Likes Delta2 and Tony Hau
etotheipi said:
The first term is the series is ##a_0/2##, not ##a_0##.
Thanks. No joke but this thing has bothered me for the whole afternoon... :)
 
  • Like
Likes Delta2 and etotheipi
Tony Hau said:
Thanks. No joke but this thing has bothered me for the whole afternoon... :)

That's annoying... but at least you will never forget it again! :wink:
 
  • Like
Likes DrClaude, Delta2 and Tony Hau
Note that the constant term of the Fourier series is simply the average value of ##f(x)## over the interval of interest (which is ##[-\pi,\pi]## in this case). Since your ##f(x)## has value ##1## on one fourth of this interval (namely on ##[0,\pi/2]##) and value 0 elsewhere, it's clear that the average value of ##f(x)## is ##1/4##. This is a useful property to keep in mind when double-checking your calculation.
 
  • Like
Likes Tony Hau, etotheipi, DrClaude and 1 other person
jbunniii said:
Note that the constant term of the Fourier series is simply the average value of ##f(x)## over the interval of interest (which is ##[-\pi,\pi]## in this case). Since your ##f(x)## has value ##1## on one fourth of this interval (namely on ##[0,\pi/2]##) and value 0 elsewhere, it's clear that the average value of ##f(x)## is ##1/4##. This is a useful property to keep in mind when double-checking your calculation.
Thanks. This is a nice interpretation that is not mentioned in the book.
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K