Sine Waves

Introduction

Sine waves are the purest of tones. A sine wave has exactly one harmonic, which is the fundamental.

Sine waves are so-named because the air pressure at a specific instant of time can be calculated using the sine function. This function provides the basis for trigonometry, which Wikipedia defines as the “branch of mathematics which studies relationships involving lengths and angles of triangles.” Trigonometry was invented by Hipparchus of Rhodes sometime before 125 B.C., but most of what has survived comes to us by way of the geographer Claudius Ptolemy's Almagest. The Almagest was created around 150 A.D.1 It is notable for many things including a model of the heavens, including a map of the known world, including the concepts of latitude and longitude, and including a table of “chords” (a sine is a ‘half chord’). The precision of Ptolemy's table remained unsurpassed until the early modern era.


Figure 1: Geometric construction of an angle θ.

Measurement of Angles

Sines being functions of angles, it is necessary first to understand how angles are measured. Construct a circle of radius 1, centered around the origin of a Cartesian coordinate system. Let O represent the origin, and let R represent the point where the positive x-axis intersects the circle. Now project a ray outward from the origin, whose angle in the counter-clockwise direction from the positive x-axis is given by θ. Let P represent the point where the ray intersects the circle. Figure 1 illustrates the construction just described.

Angles are commonly measured in three ways: turns, degrees, or radians.

The simplest and most obvious unit for measuring an angle is the full rotation or turn. A turn is also known as a cycle.

Degrees date back to the Babylonians and to the Greeks (e.g. Ptolemy). One degree divides a full rotation into 360 parts. This site favors degrees for measuring angles owing to their familiarity and convenience. If you're reading this text, you already know that a right angle measures 90°, that 45° divides a right angle in half, and that 30° divides a right angle into thirds.

Measurement Coordinates of P
Turns Degrees Radians
0/8=0.000 0.000×360=0   0.000×2π=0.000 (1,0)
1/8=0.125 0.125×360=45  0.125×2π=0.785 (√2,√2)
2/8=0.250 0.250×360=90  0.250×2π=1.571 (0,1)
3/8=0.375 0.375×360=135 0.375×2π=2.356 (-√2,√2)
4/8=0.500 0.500×360=180 0.500×2π=3.142 (-1,0)
5/8=0.625 0.625×360=135 0.625×2π=3.927 (-√2,-√2)
6/8=0.750 0.750×360=270 0.750×2π=4.712 (0,-1)
7/8=0.875 0.875×360=315 0.875×2π=5.498 (√2,-√2)
8/8=1.000 1.000×360=360 1.000×2π=6.283 (0,0)

Table 1: Turn/Degree/Radian equivalents for angle θ in Figure 1.

The standard unit for measuring angles is the radian, which in Figure 1 depicts as the circumferential distance from R to P. Radians leave a lot to be desired as a standard of measurement. What does one radian signify? The only thing familiar about them is that a full rotation measures out at , which is the circumference of a unit circle. However, Wikipedia explains that mathematicians since Roger Cotes (d. 1716) have preferred radians to degrees because measuring angles in radians simplifies calculus. This is why the radian has been adopted by statute into the Metric System. It is also why the mathematical function libraries for programming languages such as C require angles to be expressed in radians.

Table 1 presents turn/degree/radian equivalents for eight positions of P around the unit circle in Figure 1. The position for 8/8 turns returns P to the same location it occupied for the zero angle.


An essential fact about angles is the fact that they ‘wrap-around’ upon themselves with each turn around the circle:

θ ≡ θ + 360°

Here the triple-decker hyphen (≡) indicates equivalency: 0° and 360° both indicate the same point R in Figure 1; however, the first instance gets there immediately while the second only gets there after a complete turn.

What holds true for any θ holds true as well for 360°-θ, thus the meaning of a negative angle is formalized:

-θ ≡ 360°-θ

Figure 2: A right triangle.

Sines from a Right Triangle

Educators traditionally explain the sine function with reference to a right triangle such as the one illustrated in Figure 2. Figure 2 orients the right angle at the lower right — any right triangle can be rotated into this orientation. Every triangle has, by definition, three edges and three vertices, which are the corners where edges intersect. Each vertex corresponds to an angle.

