BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Particular solutions via Fourier series, and how we hear

Shifting and stretching a known series saves work: the square wave that is 0 then 1, with period 2, is 1/2 + (2/π)Σ sin(nπt)/n over odd n. For the undamped equation x″ + ω₀²x = f(t), each input term a cos ωₙt or b sin ωₙt has the response divided by ω₀² − ωₙ², so by superposition the Fourier series of the input gives the series of a particular solution at once. With ω₀ = 10, the term with frequency 3π ≈ 9.42 dominates the response: the system resonates with a frequency hidden in the input, one only Fourier analysis reveals. This is how the ear separates a chord: hair cells in the cochlea, each tuned to its own natural frequency, resonate with the frequencies present. The book's method, substituting a series with unknown coefficients and matching terms, gives the same answer.

You need this first

Full reading path (30 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Differential equations and separation of variables (18.01)
  15. Direction fields, isoclines and integral curves (18.03)
  16. Euler's method and better numerical methods (18.03)
  17. First-order linear equations and integrating factors (18.03)
  18. Substitutions: scaling, Bernoulli and homogeneous equations (18.03)
  19. Autonomous equations, critical points and stability (18.03)
  20. Complex numbers and complex exponentials (18.03)
  21. Constant coefficients: steady state, superposition and sinusoidal input (18.03)
  22. Combining sine and cosine; models for first-order linear equations (18.03)
  23. Second-order linear equations with constant coefficients (18.03)
  24. Complex characteristic roots and damped oscillations (18.03)
  25. Linear operators, the Wronskian and normalized solutions (18.03)
  26. Inhomogeneous equations, particular solutions and stability (18.03)
  27. Particular solutions: the exponential input theorem (18.03)
  28. Resonance and beats (18.03)
  29. Introduction to Fourier series (18.03)
  30. Fourier series: even and odd functions, convergence and other periods (18.03)
On this page · 6 sections
  1. A shortcut by shifting and stretching
  2. Responses term by term
  3. A hidden resonance
  4. How we hear
  5. The book's method
  6. Summary

How does the ear hear three notes in a chord? The air carries one messy periodic wave, the sum of three pure oscillations, and most people hear the three tones in it: that is Fourier analysis, here with just three terms (transcript, p. 1). But the brain has no little integrator computing Fourier coefficients. The lecture builds up to what really happens (p. 1), using Fourier series with other periods.

A shortcut by shifting and stretching#

Take the square wave f(t)f(t) that is 0 on (−1,0)(-1, 0) and 1 on (0,1)(0, 1), with period 2 (transcript, p. 2). It is neither even nor odd, and its half-period is L=1L = 1, so the natural functions are sin⁡nπt\sin n\pi t and cos⁡nπt\cos n\pi t (p. 2). Rather than compute, reduce it to a known series (pp. 2–4):

  1. Lower it by 12\frac{1}{2}: the result S(t)S(t) is odd, jumping between −12-\frac{1}{2} and 12\frac{1}{2}.
  2. The square wave of Lecture 15, g(u)=4π∑n oddsin⁡nung(u) = \frac{4}{\pi}\sum_{n \text{ odd}}\frac{\sin nu}{n}, jumps between −1-1 and 1 with half-period π\pi (p. 3).
  3. With u=πtu = \pi t, S(t)=12g(πt)S(t) = \frac{1}{2} g(\pi t) (p. 4).

So (p. 4)

Square wave of period 2
f(t)=12+2π∑n oddsin⁡nπtnf(t) = \frac{1}{2} + \frac{2}{\pi}\sum_{n \text{ odd}}\frac{\sin n\pi t}{n}
In words

f(t) equals one half plus 2 over pi, times the sum over n odd of sine n pi t over n

Responses term by term#

To keep the calculation short, take the undamped spring (transcript, p. 5):

Undamped driven equation
x′′+ω02 x=f(t)x'' + \omega_0^2\,x = f(t)
In words

x double prime plus omega nought squared x equals f(t)

From the lecture on resonance, the input cos⁡ωt\cos\omega t or sin⁡ωt\sin\omega t has the particular solution cos⁡ωt/(ω02−ω2)\cos\omega t/(\omega_0^2 - \omega^2) or sin⁡ωt/(ω02−ω2)\sin\omega t/(\omega_0^2 - \omega^2) (pp. 5–6). Now expand a general input with period 2L2L (p. 6):

Input as a Fourier series
f(t)=a02+∑n=1∞(ancos⁡ωnt+bnsin⁡ωnt),ωn=nπLf(t) = \frac{a_0}{2} + \sum_{n=1}^{\infty}\left(a_n\cos\omega_nt + b_n\sin\omega_nt\right), \qquad \omega_n = \frac{n\pi}{L}
In words

f(t) equals a nought over 2 plus the sum from n equals 1 to infinity of the quantity a sub n cos omega n t plus b sub n sine omega n t, omega n equals n pi over L

By superposition, the responses add, and the constant term is the case ω=0\omega = 0 (p. 7); this assumes no ωn\omega_n equals ω0\omega_0:

Response as a Fourier series
xp=a02ω02+∑n=1∞ancos⁡ωnt+bnsin⁡ωntω02−ωn2x_p = \frac{a_0}{2\omega_0^2} + \sum_{n=1}^{\infty}\frac{a_n\cos\omega_nt + b_n\sin\omega_nt}{\omega_0^2 - \omega_n^2}
In words

x sub p equals a nought over the quantity 2 omega nought squared, plus the sum from n equals 1 to infinity of the quantity a sub n cos omega n t plus b sub n sine omega n t, all over the quantity omega nought squared minus omega n squared

As soon as the input's Fourier series is known, the response's can be written down: the fundamental idea of Fourier series in this setting (p. 7).

A hidden resonance#

For the square wave above, ωn=nπ\omega_n = n\pi and (transcript, p. 8; the factor 1n\frac1n is restored as on p. 15)

Response to the square wave
xp=12ω02+2π∑n oddsin⁡nπtn (ω02−n2π2)x_p = \frac{1}{2\omega_0^2} + \frac{2}{\pi}\sum_{n \text{ odd}}\frac{\sin n\pi t}{n\,(\omega_0^2 - n^2\pi^2)}
In words

x sub p equals 1 over the quantity 2 omega nought squared, plus 2 over pi, times the sum over n odd of sine n pi t over the quantity n the quantity omega nought squared minus n squared pi squared

What it looks like matters less than the sizes of the coefficients (p. 8). Take natural frequency ω0=10\omega_0 = 10 (pp. 8–10). The constant term is 1200=0.005\frac{1}{200} = 0.005. The sin⁡πt\sin\pi t term has denominator 100−π2≈90100 - \pi^2 \approx 90, the sin⁡3πt\sin 3\pi t term 100−9π2≈11.2100 - 9\pi^2 \approx 11.2, the sin⁡5πt\sin 5\pi t term 100−25π2≈−147100 - 25\pi^2 \approx -147, and after that they are negligible. Working it out:

Coefficients for ω0=10\omega_0 = 10
xp≈0.005+0.0071sin⁡πt+0.0190sin⁡3πt−0.0009sin⁡5πt−⋯x_p \approx 0.005 + 0.0071\sin\pi t + 0.0190\sin 3\pi t - 0.0009\sin 5\pi t - \cdots
In words

x sub p is approximately 0.005 plus 0.0071 sine pi t plus 0.0190 sine 3 pi t minus 0.0009 sine 5 pi t minus and so on

(The lecture estimates these mentally, with rough arithmetic, and finds the 3π3\pi term about five times its neighbours; the exact ratios are about 2.7 and 22. The conclusion is the same.) The frequency 3π3\pi dominates the response: near resonance (p. 10). Yet 3π3\pi is nowhere to be seen in the input's graph. The Fourier coefficients reveal how much of each frequency is hidden in it, and the system picks out and resonates with the one closest to its natural frequency (p. 10). With ω0=5\omega_0 = 5, no frequency of the input would be close: no resonance, and the slowest term would simply dominate (p. 11).

The response of x′′+100x=f(t)x'' + 100x = f(t) to the square wave, computed from the first four terms of its series: it is dominated by the n=3n = 3 term, which oscillates at 3π≈9.423\pi \approx 9.42, close to the natural frequency 10.

How we hear#

This, in the lecture's own simplified picture (Mattuck stresses that he is hand-waving about physiology), is how we hear (transcript, pp. 11–12). The eardrum vibrates with the wave f(t)f(t); three small bones pass the vibration to a membrane of the fluid-filled inner ear. In the cochlea, the lecture says, are about 20,000 hair-like cells of graded lengths, like organ pipes, each with its own natural frequency (p. 11). Each resonates with the frequency in the wave closest to its own; only the groups near the three notes respond strongly, and they signal the auditory nerve. The Fourier analysis is done by resonance (p. 12).

The book's method#

The textbook and the notes substitute instead (transcript, pp. 12–14). Assume a particular solution shaped like the input, here xp=c0+∑cnsin⁡nπtx_p = c_0 + \sum c_n\sin n\pi t, differentiate twice term by term, substitute into x′′+ω02x=f(t)x'' + \omega_0^2x = f(t), and equate coefficients with the Fourier series of ff (pp. 13–14):

Equating coefficients
c0 ω02=12,cn (ω02−n2π2)=2nπ    (n odd),cn=0    (n even)c_0\,\omega_0^2 = \frac{1}{2}, \qquad c_n\,(\omega_0^2 - n^2\pi^2) = \frac{2}{n\pi} \;\; (n \text{ odd}), \qquad c_n = 0 \;\; (n \text{ even})
In words

c nought omega nought squared equals one half, c sub n the quantity omega nought squared minus n squared pi squared, equals 2 over the quantity n pi, times (n odd ), c sub n equals 0 (n even )

the same answer as before (p. 15). It needs no memorised response formula, and takes about as long (pp. 12–13). (The transcript's last formula reads "nn over π\pi squared" for (nπ)2(n\pi)^2, p. 15.)

Worked example

Which frequency wins?

The square wave ff above drives x′′+ω02x=f(t)x'' + \omega_0^2x = f(t). Find the largest terms of the response for (a) ω0=6\omega_0 = 6 and (b) ω0=15.5\omega_0 = 15.5. (c) Find the constant term for ω0=6\omega_0 = 6 by equating coefficients.

(a) No resonance at 6

The coefficients 2π⋅1n(ω02−n2π2)\frac{2}{\pi}\cdot\frac{1}{n(\omega_0^2 - n^2\pi^2)} are about 0.02440.0244 (n=1n = 1), −0.0040-0.0040 (n=3n = 3) and −0.0006-0.0006 (n=5n = 5). The natural frequency 6 is close to 2π≈6.282\pi \approx 6.28, but the square wave has no even terms, so nothing resonates: the slowest term simply dominates.

(b) Resonance at 15.5

Now 5π≈15.715\pi \approx 15.71 is close: the coefficients are about 0.00280.0028 (n=1n = 1), 0.00140.0014 (n=3n = 3) and −0.0196-0.0196 (n=5n = 5). The n=5n = 5 term is about seven times the next.

(c) The constant term

c0⋅36=12c_0\cdot 36 = \frac{1}{2}, so c0=172≈0.0139c_0 = \frac{1}{72} \approx 0.0139.

Summary#

  • Shift and stretch known series: the 0–1 square wave of period 2 is 12+2π∑n oddsin⁡nπtn\frac{1}{2} + \frac{2}{\pi}\sum_{n \text{ odd}}\frac{\sin n\pi t}{n}.
  • For x′′+ω02x=f(t)x'' + \omega_0^2x = f(t), divide each term of the input's series by ω02−ωn2\omega_0^2 - \omega_n^2 to get a particular solution.
  • If ω0\omega_0 is close to some ωn\omega_n, that term dominates: resonance with a frequency hidden in the input.
  • The ear does Fourier analysis by resonance; the book's method of equating coefficients gives the same series.

Symbols on this page

Show the 28 symbols used here
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
ω\omega omega.
The frequency of a sinusoidal input. Unit: rad/s. Say it: “omega”.
∞\infty infinity.
Infinity: larger than any number. Say it: “infinity”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∑\sum sum.
Sum: add up the terms over the range written below and above. Say it: “the sum of”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
cc c.
The unknown coefficient of a trial solution c sin ωt. Say it: “c”.
xx x.
The response of the undamped spring. Say it: “x”.
tt t.
Time. Say it: “t”.
nn n.
A positive integer indexing the terms of the series. Say it: “n”.
ff f.
The input: a periodic driving function, here the 0–1 square wave of period 2. Say it: “f”.
gg g.
The square wave of period 2π, jumping between −1 and 1. Say it: “g”.
bb b.
The coefficient of a sine input b sin ωt. Say it: “b”.
LL L.
The half-period of the input. Say it: “L”.
SS S.
The square wave lowered by ½, an odd function. Say it: “S”.
uu u.
The stretched variable πt. Say it: “u”.
a0a_{0} a nought.
Twice the constant term of the input's Fourier series. Say it: “a nought”.
ω0\omega_{0} omega nought.
The natural frequency of the undamped spring. Unit: rad/s. Say it: “omega nought”.
ana_{n} a n.
A cosine coefficient of the input's Fourier series. Say it: “a sub n”.
x′′x'' x double prime.
The second derivative of x. Say it: “x double prime”.
c0c_{0} c nought.
The constant term of the assumed particular solution. Say it: “c nought”.
bnb_{n} b sub n.
A sine coefficient of the input's Fourier series. Say it: “b sub n”.
ωn\omega_{n} omega n.
The frequency nπ/L of the n-th term of a Fourier series. Unit: rad/s. Say it: “omega n”.
xpx_{p} x sub p.
A particular solution of the driven equation. Say it: “x sub p”.
cnc_{n} c sub n.
An unknown coefficient of the assumed particular solution. Say it: “c sub n”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 18 words used here

Also used

periodic.
Repeating itself exactly after a fixed interval of time or distance, called the period. Explained in Angles, radians and trigonometry.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
Fourier series.
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.
period.
The time one full cycle of a repeating motion takes, such as one turn round a circle or one swing of a pendulum. Explained in Uniform circular motion: centripetal acceleration, period and frequency.
undamped.
With no damping at all, so an oscillation keeps the same size for ever. Explained in Complex characteristic roots and damped oscillations.
resonance.
The large response of an oscillating system when it is pushed at, or close to, its own natural frequency. Explained in Resonance.
particular solution.
Any one solution of the full equation, input term included; adding the complementary solution gives all the others. Explained in Inhomogeneous equations, particular solutions and stability.
superposition.
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.
natural frequency.
The frequency at which a system oscillates on its own, with no damping and no outside force. Explained in Resonance.
frequency.
How often something repeats: the number of cycles, turns or waves each second, measured in hertz. Explained in Circular motion.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.

Academic

messy.
In calculations, long and complicated, with many terms, though not hard in principle.
transcript.
A written record of exactly what was said in a recorded lecture, word for word.
assumption.
Something accepted as true, without proof, so that an argument or calculation can proceed; to assume is to accept it so.
negligible.
So small that leaving it out makes no noticeable difference to the result.
dominate.
To be the largest contribution, so that the others hardly matter.
hand-waving.
Loose, informal reasoning that makes a claim sound plausible without really showing it.

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).

Where this leads

In cosmology

Pages that build on this

Practise

Check your understanding

  1. For x′′+ω02x=f(t)x'' + \omega_0^2x = f(t), what is the response to the input term bsin⁡ωtb\sin\omega t (ω≠ω0\omega \ne \omega_0)?
  2. The square wave (0 then 1, period 2) has only the frequencies nπn\pi with nn odd. With ω0=10\omega_0 = 10, which term dominates the response?
  3. How does the ear pick out the notes of a chord, according to the lecture?
0 of 3 answered

Flashcards

1 / 3