Periodic Functions
A periodic function repeats the same pattern forever: f(x + T) = f(x). Sine and cosine are the best-known examples, both with period 360° = 2π.
A periodic function repeats the same pattern forever: f(x + T) = f(x). Sine and cosine are the best-known examples, both with period 360° = 2π.
Some functions repeat the same pattern forever: the tide, a heartbeat, a wheel turning. A function like that is called periodic, and the length of one repeat is its period.
A function is periodic when
for every
. The period
is the smallest positive value for which this holds.
For and
the period is
radians. After a full turn around the unit circle the point is back where it started, so the values start over — and they carry on repeating in both directions, without end.
| Function | Period | Shape |
|---|---|---|
| sin θ | 360° = 2π | smooth wave, starts at 0 |
| cos θ | 360° = 2π | smooth wave, starts at 1 |
| Sawtooth | as defined | a ramp, then a jump back |
| Square wave | as defined | alternates between two values |
| Triangle wave | as defined | straight rise, straight fall |
In , the two constants do different jobs. A larger
squeezes the wave and shortens the period; a smaller
stretches it out.
Changing stretches the curve vertically without touching the period, and adding a shift slides the whole curve sideways without changing its shape.