A reasonable function with period 2π can be written as a Fourier series c₀ + Σ(aₙ cos nt + bₙ sin nt). Since the responses to cos nt and sin nt are known, superposition then gives the response to any periodic input. The coefficients come from the orthogonality relations: any two distinct functions among sin nt and cos mt have ∫ from −π to π of their product equal to 0, while ∫ sin²nt = ∫ cos²nt = π for n ≥ 1. These follow from the differential equation u″ + n²u = 0 by integrating by parts. Multiplying the series by cos nt and integrating gives aₙ = (1/π)∫f cos nt dt, and likewise bₙ; the constant term is (1/2π)∫f dt, or a₀/2. The square wave, −1 then +1, has the series (4/π)(sin t + sin 3t/3 + sin 5t/5 + …).
So far the inputs have been very special: exponentials, sines and cosines (transcript, p. 1). Fourier series show that they are not as special as they look. This lecture and the next two cover them (p. 1).
(2π need only be aperiod: sin2t also has it.) Why does this help with y′′+Ay′+By=f(t)? For each input cosnt or sinnt we know how to find the response, by complexifying (p. 2). Because the equation is linear, the input ancosnt has an times that response, and adding up, the response to f is the same combination of the responses to the cosines and sines; the constant term counts as cos0t (pp. 2–3). That is the superposition principle. The programme: find the Fourier series of the input, then add up the known responses (p. 3). Its main payoff will be a new view of resonance: some terms of the input's series can be picked out and produce unexpectedly large responses (p. 4).
The word really is connected with orthogonalvectors in 18.02 (p. 5). The theorem that makes Fourier series work (p. 5): any two distinct functions from the collection sinnt (n≥1) and cosmt (m≥0) are orthogonal on [−π,π]. So ∫−ππsin3tcos4tdt=0, and so is ∫−ππsin3tsin60tdt. A function with itself cannot give 0, since a square is positive; instead, for n≥1 (p. 6)
Normalization
∫−ππsin2ntdt=∫−ππcos2ntdt=π
In words
the integral from minus pi to pi of sine squared n t d t equals the integral from minus pi to pi of cos squared n t d t equals pi
The relations can be proved with trigonometric identities or with complex exponentials, but the lecture uses a third method, through the differential equation, because it is the one that generalizes to the many other families of orthogonal functions (pp. 6–7).
Let un and vm be any two of the functions, m=n, so un′′=−n2un and vm′′=−m2vm (pp. 7–8). Integrate the unsymmetric expression ∫un′′vm by parts, "the most important theoretical method" of 18.01 (p. 8):
Integration by parts
∫−ππun′′vmdt=[un′vm]−ππ−∫−ππun′vm′dt
In words
the integral from minus pi to pi of u sub n prime prime v sub m d t equals ( u sub n prime v sub m ) sub minus pi to the power pi minus the integral from minus pi to pi of u sub n prime v sub m prime d t
The bracket is always 0: a sine vanishes at ±π, and a product of cosines, being even, has the same value at both ends (pp. 8–9). What remains, −∫un′vm′, is symmetric in u and v. But using the equation, ∫un′′vm=−n2∫unvm, which favours u (p. 9). Doing the same with the roles exchanged gives −m2∫unvm for the same quantity, and since m=n (p. 10)
Conclusion
−n2∫−ππunvmdt=−m2∫−ππunvmdt⟹∫−ππunvmdt=0
In words
minus n squared the integral from minus pi to pi of u sub n v sub m d t equals minus m squared the integral from minus pi to pi of u sub n v sub m d t which gives the integral from minus pi to pi of u sub n v sub m d t equals 0
Something both symmetric and not symmetric must be zero (p. 10). One case is left: cosntsinnt, with the same n. It is 21sin2nt, whose integral over a whole period is 0 (p. 11).
To find an, multiply the whole series by cosnt and integrate from −π to π (transcript, pp. 11–12). By orthogonality every term vanishes except an∫cos2ntdt=πan (p. 12). The same works for bn (pp. 12–13):
a sub n equals 1 over pi, times the integral from minus pi to pi of f(t) cos n t d t, b sub n equals 1 over pi, times the integral from minus pi to pi of f(t) sine n t d t, n is greater than or equal to 1
The constant term is an exception, a source of gross errors (p. 13). Multiply by 1 (that is, cos0t) and integrate: ∫−ππfdt=2πc0, because cosnt and sinntintegrate to 0 over a full period (p. 13). So c0=2π1∫−ππfdt: putting n=0 into the an formula gives twice it. Hence the usual convention (p. 14):
Constant term
c0=2a0=2π1∫−ππf(t)dt
In words
c nought equals a nought over 2 equals 1 over the quantity 2 pi, times the integral from minus pi to pi of f(t) d t
Take f=−1 on (−π,0) and f=+1 on (0,π), continued periodically: an odd function, equally above and below the axis (transcript, pp. 14–15). Its an turn out to be 0 (p. 15). For bn, split the integral where f jumps (p. 15):
Square wave coefficients
bn=π1(∫−π0(−sinnt)dt+∫0πsinntdt)=nπ2(1−cosnπ)=nπ4 for odd n,0 for even n
In words
b sub n equals 1 over pi, times the quantity the integral from minus pi to 0 of (- sine n t) d t plus the integral from 0 to pi of sine n t d t, equals 2 over the quantity n pi, times the quantity 1 minus cos n pi, equals 4 over the quantity n pi, for odd n, 0 for even n
Partial sums of the square wave's Fourier series, computed from (4/π) Σ sin(nt)/n over odd n: with more terms the sum hugs the square wave more closely, except for an overshoot next to each jump.
Worked example
Two more series
Find the Fourier series of (a) the half-wave f=0 on (−π,0), f=1 on (0,π), and (b) f(t)=∣t∣, both on (−π,π) and continued with period2π. (c) Check (b) at t=0, using 1+91+251+⋯=8π2.
(a) A half-wave
It is half the square wave plus 21, so no new integrals are needed: f=21+π2(sint+3sin3t+5sin5t+⋯). Directly: the constant term is 2π1∫0πdt=21, and bn=π1∫0πsinntdt=nπ1−cosnπ.
(b) A triangle wave
∣t∣sinnt is odd, so every bn=0. The constant term is 2π1∫−ππ∣t∣dt=2π, and an=π2∫0πtcosntdt=πn22((−1)n−1), which is −πn24 for odd n and 0 for even n. So ∣t∣=2π−π4(cost+9cos3t+25cos5t+⋯).
A way of writing a repeating function as a sum of sines and cosines whose frequencies are whole-number multiples of one frequency. Explained in Normal modes of a string and Fourier series.
Adding effects: the total force, field or wave from several sources is the sum of what each would give alone. Explained in Superposition and standing waves.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
An agreed choice, such as which direction counts as positive, that could have been made differently.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).