The triangle in Figure 2 has angle θ at the lower left vertex. The horizontal side of length A along the bottom is called the “adjacent” side. The vertical side of length B along the right is called the “opposite” side. The diagonal side of length C from lower left to upper right is called the “hypotenuse”.

Given the angle θ as shown in Figure 2 one calculates the sine of θ, notated sin(θ), by dividing the opposite length B by the hypotenuse length C:

sin(θ)  ≡ 
B
C

Here the triple-decker hyphen (≡) indicates ‘is defined as’.

If you're familiar with sines, you're also familiar with cosines. As its name indicates, the cosine function is simply a complement to the sine. In particular, the cosine of the angle θ, notated cos(θ), is defined as the sine of the complementary angle (90° - θ). As Figure 2 illustrates, cos(θ) may be calculated by dividing the adjacent length A by the hypotenuse length C.

cos(θ)  ≡  sin(90° - θ)  ≡ 
A
C

Sines from the Unit Circle

The downside of explaining the sine function with reference to a right triangle such as Figure 2 is that the explanation becomes meaningless when θ ≤ 0° or θ ≥ 90°.

Here is a more general explanation which in fact closely resembles the explanation originally handed down by Ptolemy: Construct a circle of radius 1, centered around the origin of a Cartesian coordinate system. Now project a ray outward from the origin, whose angle with the positive x-axis is given by θ. Let P represent the point where the ray intersects the circle. Extend a vertical line from P until it intersects with the x-axis, and let Q represent the point of intersection. Then sin(θ) is defined as the vertical distance from P to Q.

Figure 3-1 through Figure 3-8 illustrate how unit-circle constructions may be used to derive sine values for angles ranging all the way around the circle from 0° to 360°.

           
Figure 3-1: Geometric construction of sin(0°).     Figure 3-2: Geometric construction of sin(45°).     Figure 3-3: Geometric construction of sin(90°).     Figure 3-4: Geometric construction of sin(150°).
                       
           
Figure 3-5: Geometric construction of sin(180°).     Figure 3-6: Geometric construction of sin(210°).     Figure 3-7: Geometric construction of sin(270°).     Figure 3-8: Geometric construction of sin(300°).
θ Figure Triangle Type Edge Proportions Sign sin(θ)
Adjacent Opposite
2-1 degenerate 1 0 0
45° 2-2 45-45-90 2/2 2/2 + 2/2
90° 2-3 degenerate 0 1 + 1
150° 2-4 30-60-90 3/2 1/2 + 1/2
180° 2-5 degenerate 1 0 0
210° 2-6 30-60-90 3/2 1/2 - -1/2
270° 2-7 degenerate 0 1 - -1
300° 2-8 30-60-90 1/2 3/2 - -√3/2

Table 2: Sine calculations for Figure 3-1 through Figure 3-8.

The sine is a transcendental function, which means that one cannot generally calculate sin(θ) using a finite sequence of additions, of multiplications, and even of root extractions. Table 2 carries through the sine constructions in Figure 3-1 through Figure 3-8; these figures illustrate special circumstances either where the radius aligns directly with one of the coordinate axes or where a special right triangle is formed:

The first — and for a long time only — table of sines was the Table of Chords included in the Almagest. Understand that a chord is a straight line connecting two points on the unit circle, so that what we now know as a sine can alternatively be described as a half chord. Ptolemy's table and his methods for producing it are described in Wikipedia. Sine and cosine values can be readily calculated for the special angles of 30°, 45°, and 60°. Once these are obtained, intermediate values may be obtained through iterative applications of the compound angle formula.

sin(α + β) = sin(α)cos(β) + sin(β) cos(α)

and the half-angle formula:

sin(α/2)  =  ±
1 - cos(α)
2

Producing this table required a prodigious effort. It appears that “Ptolemy must have calculated chords to five sexigesimal [base 60] places in order to achieve the degree of accuracy …” found in the Table of Chords. No surprise that improved tables would not appear until the late 16th century.


Figure 4: Characteristics of a sine wave.

Sound Waves

The graph shown in Figure 4 plots the values of the equation:

