A periodic function is a function whose values repeat after its argument is shifted by a fixed nonzero amount. For a function defined on the real numbers, this means that there is a number such that
The number is called a period. Periodic functions describe exact repetition in mathematics and in models of oscillation, waves, rotating systems, and repeating signals. They need not be sinusoidal, continuous, or even bounded.
Definition and fundamental period
For a function , where , a positive number is a period when the domain is invariant under translation by ,
and
Domain invariance ensures that repetition works in both directions and that every translated argument remains in the domain. Some treatments instead consider repetition only on a half-line, where the equality is required wherever the forward shift is defined.
If a periodic function has a smallest positive period, that number is its fundamental period, or least period. If is the fundamental period, then
Thus every positive integer multiple of is also a period.
Not every periodic function has a fundamental period:
- A constant function has every positive real number as a period, so it has no least positive period.
- Some nonconstant, discontinuous functions also have arbitrarily small positive periods.
A nonconstant continuous function on , however, always has a fundamental period if it is periodic.
For a time-dependent function with fundamental period , its fundamental frequency is
and its fundamental angular frequency is
Frequency counts cycles per unit time, whereas angular frequency measures the corresponding angular change per unit time.
Examples
Trigonometric and exponential functions
The basic trigonometric functions provide standard examples:
Both have fundamental period .
The tangent function has fundamental period :
Its domain excludes the points , but this excluded set is itself preserved by translation through .
For real constants , with and ,
has fundamental period
The amplitude, phase shift, and vertical offset do not change that period.
The complex-valued exponential function
has the same fundamental period when is a nonzero real number. Its connection to sine and cosine is expressed by Euler’s formula.
Nonsinusoidal functions
The fractional-part function
has fundamental period . Its graph is a repeating sawtooth, with a jump at every integer.
A square wave can be defined by
This also has fundamental period . Such examples show that periodicity concerns repetition, not smoothness or a particular waveform.
Periodicity does not by itself imply boundedness. For example,
is defined everywhere on , has period , and is unbounded near each integer.
A function with no least positive period
Let
Every positive rational number is a period, because adding a rational number preserves whether a number is rational or irrational. No irrational number is a period, as can be seen by evaluating at .
Since positive rational numbers can be arbitrarily small, has no fundamental period despite being nonconstant.
Structure of the periods
For a function on , define its set of translation periods, including zero, by
This set is an additive subgroup of : it contains zero, and whenever , it also contains . This connects periodicity with group theory.
If is continuous, is a closed set. Indeed, if periods converge to , continuity gives
A closed additive subgroup of is one of
Consequently, a continuous function on is either nonperiodic, periodic with a fundamental period, or constant.
An important consequence is that a continuous function with two positive periods whose ratio is irrational must be constant. Integer combinations of those periods form a dense subset of , and continuity extends invariance under those translations to invariance under every real translation.
Operations and transformations
If has period , then a horizontal shift also has period . For ,
has period . If has fundamental period , then has fundamental period .
A transformation of the values, such as , preserves every period of , provided the composition is defined. It may introduce smaller periods. For example, has fundamental period , but has fundamental period .
If two functions share a period , their sum and product also have period . More generally, functions with periods and have a common positive period whenever is rational. Their sum or product may nevertheless have a smaller fundamental period, or become constant through cancellation.
A sum of periodic functions need not be periodic when their periods are incommensurable. For example,
has no nonzero period. It combines two frequencies whose ratio is irrational.
Calculus of periodic functions
Boundedness and continuity
A continuous periodic function on is bounded and attains a global maximum and minimum: its values are completely represented on any closed interval of one period. This follows from the extreme value theorem.
It is also uniformly continuous on . These properties depend on continuity; they do not follow from periodicity alone.
Differentiation
If is differentiable and has period , differentiating its defining identity gives
Thus its derivative is periodic with period , although its least period need not be , and it may be constant.
The converse is not automatic. If has period , then
is constant in , but that constant need not be zero. For example, the derivative of is periodic, while itself is not.
Integration and mean value
For a locally integrable -periodic function, the integral over a complete period does not depend on the starting point:
Its mean over a period is
If
then
Therefore, is -periodic exactly when has zero mean. In general,
where is -periodic. Integration thus separates a periodic input into a linear drift and a periodic remainder.
Fourier representation
Fourier series express periodic functions in terms of harmonically related sinusoids or complex exponentials. For a sufficiently regular function with period ,
where
The coefficient is the mean value. The other coefficients describe components at integer multiples of the base frequency . The specified period need not be the fundamental period.
The meaning of the expansion depends on regularity and on the type of convergence:
- For a square-integrable function, the partial sums converge in the sense.
- For a piecewise continuously differentiable periodic function, the series converges at each point to the average of the left and right limits.
- At a continuity point under those conditions, it converges to the function’s value.
- Near jump discontinuities, partial sums exhibit persistent overshoot known as the Gibbs phenomenon.
Periodicity alone does not guarantee pointwise convergence of a Fourier series.
Fourier methods developed centrally through Joseph Fourier’s work on heat conduction in the early nineteenth century, building on earlier investigations of vibrating strings and trigonometric expansions. They became foundational tools in harmonic analysis and in solving partial differential equations.
Discrete periodicity and sampling
For a sequence indexed by integers, periodicity means that there is a positive integer such that
Unlike a real-variable function, every periodic sequence has a least positive integer period, because every nonempty set of positive integers has a least element.
The sequence
is periodic exactly when
If in lowest terms with , its fundamental period is .
Sampling a continuous periodic function does not always produce a periodic sequence. If has period and is sampled at intervals , then guarantees that the sampled sequence repeats after steps, though its fundamental period may be smaller. An irrational sampling ratio does not provide such a guarantee.
The discrete Fourier transform represents a finite data block using discrete harmonics and corresponds to a periodic extension of that block. This mathematical extension need not reflect actual repetition in the original measured signal.
Related forms of recurrence
Exact periodicity should be distinguished from several broader notions:
- Eventual periodicity: exact repetition begins only after an initial interval or finite prefix.
- Quasiperiodicity: motion or variation is built from finitely many independent basic frequencies, typically with irrational frequency ratios, and need not repeat exactly.
- Almost periodicity: in a standard uniform formulation, arbitrarily accurate approximate repetitions occur with relatively dense translation shifts.
- Antiperiodicity: a relation . It implies , so is a period.
In several variables, a function may be invariant under several independent translation vectors. In complex analysis, nonconstant meromorphic functions with two periods independent over the real numbers are called elliptic functions. A nonconstant function holomorphic on the entire complex plane cannot have two such independent periods: double periodicity would make it bounded, forcing it to be constant.
Applications and modeling limits
Periodic functions describe idealized alternating electrical signals, acoustic tones, rotational motion, and traveling or standing waves. Periodic solutions of a differential equation represent trajectories that return exactly to the same state after a fixed interval. Periodic boundary conditions identify opposite boundaries of a computational or physical domain, allowing a repeating cell to represent a larger structure.
In time-series analysis, seasonal effects are often modeled with periodic functions. Observed cycles, however, may change in amplitude, phase, or duration. Repeated peaks or a strong spectral component therefore do not by themselves establish exact periodicity. A finite set of observations also cannot uniquely determine whether the underlying function repeats for all arguments.