Finding the Fourier Series of a step function

Click For Summary

Homework Help Overview

The discussion revolves around finding the Fourier series of a step function, specifically addressing the constant term in the series representation. Participants are examining the derivation of the constant term and its implications in the context of Fourier series.

Discussion Character

  • Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • Participants are questioning the origin of the constant term in the Fourier series, particularly whether it should be ##\frac{1}{2}## or ##\frac{1}{4}## based on the average value of the function over the specified interval.

Discussion Status

There is an ongoing exploration of the correct value of the constant term, with some participants providing interpretations related to the average value of the function. The discussion reflects a mix of confusion and clarification regarding the formulation of the Fourier series.

Contextual Notes

Participants note that the function has a specific value over a portion of the interval, which influences the average value calculation. The interval of interest is mentioned as ##[-\pi,\pi]##, which is relevant to the discussion of the constant term.

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   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: 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.
 

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
2K
  • · 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