y(t)  = A·sin [ 360° (
t
ν
 + φ )]

where

A fourth property of the sine graph is the frequency ω, which is inversely proportional to the wavelength:

ω  = 
c
ν

The frequency is what you get by counting how many wave cycles occur during a unit of time, and the proportionality constant c in the above equation is the speed of sound, 767 mph. Thus a frequency of 440 Hz. (440 cycles per second) has a wavelength:

c
ω
 = 
767 miles per hour
440 cycles per second
 = 
767 mile seconds
440 cycle hours
 × 
5280 feet
mile
 × 
hour
3600 seconds
 = 
767×5280 feet
3600 cycles
 = 1125 feet per cycle.

Frequency corresponds to pitch in this way: Doubling the frequency raises the pitch by one octave.

A sine wave, strictly speaking, has a constant phase offset φ of zero. If the phase offset is 90° then what you have, again strictly speaking, is a cosine wave. However under most circumstances phase is not perceptible to the human ear, so people generally just talk about sine waves. You can also use the word sinusoid for any oscillating curve that could be phase-shifted to make a sine wave.

A graph like the one shown in Figure 4 appears in the original (1687) edition of Isaac Newton's Principia. It is certain that Newton was fully aware how closely its oscillations resemble simple waves such as the ups and downs of ripples on a pond. Beyond that, he develops the theory of a harmonic oscillator as a mechanism for producing sinusoidal waves.

According to Wikipedia, the understanding of sound waves as a mechanism for propagating energy through air appears in Book V of his De architectura (The Ten Books of Architecture) by Vitruvius, a Roman. This treatise dates back as early as 20 B.C., predating even the Almagest. Wikipedia continues:

… Vitruvius describes sound as a wave comparable to a water wave extended to three dimensions, which, when interrupted by obstructions, would flow back and break up following waves.

The opening sentence of this page asserts that sine waves are the “purest” of all waveforms. Here are four arguments in support of this assertion:

This page completes with a video which sweeps a radius around a unit circle and graphs the sine values thus produced. The video animates a diagram by Hermann Helmholtz. Helmholtz originally contrived this diagram to explain how successive sine constructions can be plotted to produce an oscillating curve.3

The video has two graphic components. At the far left is a circle with x and y axes, which serves in the manner of Figure 3-1 through Figure 3-8. The remainder of the graphic is an intensity/time graph, which will come to resemble Figure 4. During each frame of the video, the vertical distance from the x-axis to the point where the radius intersects the circle is taken as the momentary intensity. The intensity/time graph scrolls rightward by one pixel; then the new intensity value is plotted in the leftmost position.

The demonstration proceeds in four phases, each lasting 3 seconds. Each phase populates 250 consecutive pixels on the intensity/time graph. Each phase is distinguished by a particular sweep rate, that is, the number of degrees by which the radius advances each time a new sine value is calculated. In the audio accompanient, a phase is accompanied by a sine tone whose frequency is proportional to the sweep rate:

  1. The radius cycles twice around the circle using a sweep rate of 2 × 360° / 250 = 2.88° per frame. This first phase is accompanied by a 110 Hz. sine tone.
  2. The radius cycles four times around the circle using a sweep rate of 5.76° per frame. The accompanying sine tone ascends to 220 Hz.
  3. The radius cycles sixteen times around the circle using a sweep rate of 23.04° per frame. The accompanying sine tone ascends to 880 Hz.
  4. The radius cycles eight times around the circle using a sweep rate of 11.52° per frame. The accompanying sine tone descends to 440 Hz.

Video 1: Sine waveforms generated by sweeping a radius around a circle.

Comments

  1. My historical source for ancient trigonomitry is Morris Kline's Mathematical Thought from Ancient to Modern Times (Oxford University Press, 1972), volume 1, page 119.
  2. The best historical source I could find for sinusoidal waves was the Groves entry, Physics of music by various authors. Another source was a powerpoint presentation, “Waves, History and Applications” from the Basque Center for Applied Mathematics.
  3. On the Sensations of Tone, page 21, Figure 7.

© Charles Ames Page created: 2013-02-20 Last updated: 2017-06-24