= Spectral method
{wiki}
A spectral method approximates an unknown <function> by a finite expansion in global basis <functions>, such as <Fourier modes> or <orthogonal polynomials>. A <Galerkin method> makes the residual <orthogonal> to the retained trial space; a <collocation method> instead makes it vanish at selected nodes. The expansion coefficients are the numerical unknowns.
For the $2\pi$-periodic <heat equation>, a <Fourier series> truncation
$$
u_N(x,t)=\sum_{|m|\leq N}a_m(t)e^{imx}
$$
gives $a_m'(t)=-m^2a_m(t)$ under <Fourier–Galerkin method> projection. Each retained mode decays independently, and <differentiation> becomes multiplication of its coefficient by $im$. This turns a <partial differential equation> into finitely many <ordinary differential equations>.
Rapid convergence comes from rapid coefficient decay. If $|a_m|\leq Ce^{-\sigma|m|}$ with $\sigma>0$, the omitted tail has an exponentially small <uniform norm> bound by a <geometric series>. Limited smoothness or discontinuities can prevent that rate. A large number of retained modes cannot justify exponential convergence without the needed solution regularity.
Back to article page