We begin by recalling the definitions and basic properties of periodic functions.
Definition of periodic function
A function is periodic if there is some number such that
This equality is meant as an equality of functions, i.e., it should hold for every real number , or at least all such that both sides are actually defined.
We call a period of the function . Any interval of length is called a cycle of .
Observe that a periodic function is entirely determined by its values in any single cycle. Also note that for a periodic function , the number is not unique. Quite to the contrary, every periodic function has an infinite number of periods. Indeed, if is periodic with period , observe that we also have
In other words, if the values of repeat every units, then they also repeat every units, and every units, and so on. If there is a smallest positive period for , then we call the fundamental period of . In that case, every period of is a positive integer multiple of . For the functions we'll be dealing with, every non-constant periodic function has a fundamental period.
Constant functions?
We do count constant functions as periodic, but they are not given a fundamental period. Instead, we simply say they are periodic with every period .
For reasons we will soon see, it can be useful to list all periods of a periodic function , rather than simply the fundamental period.
Examples
Example
The function is periodic with periods
Example
The function is periodic with periods
Note
Observe that if is periodic with period , then for each the function is periodic with period . Scaling the input by compresses the graph horizontally by a factor of . (If , it also reflects the graph across the -axis.)
Example
We can also talk about periodicity for functions of several variables. We say a function is periodic in with period if
In other words, if we keep the other variables fixed, then is a periodic function of the variable . A function may be periodic in several of its variables, with different periods for different variables.
Consider the function . This function is periodic in with fundamental period , and also periodic in with fundamental period . It can be hard to see in the graph below, but try focusing on the grid lines. One set of lines is parallel to the -axis, and the other to the -axis. As you trace one of those lines, you're keeping one variable fixed while the other varies. Notice how the line rises and falls periodically, and how for one set of those lines the waves repeat more frequently than the other.
Example
Consider a circular wire with radius 1. For each real number , consider the point on the wire at polar angle . Let denote the temperature of that point on the wire at time . If we increase the value of by 1 then we'll move to the point at polar angle , which is the same point on the circle. Thus, , and so is periodic in with fundamental period 1.
Example
Suppose we fix a point on the earth and let denote the temperature feet below the ground at time . For each fixed value of , as varies the function keeps track of the temperature at that fixed point in the ground. If we assume temperature today is approximately the same as it was a year ago from today, then is periodic in with period 1 year.
Example
Imagine a sine wave traveling along the -axis. If denotes the vertical position of the point on the string at horizontal position and at time , then is periodic in both and . Fixing is like freezing the wave in time. As we scan across it (varying ), we see the heights (values of ) repeating periodically in .. On the other hand, fixing is like focusing on a single horizontal position. As we let time pass (vary ), we see that point move up and down, i.e., again varies periodically in .
Combining periodic functions
We are going to try to approximate periodic functions with linear combinations of some "basic" periodic functions. That raises a question, however. Is a linear combination of periodic functions still periodic? If so, how does the fundamental period of the combination relate to the fundamental period of the individual functions?
The answer to the first question might surprise you: a linear combination of periodic functions is not necessarily periodic.
Example
Consider the function . Its graph is shown below. Observe that while the graph does have a "wavy" nature to it, it never actually repeats. The component functions and are forever out of sync. The first repeats after units, units, units, etc., while the second repeats after 2 units, 4 units, 6 units, etc. The two functions never repeat at the same moment.
Observe that when periods of the two component functions are very close, such as (for the function ) and (for the function ), we see that the graph of very nearly repeats. That's because the two functions are almost in sync at the point.
Example
Consider the function is periodic with periods . Note that the functions and have fundamental periods and , respectively.
After considering a few examples, you should be able to convince yourself of the following: a linear combination of periodic functions is periodic exactly when those functions share a common period. In that case, the fundamental period of the combination is the least common integer multiple of the fundamental periods of the component functions.