









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










A Fourier series is an infinite series of the form
a +
n=
bn cos(nωx) +
n=
cn sin(nωx).
Virtually any periodic function that arises in applications can be represented as the sum of a Fourier series. For example, consider the three functions whose graph are shown below:
These are known, respectively, as the triangle wave Λ(x), the sawtooth wave N(x), and the square wave (x). Each of these functions can be expressed as the sum of a Fourier series:
Λ(x) = cos x +
cos 3x 32
cos 5x 52
cos 7x 72
cos 9x 92
N(x) = sin x +
sin 2x 2
sin 3x 3
sin 4x 4
sin 5x 5
(x) = sin x +
sin 3x 3
sin 5x 5
sin 7x 7
sin 9x 9
Fourier series are critically important to the study of differential equations, and they have many applications throughout the sciences. In addition, Fourier series played an important historical role in the development of analysis, and the desire to prove theo- rems about their convergence was a large part of the motivation for the development of Lebesgue integration. These notes develop Fourier series on the level of calculus. We will not be worrying about convergence, and we will not be not be proving that any given function is
n cos nx sin nx 2 cos^2 x − sin^2 x 2 cos x sin x 3 cos^3 x − 3 cos x sin^2 x 3 cos^2 x sin x − sin^3 x 4 cos^4 x − 6 cos^2 x sin^2 x + sin^4 x 4 cos^3 x sin x − 4 cos x sin^3 x 5 cos^5 x − 10 cos^3 x sin^2 x + 5 cos x sin^4 x 5 cos^4 x sin x − 10 cos^2 x sin^3 x + sin^5 x
Table 1: Multiple-angle formulas.
actually equal to the sum of its Fourier series. We will revisit the theoretical aspects of this topic later in the course after we have defined the Lebesgue integral and proven Lebesgue’s dominated convergence theorem.
A trigonometric polynomial is a polynomial expression involving cos x and sin x:
cos^5 x + 6 cos^3 x sin^2 x + 3 sin^4 x + 2 cos^2 x + 5
Because of the identity cos^2 x + sin^2 x = 1, most trigonometric polynomials can be written in several different ways. For example, the above polynomial can be rewrit- ten as 5 cos^3 x sin^2 x + 3 sin^4 x + cos^3 x − 2 sin^2 x + 7
A Fourier sum is a Fourier series with finitely many terms:
5 + 3 sin 2x + 4 cos 5x − 3 sin 5x + 2 cos 8x.
Every Fourier sum is actually a trigonometric polynomial, and any trigonometric polynomial can be expressed as a Fourier sum. Converting a Fourier sum to a trigonometric polynomial is fairly straightfor- ward: simply substitute the appropriate multiple-angle identity for each cos nx and sin nx (see Table 1). It is less obvious that every trigonometric polynomial can be expressed as a Fourier
There is a nice integral formula for finding the coefficients of any Fourier sum. This is based on the orthogonality of the functions cos nx and sin nx:
If j, k ∈ N, then: ∫ (^) π
−π
cos jx cos kx dx =
∫ (^) π
−π
sin jx sin kx dx =
π if j = k 0 otherwise,
and (^) ∫ (^) π
−π
sin jx cos kx dx = 0.
PROOF For n ∈ Z, observe that
∫ (^) π
−π
sin nx dx = 0 and
∫ (^) π
−π
cos nx dx =
2 π if n = 0 0 otherwise.
If j, k ∈ N, we can use the product-to-sum identities to deduce that ∫ (^) π
−π
cos jx cos kx dx =
∫ (^) π
−π
cos (j − k)x + cos (j + k)x 2
dx =
π if j = k 0 otherwise,
and ∫ (^) π
−π
sin jx sin kx dx =
∫ (^) π
−π
cos (j − k)x − cos (j + k)x 2
dx =
π if j = k 0 otherwise,
and (^) ∫ (^) π
−π
sin jx cos kx dx =
∫ (^) π
−π
sin (j − k)x + sin (j + k)x 2
dx = 0.
In general, the inner product of two functions f and g on an interval [a, b] is
〈f, g〉 =
∫ (^) b
a
f (x) g(x) dx.
A collection F of nonzero functions on [a, b] is said to be orthogonal if 〈f, g〉 = 0 for all f, g ∈ F with f 6 = g. According to the above theorem, the functions
{cos nx}n∈N ∪ {sin nx}n∈N
are orthogonal on the interval [−π, π]. Note that these functions are also orthogonal to the constant function 1. This definition of orthogonality is related to the notion of orthogonality in linear algebra. Specifically, let C([a, b]) be the vector space of all real-valued continuous functions on the interval [a, b]. Then the formula for 〈f, g〉 given above defines an inner product on this vector space (analogous to the dot product on Rn), under which orthogonal functions are the same as orthogonal vectors.
Let
f (x) = a +
n=
bn cos nx +
n=
cn sin nx.
Then a =
2 π
∫ (^) π
−π
f (x) dx.
Furthermore, for all n ∈ { 1 ,... , N },
bn =
π
∫ (^) π
−π
f (x) cos nx dx and cn =
π
∫ (^) π
−π
f (x) sin nx dx.
PROOF The formula for a is fairly obvious. To derive the formula for the b’s, observe that
∫ (^) π
−π
f (x) cos kx dx
= a
∫ (^) π
−π
cos kx dx +
n=
bn
∫ (^) π
−π
cos nx cos kx dx +
n=
cn
∫ (^) π
−π
sin nx cos kx dx.
Applying the orthogonality relations reduces this to ∫ (^) π
−π
f (x) cos kx dx = bkπ
and the formula for bk follows. The derivation of the formula for ck is similar.
The formulas in the theorem above can be written as follows:
a =
〈f, 1 〉 〈 1 , 1 〉
, bn =
〈f, cos nx〉 〈cos nx, cos nx〉
and cn =
〈f, sin nx〉 〈sin nx, sin nx〉
Figure 1: Six partial sums of the Fourier series for x^2.
We have seen how the coefficients of the Fourier sum for a trigonometric polynomial f (x) can be found using definite integrals. The same formulas can be used to define Fourier coefficients for any function f :
Definition: Fourier Coefficients for f The Fourier coefficients for a function f : [−π, π] → R are the real number a and the sequences bn and cn defined by the following formulas:
a =
2 π
∫ (^) π
−π
f (x) dx, bn =
π
∫ (^) π
−π
f (x) cos nx dx, cn =
π
∫ (^) π
−π
f (x) sin nx dx.
Definition: Fourier Series for f The Fourier series for a function f : [−π, π] → R is the sum
a +
n=
bn cos nx +
n=
cn sin nx.
where a, bn, and cn are the Fourier coefficients for f.
If f is a trigonometric polynomial, then its corresponding Fourier series is finite, and the sum of the series is equal to f (x). The surprise is that the Fourier series usually converges to f (x) even if f isn’t a trigonometric polynomial.
EXAMPLE 1 Let f : [−π, π] → R be the function f (x) = x^2. The integrals
a =
2 π
∫ (^) π
−π
x^2 dx, bn =
π
∫ (^) π
−π
x^2 cos nx dx, cn =
π
∫ (^) π
−π
x^2 sin nx dx
yield the following Fourier coefficients:
a =
π^2 3
, bn = (−1)n^
n^2
, and cn = 0.
Thus the Fourier series for f is
π^2 3
n=
(−1)n^
n^2
cos nx =
π^2 3
− 4 cos x +
4 cos 2x 22
4 cos 3x 32
This series converges uniformly to f (x) on the interval [−π, π]. Figure 1 shows the first six partial sums of this series, together with the parabola y = x^2. Of course, the series only converges to x^2 on the interval [−π, π]. Over the real line, the sum of the series is periodic with period 2π, as shown in Figure 2.
EXAMPLE 2 Now consider the function f : [−π, π] → R defined by f (x) = x. The Fourier coefficients for this function are
a = 0, bn = 0, and cn = (−1)n+^
n
so the Fourier series for f is
∑^ ∞
n=
(−1)n+^
n
sin nx = 2 sin x −
sin 2x +
sin 3x −
sin 4x + · · ·.
Note that the coefficients of this series are essentially the harmonic series, which diverges. Thus, it is very unclear that this series will even converge for a typical value of x. The first eight partial sums of this series are shown in Figure 3. As you can see, this series appears to converge to f (x) for most values of x. Indeed, it does converge
Π^2
Figure 2: The sum of the Fourier series for x^2.
about convergence of Fourier series without the help of measure theory and Lebesgue integration.
Now that we know how to find the Fourier series for a typical function, we would like to discuss how these series are used in mathematics and physics. Fourier series were first developed to help in the solution of certain very important partial differential equations that arise in the study of physical systems. We will be considering the following three partial differential equations. The first involves a function f (x 1 ,... , xn) with no time-dependence, while the other two in- volve a function f (x 1 ,... , xn, t):
∇^2 f = 0, ∇^2 f =
∂f ∂t
, and ∇^2 f =
∂^2 f ∂t^2
These equations^1 are respectively known as Laplace’s equation, the heat equa- tion, and the wave equation. These are arguably the three most important partial differential equations, and much of the study of PDE’s is devoted to understanding just these three. As we shall see, Fourier series can be quite helpful for solving them.
Let D^2 be the unit disc centered at the origin in R^2 , and consider Laplace’s equation for a function f : D^2 → R. This has the form:
∂^2 f ∂x^2
∂^2 f ∂y^2
In general, solutions to Laplace’s equation are called harmonic functions. In the same way that an ordinary differential equation requires initial conditions to specify a unique solution, a partial differential equation requires boundary con- ditions. In the present case, what we need to know is the value of the function on the boundary circle:
(^1) The expression ∇ (^2) f in these equations is called the Laplacian, and is defined by the formula
∇^2 f = ∂^2 f ∂x^21
Intuitively, the Laplacian measures how much the value of f at point differs from the average value of f at nearby points.
Dirichlet’s Problem Given a function g : S^1 → R, find a harmonic function f : D^2 → R that agrees with g on S^1.
In principle, Dirichlet’s problem should have a solution for virtually any function g. The reason for this is based on physics, specifically the distribution of heat inside solid bodies. According to the theory of heat transfer, the temperature T (x, y) inside any solid body in a steady state must be a harmonic function. Imagine, then, that we heat and cool the edge of a metal disc so as to maintain a specific temperature function on the boundary circle. If we wait a long time, the temperature function T (x, y) inside the disc should reach a steady state, and this will be the desired solution to Dirichlet’s problem. So how can we solve Dirichlet’s problem mathematically? Well, consider the functions ϕn : D^2 → R and ψn : D^2 → R defined by
ϕn(x, y) = rn^ cos nθ and ψn(x, y) = rn^ sin nθ,
where (r, θ) are the polar coordinates for a point (x, y). It is not difficult to show that ϕn and ψn are harmonic functions for any n ∈ N. Moreover, any expression such as
3 + 2r^2 cos 2θ − 5 r^3 sin 3θ + r^8 sin 8θ
is also a harmonic function.^2 This gives us a large number of different solutions to work with. In particular, observe that ϕn(x, y) and ψn(x, y) restrict to the functions cos nθ and sin nθ on the unit circle. Therefore, we now know how to solve Dirichlet’s problem whenever g(θ) is a trigonometric polynomial.
EXAMPLE 3 Let g : S^1 → R be the function
g(θ) = 5 cos θ + 4 sin 2θ − 6 cos 5θ.
Find a harmonic function f : D^2 → R that agrees with g on S^1.
SOLUTION The desired harmonic function is
f (x, y) = 5r cos θ + 4r^2 sin 2θ − 6 r^5 cos 5θ.
How does this help in general? Well, given any function g : S^1 → R, we can try to express g as a Fourier series involving cos nθ and sin nθ:
g(θ) = a +
n=
bn cos nθ +
n=
cn sin nθ.
(^2) In general, any linear combination of solutions to Laplace’s equation is again a solution. A
differential equation with this property is called linear.
Figure 5: A harmonic function on the unit disc.
Consider a long metal rod whose temperature varies with position. Assuming the rod is thermally insulated from its surroundings, heat will slowly diffuse from the hot portions of the rod to the cool portions until the temperature becomes uniform. Ignoring constants such as the thermal conductivity of the metal, this diffusion is governed by the equation ∂T ∂t
∂x^2
where T (x, t) is the temperature of the rod at position x and time t. This PDE is a one-dimensional version of the heat equation. Now, given the initial distribution of the temperature at t = 0, we ought to be able to predict how the temperature of the rod will evolve over time. For simplicity, assume that the rod has a length of 2π, with x restricted to the interval [−π, π]. This gives us the following problem:
Heat Diffusion Problem Given a function g : [−π, π] → R, find a solution T : [−π, π] × R → R to the heat equation such that T (x, 0) = g(x) for all x ∈ [−π, π].
The solution to this problem is similar to our solution to Dirichlet’s problem. First we must solve the heat equation in the case where g(x) = cos nx or g(x) = sin nx. As you can easily verify, the corresponding solutions are
ϕn(x, t) = e−n
(^2) t cos nx and ψn(x, t) = e−n
(^2) t sin nx.
Again, any combination of these will also be a solution to the heat equation:
2 + 5e−t^ cos t + 8e−^9 t^ sin 3t − 6 e−^25 t^ cos 5t
This lets us solve the heat equation whenever g(x) is a trigonometric polynomial. For an arbitrary function g(x), we can follow the same procedure we did before. First we attempt to express g as a Fourier series:
g(x) = a +
n=
bn cos nx +
n=
cn sin nx.
Assuming this succeeds, we obtain a candidate solution to the heat equation for which T (x, 0) = g(x):
T (x, t) = a +
n=
bn e−n
(^2) t cos nx +
n=
cn e−n
(^2) t sin nx.
Of course, this is all based on conjecture and hope. We have little evidence that the above series will converge in general. Also, this series will only be a solution to the heat equation if it is valid to take its derivative by separately differentiating each term. We will need to develop a lot of theory if we want to make this rigorous.
Consider a stringed instrument, such as a guitar, piano, or harp. Such an instrument consists of several long strings held at high tension, which vibrate and produce sound when they are disturbed. The classical vibrating string problem is to model the motion of such a string. Imagine that the string is stretched out along the x-axis, and is only allowed to vibrate in the vertical direction. At each time t, the vertical displacement of the string will be a function u(x), with the shape of the string being the graph of this function. Thus we can describe the motion of the string by a function u(x, t), where x is horizontal position and t is time. Under ideal conditions, the motion of the string will be governed by the following equation: ∂^2 u ∂x^2
∂^2 u ∂t^2
This is the one-dimensional version of the wave equation. In principle, we should be able to solve this equation if we are given the initial shape u(x, 0) and initial velocity (∂u/∂t)(x, 0) of the string. For simplicity, we assume that the string has length π, with x restricted to the interval [0, π]. In addition, we assume that the string is pinned at its ends, so that u(0, t) = u(π, t) = 0 for all t ∈ R:
Figure 6: The normal modes ψ 1 ,... , ψ 7.
and Ψ 1 sound the main note, while the remaining modes ψ 2 , ψ 3 ,... and Ψ 2 , Ψ 3 ,... produce certain higher notes known as harmonics or overtones. The strength of these overtones is responsible for the rich sound of stringed instruments.
(a) Determine the range of each of these functions. (b) Draw careful graphs of N(x) and (x), making sure to show the value of each function at its points of discontinuity.
p 1 (x) = 1, p 2 (x) = x, and p 3 (x) = 3x^2 − 1
(a) Compute 〈pi, pj 〉 for all i, j ∈ { 1 , 2 , 3 }. Are p 1 , p 2 , and p 3 orthogonal? (b) Let q : [− 1 , 1] → R be a quadratic polynomial, and suppose that
〈q, p 1 〉 = 7, 〈q, p 2 〉 = 2, and 〈q, p 3 〉 = 8.
What is q?
f (x) =
n=
sin nx 2 n^
sin x 2
sin 2x 4
sin 3x 8
sin 4x 16
a) Evaluate
∫ (^) π
−π
f (x) sin 3x dx.
b) Evaluate
∫ (^) π
−π
f (x)^2 dx.
f (x) =
1 if 0 ≤ x ≤ π/ 2 0 otherwise.
Compute the Fourier series for f (x) by hand.