Sketch several periods of the given function and find its Fourier series:
Solution:
The graph of is sketched in Figure 4.
The values of at the endpoints of the intervals do not affect the value of the integrals.
Thus,
Calculation of involves integration by parts:
Taking into account that
,
and
, we finally obtain
Similarly, we calculate the coefficients :
Thus,
To ensure that the Fourier series converges to at every point
,
we need to redefine
at the points of discontinuity
to the average value
. Note that at the points
,
, and no
change is required.
With redefined, we have