Trigonometric polynomial
A trigonometric polynomial of degree at most n is a finite linear combination of the constant function $1, the cosine functions \cos(kx), and the sine functions \sin(kx) for k = 1, 2, \dots, n, typically written in the formT_n(x) = \frac{a_0}{2} + \sum_{k=1}^n \left( a_k \cos(kx) + b_k \sin(kx) \right),
where a_k and b_k are real coefficients.[1] Equivalently, it can be expressed using complex exponentials as
p(x) = \sum_{k=-n}^n c_k e^{ikx},
with complex coefficients c_k.[2] Trigonometric polynomials are inherently $2\pi-periodic and form a vector space under pointwise addition and scalar multiplication, with the set \{1, \cos(kx), \sin(kx) \mid k=1,\dots,n\} serving as a linearly independent basis on the interval [-\pi, \pi] with respect to the constant weight function w(x) = 1.[1] This basis exhibits orthogonality properties, as
\int_{-\pi}^{\pi} \cos(kx) \cos(mx) \, dx = \pi \delta_{km}, \quad \int_{-\pi}^{\pi} \sin(kx) \sin(mx) \, dx = \pi \delta_{km}, \quad \int_{-\pi}^{\pi} \cos(kx) \sin(mx) \, dx = 0
for k, m \geq 1, and similar relations hold involving the constant term, facilitating computations like least-squares approximations.[3] In approximation theory and harmonic analysis, trigonometric polynomials play a central role as the finite-dimensional building blocks of Fourier series, where the partial sums S_n(x) of a function's Fourier series coincide exactly with the best least-squares approximation from the space of degree-n trigonometric polynomials in the L^2[-\pi, \pi] norm.[3] By the Weierstrass approximation theorem, the set of all trigonometric polynomials is dense in the space of continuous $2\pi-periodic functions equipped with the uniform norm, meaning any such continuous function can be uniformly approximated arbitrarily closely by a trigonometric polynomial.[2] Notable results include the Fejér-Riesz theorem, which asserts that a non-negative trigonometric polynomial f(\theta) = \sum_{k=-n}^n c_k e^{ik\theta} (real-valued on the unit circle) can be factored as f(\theta) = |q(e^{i\theta})|^2, where q(z) is a polynomial of degree at most n with all roots outside the closed unit disk.[4] This factorization has applications in signal processing, control theory, and spectral analysis. Additionally, Bernstein's inequality bounds the derivative of a trigonometric polynomial, stating that if \|T_n\|_\infty \leq 1 on [-\pi, \pi], then \|T_n'\|_\infty \leq n.[5]