6. Line Spectrum

Recall from earlier trigonometry that we can express the sum of a sine term and a cosine term, with the same period, as follows:

`a\ cos θ + b\ sin θ = R\ cos ( θ − α)`

where

`R=sqrt(a^2+b^2)`

and

`alpha=arctan(b/a)`

Likewise, the Fourier series

`f(t)=a_0/2+sum_(n=1)^oo(a_n\ cos n omega t+b_n\ sin n omega t)`

can be written in harmonics form

`f(t)=C_0+sum_(n=1)^ooC_n\ cos(n omegat-varphi_n)`

where

`C_1 cos (ωt - varphi_1)` is called the fundamental

`C_2 cos (2ωt - varphi_2)`, the second harmonic

`C_3 cos (3ωt - varphi_3)`, the third harmonic ... etc; and

`varphi_n` = phase angle

`C_n=` harmonic amplitude `=sqrt((a_n)^2+(b_n)^2`

We met harmonics before.

A plot showing each of the harmonic amplitudes in the wave is called the line spectrum.

Continues below

Note: Waves with discontinuities such as the saw tooth and square wave have spectra with slowly decreasing amplitudes since their series have strong high harmonics. Their 10th harmonics will often have amplitudes of significant value compared to the fundamental.

In contrast, the series of waveforms without discontinuities and with a generally smooth appearance will converge rapidly to the function and only a few terms are required to generate the wave.

Example 1

Plot the first 4 terms of the line spectrum for the Fourier Series:

`f(t)=pi/2+sum_(n=1)^oo1/(2n-1)cos nt+sum_(n=1)^oo((-1)^n)/(2n)sin nt`

The above Fourier series has an interesting graph. (NOTE: The following is not the plot of line spectrum asked for in the question, and that we found in the Answer. It's the plot of the above Fourier series.)

First 30 terms of a Fourier series

Graph of the first 30 terms of `f(t)`.

Music Examples

Example 2: Harmonics and Sound

When we listen to different musical instruments playing the same note, they sound different to us because of the different combinations of harmonics contained in the note.

For example, if a flute and a violin both play G above middle C, the harmonic spectrum is quite different.

G has a frequency of 392 Hz and the harmonics are all multiples of this fundamental frequency (or about 800 Hz, 1200 Hz, 1600 Hz, etc).

Harmony (2 or more notes sounding at the same time) works because of harmonics (look for the chord GBD contained within the harmonics of the note G).

You can see the relative values of the harmonics in the following sound spectrum images of a flute and a violin playing G4.

Flute

Flute harmonics

Violin

Violin harmonics

[Images source: University of New South Wales Physics Department]

Example 3: Java Applet - Fourier Series and Sound

The following link leads to a great Java applet to play with. (It's on an external site.) He is using Fourier Series expressed in the form

`f(t)=C_0+sum_(n=1)^ooC_ncos(n omega t-varphi_n)`

You can change the mean value (C0), amplitude of each harmonic (Cn) and also fn, which changes the phase shift. You can hear the sounds that result from adding different harmonics.

http://falstad.com/fourier/

While you're there, check out the other applets and lots of interesting stuff at:

http://falstad.com/mathphysics.html

top

Search IntMath, blog and Forum

Online Algebra Solver

This algebra solver can solve a wide range of math problems.

Calculus Lessons on DVD

 

Easy to understand calculus lessons on DVD. See samples before you commit.

More info: Calculus videos

The IntMath Newsletter

Sign up for the free IntMath Newsletter. Get math study tips, information, news and updates each fortnight. Join thousands of satisfied students, teachers and parents!

Given name: * required

Family name:

email: * required

See the Interactive Mathematics spam guarantee.