Greater Amplitude For High Frequencies: Contact: Tank@usna - Edu
Greater Amplitude For High Frequencies: Contact: Tank@usna - Edu
Contact: [email protected]
See problem 41 on page 79+ ***************************
The value co as defined in the section is equivalent to ½ ao as defined
everywhere else in the known universe. Note that this 'distinct' notation also
leads to a change in the form of Parseval's equality. The rule will be to replace
co by ½ ao throughout to compare with other developments.
Introduction to Fourier Series: More haphazard history It's just a story with
no basis in fact used to introduce a topic.
Fourier studied the problem of the vibrating string fixed at both ends
discovering that it has a set of characteristic vibration patterns in which the string
oscillates in the shape of any multiple of half cycles of a sinusoid with an
amplitude that oscillates sinusoidally in time at frequencies that are proportional to
that multiple of half cycles (m = m o). The result was so appealing that Fourier
declared that these were the only shapes in which one could expect to find the
string. A musician objected immediately claiming that his violin string had a
triangular shape when he plucked it. Stung by the prospect of being proven wrong,
Fourier boldly proposed that all shapes assumed by the violin string could be
represented as a sum of his sinusoids. Indeed any function can be represented as a
sum of sinusoids with just a few restrictions. The allowed sine and cosine
functions are periodic, and each has zero average value. Restrict the issue to
periodic functions or functions defined over a finite interval which can be assumed
to be extended periodically beyond that interval. Toss in an additive constant to
handle the average value, and it works. It works as long as the correct definition for
working is adopted.
Functions are also restricted in that they must be finite and continuous except for perhaps a finite
number of finite discontinuities. Some more exotic behaviors can be tolerated, but here the
In the time-frequency realm, Fourier's conjecture takes the form: Any function
f(t) which is periodic with period T can be represented as a sum of a constant plus
sinusoidal terms with frequencies m m 2 T . The sinusoids are the sine and
cosine. The set of frequencies m ensure that each sinusoid completes an integer m
cycles in the time T, the period of f(t). The base frequency for the expansion is
0 1 2 T which is called the fundamental frequency. This frequency is
Each term in the expansion represents a distinct behavior of a function with period
T. The first term c0 (1), a fancy way to write c0 , is the average value of the
function with the (1) indicating that it represents the constant behavior of the
function. The terms am cos mt represent the independent or distinct ways in which
an even function of period T can wiggle, and the terms bm sin mt represent the
independent or distinct ways in which an odd function of period T can wiggle. It is
crucial to recognize than each term represents an independent behavior. (The
constant c0 is replaced by ½ a0 in almost every other treatment of Fourier series.)
Recall the Cartesian representation of a particle's displacement:
The first three equations are orthogonality relations, and the last three
normalization relations. A displacement in the x direction is exactly like itself and
nothing like either of the other two possibilities. These (dot) inner product
relations provide the method to find the components of r .
r x iˆ r iˆ x iˆ y
ˆj z kˆ x
Take the inner product of the x-direction and r to find the x-component of r .
This process is called projection. The orthogonality of the coordinate directions
insures that the projected components are measures of independent (displacement)
behaviors. The choice of unity normalization ( iˆ iˆ 1; ˆj ˆj 1; kˆ kˆ 1 ) for the three
coordinate directions leads to the familiar result that:
2
r x y z
2 2 2
There is a relation between the norm of the object represented and the sum of the
squares of the expansion coefficients (components). This paragraph may seem a
little silly at this point. Review it after completing this chapter.
Fourier representations work the same way. Orthogonality is the statement that
each term is an independent wiggling of the function. The inner product takes the
form of an integral.
T 2
1
T T 2
g (t ) f (t ) g (t ) f (t ) dt (to be slightly modified later !)
independent wiggling that has zero overlap with any other member of the set.
Therefore, the coefficient in the expansion for a member of the set
{1;{ cos mt };{ sin pt }} can be projected out by multiplying the sum by the
member (behavior) associated with that coefficient and integrating over the range
T 2 ,T 2 .
Fuzzyspeak; not a definition: An inner product gauges degree to which one entity embodies the
behavior of another entity of the same class. To what degree do two vectors point in the same
direction? To what degree do g(t) and f(t) wiggle together ? More about this choice for the inner
product for wiggling functions is to be presented in a meandering mind section below.
product with the function f(t) and with its Fourier expansion.
Begin with 1. Find out how much constant behavior is in the function.
T 2 T 2 T 2 T 2
1 1 1 1
1 c0 dt am 1 cos mt dt bm 1 sin mt dt
T T 2 T T 2 T T 2 T T 2
1 f (t ) dt
m1 m 1
The integrals of the sine and cosines are over an integral number of cycles; hence
they vanish. Wiggling like a sine or cosine for an integral number of cycles is
nothing like being constant. So:
T 2 T 2
1 1
T T 2 T T 2
c0 1 f (t ) dt f (t ) dt f (t ) [FS.2]
T 2 ,T 2 .
To identify the distinct wiggle contributions, the coefficients for each distinct
wiggle behavior are projected out of the sum by invoking the following
orthogonality relations:
T 2
1
sin p t cos mt dt 0
T T 2
T 2
1
sin p t sin mt dt ½ pm
T T 2
[FS.3]
T 2
1
cos p t cos mt dt ½ pm
T T 2
The first relation is trivial as the product of sine and cosine is an odd function. The
later two relations are proven below, and a second set of proofs is a homework
problem. That is: proof by exhaustion follows.
The factor of two arises because the average values of cos2 pt and of sin 2 pt
sin pt and integrating over the range T , T . Use the orthogonality relations.
2 2
The proofs of the orthogonality relations above follow from the identities for
products of sines and of cosines. Recalling that m m 2 T m0 :
2
sin( x)sin( y ) 1 cos( x y ) cos( x y )
0 if pm
2T ( p m)0 ( p m)0 T 2
T 2 T 2
1 1
sin mt sin mt dt 1 cos 0 cos (2m) t dt
T T 2 2
p=m: 0
T T 2
sin (2m)0t
T 2
1 1
t if pm
2T (2m)0 T 2 2
where sin m T 2 sin m 2 T T 2 sin m 0 for all integers m is used.
Hence:
T 2
Exercise: Use the change of variable u = 0t and the trigonometric identity:
2
cos( x) cos( y ) 1 cos( x y ) cos( x y )
T 2
T T 2
F t
F t dt General Orthogonality Relations
N j for i j
i j
T 2 T 2 T 2
1 1 1
1 1 dt 1; T
sin p t sin mt dt 1 pm ;
cos p t cos mt dt 1 pm
T T 2 T 2
2
T T 2
2
The relations state that a member of the Fourier expansion set wiggles like itself
and not at all like any other member of the set over the domain [- ½ T, ½ T].
The Kronecker delta ij is a shorthand for 0 if i j and 1 if i = j.
Inner Products and the Meandering Mind: (This section is not strictly required
to understand the topic of expansions and othogonality, but the ideas may provide
the key to a more global appreciation of the topic.)
The goal is to motivate the definition of the inner product as:
T 2
1
T T 2
g (t ) f (t ) g (t ) f (t ) dt [FS.6]
Backtracking to 3D vectors, A B Ax Bx Ay By Az Bz which becomes more positive
for each component pair that points in the same direction (has the same sign). As
vectors point, this inner (dot) product grows for common pointing (behavior). The
inner product gauges the common behavior of two entities of the same class. How
can this concept be generalized to the inner product of two functions?
Start with a simple case and work up to the real problem. A function assumes a
value at each point in the interval. To begin, represent the function by its values at
N evenly spaced values of its argument. Let tm T 2 T 2 N m T N for m =
Following the expression for the dot product of two displacement vectors, the inner
product of the two functions proposed is:
g (t ) f (t ) g (t1 ) f (t1 ) g (t2 ) f (t2 ) ... g (t N ) f (t N ) g (tm ) f (tm )
m
The sum of the products of the corresponding values at positions behaviors. Not
a bad start, but to get a better picture, the limit N is desired which requires
division by N to keep the expression finite.
N g (t ) f (t ) g (t ) f (t ) ... g (t
g (t ) f (t ) 1 1 1 2 2 N
m
N
) f (t N ) g (tm ) f (tm ) 1
The integral of a function is the limit of the sum of terms of that function times an
infinitesimal step of the integration variable. A step from one bin to the next is
t T so multiplication and division by T is in order. (See Converting Sums to
N
Integrals in the Tools of the Trade section.)
g (t ) f (t ) T N 1T g (t ) f (t ) t 1T g (t ) f (t )dt
g (t ) f (t ) 1
T m
m m
m
m m
This prescription is almost great! The inner product of something with itself
should always be positive. Something should positively behave like itself. To
ensure this feature, a final tweak is made to the definition.
T /2
g (t ) f (t ) 1T g (t )
T / 2
*
f (t )dt [FS.7]
The * represents complex conjugation. This definition is correct for real valued
functions and for complex valued ones. Correct is a slippery concept. Many
definitions of the inner product can be correct as long as each properly gauges the
common behavior of the functions. For example, the scale factor is arbitrary. As
The goal has been to motivate the choice of the overlap integral as the definition of
the inner product. If you have been paying attention, you should not be buying it!
The inner product is about gauging common behavior. The behaviors under
discussion are remaining constant and wiggling which are represented by the
Fourier coefficients c0 ,..., am ,... ,..., bp ,... which would naturally lead to the inner
product definition (which is similar to the sum of the products of the corresponding
components):
The factors of one-half are an annoying penalty for choosing the expansion set
{1;{ cos mt };{ sin pt }} with the uneven mean square value (normalization).
cos t sin t
2 2
12 1; 1 ; 1
m 2 m 2
Other than that, life is wonderful! The two definitions agree. It takes a little
perspiration to establish the equality, but they do agree. The name of some long-
dead mathematician should be tied to this equality. Failing to find a clearly
culpable individual, Parseval is to be given credit for the result. The integral
definition is in the coordinate representation in which the behavior of a function
is to take on a value at a point. The equivalent expression just above is in the
Fourier or frequency-space representation in which the set of certain wiggle
mode behaviors provides a basis for representing functions. As long as the
functions f(t) and g(t) are periodic with period T, these modes provide a complete
set of the possible behaviors for well-behaved functions with period T. In either of
-T -T/2 +T/2 T
-1
Clearly, the function is odd and has zero average value. The Fourier series only
includes terms with the behaviors intrinsic to the function. Only the sine terms
match the zero average value and odd function behaviors. Evaluating the integrals
to find c0 and the {… ap…} yields zero contributions. The expansion has the form:
f (t ) c0 1 am cos mt
m 1
bm sin mt
m 1
b
m 1
m sin mt [FS.11]
yields dt = T/(2p) du. [The standard choice is the argument of the most complicated
function in the integrand. In this case, either u p 2 T t or v 2 T t is a
4
p for p odd 4
1 2 t
bp or f (t )
2m 1 sin 2m 1 T
0 for p even m 0
The inverse p dependence means that the coefficients vanish only slowly in the
high frequency (large p) limit. High frequencies (fast wiggles) are necessary to
Exercise: Sketch the sines on a plot of the square wave. Use the sketches to
explain the absence of the even p terms and the 1/p dependence of the coefficients
for the odd p terms.
0.5
-4 -2 2 4
-0.5
-1
The square wave is evident with only the first three terms. The series expansion
does miss in the region around the discontinuity, but that is expected. A
discontinuity is a rapid change that can only be represented by rapidly changing
functions, high-frequency sinusoids. At the discontinuity, the series sums to zero,
the average of the limits of the function as the discontinuity is approached from
smaller values of the argument and from larger values. Examining the first nine
terms of the expansion does not alter these observations. The inclusion of the
higher frequencies reproduces the jump more faithfully. One potentially
disturbing point is noted. While the miss region near the discontinuity is shrinking
0.5
-3 -2 -1 1 2 3
-0.5
-1
plot through m = 17
Sketch the product of the functions. Repeat using successive values of p. For p
even, sin p 2 T is odd about the points -T/4 and T/4 while the square wave is
even about those points which leads to zero overlap or inner product. Being even
or odd about a value of the argument is a distinct characteristic behavior.
Functions lacking distinct even or odd behavior can be expressed as a sum of an even function
and an odd function. Choosing even and odd about x = a:
f (a x a ) f (a x a ) f (a x a ) f (a x a )
f ( x) f even f odd
2 2
-1
-2
T T
base period: - //2 < t < //2
2 4t for T t T
T 4 2
4t
f (t ) for T t T [FS.12]
T 4 4
2 4 t for T t T
T 2 4
2 t
f (t ) bm sin mt
m1
b
m1
m sin m
T
where
T 2 T 4
2 2
bp sin p t f (t ) dt sin p 2 T t 2 4t T dt
T T 2
T T 2
T 4 T 2
2 2
sin p 2 T t 4t T dt sin p 2 T t 2 4t T dt
T T 4 TT4
p
T 4 n1 2
t sin p 2 T t dt T 2 p u sin u du
n n
T 4 p
2
p
n 1 2p
T u cos u p n u n1 cos u du
n 2
2 p
2 p
2
p
T 4 2 2
t sin p 2 T t dt T 2 p u sin u du
T 4 p
2
2 p
p
2 p 2
T u cos u p cos u du
2
2 p
2
p 1
2
2 (
2
1) for p odd
T
2 p
p 1 p / 2 for p even
A miracle occurs, and the answer appears. Some of the steps toward that miracle
T
include recognizing that the triangle wave is symmetric about t = /4. The
m 2 t
functions sin share this property if m is odd, but not if m is even. The
T
Fourier expansion of the anti-symmetric triangular wave under study contains only
sine terms with frequencies that are odd multiples of the fundamental.
m 2 t
Exercise: Sketch the functions sin
form m = 1, 2, 3 and 4 on a sketch of the
T
T
triangular wave for the region 0 < t < /2. For which m values is the integral of the
T
product of the sine and triangular wave non-zero over 0< t< /2?
Exercise: Complete the detailed evaluation of the bp suggested in the four lines
above this exercise.
8 2 t 1 2 t 1 2 t
f (t ) sin 1 32 sin 3 T 52 sin 5 T ....
2
T
[FS.14]
1
m
8
2 t
sin 2m 1
2 m 0 2m 1
2
T
Plot[{f1[t]- (2 t - t^2)},{t,0,2}]
Again, only the odd index terms appear. As before, for p even, sin p 2 T is
odd about the points -T/4 and T/4 while the triangular wave is even about those
points which leads to zero overlap or inner product. For large m, the expansion
coefficients vanish as 1 which is rather more rapid than the 1 for the square
m2 m
wave expansion coefficients. High frequencies are necessary to follow rapid
variations. The triangular wave is smoother (less jerky) than is the square wave
thus it has less high frequency (fast-wiggle) behavior than does the square wave.
0.75
0.5
0.25
-4 -2 2 4
-0.25
-0.5
-0.75
The first three expansion terms provide a fairly faithful rendition of the triangular
wave. It wobbles a little, but it is not too shabby. There are no discontinuities so
the series appears to smoothly approach the desired function. In particular, no
overshoot phenomenon is evident. As a more complete comparison, the nine-term
representation is displayed below. It is just plain great. One can point at the
corners being rounded, but that is to be expected. A 17 0 wave corners 34 times in
the period of f(t). A corner is therefore expected to make its bend in a fraction 1/34
of the period. A plot with expanded detail and dimensionless period 2 verifies
2
this expectation qualitatively. The bend is expected to require about /34 or one-
4
fourth of the /17 range plotted. The important observation is that, as the number
of terms increases, the regions in which the sum is a poor representation of the
Plot through m = 17
Plot[(8/Pi^2) * Sum[ (-1)^m Sin[( 2 m + 1) x]/(( 2 m + 1)^2), {m,0,100}],
{x,Pi/2-2*Pi/17,Pi/2+2*Pi/17}]
Exercise: Give the Fourier coefficients for a function that is the sum of the unit
amplitude square wave plus the unit amplitude triangular wave discussed above.
How fast do the Fourier coefficients vanish for large m? Why is this dependence
expected?
1
m
8
2 t
sin 2m 1 2m 1
2
m 0 2m 1
2
T 2
1
m
8
2 (t T / 4)
sin 2m 1
2 m
f (t T / 4)
2m 1
2
0 T
8 1
m
2 t
2 sin 2m 1 2m 1
m0 2m 1 2
T 2
8 1
m
2 t
2 cos 2m 1 (1) m
m0 2m 1 2
T
The symmetric triangle wave has the same shape as the anti-symmetric triangle
wave so they have the same magnitudes of each frequency component. The
symmetric triangle wave only contains symmetric basis functions, and the anti-
symmetric wave contains only contains anti-symmetric basis functions. Both
functions have zero average value so no co (ao) term in its Fourier series.
If f(t) is a periodic function of period T, and if between -T/2 and T/2 ,the function is
single-valued, has a finite number of finite discontinuities, has a finite number of
T 2
2
maxima and minima, and if f (t ) dt is finite then the Fourier series as defined
T 2
above converges to f(t) at all points where f(t) is continuous, and, at discontinuities,
the series converges to the average of the left and right limiting values of the
function as it approaches the discontinuity; it converges to the mean value at a
discontinuity.
If the series converges uniformly to the function f(t), we would have for any given
there exists an N such that | f(t) – sN(t)| < for all t [-½ T, ½ T ]. That is, if and
only if life is great, the sequence of partial sums converges uniformly to f(t) in the
interval [-½ T, ½ T ]. If a series converges uniformly, then there is always an N
term (finite sum) that represents the infinite series to any accuracy desired.
Working in terms of the finite sum, interchanging the order of operations of
summing series and integrating (or differentiating) is clearly allowed. That would
be great, but uniform convergence just does not happen in all cases. At a
discontinuity, the series converges to the average of the left and right limits of the
function, and, in the Gibbs overshoot region, the series diverges from the value of
the function by 8.95% of the magnitude of the discontinuity for any large, but
finite sum of terms.
Fourier partial sum sequences do converge in the mean. For every there
T /2
2
exists an N such that f (t ) sN (t ) dt where the limits are just those for any
T / 2
For periodic functions f(t) with 'not too many' discontinuities and that are square
Replace the function with its Fourier series: Parseval and beyond
Once you have the Fourier series for a function, that series can be used in the
T /2
place of the function. Use the orthogonality relations to consider T / 2 f (t ) dt .
2
The summation indices are dummy labels. They may be relabeled at will. At
minimum, rename the labels in a product to ensure that the labels are distinct.
Represent f(t)* and f(t) using distinct summation index labels throughout.
T T *
2
2
f (t ) dt c f 0 a fm cos mt b fq sin qt c f 0 a fp cos pt b fr sin r t dt
2
T T m 1 q 1 p 1 r 1
2 2
T
2
f 0 f 0 f 0
c * c c * a fp cos p b fq sin qt a * fm cos mt ...more horrible stuff
t dt
T
2
p 1 m 1 q 1
T
2
2
f (t ) dt (after envoking orthogonality ) T c f 0 1 a fm 1 b fm
2 2
2
2 2
T
2
m 1 m 1
T
2
2
2 2
2
f (t ) dt T c f 0 1 a fm 1 b fm
2 2
T
2
m 1 m 1
Equally as cool and proven using the same techniques, the inner product relation
can be re-expressed:
T /2
1
T
T / 2
g (t )
*
f (t )dt c*g 0c f 0 1 2 a*gm a fm 1 2 bgp
m
*
b fp
p
[FS.17]
The coordinate and the Fourier representations for the inner product agree at least
as long as our functions are well-behaved. Compare these relations with the
2
expressions A A A Ax Ax Ay Ay Az Az and A B Ax Bx Ay By Az Bz .
c0 1 2 a0
1
T T 2
1 f (t ) dt
1
T T 2
f (t ) dt f (t )
Compute the series for the derivative of f(t) by differentiating the series term by
term. Sketch the derivative. The series represents a symmetric square wave.
Compare the frequency content with that of the anti-symmetric square wave.
1
m
df 8
2 2 t
2
dt
2m 1
m 0
T
cos 2m 1
T
Exercise: Compare the frequency content of the symmetric square wave that
results from the term-by-term differentiation of the anti-symmetric triangular wave
with the frequency content of the anti-symmetric square wave.
1
m
Exercise: Sketch the integral of the triangular wave. Note that the coefficients of
its Fourier series vanish as m-3 for large m. This dependence suggests that the
function has a continuous first derivative. Does your sketch support this
conclusion?
Given a Fourier series for a periodic function f(t) with period T1, the Fourier series
for g (t ) f ( TT12 t ) , a function with the same 'shape' that has been argument stretched
to have a period of T2 can been generated by scaling the independent variable in the
original series. The independent variable in the original series can be scaled in the
same manner to yield the Fourier series for g(t). [1 = 2/T1]
f (t ) c0 am cos m1t
m 1
bm sin m1t
m 1
g (t ) c0 am cos m1
m 1
T1
T2 t
m 1
bm sin m1 T t
T1
2
The function g(t) has the a period of T2 , and the same amplitude as f(t).
Many references assume a period of 2. The result is a series of the form:
f ( x) c0 am cos m x
m 1
bm sin m x
m 1
period 2
T1
The series for the same shape and a period of T is generated by replacing x by T2 t
T1
Mathematica generated series, replace the independent variable by T2 t t
T .
Exercise: Given a periodic function f(t) with period T1, show that g (t ) f ( TT12 t ) is a
The functions sin(t ) and cos((t ) are independent functions so the coefficients of
each must match on the two sides of the equation.
cos(t ) : R ( ) 2 02 cos( ) and sin(t ) : R ( ) 2 sin( )
After applying the two most powerful trigonometric identities [ sin 2 ( ) cos 2 ( ) 1
2
1 2
02 2
2
R( ) D( ) 2
and tan 1
2 2
0
f0 2
x (t ) R( ) f 0 cos(t ) cos t tan 1 2
0
2 02 2
2 2
2
Note that the result above supports the conjecture that a linear system driven by a
pure frequency responds at that same frequency. The strength of the response does
depend on that frequency. Transients associated with 'turn-on' or start-up' require
that additional frequencies be added to the representation of f(t). Invoking
-1
is: [Recall that: f(t) = m F(t).]
c0
am cos mt m
am sin mt m
x(t )
02 2m 02 2m
2 2 2
2 2 2 2
0 m 1 m 1
m m
[FS.18]
2m
m tan 1 2
0 m
2
it looks hopeless. The result is nonetheless very useful, particularly when the
system has a sharp resonance that selects from all the possible m only a few near
0 with the response to frequencies further from resonance being negligible by
comparison.
Why expand in a Fourier series rather than in (say) a Taylor’s series? Series
expansions come in many varieties, and one must choose the type that best suits
the problem. The method of Frobenius revealed the awesome power of Taylor’s
series expansions. The individual expansion base functions (.. xn ..) are simpler
than sines and cosines. Why would you ever bother ? For many important
problems that you study, there exists a set of characteristic solutions. Functions
that just fit-right for that problem. You can recognize their appearance once you
know that the German for characteristic is eigenschaft and that the functions are
eigen-functions. For linear response problems such as the oscillator studied above,
the system responds at the frequency at which it is driven. A pure frequency drive
leads to a response at that same pure frequency. Obviously one wants a series that
represents the driving input in terms of its pure frequency components. Each pure
frequency component can be analyzed independently with no mixing with
Other Fourier Series: The Sine, Cosine and Complex Exponential series
The penalty for using the odd extension is that the extended function will have
additional discontinuities at t = 0 and at t = -S and + S unless f(t) vanishes at these
m.
f(t)
even extension
-S S t
odd extension
Exercise: Consider the function f(t) that consists of two slope-matched parabolic
sections. Consider expanding the function as defined over the interval 0 < t < 2 as
an even or odd function to complete the definition over the period –2 < t< 2.
Would a sine of cosine series converge more rapidly? Assuming that the
coefficients would decrease as m- n for large m predict the value of n for a sine
series expansion and for a cosine series expansion.
1
0.8
0.6
[FS.19] 0.4
0.2
f (t ) -0.2
1 (t 1) 2 t t 2t 0
2 2
for -0.4
-0.6
-0.8
-1
Euler's identity and tons of perspiration can be used to develop the complex
Fourier series with the result that one just uses the same set of frequencies for the
T , T interval. f (t ) d exp i m 2 t A typical coefficient c p is
2 2 m
m
T
T /2
or d p 1T exp i p 2 t f (t ) dt .
T / 2
T
NOTE: To project out the coefficient of a complex-valued function eit , the series is
pre-multiplied by the complex conjugate of that function, eit eit . The same
*
procedure was followed for the real functions. It just did not matter. The
procedure follows from the form of the inner product. The complex conjugate of
g(t) is required.
T g (t )
T /2
g (t ) f (t ) 1
*
f (t )dt
T / 2
T
T /2
1 exp i p 2 t exp i m 2 t dt pm [FS.20]
T / 2
T T
T
T /2 *
1 exp i p 2 t exp i m 2 t dt pm exp ip 2 t exp im 2 t
T / 2
T T T T
The trick is to find a value of the argument that allows the sines to be easily
evaluated. Choose t = T/4.
1 1
m
8
8
f (T ) 1 2
4
2m 1
m 0
2
sin 2m 1
2 2 2m 1
m 0
2
2
1 2
2m 1 8
[FS.22]
m 0
T /2
1
T g (t )
T / 2
*
f (t )dt c*g 0c f 0 1 2 a*gma fm 1 2 a*gp a fp
m p
2
1 2
with the result that
2m 1
8
m 0
Before you cry foul, think about it. It would have been much worse if the two
approaches were in conflict!
Exercise: Relating sums of odd and even index terms for inverse powers.
2
1 2 1 1
1 1 1
2m 1
2
8 n odd n
and …. 2 allm 2m 2 22 allm m2
n even n
m 0
1 1 1 1 1 1 5 1
n
all n
2
n even n
2
2 2 2 2 2
n even n 2 n odd n n odn n 4 n odd n
1 1
Give the values of n
all n
2
and
n even n
2
where all n means all positive integers.
Exercise: Use the Fourier series for the unit amplitude triangular wave and
Parseval's Equality to develop the sum of an infinite series.
1
m
Most of the material has been directed at temporal Fourier series. The relations are
restated for spatial series. In the space-spatial frequency realm, Fourier's
conjecture takes the form: Any function f(x) which is periodic with period L can be
represented as a sum of a constant plus sinusoidal terms with spatial frequencies
m m 2 L . The sinusoids are the sine and cosine. The set of frequencies m
ensure that each sinusoid completes an integer m cycles in the distance L, the
period of f(x). The base frequency for the expansion is 0 1 2 L which is
called the fundamental spatial (angular) frequency. This frequency is
determined by the period of the function to be expanded alone. The frequency
of every term in the expansion is an integer multiple (harmonic) of this
fundamental frequency.
f ( x) c0 1 am cos m x
m 1
b m 1
m sin m x where m m 2 L .
Each term in the expansion represents a distinct behavior of a function with period
period L can wiggle, and the terms bm sin m x represent the independent or distinct
ways in which an odd function of period L can wiggle. It is crucial to recognize
than each term represents an independent behavior.
Begin with 1. Find out how much constant behavior is in the function.
L2 L2 L2 L2
1 1 1 1
am 1 cos m x dx bm 1 sin m x dx
L L 2 L L 2
1 f ( x) dx 1 c0 dx
m 1 L L 2 m 1 L L 2
The integrals of the sine and cosines are over an integral number of cycles - hence
they vanish. Wiggling like a sine or cosine for an integral number of cycles is
nothing like being constant. So:
L2 L2
1 1
c0
L L 2
1 f ( x) dx f ( x) dx f ( x)
L L 2
[FS.23]
The constant part of the function is just its average value over the interval
L 2 , L 2 . Periodic implies all single intervals of length L give the same result.
The factor of two arises because the average value of cos 2 p x and of sin 2 p x
Spatial Fourier series have the same Parseval, inner product and convergence
properties as do the temporal series.
f ( x) d exp i m 2 x [FS.25]
m
m
L
A typical coefficient d p is projected out of the sum by first multiplying both sides
by exp i p 2 L x
L/2 L/2
L
L/2
or d p 1 exp i p 2 x f ( x) dx .
L/ 2
L
exp i m 2 x 2
L m
f ( x) dm L dm L exp i kx k
m
2 L
2
where k = 2/L, the change in k as the index m increments by one from term to
term in the sum. In the limit L , k becomes and infinitesimal, k becomes a
'continuous' rather than a discrete variable [ d m d (k ) ], and the sum of a great
many small contributions becomes an integral.
f ( x) 1
2
d (k ) L eikx dk 1 g (k ) eikx dk
2
The function g(k) is the Fourier transform of f(x) which is the amplitude to find
wiggling at the spatial frequency k in the function f(x). The Fourier transform of
f(x) is to be represented as f (k ) . Sadly, there is no universal treaty covering, the
Fourier transform, and factors of 2 are shuttled from place to place in different
treatments. Some hold that the balanced definition is the only true definition:
f ( x) 1 f (k ) eikx dk
f (k ) 1 f ( x) e ikx dx
[FS.26]
2 2
where the twiddle applied to the function symbol denotes the Fourier transform of
that function. In truth the inverse of 2 must appear, but it can be split up in any
fashion.
1 S S
f ( x) 1
2
f (k ) eikx dk
f (k ) 1
2
f ( x) e
ikx
dx
1
The common choices are S = 0, S = 1 and S = /2.
Vector quantities play a central role in the physics. At the lowest level, a vector is
a quantity that has both magnitude and direction. A quick review of the 'algebra'
satisfied by the collection of all possible displacements in three-dimensional space
is presented below. The collection of functions of a single argument that have
period T obeys an analogous 'algebra', and the Fourier basis set { 1, {… cos(mt)
REVIEW: Displacement Model for a Vector Space
As an introduction, we will review the properties of the collection of all possible
displacements ri of a particle in our familiar model, a flat (Euclidean) infinite three-
dimensional universe.
Rules for the Addition of Displacements
A1. The sum of two displacements is another allowed displacement.
r1 r2 r3
A2. Additions can be regrouped without changing the resultant displacement.
r1 r2 r3 r1 r2 r3
A3. The order of additions can be changed without changing the sum.
r1 r2 r2 r1
A4. There is a displacement that does not change the position of the particle.
ri 0 ri for all ri .
A5. For any displacement ri , there is another ri that has the opposite action on a particle's
position.
for all ri , ri ri 0 .
Rules for the Multiplication of Displacements by Scalars
M1. If ri is an allowed displacement, then c ri is also an allowed displacement.
M2. The scalar multiple of a sum of displacements is the same as the sum of the same multiple of
the individual displacements.
c r1 r2 cr1 c r2 , an allowed displacement
M3. A sum of scalars times a displacement is the sum of the individual scalars times that
displacement.
c d ri c ri d ri , an allowed displacement
M4. The scalar multiplication of displacements is associative.
c d ri ri c d ri .
M5. One times any displacement is that same displacement.
1 ri ri ri .
familiar set iˆ, ˆj , kˆ is orthogonal iˆ ˆj ˆj kˆ kˆ iˆ 0 in the sense that each represents a
unit displacement that is completely independent of the other two. The set is also unity
normalized as: iˆ iˆ ˆj ˆj kˆ kˆ 1 . The components of a vector can be found by projection
using the inner product.
cx r x iˆ r ; cy r y ˆj r ; cz r z kˆ r
The inner product of two displacements can be expressed in terms of their components.
r1 r2 c1x c2 x c1 y c2 y c1z c2 z
The Fourier Series basis set is orthogonal, but it is not unity normalized.
behavior. Choose the cos pt behavior. Multiply the series by cos pt and
*
use the orthogonality relations. ( ! Omit the complex conjugation for real
functions.)
T /2 T /2
T / 2
cos pt f (t ) dt
T / 2
cos pt c0 dt
T /2 T /2
am cos pt cos mt dt bm cos pt sin mt dt
m 1 T / 2 m 1 T / 2
Each function in the basis behaves like itself and not at all like any other so only
the cos-cos integral with m = p survives.
T /2 T /2
T T
cos pt f (t ) dt a m cos pt cos mt dt am m a p
T / 2 m 1 T / 2 m 1 2 2
All operations on the function can be defined in terms of actions on the Fourier
components (coefficients) of the functions. The series for the sum of two functions
(with period T) is the series with components that are the sum of the corresponding
components in the series for the individual functions. The scalar multiple of a
function has Fourier components that are that same scalar multiple of the Fourier
components of the original function. The inner product of two functions can be
g (t ) cg 0 1 agm cos mt
m 1
b
m 1
gm sin mt [FS.29]
T /2
g f 1
T T / 2
g (t ) f (t )dt c*g 0c f 0 1 2 a*gm a fm 1 2 bgp
*
m p
*
b fp
The annoying factors of 1/2 appear because the Fourier basis set is not unity
normalized. Recall that the average value of cos 2 pt or of sin 2 pt is one half
(while the average value of 1 is 1 !). Forgive Fourier; he did not realize that he
was defining a basis for a vector space.
In a similar fashion, the number of bound states for a hydrogen atom is countable.
Don't sweat it! Several mathematicians assure me that a countable infinity is
hardly more than a finite number in the sense that it causes no problems beyond the
headache currently throbbing between your temples.
STOP ! The lines below are just ideas for additional topics.
Proceed to: Tools of the Trade.
Review this section after you have studied vector spaces. The space of functions
off the unit circle. The unit circle is a circle of radius one centered on the origin of
the x-y plane. The coordinates of each point on the circle are therefore cos ,sin
45º (1,0)
1 (-1,0)
x x
(0,-1)
0 for m 8 p 1 for m 8 p
1 2 for m 8 p 1 1 2 for m 8 p 1
1 for m 8 p 2 0 for m 8 p 2
1 2 for m 8 p 3 1 2 for m 8 p 3
sin[m ] cos[m ]
4 0 for m 8 p 4 4 1 for m 8 p 4
1 2 for m 8 p 5 1 2 for m 8 p 5
1 for m 8 p 6 0 for m 8 p 6
1 2 for m 8 p 7 1 2 for m 8 p 7
f(t) 2
-1
-2
T 4
2
sin p 2 T t 4t T dt
T T 4
Pull all the dimensioned quantities out of the integral. Choose u p 2 T t . Here T
is the period and t is the time so u is dimensionless.
The recommended choice for the change of variable is the argument of the most
complicated function in the integrand. Here the argument of the sine function was
( x x0 )
2
chosen. There are some variants of this rule as a form like e a2
requires
.
2
u 2 ( x x0 ) a2
2 p t
T 4
2 T4
T p 2 T T 2 p dt
2
sin p 2 T t 4t T dt sin p 2 T t 4
T T 4 T T 4 2 p
4
2 p 2
T 4
u T 2 p du
2
sin p 2 T t 4t T dt sin u
T T 4 T p 2 2 p
2 p 2
T 4
2
sin p 2 T t 4t T dt 2 2 sin u u du
T T 4 p p 2
It is said that an integral is a sum of little pieces, but some precision is required
before the statement becomes useful. Beginning with a function f(t) and a
i N
sequence of values for t = {t1,t2,t3, ….,tN}, the sum f (t )
i 1
i does not represent the
t
integral
t
f (t ) dt even if a great many closely spaced values of t are used. Nothing
i N
has been included in the sum to represent dt. One requires f (t ) t
i 1
i i where
2 t
ti 1 i 1 ti1 is the average interval between sequential values of t values at ti.
i N
For well-behaved cases, the expression f (t ) t
i 1
i i approaches the Riemann sum
t
area under the curve between t< and t>. That is: it represents t
f (t ) dt provided the
sequence of sums converges, and life is good. The theory of integration is not the
topic of this passage. The goal is simply to remind you that the t must be
factored out of each term that is being summed in order to identify the integrand.
f(t i)
f(t1) f(t k )
t t
t1 t2 ti tk tN
area = f(tk ) t
t< t>
For the discussion of the inner product, the function h(t) = g(t) f(t) was considered
m N
at N equally spaced points between –T/2 and +T/2. This leads to the sum h(t
m 1
m )
number of terms gets large, the sum must be divided by N to keep the result finite
m N
leading to h(t ) 1 N .
m 1
m The rule for converting sums to integral requires that
h(tm ) 1
m 1
N
m 1
[ 1T h(tm )] N [ 1T h(t
T
m 1
m )] t which becomes
1
m
Converting alternating term sums:
m 0 2m 1
4
= 0.7853982
1
7 m
Summing through m = 7:
m 0 2m 1
0.7542680
Converting a sum to an integral is sure fail unless the change in the value of terms
is small compared to the absolute value of the terms from one term to the next.
The conversion may fail anyway, but unless this condition is met, it’s hopeless.
The series above is an alternating (sign) term series. The magnitude of the change
in value of the sum from term to term is twice the magnitude of the terms. A trick
is needed. Combine positive and negative terms in pairs. It is a trick; think about
the sums below to verify that they are equal.
1
m
1 1 2
m 8 2m 1
4
4 1 4 3
4
16 2 16 3
The last sum has the advantage that it is a sum of positive terms that vanish more
rapidly than do the alternating terms in the original series. It has better convergence
properties.
To convert to an integral, must be factored from each term, but takes on
every integer greater than 4, the starting point, so 1 .
2 2 2 1 19
4
16 2 16 3
4
16 2 16 3 16 2 16 3 d 4 ln 17 .0278064
4
1
7 m
2
m 0 2m 1
16
2
16 3
d 0.7821 With patience one can do better.
4
4 N 3
2 1 1
Exercise: Show that: 2
16 16 3
d
4 1 4 3
d u 1 du 4 . Use the
N N 4 N 1
Bounding the sum: Suitable choices of limits can provide both upper and lower
bounds for the sum. A careful sketch shows that for a monotone decreasing
It seems that splitting the difference is reasonable so long as one remembers the
bounds on the proven range.
The Riemann zeta is particularly important (p) = n n 1
p
. As many Fourier series
n even 0
n p 2 p n p
n 1
n odd 0
n p (1 2 p ) n p
n 1
How can a representation for a symmetric square s(t) wave be built using a
representation of an anti-symmetric square wave a(t)? A reliable procedure for
translating the argument is required. To begin, prepare a figure.
a(t) s(t’)
t
T /4 t’
t’ t
4
1 2 t
a ( t) =
2m 1 sin 2m 1
m0 T anti-symmetric square wave
4 1
2 t ' T 4
s(t') = a(t' + T/4) = sin
m 0 2m 1
2 m 1
T
symmetric square wave
4 1m
2 t '
s(t') = cos 2m 1 or simply
m 0 2m 1 T
4 1m 2 t
s ( t) = cos 2m 1 .
m 0 2m 1 T
The Fourier series for the symmetric square wave has been deduced from the series
for the anti-symmetric square wave by carefully applying an argument translation.
The inner product of two 3D vectors is to be defined as: A B A B cos AB .
It is assumed that the following properties are known:
The inner product of two vectors returns a scalar value.
i.) A c B c A B where c is a scalar multiplier.
ii.) A B C A B A C
iii.) A B B A for all A and B .
iv.) A A 0; A A 0 iffi A 0
FS1. Establish the orthogonality of the basis set eˆ1 , eˆ2 , eˆ3 iˆ, ˆj , kˆ .
If the expansions are robust, they can be used in place of the vectors.
Note the use of distinct dummy summation indices.
3 3 3 3
A B Ai eˆi B j eˆ j
i1 j 1
A B eˆ eˆ
i j i j
i1 j 1
3 3 3
A B
Ai B j ij Ai Bi
i 1 j 1 i 1
Summing over j, the Kronecker delta picks out the one term with j = i.
Hence we have developed a second representation of the inner product that is
expressed in terms of the expansion coefficients.
3
A B A B cos AB Ai Bi Ax Bx Ay By Az Bz
i 1
FS3. Suppose that a vector has two expansions in terms of the set.
3 3
A Ai eˆi Ai/ eˆi
i 1 i 1
Show that the coefficients must be equal term by term. Take the inner product on
both sides with an independent expansion set member.
3 3 3 3
eˆ j Ai eˆi Ai eˆ j eˆi eˆ j Am/ eˆm Am/ eˆ j eˆm
i 1 i 1 m 1 m 1
3 3
A
i 1
i ji Am/ jm Aj A/j
m 1
In the sum over i, the Kronecker delta picks out the one term with i = j. The
analogous collapse occurs for the sum over m. The conclusion is that the expansion
coefficients must be equal term by term so that the expansion in terms of an
FS4. For a vector H c f F cg G , one finds the expansion coefficients using the
canonical prescription.
Hj
eˆ j H
eˆ j H
eˆ j c f F cg G
c f eˆ j F
cg eˆ j G
c f F j cg G j
eˆ j eˆ j eˆ j eˆ j eˆ j eˆ j eˆ j eˆ j eˆ j eˆ j
The expansion coefficients are the same linear combination as are the vectors
coefficient by coefficient. H j c f Fj cg G j for j = 1, 2, 3.
eˆ j H eˆ j H
Compare H j with:
eˆ j eˆ j eˆ j eˆ j
T 2
1
T T 2
cos pt f (t ) dt
cos pt f (t ) 2
T 2
T T 2
af p T 2
cos pt f (t ) dt
cos pt cos pt 1
T T 2
cos pt cos pt dt
Discovery Exercises:
ALERT! Mathematica and Maple templates are included just after the discovery exercises.
Method 1: Plot 4 sin3 (x) for the range - to . Set the ai = {1,0,0,0} and plot
g(x) = 4 sin3 (x) - [a1 sinx + a2 sin(2x) + a3 sin(3x) +a4 sin(4x)]
Adjust the ai until g(x) = 0.
Method 2: Plot | g (x)|2 for the range - to . Set the ai = {1,0,0,0} and then adjust
the a1 to minimize the area under the curve for | g (x)|2. After finding the best value
Method 3: The functions sin(n x ) represent the independent ways that an anti-
symmetric function of period 2 can wiggle. Plot the functions pairs f(x) and sin(n
x) over the interval - to . Estimate the degree to which the functions in each pair
vary together over the interval. Compute the integrals 1 sin(n x) f ( x) dx for n =
1, 2, 3 and 4. These integrals are proportional the inner product of sin(n x) and f(x)
and gauge the amount of sin(n x) behavior in f(x).
D2.) The goal is to represent 8 cos4 (x) – 8 cos3 (x) - 3 as a sum of sine functions.
f(x) = 8 cos4 (x) – 8 cos3 (x) - 3 =a0 + a1 cos(x) + a2 cos (2x) + a3 cos (3x) +a4 cos
(4x)
where the coefficients ai are integers in the range –9 to 9.
Method 1: Plot f(x) for the range - to . Set the ai = {1,0,0,0,0} and plot
g(x) =8 cos4 (x) – 8 cos3 (x) - 3 – [a0 + a1 cos(x) + a2 cos (2x) + a3 cos (3x) +a4 cos
(4x) ]
Adjust the ai until g(x) = 0.
Method 2: Plot | g (x)|2 for the range - to . Set the ai = {1,0,0,0,0} and then
adjust the a1 to minimize the area under the curve for | g (x)|2. After finding the best
value for a0, move on to a1. Is method 2 more or less efficient than method 1?
Method 3: The functions cos(n x ) represent the independent ways that a symmetric
function of period 2 can wiggle. Plot the functions pairs f(x) and cos(n x) over the
3 and 4. These integrals are proportional the inner product of cos(n x) and f(x) and
gauge the amount of cos(n x) behavior in f(x). The correct method to compute an
is: an cos(n x)
f ( x) dx
. For which n might this equation yield a different result
cos(n x) cos(n x) dx
than 1 cos(n x) f ( x) dx ?
a0=1; a1=1; a2=0; a3 = 0; a4 = 0 *execute this line whenever the a’s are changed
Plot[(4 (Sin[x])^3 -
(a1 * Sin[x] + a2 * Sin[2 x] + a3 Sin[3 x] + a4 Sin[4 x]))^2,
{x,-Pi,Pi}, PlotRange -> {-4,4}, PlotStyle ->RGBColor[1,0,0]]
> with(plots):plot(f(x),x=-Pi..Pi);
Warm Up Problems:
|Bi .. }. Further, assume that the basis set is mutually orthogonal. Bj|Bi
Bj|Bi ij. The coefficient aik represents the amplitude of the |Bk behavior in the
vector |Vi .
a.) Use the inner product to develop a general expression for aik in terms of the
ratio of inner products for vectors expanded in an orthogonal basis.
b.) Use the inner product projection procedure to project out the component Ay in
the expression A Ax iˆ Ay ˆj Az kˆ and where the inner product is are standard dot
product to find an expression for Ay. Compare with an application of the general
B V ˆ
j A i
procedure given an orthogonal basis. aik k i Ay
Bk Bk ˆj ˆj
product to project out the coefficient afk in this expansion. Some of the
orthogonality relations for the Fourier trig basis set are:
T 2 T 2 T 2
1 1 1
sin pt cos mt dt 0; sin pt sin mt dt cos pt cos mt dt
T T 2
1 pm ; 1 pm
T T 2 T T 2 2 2
T 2
1
and the inner product is f g f (t ) g (t ) dt . Show that the process develops
T T 2
T 2
2
the standard expression: a p cos pt f (t ) dt
T T 2
1 cos(2 ) 1 cos(2 )
Exercise: Complete the proofs that sin 2 and cos 2 .
2 2
Problems:
1.) A geometric proof of the identity cos() = cos() cos() + sin() sin()
Pay special attention to the factors p – m and p + m. Which can be zero? Treat the
cases p = m and p m separately.
The leftmost relation is easily established using a symmetry argument. (c) Do so.
(d) Prove one more of the orthogonality relations for the Fourier expansion set:
{1;{…, cos mt ,…};{…, sin pt ,…}}.
It will involve 1 and either a sine or a cosine. If you feel that you have suffered to
complete this problem, you have earned the right to use the orthogonality relations
freely in the future. Note that a minimum of four evaluations is required.
T 2
1
Conclusion: Given the inner product: f g f (t ) g (t ) dt , the set of
T T 2
functions {1;{…, cos mt ,…};{…, sin pt ,…}} is mutually orthogonal if
2
the frequencies are m = m /T. The constant 1 has a norm squared of 1 while all
others have a norm squared of ½.
Show that the two expressions for the inner product of periodic functions are
equivalent. Beware! The sum indices m and n have been used twice. Change to
four distinct index symbols before substituting into the integral. As sine and cosine
are real functions, g (t ) a*gm cos mt b* sin t .
*
c*g 0 1 gn m
m 1 n 1
T /2
g f 1
T T / 2
g (t ) f (t )dt c*g 0c f 0 1 2 a*gm a fm 1 2 bgp
*
m p
*
b fp
Recall that: A
m 1
m m A . Hint: Use the orthogonality relations. SPECIAL NOTE: The
summation indices are dummy labels. They may be relabeled at will. At minimum, rename
the labels in a product to ensure that the labels are distinct. Begin by rewriting the
representations of f(t) and g(t) using distinct summation index labels throughout.
Each term in a Fourier series represents an independent behavior. Two such series
can only be equal if they are equal term by term.
4.) Consider the functions f(t) and g(t) with their corresponding Fourier
representations:
f (t ) c f 0 1 a fm cos mt
m 1
b
m 1
fm sin mt
What is the Fourier representation for the function h(t) = A f(t) + B g(t) where A
and B are constants? Begin with the standard relations for the an’s as an example:
T 2 T 2 T 2
2 2 2
a fp
T T 2
cos p t f (t ) dt ; agp
T T 2
cos p t g (t ) dt ; ahp
T T 2
cos p t h(t ) dt
Substitute h(t) = A f(t) + B g(t). Conclude that Fourier series add component-wise
or coefficient-wise in a fashion similar to vector addition.
5.) Consider the case of a function f(t) with period 2 to be expanded over the
interval - to . What are the allowed values of m? Give the expressions to
calculate co, {…am…} and {…bm..}.
6.) Back to the violin string running from 0 to L. Fourier series can also be used
to represent functions of spatial coordinates. The function f(x) is to be periodic
with period 2 L. (The string shape function is to be extended as a function that is
anti-symmetric about x = 0.) What are the allowed spatial frequencies km for the
Fourier series of f(x)? Give the expressions to calculate co, {…am…} and {…bn…}.
Which are certainly zero? f ( x) c0 am cos km x bn sin kn x
m 1 n 1
f(t) 1
t
-1
Find the Fourier series for f(t). Sketch the anti-symmetric triangular wave, one of
the example functions treated above, and this symmetric triangular wave on the
same plot. Compare the frequency content of the two triangular waves. Scale the
new wave to have amplitude T/4. That is define g(t) = (T/4) f(t). Give the Fourier
series for g(t). Prepare a sketch of dg/dt. What is the slope of g(t) at t = T/4 ?
Differentiate the Fourier series for g(t) term by term. Comment on the form of the
series after differentiation.
0.8
0.6
0.4
1 (t 1) 2 t t
2
for2
0t 2
0.2
1 (t 1) 2 t t 2t 0
2 2
for -0.2
-0.4
-0.6
-0.8
-1
2
Compute df dt . Is df dt continuous at x = 0 ? Compute d f 2 . Is the second
dt
derivative continuous at x = 0? Compute the Fourier series for f(t). How fast do the
coefficients vanish with respect to m for large m? Note: The function is odd about
zero so only sines appear. The function is even about T/4 so only sine terms that are
odd multiples of the fundamental are to be included.
T 4 1
2
b2 m 1 4 sin 2 m 1t f (t ) dt 2 sin 2m 1 t 2t t 2 dt
T 0 0
Sketch the function and a few sines with even and odd multiples of the
8 extension 2.) Continue problem 8. The sum of the terms for m greater than M is
bounded by 32 m dm 2.0641 2 . Argue that the series converges uniformly
3
M
M
9.) Integrate the series for the unit amplitude anti-symmetric square wave term by
term. Choose the lower limit as ti = -T/4. Each integral term should be of the form:
sin p 0t ' dt ' . Sketch the expected result. What is the average value of the
t
bp
T / 4
function represented by the integrated series? Why was the lower limit chosen to
be ti = -T/4? Compare with problem 7. Note that t' is a dummy label for the
integration variable. Comment. (For a detailed discussion of dummy labels in integrals see
the Differential Equations section where the solution of DEs by integration is treated.)
10.) Use the series representations for the anti-symmetric square wave and
triangular wave and the (Parseval) relation for the inner product to compute an
infinite sum involving the cubes of the inverses of the odd integers. [See #2.]
12.) This problem illustrates an issue related to convergence. Sketch the anti-
symmetric square wave. Sketch the derivative of the square wave. Differentiate
the series representation for the square wave term by term, Does that series
converge? The series for the square wave does not converge uniformly. Discuss
the specific behavior of the convergence of the series representation of the square
wave that fails to meet the standard for uniform convergence.
13.) The solution to the driven damped oscillator for a single cosine driving term
was found to be
f0 2
x (t ) R( ) f 0 cos(t ) cos(t tan 1 2
)
0
2 2
02 2
2 2
14. Assume that an oscillator has k = 105 k/m ; Q = 100; o = 120 s-1. The driving
force is a 20 Hz triangular wave with amplitude 10 N: (See prob. 13)
80 N 1 1
F (t ) 2
sin 40 s 1 t 2 sin 120 s 1 t 2 sin 200 s 1 t ....
3 5
15.) The second example chosen was an anti-symmetric triangular wave. Noting
T
that the function is odd about t = 0 and even about t = /4, only the coefficients of
the odd m sine terms are non-zero. Argue that these may be computed as
T 4
8 4t
bm
T sin t T
0
m dt for m odd. Compute the integrals to find bm for m odd.
Collect everything and present the Fourier series for f(t) defined just below.
f(t) 2
-1
-2
2 4t for T t T
T 4 2
4t
f (t ) for T t T
T 4 4
2 4t T for T 2 t T 4
Find the Fourier series for f(x), which has a period of 2.
0 for x 0
f ( x) 1 for 0 x
2
0 for x
2
In the final form, the contents of each set of parentheses above should be replaced
by an infinite sum with an index that assumes integer values. According to the
rules for partial sums, the function might be better represented as:
1 1 cos( x) cos(3 x) cos(5 x)
f ( x) ...
4 1 3 5
1 sin( x) sin(3x) sin(5 x) 2 sin(2 x) sin(6 x)
... ...
1 3 5 2 6
What was the change? What requirement or standard is met by the second form
that the first fails to meet by the change?
17.) To what value does the Fourier series found in problem 16 converge for x =
1
m
? Show that this leads to the result:
m 0 2m 1
4
To what value does the
series converge for x = /2 ? Show that this leads to the same sum! What sum can
be computed using Parseval's relation and the series?
18.) A function is said to be periodic with period T if f(t) = f(t + T) for all t.
T T
For a period function f(t) with period T, show that f(- /2) = f(+ /2) and that
f(t) = f(t + 2 T) for all t.
19.) Operations can be executed on the Fourier series for a function as well as on
Compute the series for the derivative of f(t) by differentiating the series term by
term. Sketch the derivative. The series represents a symmetric square wave with
amplitude 4/T. Compare the frequency content with that of the anti-symmetric
square wave.
1
m
df 8
2 2 t
result: 2
dt
2m 1
m 0
T
cos 2m 1
T
Factor out the amplitude. Compare this result directly with the anti-symmetric
square wave shifted by T/4.
44
1 2 T
sin 2m 1 t 4
T m0 2m 1 T
44
1 2 t
T
2m 1 sin 2m 1
T
2
m0
To finish use:
2 t
sin 2m 1
T 2
2 t 2 t
cos 2m 1 sin 2m 1 sin 2m 1 cos 2m 1
T 2 T 2
20.) Operations can be executed on the Fourier series for a function as well as on
the function itself. Examples: differentiation and integration. Properly, the
techniques are guaranteed valid only if the series converge uniformly. This
'requirement' is to be ignored. Start with the anti-symmetric triangular wave:
1
m
Note that the coefficients of its Fourier series vanish as m-3 for large m. This
dependence suggests that the function has a continuous first derivative. Does your
sketch support this conclusion? Compare your result with problem 8 for the slope
1
m
3
matched parabolas. Note that (see problem 10): 2m 1
m 0
3
32
. The series for
the integrated function has a non-zero constant term. What does that tell you? How
does the function for problem 8 differ?
21.) Consider the function f(t) that consists of two slope-matched parabolic
sections. Consider expanding the function as defined over the interval 0 < t < 2 as
an even or odd function to complete the definition over the period –2 < t< 2.
Would a sine of cosine series converge more rapidly? Assuming that the
coefficients would decrease as m- n for large m predict the value of n for a sine
series expansion and for a cosine series expansion.
0.8
0.6
0.4
1 (t 1) 2 t t
2 2
for 0t 2
0.2
1 (t 1) 2 t t 2t 0
2 2
for -0.2
-0.4
-0.6
-0.8
-1
22. The Euler identity provides representations of the sine and cosine in terms of
complex exponentials.
eimx e imx eiox e ipx
sin(mx) and cos( px)
2i 2
Use these relations to transform the orthogonality integral for the sines and cosines
to integrals of complex exponentials to establish:
T 2 T 2 T 2
1 1 1
sin pt cos mt dt 0; sin pt sin mt dt cos pt cos mt dt
2 pm T
1 ; 1 pm
T T 2 T T 2 T 2
2
It is easiest to treat the p≠m cases and the p=m cases separately. If you feel that
you have suffered to complete this problem, you have earned the right to use the
orthogonality relations freely in the future. Hints: After substituting the complex
T 2
1
exponentials, one needs calculate integrals of the form e i 0t dt where 0 2 T .
T T 2
Compute the integral for a non-zero integer. Do not forget the representation of
sine in terms of the complex exponentials as you do this. Also, read the Tools of
the Trade section of this handout. Give expression for in terms of m and n.
Suppose that is zero; what is true about m and n? Set to zero and evaluate the
integrand and then integrate.
23.) The Euler identity provides representations of the sine and cosine in terms of
complex exponentials.
Use these to establish the identity: cos() = cos() cos() + sin() sin()
Give the corresponding identity for cos(+). Solve the identities for cos(-) and
cos(+) to find expressions for cos() cos() and sin() sin() as sums of terms
linear in trigonometric functions.
24.) Find the cosine series that represents f(x) = x – x2 over the interval [0,].
a.) As the function is expanded in a cosine series, its full period is 2 and its
extension across zero must be even. Sketch f(x) for -2 < x < 2.
b.) At what order derivative does the function have its first discontinuity? The
coefficients are therefore expected to vanish no faster than what inverse power of
the coefficient index?
c.) Give the equations used to compute the expansion coefficients c0 and ak for a
general k. Be sure that you adjusted the standard Fourier series relations to account
for the range of integration and the restriction to a cosine series. Compute them.
d.) Show that f(x) = 2/4 – (x - /2)2.
d.) Note that f(x) is even about /2. What does this tell you about ak for k odd?
?Answer: f(x) = 2/2 – cos(2x) – 1/4 cos(4x) – 1/9 cos(6x) – 1/16 cos(8x) - …
25.) Slope-matched parabolic sections. Consider the function of period 4 defined
over the interval [-2,2] by the equations:
0.8
0.6
0.4
1 (t 1) 2 t t
2 2
for 0t 2
0.2
1 (t 1) 2 t t 2t 0
2 2
for -0.2
-0.4
-0.6
-0.8
-1
32
It has a Fourier expansion f (t ) sin 2 m 1 t . Consider the case
m 0 (2 m 1)
3 3
t = 1. To what value should the series converge. Use sin 2 m 1 1 and
m
m
1
this result to find the sum (2 m 1)
m0
3
.
26.) Start with the Fourier series for the anti-symmetric square wave.
f(t)
-T -T/2 +T/2 T
-1
The square wave f(t) has a period of T and is extended beyond the base period to
T
display the discontinuities at each multiple of /2. The function is represented as:
1 for 0 t T
2
f (t ) [FS.31]
1 for T 2 t 0
4
1 2 t
2m 1 sin 2m 1
t
b.) Compute T / 4 m0 T
dt .
c.) Multiply your result by -4/T. Use part a.) to sketch the result.
d.) Shift the result. Replace t by t - T/4. Sketch the outcome expected.
******* change the wording ! ********
e.) Give the expressions for cos( - m ) for m = 4 n, 4 n +1, 4 n + 2 and 4 n + 3
where n is an integer.
f.) Express the result of part d.) using sines rather than cosines.
g.) Compare the result to the Fourier series for the unit amplitude anti-symmetric
triangular wave.
0.8
0.6
0.4
1 (t 1) 2 2 t t 2 for 0t 2
0.2
1 (t 1) 2 t t 2t 0
2 2
for -0.2
-0.4
-0.6
-0.8
-1
32
It has a Fourier expansion f (t ) sin 2 m 1 t . Use Parseval's
m0 (2 3
m 1) 3
1
relation to compute the sum
m0 (2 m 1)6
. Use the extended Parseval's relation
(Equation [FS.17]) and Fourier series calculated in this handout to compute the
particular function, modify the function to make explicit that its period has been set
to T = 4 to match the period of the slope-matched parabolas. Parseval’s equality is
for functions with the same period; that period, of course, can be T for both.
Answers: 6/960; 4/96; 55/1536.
function is extended periodically with period 2. Use the result to compute
m1
1 x 2 3 4 1
cos(m x)
x ;
m
m2
. Answer: 12
m 1 m 1 m2
1 1
29.) Consider the Reimann zeta (n) n and the sum E ( n ) n . Show
p 1 p p 1 2 p
that (n) E (n) 1 21n (n) . What is (n) - 2 E(n)? Use the result of the problem
Answer: 6
above to compute (2).
30.) Consider the function: f(x) = x ( - x) for the interval [0, ]. Expand it in a
cosine series and in a sine series. Check the extended functions for discontinuities
and predict the fall-off in the magnitudes of the coefficients in the large index
limit.
32.) Use the previous three problems to show that:
Take the time to repeat the derivation of Parseval equalities to ensure that you
use the correct normalization factors.
33.) Explain why one cannot use a combination of the sine and cosine series
for f(x) = x ( - x) found above to examine sum of terms like n-5.
34.) Blackbody Radiation: The following integral rises in the study of blackbody
radiation.
q 3 dq 1
0 e 1 0
q
q 3 dq e q 1 e q
q 3 dq e q 1 e q e 2 q e 3q ... q 3 dq e nq
0 0
n 1
Show that this integral is equal to 6! n 4 . This sum can be evaluated using
n 1
Parseval’s equality. Choose the Fourier cosine series for x (x - ) for 0 < x < .
x( x 2 6 cos(22mx)
m 1 m
q 3 dq
Show that x( x dx 36 (½) m 4 m4 90 leading to .
0
m 1 m 1
0 e q 1 15
35.) Square waves come in several forms. Consider an odd square wave with
period T stepping from 0 to +1. It is a square wave with a 50% duty cycle.
Next. consider an odd square wave with period T stepping from 0 to +1. It is a
square wave with a 25% duty cycle.
The square wave g(t) has a period of T and is extended beyond the base period to
display the discontinuities. The function is represented as:
1 for 0 t T
4
g (t )
0 for 3T 4 t 0
36.) Consider the set of all complex-valued functions that are periodic with period
T /2
T and that have a finite square integral. T / 2
| f (t ) |2 dt finite . The sum of two
functions is:
Sum[f(t), g(t)] = f(t) + g(t)
The scalar multiple of a function is:
ScalarMult[d, f(t)] = d f(t)
For complex valued functions, complex numbers are the appropriate scalar field.
(If the set is restricted to real-valued functions, then the real numbers should be
chosen.) Show that the set defined with the prescribed operations is a vector space.
37.) A definition for the inner product of two functions that are periodic with
period T and finite square integral has been proposed.
T /2
g f 1T
T / 2
g (t )
*
f (t )dt
38.) Consider the set of all complex-valued functions that can be formed as linear
combinations of the functions { 1, { .. , cos[mot], … }, { … , sin[not], … }}
g (t ) cg 0 1 agm cos mt
m 1
b
m 1
gm sin mt
Sum[f(t), g(t)] = c f 0 cg 0 1 a fm a gm cos m t b fn bgn sin mt
m 1 n 1
2 a 2 b
2 2
Retriction *: c f 0 2 1
fm 1
fm is finite .
m 1 m 1
Show that the set defined with the prescribed operations is a vector space. The
scalars can be the real numbers or the complex numbers.
39.) A definition for the inner product of the vectors in the previous problem has
been proposed.
c*g 0 c f 0 1 2a 2b
g (t )| f (t ) 1 *
a fm 1 *
b fn s
gm gn
m 1 n 1
40.) One period of a function is given below along with its Fourier series.
T 2
2 1/ 2
T T 2
ap cos p t f (t ) dt cos p t [1] dt
1/ 2
1/ 2
Start with 1/ 2
cos p t [1] dt and show the steps to find ap for all p>0 and
hence generate (and display) the series for f(t) written in a summation form.
h.) What property of the function f(t) is represented by the constant co = ½ ?
0.8
0.6
0.4
t1 (2 t )1 for 0t 2
0.2
t (2 t ) 2t 0
1
for -0.2
-0.4
-0.6
-0.8
-1
t n (2 t ) n for 0 t 2
0.25
g n (t ) n 1 n
(1) t (2 t ) for 2 t 0
n
-2 -1 1 2
-0.25
-0.5
-0.75
Figure for n = 6.
-1
a.) Show that this function and its first n derivatives are continuous and that
d n 1 g n
is discontinuous. Confirm that gn(t) has maximum and minimum values
dt n 1
of +1 and -1.
b.) It is expected that the Fourier expansion coefficients will vanish no faster than
1
/m N for large m. What is N?
c.) In the standard Fourier expansion series, which coefficients are sure to vanish?
Explain.
d.) Compute the Fourier series for g2(t).
T 4 1
2
b2 m 1 4 sin 2 m 1t f (t ) dt 2 sin 2m 1 t t n (2 t ) n dt
T 0 0
p
3
ANSWER: bp 32 for p odd; = 0 for p even.
12 121 2 Sin 22 x 12 169 2 Sin 26 x 4 75 2 Sin 30 x
6250 5 33614 5 39366 5
12 289 2 Sin 34 x 12 361 2 Sin 38 x 4 147 2 Sin 42 x
322102 5 742586 5 506250 5
2839714 5 4952198 5 2722734 5
The coefficients for the terms beginning with 12 in the numerator are of the form:
(12 m 2 2 )
5
. Note that these terms approach zero as m-3 for large m. This is
2m
consistent with the statement that the coefficients vanish no faster than m-[n+1]
where the nth derivative has the first one that is discontinuous.
42.) A standard trigonometric Fourier series for a function f(x) with period L has
the form: f ( x) c0 1 am cos mk0 x b m sin mk0 x where ko = 2/L.
m 1 m 1
This result justifies the form of the complex Fourier series,
m
m eimk0 x .
L/2
b.) Show that ( L1 ) L / 2 (eimk x ) eink x dx mn .
0 0
c.) Pre-multiply f ( x)
m
m eimk0 x by (eipk0 x ) and use the orthogonality relation
2
sin( x) sin( y ) 1 cos( x y ) cos( x y )
44.) Show that the series for the anti-symmetric triangle wave converges uniformly
to the triangle wave by showing that the choice of N > 1/4 is adequate to ensure
that | f(t) – sN(t)| < for all t [-½ T, ½ T ]. Assume that | f(t) – s(t)| 0 for all t
[-½ T, ½ T ].
f(t) 2
-1
-2
T T
base period: - //2 < t < //2
2 4t for T t T
T 4 2
4t
f (t ) for T t T
T 4 4
2 4 t for T t T
T 2 4
1
m
8
2 t
f (t ) sin 2m 1
2
m 0 2m 1
2
T
45.) Consider the discontinuous sawtooth f(t) = ½t in the base period [-, ].
Show that the series representation is: f (t ) ( 1)n sin(nt ) . What series sum can
n 1
n 1
t
46.) Look at the previous problem. Define g(t) = 0
f (t ) dt over the same base
period. Compute the series directly and by integrating the series from the previous
problem term by term.
b.) Multiply the expression by sin[p x] and execute the projection procedure to
develop an expression for bp.
c.) Compute the sine series expansion for f(x).
d.) The function has an angular least increment of /4. How many terms might
the expansion pattern have before the pattern begins to repeat?
e.) Repeat the expansion for g(x).
2 2
sin (8m 1) 4 x sin (8m 3) 4 x sin (8m 5) 4 x sin (8m 7) 4 x
g ( x)
m 0 8m 1
8m 3
8m 5
8m 7
Plot[(2 Sqrt[2]/Pi) (Sin[x] - Sin[3 x]/3 – Plot[(2 Sqrt[2]/Pi) (Sin[x] - Sin[3 x]/3 -Sin[5 x]/5 +
Sin[5 x]/5 + Sin[7 x]/7), {x,0,Pi}] Sin[7 x]/7 + Sin[9 x]/9 - Sin[11 x]/11-Sin[13 x]/13 +
Sin[15 x]/15), {x,0,Pi}]
Lessons Learned
degree to which the two are directed in the same direction. One can have two sets
of basis behaviors that completely characterize the members of the set under study.
Consider a 3D Cartesian coordinate system (unprimed) and a second system
(primed) with axes that are rotated relative to those of the first system. Each vector
has a representation in each system.
A Ax iˆ Ay ˆj Az kˆ Ax/ iˆ / Ay/ ˆj / Az/ kˆ /
B Bx iˆ By ˆj Bz kˆ Bx/ iˆ / By/ ˆj / Bz/ kˆ /
Either set of basis behaviors, iˆ, ˆj, kˆ or iˆ / , ˆj / , kˆ / is adequate to describe all the 3D
vectors. Such sets are said to be complete. Problem two reveals that there are two
equally valid methods to compute the inner product of two functions that are
periodic with period T. And, in particular, the set { 1, …, cos( m 0 t), …. , …, sin(
2
n 0 t), ….} is a complete set to characterize those same functions give that 0 =
/T and that m and n are the counting integers 1, 2, 3, … .
Problem 3. If the basis is chosen to be orthogonal and complete, every entity in the
set of interest can be represented as a sum of scalar multiples of members of that
basis. To find the scalar multiple for a particular basis member, compute the inner
product of the member with the entity being represented. To find the x component
of a vector A , one computes the inner product of the x character basis member iˆ
T 2
1
T T 2
cos pt f (t ) dt
2
T 2 cos pt f (t )
T T 2
af p cos t
p f (t ) dt T 2
1 cos pt cos pt
T T 2
cos pt cos pt dt
Two expansions in terms of the same set of orthogonal behaviors can only be equal
if the coefficients are equal behavior by behavior. A B Ax Bx , ....
Problem 4. The Fourier series expansion is a linear operation. The various Fourier
coefficients are added and multiplied coefficient by coefficient just as vectors are
added component by component. h(t) = A f(t) + B g(t) leads to:
ahp= A afp + B agp. just as C a A b B leads to Cx = a Ax + b Bx.
Even though the result seems obvious, one should anchor the result by computing
the coefficients for h(t) in the canonical fashion.
T 2 T 2 T 2
1 2 2
T T 2
ch 0 h(t ) dt ; ahp cos p t h(t ) dt ; bhp sin p t h(t ) dt
T T 2 T T 2
Hence,
T 2
2
cos p t A f (t ) B g (t ) dt
T T 2
ahp
2 T 2 2 T 2
A cos p t f (t ) dt B cos p t g (t ) dt A a fp B agp
T T 2 T T 2
Problem Discussion
Consider the Fourier series for the function f(x) which has period 2.
1 for x 0
4
3
f ( x) 4 for 0 x
2
1 4 for x
2
Examine an incorrect partial sum. Note the first two sums are through a frequency
201 while the last term in the sum reaches a frequency of 402. The result is the
improper appearance of Gibbs (overshoot) ringing at points that alias the positions
of the discontinuities. (A proper partial sum contains all terms of frequency up to
the maximum and no others.)
A proper partial sum contains all terms of frequency up to the maximum and no
others. The sum below contains all term with frequencies up to 202 and none
higher. Note that the series now appears to converge uniformly in regions in which
the function is continuous. The ringing behaviors at ± and at - /2 are artifacts of
an improper partial sum.
Plot[(1/Pi) *
(Sum[ ( Sin[( 2 m + 1) x]/( 2 m + 1)+ (-1)^m Cos[( 2 m + 1) x]/( 2 m + 1)
), {m,0,100}] + Sum[2 * Sin[(4 m + 2) x]/(4 m + 2), {m,0,50}]),
{x,-4,4}, PlotPoints -> 512, PlotRange -> All]
The Gibbs phenomenon occurs only at the discontinuities and, as the frequency
limits was doubled, the domain over which it occurs is halved. Correct partial
sums include all terms with frequency up to the maximum chosen and none
higher.
Consider the relations between: f (t ) c0 1 a
m 1
m cos m0t b
m 1
m sin m0t
f(t), an element in a function space, using two choices of orthogonal basis set
vectors (functions). Following the conventions discovered for partial sums, all
expansions are to be order in increasing frequency order.
Traditional Basis Set:
{ 1, cos(ot), sin(ot), cos(2ot), sin(2ot), cos(3ot), sin(3ot), ... } =
{T1(t), T2(t), T3(t), T4(t), T5(t), T6(t), T7(t), ... }
Complex Basis Set:
{ 1,eiot, e-iot,ei2ot, e-i2ot, ,ei3ot, e-i3ot, ,ei4ot, e-i4ot,... } =
{C1(t), C2(t), C3(t), C4(t), C5(t), C6(t), C7(t), ... }
The transformation matrix from the traditional to the complex basis has matrix
elements {i,j} = Ci|Tj.
References:
1. K. F. Riley, M. P. Hobson and S. J. Bence, Mathematical Methods for Physics
and Engineering, 2nd Ed., Cambridge, Cambridge UK (2002).
-T -T/2 +T/2 T
-1
The square wave f(t) has a period of T and is extended beyond the base period to
T
display the discontinuities at each multiple of /2. The function is represented as:
1 for 0 t T
2
f (t ) [FS.32]
1 for T 2 t 0
4 for p odd
4
1 2 t
bp p or f (t ) 2m 1 sin 2m 1
0 m 0 T
for p even
f(t) 2
1
t
-1
-2
T T
base period: - //2 < t < //2
2 4t for T t T
T 4 2
4t
f (t ) for T t T [FS.33]
T 4 4
2 4 t for T t T
T 2 4
2 t
f (t ) b
m 1
m sin mt b
m 1
m sin m
T
where
8 2 t 1 2 t 1 2 t
f (t ) sin m 2 sin m 2 sin m ....
2
T 3 T 5 T
[FS.34]
1
m
8
2 t
sin 2m 1
2 m 0 2m 1
2
T
0.8
0.6
0.4
1 (t 1) 2 t t
2 2
for 0t 2
0.2
1 (t 1) 2 t t 2t 0
2 2
for -0.2
-0.4
-0.6
-0.8
-1
32
It has a Fourier expansion: f (t ) sin 2 m 1 t .
m0 3
(2 m 1) 3
cos(m x)
x 2 3 4 1 x ;
m
m 1 m2 12