{
  "id": "periodic-function",
  "title": "Periodic Function",
  "lang": "en",
  "source_lang": "en",
  "summary": "A periodic function repeats its values under translation by a fixed nonzero amount, providing a mathematical model of exact repetition.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "Periodic mapping"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/periodic-function/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/periodic-function/",
      "json": "https://aiwiki.page/zh/periodic-function.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A periodic function is a function whose values repeat after its argument is shifted by a fixed nonzero amount. For a function \\(f\\) defined on the real numbers, this means that there is a number \\(T>0\\) such that\n\n\\[f(x+T)=f(x) \\qquad\\text{for every }x\\in\\mathbb R.\\]\n\nThe number \\(T\\) 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."
    },
    {
      "heading": "Definition and fundamental period",
      "text": "For a function \\(f:D\\to Y\\), where \\(D\\subseteq\\mathbb R\\), a positive number \\(T\\) is a period when the domain is invariant under translation by \\(T\\),\n\n\\[D+T=D,\\]\n\nand\n\n\\[f(x+T)=f(x)\\qquad(x\\in D).\\]\n\nDomain 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.\n\nIf a periodic function has a smallest positive period, that number is its fundamental period, or least period. If \\(T_0\\) is the fundamental period, then\n\n\\[f(x+nT_0)=f(x) \\qquad(n\\in\\mathbb Z).\\]\n\nThus every positive integer multiple of \\(T_0\\) is also a period.\n\nNot every periodic function has a fundamental period:\n\n- A constant function has every positive real number as a period, so it has no least positive period.\n- Some nonconstant, discontinuous functions also have arbitrarily small positive periods.\n\nA nonconstant continuous function on \\(\\mathbb R\\), however, always has a fundamental period if it is periodic.\n\nFor a time-dependent function with fundamental period \\(T_0\\), its fundamental frequency is\n\n\\[\\nu_0=\\frac{1}{T_0},\\]\n\nand its fundamental angular frequency is\n\n\\[\\omega_0=\\frac{2\\pi}{T_0}.\\]\n\nFrequency counts cycles per unit time, whereas angular frequency measures the corresponding angular change per unit time."
    },
    {
      "heading": "Examples",
      "text": "Trigonometric and exponential functions\n\nThe basic trigonometric functions provide standard examples:\n\n\\[\\sin(x+2\\pi)=\\sin x, \\qquad \\cos(x+2\\pi)=\\cos x.\\]\n\nBoth have fundamental period \\(2\\pi\\).\n\nThe tangent function has fundamental period \\(\\pi\\):\n\n\\[\\tan(x+\\pi)=\\tan x.\\]\n\nIts domain excludes the points \\(\\pi/2+k\\pi\\), but this excluded set is itself preserved by translation through \\(\\pi\\).\n\nFor real constants \\(A,\\omega,\\phi,c\\), with \\(A\\ne0\\) and \\(\\omega\\ne0\\),\n\n\\[f(x)=A\\sin(\\omega x+\\phi)+c\\]\n\nhas fundamental period\n\n\\[T_0=\\frac{2\\pi}{|\\omega|}.\\]\n\nThe amplitude, phase shift, and vertical offset do not change that period.\n\nThe complex-valued exponential function\n\n\\[f(x)=e^{i\\omega x}\\]\n\nhas the same fundamental period when \\(\\omega\\) is a nonzero real number. Its connection to sine and cosine is expressed by Euler’s formula.\n\nNonsinusoidal functions\n\nThe fractional-part function\n\n\\[f(x)=x-\\lfloor x\\rfloor\\]\n\nhas fundamental period \\(1\\). Its graph is a repeating sawtooth, with a jump at every integer.\n\nA square wave can be defined by\n\n\\[s(x)= \\begin{cases} 1,&0\\le x<\\tfrac12,\\\\ -1,&\\tfrac12\\le x<1, \\end{cases} \\qquad s(x+1)=s(x).\\]\n\nThis also has fundamental period \\(1\\). Such examples show that periodicity concerns repetition, not smoothness or a particular waveform.\n\nPeriodicity does not by itself imply boundedness. For example,\n\n\\[g(x)= \\begin{cases} \\dfrac{1}{|\\sin(\\pi x)|},&x\\notin\\mathbb Z,\\\\ 0,&x\\in\\mathbb Z \\end{cases}\\]\n\nis defined everywhere on \\(\\mathbb R\\), has period \\(1\\), and is unbounded near each integer.\n\nA function with no least positive period\n\nLet\n\n\\[d(x)= \\begin{cases} 1,&x\\in\\mathbb Q,\\\\ 0,&x\\notin\\mathbb Q. \\end{cases}\\]\n\nEvery 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 \\(x=0\\).\n\nSince positive rational numbers can be arbitrarily small, \\(d\\) has no fundamental period despite being nonconstant."
    },
    {
      "heading": "Structure of the periods",
      "text": "For a function on \\(\\mathbb R\\), define its set of translation periods, including zero, by\n\n\\[P(f)=\\{h\\in\\mathbb R:f(x+h)=f(x)\\text{ for every }x\\in\\mathbb R\\}.\\]\n\nThis set is an additive subgroup of \\(\\mathbb R\\): it contains zero, and whenever \\(h,k\\in P(f)\\), it also contains \\(h-k\\). This connects periodicity with group theory.\n\nIf \\(f\\) is continuous, \\(P(f)\\) is a closed set. Indeed, if periods \\(h_n\\) converge to \\(h\\), continuity gives\n\n\\[f(x+h)=\\lim_{n\\to\\infty}f(x+h_n)=f(x).\\]\n\nA closed additive subgroup of \\(\\mathbb R\\) is one of\n\n\\[\\{0\\},\\qquad T_0\\mathbb Z\\quad(T_0>0),\\qquad \\mathbb R.\\]\n\nConsequently, a continuous function on \\(\\mathbb R\\) is either nonperiodic, periodic with a fundamental period, or constant.\n\nAn 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 \\(\\mathbb R\\), and continuity extends invariance under those translations to invariance under every real translation."
    },
    {
      "heading": "Operations and transformations",
      "text": "If \\(f\\) has period \\(T\\), then a horizontal shift \\(f(x-b)\\) also has period \\(T\\). For \\(a\\ne0\\),\n\n\\[g(x)=f(ax+b)\\]\n\nhas period \\(T/|a|\\). If \\(f\\) has fundamental period \\(T_0\\), then \\(g\\) has fundamental period \\(T_0/|a|\\).\n\nA transformation of the values, such as \\(g(x)=H(f(x))\\), preserves every period of \\(f\\), provided the composition is defined. It may introduce smaller periods. For example, \\(\\sin x\\) has fundamental period \\(2\\pi\\), but \\(\\sin^2x\\) has fundamental period \\(\\pi\\).\n\nIf two functions share a period \\(T\\), their sum and product also have period \\(T\\). More generally, functions with periods \\(T_1\\) and \\(T_2\\) have a common positive period whenever \\(T_1/T_2\\) is rational. Their sum or product may nevertheless have a smaller fundamental period, or become constant through cancellation.\n\nA sum of periodic functions need not be periodic when their periods are incommensurable. For example,\n\n\\[f(x)=\\sin x+\\sin(\\sqrt2\\,x)\\]\n\nhas no nonzero period. It combines two frequencies whose ratio is irrational."
    },
    {
      "heading": "Calculus of periodic functions",
      "text": "Boundedness and continuity\n\nA continuous periodic function on \\(\\mathbb R\\) 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.\n\nIt is also uniformly continuous on \\(\\mathbb R\\). These properties depend on continuity; they do not follow from periodicity alone.\n\nDifferentiation\n\nIf \\(f\\) is differentiable and has period \\(T\\), differentiating its defining identity gives\n\n\\[f'(x+T)=f'(x).\\]\n\nThus its derivative is periodic with period \\(T\\), although its least period need not be \\(T\\), and it may be constant.\n\nThe converse is not automatic. If \\(f'\\) has period \\(T\\), then\n\n\\[f(x+T)-f(x)\\]\n\nis constant in \\(x\\), but that constant need not be zero. For example, the derivative of \\(f(x)=x\\) is periodic, while \\(f\\) itself is not.\n\nIntegration and mean value\n\nFor a locally integrable \\(T\\)-periodic function, the integral over a complete period does not depend on the starting point:\n\n\\[\\int_a^{a+T}f(x)\\,dx=\\int_0^T f(x)\\,dx.\\]\n\nIts mean over a period is\n\n\\[\\overline f=\\frac1T\\int_0^T f(x)\\,dx.\\]\n\nIf\n\n\\[F(x)=\\int_0^x f(t)\\,dt,\\]\n\nthen\n\n\\[F(x+T)-F(x)=T\\overline f.\\]\n\nTherefore, \\(F\\) is \\(T\\)-periodic exactly when \\(f\\) has zero mean. In general,\n\n\\[F(x)=\\overline f\\,x+p(x),\\]\n\nwhere \\(p\\) is \\(T\\)-periodic. Integration thus separates a periodic input into a linear drift and a periodic remainder."
    },
    {
      "heading": "Fourier representation",
      "text": "Fourier series express periodic functions in terms of harmonically related sinusoids or complex exponentials. For a sufficiently regular function with period \\(T\\),\n\n\\[f(x)\\sim\\sum_{n\\in\\mathbb Z}c_n e^{2\\pi i n x/T},\\]\n\nwhere\n\n\\[c_n=\\frac1T\\int_0^T f(x)e^{-2\\pi i n x/T}\\,dx.\\]\n\nThe coefficient \\(c_0\\) is the mean value. The other coefficients describe components at integer multiples of the base frequency \\(1/T\\). The specified period \\(T\\) need not be the fundamental period.\n\nThe meaning of the expansion depends on regularity and on the type of convergence:\n\n- For a square-integrable function, the partial sums converge in the \\(L^2\\) sense.\n- For a piecewise continuously differentiable periodic function, the series converges at each point to the average of the left and right limits.\n- At a continuity point under those conditions, it converges to the function’s value.\n- Near jump discontinuities, partial sums exhibit persistent overshoot known as the Gibbs phenomenon.\n\nPeriodicity alone does not guarantee pointwise convergence of a Fourier series.\n\nFourier 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."
    },
    {
      "heading": "Discrete periodicity and sampling",
      "text": "For a sequence indexed by integers, periodicity means that there is a positive integer \\(N\\) such that\n\n\\[x_{n+N}=x_n\\qquad(n\\in\\mathbb Z).\\]\n\nUnlike a real-variable function, every periodic sequence has a least positive integer period, because every nonempty set of positive integers has a least element.\n\nThe sequence\n\n\\[x_n=e^{i\\omega n}\\]\n\nis periodic exactly when\n\n\\[\\frac{\\omega}{2\\pi}\\in\\mathbb Q.\\]\n\nIf \\(\\omega/(2\\pi)=p/q\\) in lowest terms with \\(q>0\\), its fundamental period is \\(q\\).\n\nSampling a continuous periodic function does not always produce a periodic sequence. If \\(f\\) has period \\(T\\) and is sampled at intervals \\(\\Delta\\), then \\(\\Delta/T=p/q\\) guarantees that the sampled sequence repeats after \\(q\\) steps, though its fundamental period may be smaller. An irrational sampling ratio does not provide such a guarantee.\n\nThe 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."
    },
    {
      "heading": "Related forms of recurrence",
      "text": "Exact periodicity should be distinguished from several broader notions:\n\n- Eventual periodicity: exact repetition begins only after an initial interval or finite prefix.\n- Quasiperiodicity: motion or variation is built from finitely many independent basic frequencies, typically with irrational frequency ratios, and need not repeat exactly.\n- Almost periodicity: in a standard uniform formulation, arbitrarily accurate approximate repetitions occur with relatively dense translation shifts.\n- Antiperiodicity: a relation \\(f(x+T)=-f(x)\\). It implies \\(f(x+2T)=f(x)\\), so \\(2T\\) is a period.\n\nIn 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."
    },
    {
      "heading": "Applications and modeling limits",
      "text": "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.\n\nIn 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."
    }
  ],
  "links": [
    "mathematical-function",
    "real-number",
    "domain-of-a-function",
    "integer",
    "continuous-function",
    "trigonometric-functions",
    "exponential-function",
    "eulers-formula",
    "rational-number",
    "group-theory",
    "closed-set",
    "dense-set",
    "extreme-value-theorem",
    "uniform-continuity",
    "derivative",
    "integral",
    "fourier-series",
    "joseph-fourier",
    "harmonic-analysis",
    "partial-differential-equation",
    "discrete-fourier-transform",
    "differential-equation",
    "time-series"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}