A heartbeat, a vibrating string and the hum of a power line all repeat the same shape over and over. Functions that repeat are called periodic, and the simplest of them are sines and cosines. Before building other periodic functions out of these, you need one surprising fact. Over a full period, the product of two different harmonics always integrates to zero.
Key terms
Periodic functions
Definition A function defined on is periodic with period if
If is a period, so is every positive integer multiple . If is periodic with period and integrable over each bounded interval, its integral over any interval of length is the same,
In plain words Shift the graph sideways by and you get the same graph.
Example The functions and have period , and so they also have periods , and so on. The fractional part , a sawtooth climbing from toward on each interval , has period .
Fundamental period
Definition The fundamental period of a periodic function is its smallest positive period, when one exists. Not every periodic function has one. A constant function has every as a period, so there is no smallest. If is continuous, periodic and not constant, then a fundamental period exists, and every period is an integer multiple of it.
In plain words It is the length of one full repeat. Most functions you meet have one, but constants are the exception.
Example The function has fundamental period , since
and no smaller shift of than leaves the sine unchanged for every . The sum has periods and for its two parts, so , the least common multiple, is a period of the sum. It is the fundamental period too. If is any period of , then is also a period of , and that forces to be a multiple of . In general the least common multiple is a period of the sum but need not be the smallest one.
Angular frequency
Definition For a sinusoid or with and , whose amplitude is , the number is the angular frequency, measured in radians per unit of . The fundamental period and the ordinary frequency are
In plain words Angular frequency counts how many radians the inside of the sine advances per unit of time. Divide by to get full cycles per unit of time.
Example The signal with in seconds has radians per second. Its period is
second, and its frequency is cycles per second.
Harmonics
Definition Fix a base period and put . For each integer the th harmonic is the pair of functions
with angular frequency . Each harmonic has fundamental period , so is a period of every harmonic. The first harmonic is the fundamental.
In plain words Harmonics are the sine and cosine waves that fit into the base period a whole number of times. They are the building blocks for anything that repeats with period .
Example For we have , and the harmonics are and . The third harmonic completes three full cycles on , and its graph returns to its starting point at .
Inner product of functions
Definition For real functions and that are piecewise continuous on , their inner product on is
It is symmetric, , linear in each argument, and satisfies . The norm of is . Two functions are orthogonal on if .
In plain words This is the dot product for functions. Multiply the two functions point by point and add up with an integral instead of a sum.
Example On ,
So and are orthogonal on . The norm of is
Sine and cosine orthogonality
Definition For integers ,
So the functions are pairwise orthogonal on , and the same holds on any interval of length . For period the same statements hold for and on , with in place of in the nonzero values and for the constant.
In plain words Two different harmonics, or a sine and a cosine, cancel each other out over a full period. Only a harmonic paired with itself leaves something behind.
Example The product to sum identity
gives
With instead,
Check yourself
- What is the fundamental period of ?
Show the answer
The angular frequency is , so
- What is the fundamental period of ?
Show the answer
It is . The parts have fundamental periods and , and , so is a period. No smaller works. A period of is also a period of and of , so is a multiple of both and , hence of .
- Compute using orthogonality.
Show the answer
Expanding the square gives
The middle term integrates to , and the others give .