Fourier Series
Anton Dzhamay
Department of Mathematics
The University of Michigan
Ann Arbor, MI 48109
wPage: http://www.math.lsa.umich.edu/~adzham
email: adzham@umich.edu
Copyright 2004 by Anton Dzhamay
All rights reserved
Packages
Some packages that we use in this worksheet:
Warning, the name changecoords has been redefined
Introduction
In this worksheet we define a number of Maple commands that make it easier to compute the Fourier coefficients and Fourier series for a given function and plot different Fourier polynomials (i.e., finite approximations to Fourier Series). We illustrate how to use these commands (and also the Fourier series themselves) by a number of examples.
Definitions
Shorthand notation for basic functions
Fourier sine coefficients for on the interval
Fourier cosine coefficients for on the interval (note that the formulas are different for and )
Full Fourier coefficients for on the interval
Fourier sine series and Fourier sine polynomial for on the interval (The subtle difference here is that sometimes series (that uses sum ) has troubles with division by zero. The polynomial (that uses add ) does not have this problem, but on the other hand can not evaluate symbolic sums).
Fourier cosine series and Fourier cosine polynomial for on the interval
Full Fourier series and full Fourier polynomial for on the interval
Odd extension of expr from the interval to the whole real line
Even extension of expr from the interval to the whole real line
Periodic extension of expr from the interval to the whole real line
Example 1:
A constant function:
Fourier sine series differs from the function .
Since belongs to the basis of the cosine Fourier family and the full Fourier family, its series are given by just the first term, and so the approximation is exact:
Fourier sine series converges to an odd periodic extension of .
Fourier cosine series converges to an even periodic extension of .
Full Fourier series converges to a periodic extension of .
Clean-up:
Example 2:
An odd function:
Since is odd , its even Fourier coefficients (i.e., ) are zero.
Example 3:
An even function:
Since the function is even , its odd coefficients are zero.
Example 4:
This function is neither even nor odd, and so all of its Fourier coefficients are non-zero:
Example 5:
In this example is a basic function of the cosine Fourier family and the full Fourier family
Example 6:
Since in this case it is hard to obtain general formulas, we'll take from the very beginning:
References
Disclaimer
"While every effort has been made to validate the solutions in this worksheet, Waterloo Maple Inc. and the contributors are not responsible for any errors contained and are not liable for any damages resulting from the use of this material."