Finding the Fourier Series of a step function

In summary, the conversation discusses the answer in a textbook that presents a formula for a trigonometric series. The formula involves two series, but the individual discussing the content is unsure about where the constant term of ##\frac{1}{4}## comes from. They question whether it should be ##\frac{1}{2}## instead. The expert summarizer explains that the constant term is the average value of ##f(x)## over the interval of interest, and since the function has a value of 1 on a fourth of the interval, the average value is ##\frac{1}{4}##. This is not mentioned in the book, but it is a useful property to remember when double-checking calculations.
  • #1
Tony Hau
101
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
  • #2
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
  • #3
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
  • #4
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
  • #5
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
  • #6
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.
 

1. What is a Fourier series?

A Fourier series is a mathematical representation of a periodic function as a sum of sine and cosine functions. It is used to decompose a complex function into simpler components, making it easier to analyze and manipulate.

2. What is a step function?

A step function, also known as a Heaviside function, is a mathematical function that jumps from one constant value to another at a specific point. It is defined as 0 for all negative values and 1 for all positive values.

3. How is a Fourier series calculated for a step function?

A Fourier series for a step function is calculated by taking the average of the function's values at the jump point. This average value is then used as the coefficient for the cosine function in the Fourier series representation.

4. What is the importance of finding the Fourier series of a step function?

Finding the Fourier series of a step function is important in signal processing and engineering applications. It allows for the analysis and manipulation of complex functions by breaking them down into simpler components. It also helps in understanding the behavior of a function at specific points.

5. Are there any limitations to using Fourier series for a step function?

Yes, there are limitations to using Fourier series for a step function. It can only be used for periodic functions, and the function must have a finite number of discontinuities. Additionally, the Fourier series may not converge at the jump point, leading to inaccuracies in the representation.

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
216
  • Calculus and Beyond Homework Help
Replies
1
Views
343
  • Calculus and Beyond Homework Help
Replies
16
Views
564
  • Calculus and Beyond Homework Help
Replies
1
Views
535
  • Calculus and Beyond Homework Help
Replies
3
Views
416
  • Calculus and Beyond Homework Help
Replies
5
Views
356
  • Calculus and Beyond Homework Help
Replies
3
Views
285
  • Calculus and Beyond Homework Help
Replies
3
Views
364
  • Calculus and Beyond Homework Help
Replies
6
Views
390
  • Calculus and Beyond Homework Help
Replies
3
Views
345
Back
Top