GLOBAL KNOWLEDGE ARK

Mathematics · Article

Fourier series and orthogonal expansions

Build Fourier and orthogonal polynomial expansions from projections, prove their convergence under explicit hypotheses, and apply them to waves, heat, boundary-value problems and carefully scoped numerical approximations.

Back to Mathematics

After reading, you can

  • Convert real and complex Fourier conventions, periods and frequency units without losing normalization or endpoint information.
  • Prove projection, Bessel, completeness, Parseval and square-summable reconstruction statements while distinguishing norm, pointwise, almost-everywhere and uniform convergence.
  • Use Dirichlet, Dini, bounded-variation and Fejer arguments with their actual hypotheses, and explain the shrinking Gibbs boundary layer.
  • Connect periodic regularity and weak derivatives to coefficient decay, spectral error bounds, justified differentiation and compatible periodic primitives.
  • Derive half-range, wave, heat and Poisson expansions with explicit boundary conditions, units, mean constraints and finite-versus-infinite solution scope.
  • Construct weighted polynomial projections, Legendre and Chebyshev expansions, then separate completeness, quadrature exactness, sampling priors and mathematical error certificates.
01

Modes, projections and the meaning of convergence

A vibrating string, a periodic temperature pattern and a repeating sound can each be described through modes. Fourier series turn a periodic function into coefficients of sine, cosine or complex exponential modes. Orthogonal polynomial expansions use the same projection idea with different functions and a different weight. In every case, the question is both how to compute the coefficients and what the resulting expansion actually represents.

Begin with the declared inner product and a finite projection. Then distinguish several meanings of convergence: small integrated squared error, convergence at a specified point, equality almost everywhere and a uniform error bound are different conclusions. The proofs below develop those distinctions before using infinite expansions in differential equations. They retain endpoint traces, zero modes, frequency units and the regularity assumptions that make each operation legitimate.

The main convention is the circle [-pi,pi] with endpoints identified, c_n=(1/(2*pi))*integral f(x)*exp(-i*n*x)dx, and S_N=sum_(|n|<=N)c_n*exp(i*n*x), with integer N>=0. The complex inner product is linear in its first argument. Other periods are obtained by an explicit change of variables. The lesson connects series and linear algebra to waves and diffusion in physics, spectral and sampling choices in engineering, and the harmonic description of sound in the arts; mathematical approximation alone does not establish the adequacy of those applications.

02

Period, normalization and units

Let L>0 and identify the endpoints of [-L, L]. For an integrable function f, define c_n=(1/(2L))*integral_{-L}^L f(x)exp(-i*n*pi*x/L)dx for integer n. With theta=pi*x/L and F(theta)=f(L*theta/pi), the substitution dx=(L/pi)dtheta gives c_n=(1/(2pi))*integral_{-pi}^pi F(theta)exp(-i*n*theta)dtheta. Thus changing the period changes the frequency scale rather than the coefficient convention.

If x has units of length or time, the angular frequency k_n=n*pi/L has inverse units, and k_n*x is dimensionless. The normalized measure dx/(2L) is also dimensionless, so c_n has the same units as f. The normalized squared-L2 norm (1/(2L))*integral |f|^2 therefore has the squared units of f. The unnormalized squared L2 norm differs by the factor 2L and must not be silently interchanged with it.

An angular frequency and a cycles-per-unit frequency differ by 2pi. For a nonzero mode n, the latter is n/(2L); a real cosine combines the positive and negative complex modes. The coefficient c_0 is the average of f over one period, not the real-series symbol a_0, which is twice that average under the convention used below.

All subsequent formulas are written for L=pi unless another L is displayed. They transfer to general L by the same substitution, and each differentiation introduces n*pi/L rather than n. Choosing a period is part of the mathematical target: periodically extending data whose endpoint traces disagree introduces a jump, even if the data are smooth in the open interval. For Fourier conventions and the circle interpretation, see [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); [Applied Analysis, Chapter 7: Fourier Series](https://www.math.ucdavis.edu/~hunter/book/ch7.pdf); the change of variables above fixes the period and units of this lesson's normalized coefficients.

03

Complex and real orthogonality

Use the complex inner product <f, g>=(1/(2pi))*integral_{-pi}^pi f(x)conjugate(g(x))dx, linear in f. For e_n(x)=exp(i*n*x), <e_n, e_m> is the average of exp(i*(n-m)*x). It equals 1 when n=m. When the nonzero integer k=n-m occurs, the antiderivative exp(i*k*x)/(i*k) has equal values at pi and -pi, so the integral is zero. This proves orthonormality for all integer indices, including the constant mode.

For a real f, define a_0=(1/pi)*integral f, a_n=(1/pi)*integral f*cos(nx), and b_n=(1/pi)*integral f*sin(nx) for n>=1. Euler’s identities give c_n=(a_n-i*b_n)/2, c_{-n}=(a_n+i*b_n)/2 and c_0=a_0/2. Conversely, a_n=c_n+c_{-n} and b_n=i*(c_n-c_{-n}). The minus sign in c_n follows from the negative exponent in the coefficient integral.

For real f, complex conjugation of the coefficient integral gives c_{-n}=conjugate(c_n). Consequently, the pair c_n*e_n+c_{-n}*e_{-n} equals a_n*cos(nx)+b_n*sin(nx) and is real. An arbitrary complex coefficient sequence need not have this conjugacy and generally defines a complex function; reality must not be inferred merely from using sine and cosine notation.

In the same normalized inner product, the nonconstant real sine and cosine functions have squared norm 1/2 and are mutually orthogonal; the constant has norm 1. Their norms follow either by the exponential calculation or by integrating cos(2nx). Thus the squared energy of a finite real expansion is a_0^2/4+(1/2)*sum(a_n^2+b_n^2). Every later energy formula retains this normalization. For real/complex conventions and orthonormal Fourier systems, see [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); [18.102 Lecture 15: Orthonormal Bases and Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/859833f65ee4aec6b0fea35a300d10cd_MIT18_102s21_lec15.pdf); the normalization of the measure and of the basis must be changed together.

04

Finite Fourier projection

Let f belong to L2 of the circle and N be an integer with N>=0. The finite-dimensional space V_N=span{e_n: |n|<=N} has 2N+1 orthonormal basis functions. Define S_N f=sum_{|n|<=N}<f, e_n>*e_n. Each coefficient exists because Cauchy–Schwarz gives an integrable product; no infinite series or pointwise convergence has yet been asserted.

For every basis index m in the band, <f-S_N f, e_m>=c_m-sum c_n<e_n, e_m>=0. Linearity then gives orthogonality to every element of V_N. If q belongs to V_N, write f-q=(f-S_N f)+(S_N f-q). Expanding the squared norm, the two cross terms vanish by that orthogonality, and hence norm(f-q)_2^2=norm(f-S_N f)_2^2+norm(S_N f-q)_2^2.

The second term is nonnegative and vanishes exactly when q=S_N f as an L2 equivalence class. Thus S_N f is the unique minimizer in V_N. In coefficient form, the extra squared error is sum_{|n|<=N}|c_n-d_n|^2 when q=sum d_n*e_n. This proves optimality in the declared normalized-L2 norm, not at each point and not in the uniform norm.

Orthogonal projection removes only the omitted modesKeep only the mean; Total mean squared energy is 8. Projection retains 1 and the residual contains 7 on one 2π period.Orthogonal projection removes only the omitted modes-5.58807.588-3.333.33Original periodic signalOrthogonal projection through N=0Physical coordinate x · vertical function value
Total mean squared energy is 8. Projection retains 1 and the residual contains 7 on one 2π period.

The mean square uses (1/(2π))∫ over one period. Orthogonality keeps a² for the mean and half the squared real amplitude at each nonzero harmonic. In the complex convention each cosine has equal half coefficients at ±n, while a sine has opposite imaginary coefficients. In the real convention f=a₀/2+Σ(a_n cos nx+b_n sin nx), a₀=2 times the mean.

Exact normalized projection
QuantityExact result
Harmonic cutoff0
Mean coefficient1
c_±11
c_2 / c_−21/2·i / −1/2·i
c_±33/2
Retained real a / cosine-1 / sine-2 / cosine-31 / 0 / 0 / 0
Normalized squared norm8
Projection squared norm1
Omitted squared norm7
Original real series coefficients a₀, a₁, b₂, a₃2, 2, -1, 3
Normalized L² error norm√7
Exact inputs and supporting calculations
Declared inputs
ParameterValue
a1
b2
c-1
d3
N0

For N=0, the space contains only constants and the best approximation is c_0, the mean. Even N=0 retains the mean mode in this approximation space. The argument also works for any finite orthonormal family in an inner-product space; what remains unknown at this stage is whether enlarging this particular family approximates every L2 function. For the Hilbert-space expansion framework, see [18.102 Lecture 15: Orthonormal Bases and Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/859833f65ee4aec6b0fea35a300d10cd_MIT18_102s21_lec15.pdf); the finite residual identity above proves the stated L2 optimality without a pointwise approximation claim.

05

Bessel’s inequality

Set q=0 in the orthogonal decomposition f=(f-S_N f)+S_N f. Orthogonality and the finite exponential calculation give norm(f)_2^2=norm(f-S_N f)_2^2+sum_{|n|<=N}|c_n|^2. The first term is nonnegative, so every finite coefficient energy is bounded above by norm(f)_2^2. This is Bessel’s inequality for the symmetric finite family.

When N increases, only nonnegative squared coefficient terms are added. The finite sums therefore increase to a finite limit, and sum_{n in Z}|c_n|^2<=norm(f)_2^2. In particular, c_n tends to zero as |n| tends to infinity for L2 data: otherwise infinitely many terms would exceed a fixed positive squared size. This last implication uses square summability, not pointwise convergence of the Fourier series.

For M>N, orthogonality also gives norm(S_M f-S_N f)_2^2=sum_{N<|n|<=M}|c_n|^2. Thus the partial sums form an L2-Cauchy sequence. Completeness of the ambient L2 space provides a limit in the closure of the exponential span, but Bessel’s inequality alone does not prove that this limit equals f. A component orthogonal to the whole family would be invisible to all its coefficients.

Parseval’s equality requires the additional completeness argument supplied later by positive-kernel approximation. The distinction matters for arbitrary orthogonal families: one may omit a basis direction and retain every finite projection identity while losing part of the function’s energy. Numerical agreement of finitely many coefficients cannot establish that the missing orthogonal complement is zero. For orthonormal systems and coefficient energies, see [18.102 Lecture 15: Orthonormal Bases and Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/859833f65ee4aec6b0fea35a300d10cd_MIT18_102s21_lec15.pdf); the nonnegative finite residual proves Bessel's bound; equality for the entire function still needs completeness.

06

Symmetry, shifts and modulation

For integrable periodic f, the change x to -x gives c_n(f(-x))=c_{-n}(f). If f is real, conjugating its coefficient integral gives c_{-n}=conjugate(c_n). A real even f therefore has real coefficients and zero sine coefficients; for a real odd f, the mean and cosine coefficients vanish and c_n is purely imaginary. These statements use actual almost-everywhere symmetries, so isolated endpoint assignments do not affect them.

Let g(x)=f(x-a), where a is a real phase measured in radians on this circle. Substitute y=x-a in the coefficient integral. Periodicity allows any interval of length 2pi to replace the original one, and exp(-i*n*(y+a)) factors as exp(-i*n*a)*exp(-i*n*y). Hence c_n(g)=exp(-i*n*a)*c_n(f). The magnitude of each coefficient and the normalized energy are unchanged by translation.

For an integer m, multiplication by exp(i*m*x) is periodic and shifts the coefficient index: c_n(exp(i*m*x)*f)=c_{n-m}(f). Combining the operations yields c_n(exp(i*m*x)*f(x-a))=exp(-i*(n-m)*a)*c_{n-m}(f). The phase depends on the shifted index n-m; placing n there after modulation would describe a different function.

The coefficient integral is linear, so finite sums and scalar multiples follow without any series interchange. For a complex signal, modulation need not preserve real-valuedness or conjugate symmetry. These identities describe phase and carrier shifts of periodic modes; they do not prove that finitely sampled data have no unobserved higher-frequency content. For coefficient and parity conventions, see [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); the translation and modulation identities above follow directly from the full-period integral under the same convention.

07

Derivative coefficients include a boundary term

Assume f is absolutely continuous on [-pi, pi], so its endpoint values are defined and fprime is integrable. Integration by parts gives c_n(fprime)=[f(pi)*exp(-i*n*pi)-f(-pi)*exp(i*n*pi)]/(2pi)+i*n*c_n(f). Both the boundary term and the sign are fixed by differentiating exp(-i*n*x), whose derivative is -i*n times itself.

For integer n, both endpoint exponentials equal (-1)^n. If f(pi)=f(-pi), the boundary term vanishes and c_n(fprime)=i*n*c_n(f). If the traces disagree, the boundary term instead equals (-1)^n*(f(pi)-f(-pi))/(2pi). A function smooth on the interval may therefore fail the periodic derivative formula after periodic extension: the new endpoint jump is part of the target.

For n=0, the identity says the mean of fprime is (f(pi)-f(-pi))/(2pi), which is the fundamental theorem of calculus. For n!=0 and periodic traces, it may be solved as c_n(f)=c_n(fprime)/(i*n). This form gives decay bounds but does not justify differentiating an infinite series pointwise; that interchange needs its own convergence argument.

Periodic identification joins unequal endpoint limitsOdd positive mode; The left limit at π is κπ and the right limit after wrapping is −κπ. Their jump gives mass −2π at the seam.Periodic identification joins unequal endpoint limits-4.08404.084-3.333.33Interior ramp−ππLimits at the identified endpointOne physical period t · ordinary ramp value
The left limit at π is κπ and the right limit after wrapping is −κπ. Their jump gives mass −2π at the seam.

Integration by parts yields the ordinary-derivative coefficient as the endpoint term κ(−1)^n plus i n c_n. The interior derivative is constant κ and has zero modes for n≠0. The distributional derivative includes −2πκδ_π, which cancels the boundary term and cancels the mean of the ordinary derivative.

Exact derivative coefficients
QuantityExact result
Period and average normalization2π, 1/(2π)
Mode n1
Ramp coefficient c_n−i
Interior derivative coefficient at selected n0
Integration-by-parts boundary term-1
i n c_n1
Impulse mass at π-2π
Impulse mode coefficient1
Total derivative mean0
Exact inputs and supporting calculations
Declared inputs
ParameterValue
k1
n1

When using weak periodic derivatives, the same identity is built into integration by parts against smooth periodic test functions. An interval derivative and a periodic weak derivative are different if the endpoint traces disagree: the periodic distribution acquires a boundary point mass. The explicit boundary calculation prevents that singular contribution from being silently discarded. For periodic differentiation and its coefficient relation, see [Applied Analysis, Chapter 7: Fourier Series](https://www.math.ucdavis.edu/~hunter/book/ch7.pdf); [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); the uncancelled endpoint term is essential for data that are smooth on an interval but not periodic at its boundary.

08

Regularity gives coefficient decay

Let r>=1 be an integer. For the classical formulation, suppose f and its derivatives through order r-1 have absolutely continuous representatives at the required successive steps, the rth derivative is integrable, and the endpoint traces of orders 0 through r-1 agree. Equivalently, one may assume the corresponding periodic Sobolev regularity W^{r, 1}; the weak derivative definition then incorporates the trace compatibility.

Apply the derivative-coefficient identity r times. For every n!=0, all boundary terms vanish and c_n(f^(r))=(i*n)^r*c_n(f). The coefficient integral satisfies |c_n(g)|<=norm(g)_1, where norm(g)_1=(1/(2pi))*integral |g|. Therefore |c_n(f)|<=norm(f^(r))_1/|n|^r. The denominator restriction n!=0 is essential; the mean is not controlled by derivatives alone.

The constant is a bound on the actual derivative norm of the actual periodic target. It cannot be supplied merely by fitting a decay slope to finitely many computed coefficients. On a circle of length 2L, the repeated derivative formula inserts (n*pi/L)^r, so the corresponding bound is (L/(pi*|n|))^r*norm(f^(r))_1, with the correct physical units.

Endpoint mismatch leaves explicit boundary terms and may reduce the decay order. For example, a periodic extension of x has a jump and coefficients of size 1/|n| despite its zero higher interval derivatives. The periodic extension of x^2 is continuous but has mismatched first-derivative traces; its observed 1/n^2 coefficients must be derived with that boundary term rather than by pretending it is periodic C2. For smoothness and Fourier coefficient decay, see [Applied Analysis, Chapter 7: Fourier Series](https://www.math.ucdavis.edu/~hunter/book/ch7.pdf); [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); the explicit estimate above uses the declared derivative integrability and matching traces at every integration-by-parts step.

09

Absolute and uniform convergence

Suppose sum_{n in Z}|c_n| is finite. Because |exp(i*n*x)|=1, the uniform norm of any finite omitted block is bounded by the sum of its coefficient magnitudes. The series is uniformly Cauchy and therefore converges uniformly to a continuous periodic function g. This is the Weierstrass majorant argument applied to the explicitly indexed two-sided series.

If |c_n|<=M/|n|^r for n!=0 with r>1, then for an integer N>=1 the uniform tail is at most 2M*sum_{n>N}n^{-r}<=2M*N^{1-r}/(r-1). The last step compares the decreasing positive function t^{-r} with its integral from N to infinity. For N=0, one can retain the convergent full positive-frequency sum instead; the displayed N-power bound is not used at zero.

Uniform convergence permits integration against each bounded exponential, so g has exactly the coefficients c_n. To conclude g=f for an integrable original f, one still uses coefficient uniqueness, proved below from Fejér approximation. This is not circular: the Fejér proof uses kernel positivity and translation continuity rather than assuming convergence of the ordinary series. Thus g=f almost everywhere, and everywhere when f is the same continuous representative.

Periodic C2 data satisfy a sufficient r=2 bound when their periodic derivatives have the stated integrability and trace properties. Absolute coefficient summability is sufficient rather than necessary for ordinary convergence. A statement about a uniform tail concerns the chosen continuous periodic target; it must not be carried across an actual jump where uniform convergence by continuous partial sums is impossible. For the regularity and convergence setting, see [Applied Analysis, Chapter 7: Fourier Series](https://www.math.ucdavis.edu/~hunter/book/ch7.pdf); [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); the summable-tail argument above is the justification for this uniform convergence assertion.

10

The Dirichlet kernel

For an integer N>=0, define D_N(t)=sum_{n=-N}^N exp(i*n*t)=1+2sum_{n=1}^N cos(nt). If exp(it)!=1, the finite geometric sum equals exp(-i*N*t)*(1-exp(i*(2N+1)*t))/(1-exp(it)). Factoring each numerator and denominator into its midpoint exponential and a sine cancels the phase and gives D_N(t)=sin((N+1/2)*t)/sin(t/2). This is a finite algebraic identity.

At t equal to an integer multiple of 2pi, the original finite sum consists of 2N+1 ones. The sine quotient therefore has a removable singularity there with value 2N+1. On the principal interval it is an even real trigonometric polynomial. For N=0 it reduces identically to 1; no positive-frequency sum is needed in that branch.

Integrating the finite exponential sum over the circle leaves only the zero mode, so the normalized integral of D_N is 1. A unit integral does not make it a nonnegative averaging density. For example, D_1(pi)=1+2cos(pi)=-1. Cancellation between positive and negative lobes is consequently allowed, and convolution with D_N need not preserve the input function’s global minimum and maximum.

The kernel’s peak height grows with N while its oscillations become finer. Those facts alone do not prove convergence of its convolution with arbitrary integrable data. Later convergence arguments use local regularity or replace the ordinary partial sum by a positive averaged kernel; the removable quotient formula is not a justification for treating all kernels as probability densities. For the Dirichlet kernel and Fourier partial sums, see [18.102 Lecture 15: Orthonormal Bases and Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/859833f65ee4aec6b0fea35a300d10cd_MIT18_102s21_lec15.pdf); here the factor 1/(2*pi) belongs to the convolution measure rather than to D_N itself.

11

Partial sums as convolution

Define normalized periodic convolution by (f*k)(x)=(1/(2pi))*integral_{-pi}^pi f(x-t)k(t)dt when this integral exists. For f in L1 and the bounded continuous finite kernel D_N, it exists for each x when a representative is integrated over one period; changes on null sets do not alter the integral. Only finitely many exponential terms occur in D_N, so sum and integral may be exchanged without an infinite-series theorem.

For one kernel term, substitute y=x-t and use periodicity to integrate over any full period. The result is (1/(2pi))*integral f(x-t)exp(i*n*t)dt=exp(i*n*x)*c_n(f). Summing from -N through N gives f*D_N=S_N f. Thus the coefficient construction and the convolution construction define the same finite trigonometric polynomial.

Because |D_N(t)|<=2N+1, the bound |S_N f(x)|<=(2N+1)*norm(f)_1 follows immediately. This finite bound depends on N and therefore does not imply a uniform bound on all partial sums. The kernel has signed lobes, and the absolute integral rather than its signed mass controls a uniform-norm convolution estimate.

Applying the finite coefficient calculation twice gives S_N(S_M f)=S_min(N, M) f. For L2 data, this is the nested orthogonal-projection property proved earlier. For L1 data, it is still a finite identity, but it does not assert L1, pointwise or uniform convergence of S_N f to f. Each convergence mode needs a separate argument and its own hypotheses. For the convolution representation, see [18.102 Lecture 15: Orthonormal Bases and Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/859833f65ee4aec6b0fea35a300d10cd_MIT18_102s21_lec15.pdf); a finite integral identity by itself provides no infinite convergence guarantee.

12

Oscillation removes L1 averages

First let g be constant a_j on each of finitely many subintervals [u_j, v_j]. For lambda!=0, the oscillatory integral over one such interval is a_j*(exp(i*lambda*v_j)-exp(i*lambda*u_j))/(i*lambda). Its magnitude is at most 2|a_j|/|lambda|. Summing finitely many intervals therefore gives a quantity tending to zero as real |lambda| tends to infinity.

Finite interval-step functions are dense in L1 on a compact interval. One way to see the relevant approximation is to truncate the integrable function’s large values, approximate its bounded values by finitely many levels, and approximate the resulting measurable level sets by finite unions of intervals in measure. Regularity of Lebesgue measure and bounded level heights convert those set errors into an arbitrarily small L1 error. Complex functions are treated through real and imaginary parts.

Given epsilon>0, choose such a step function s with integral |g-s|<epsilon. For every lambda, the difference between the two oscillatory integrals is bounded by epsilon because the exponential has modulus 1. The integral for s tends to zero by the first calculation, so the limsup for g is at most epsilon. Letting epsilon decrease to zero proves the claim without imposing a rate on a general L1 function.

Taking lambda to be an integer yields the usual coefficient-vanishing conclusion, while lambda=N+1/2 is also allowed and will be useful for the Dirichlet kernel. Taking real and imaginary parts gives the corresponding sine and cosine statements. The argument does not prove an O(1/|lambda|) bound for arbitrary L1 g: the approximating step function may depend on the required accuracy. For the Riemann-Lebesgue principle, see [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); the interval-step approximation above establishes the stated L1 version beyond the piecewise-continuous sufficient case.

13

A local Dini convergence criterion

Let f be integrable and periodic, with finite one-sided limits L_plus=f(x+) and L_minus=f(x-), and set A=(L_plus+L_minus)/2. Evenness of D_N rewrites the convolution as S_N f(x)=(1/(2pi))*integral_0^pi[f(x+t)+f(x-t)]D_N(t)dt. Since the integral of D_N over 0 to pi is pi, the same expression for the constant 2A has value A.

Subtract the two expressions and put h(t)=f(x+t)+f(x-t)-2A. The sine quotient gives S_N f(x)-A=(1/pi)*integral_0^pi G(t)*sin((N+1/2)*t)dt, where G(t)=h(t)/(2sin(t/2)). This factor and its normalization are explicit; the denominator vanishes only at zero in the open integration interval.

If G belongs to L1(0, pi), the preceding oscillatory-integral result with real frequency N+1/2 shows that the last integral tends to zero. It suffices to verify G’s integrability near zero, because on every [delta, pi] its denominator is bounded away from zero and the translated f terms are integrable. The condition therefore concerns the actual local approach to the one-sided limits.

The value assigned to f at x does not appear in the integral or the two one-sided limits. At a jump, the Fourier limit is their midpoint even if an endpoint convention assigns some other value there. At a continuous point, the midpoint is the continuous value. Existence of the two limits alone is not the Dini integrability assumption; the rate or variation of their approach still matters for this particular proof. For midpoint convergence criteria and the underlying kernel, see [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); [18.102 Lecture 15: Orthonormal Bases and Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/859833f65ee4aec6b0fea35a300d10cd_MIT18_102s21_lec15.pdf); the integrable symmetric quotient in the displayed argument is the hypothesis used here.

14

Piecewise smooth and Hölder data

Assume that for 0<t<delta the one-sided deviations satisfy |f(x+t)-L_plus|+|f(x-t)-L_minus|<=C*t^alpha with some alpha>0. For 0<t<=pi, the elementary inequality sin(t/2)>=t/pi gives |G(t)|<=pi*C*t^(alpha-1)/2. The integral of this bound near zero is finite precisely because alpha is positive. Away from zero, the integrability follows as before from f in L1.

Consequently, the Dini calculation proves S_N f(x) tends to (L_plus+L_minus)/2. The constants and exponent may be local; no global differentiability of f is necessary. If the exponents on the two sides differ, take the smaller positive exponent after adjusting the bound on a fixed small neighborhood.

For a piecewise C1 function whose pieces extend with bounded one-sided derivatives to their endpoints, the mean-value bound supplies alpha=1 on each side. Thus ordinary Fourier sums converge to the function at every continuity point and to the average across each jump. Calling a function C1 only on an open piece, with an uncontrolled derivative at the boundary, does not by itself supply that bounded-derivative argument.

At the identified endpoint of the principal interval, the two limits are f(pi-) and f(-pi+). They may disagree even when the formula within the interval is elementary and smooth. Convergence at each fixed point remains different from uniform convergence across a jump: every S_N is continuous, and a uniform limit of continuous functions would be continuous. For one-sided regularity and midpoint limits, see [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); positive Holder control makes the local quotient integrable, including at a declared periodic jump.

15

Bounded variation and the Jordan criterion

A function of bounded variation on each side of x has finite one-sided limits. Set A to their average and h(t)=f(x+t)+f(x-t)-2A for small positive t, then define h(0)=0. This h has bounded variation on [0, delta] and is continuous from the right at zero. Its variation on [0, delta] tends to zero as delta tends to zero: the finite variation measure has no jump atom there after the matching right-limit assignment.

The oscillatory kernels k_N(t)=sin((N+1/2)*t)/sin(t/2) have uniformly bounded interval primitives on 0<=a<b<=pi. To verify this, write k_N(t)=[t/sin(t/2)]*sin(K*t)/t with K=N+1/2. After u=K*t, the primitives of sin(K*t)/t are integrals of sin(u)/u, uniformly bounded over positive intervals: split at 1 and integrate the tail by parts. The factor t/sin(t/2) extends from 2 to pi and is increasing with bounded total variation. A further integration by parts therefore gives a bound C independent of N, a and b.

Define H_N(t)=integral_t^delta k_N(s)ds, so |H_N|<=C and H_N(delta)=0. Stieltjes integration by parts, or its finite-step approximation, now gives integral_0^delta h(t)k_N(t)dt=integral_0^delta H_N(t)dh(t), because h(0)=0. Its magnitude is at most C*Var(h; [0, delta]), which is small uniformly in N when delta is small. This argument does not require h(t)/t to be absolutely integrable.

On [delta, pi], the remaining coefficient h(t)/sin(t/2) is integrable, and the oscillatory-integral lemma makes its contribution tend to zero as N increases. First choose delta to control the near part, then N to control the far part. Substituting into the same symmetric convolution identity proves S_N f(x) tends to A. This bounded-variation argument extends the preceding Dini sufficient condition rather than assuming that every bounded-variation function satisfies it. For the local convergence and kernel setting, see [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); [18.102 Lecture 15: Orthonormal Bases and Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/859833f65ee4aec6b0fea35a300d10cd_MIT18_102s21_lec15.pdf); the bounded-variation conclusion here follows from the primitive and variation argument above, without assuming absolute Dini integrability.

16

The positive Fejér kernel

Average the finite Dirichlet sums: F_N=(D_0+...+D_N)/(N+1). Frequency n occurs in exactly N+1-|n| of these kernels when |n|<=N, so F_N(t)=sum_{|n|<=N}(1-|n|/(N+1))*exp(i*n*t). Expanding the squared magnitude of sum_{j=0}^N exp(i*j*t) counts exactly the same pairs of indices with difference n. Dividing that square by N+1 proves the second formula.

It follows immediately that F_N is real and nonnegative. For t not a multiple of 2pi, the geometric-sum formula gives F_N(t)=sin^2((N+1)*t/2)/[(N+1)*sin^2(t/2)]. The removable value at zero is N+1. The constant Fourier coefficient is 1, so the normalized integral is 1, including the branch N=0 where F_0 is identically 1.

For any fixed 0<delta<=pi and delta<=|t|<=pi, the denominator obeys sin^2(t/2)>=sin^2(delta/2). Hence F_N(t)<=1/[(N+1)*sin^2(delta/2)]. Its normalized mass outside the delta-neighborhood is at most that same upper bound, since the normalized length of the whole circle is 1. This mass tends to zero while the total mass remains 1.

Thus F_N is an approximate identity with positive unit mass. Positivity will permit convexity and norm estimates that the signed Dirichlet kernel does not provide. The triangular Fourier weights also show that a Fejér mean is an average of partial sums rather than the orthogonal projection itself; its robustness comes from this altered summation rule. For Fejer's positive kernel and approximate-identity construction, see [18.102 Lecture 16: Fejer’s Theorem and Convergence of Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/eb44436072623f60f8f416875d4b2c11_MIT18_102s21_lec16.pdf); the mass is over one period, and this lesson again keeps the normalization in the measure.

17

Uniform Fejér approximation

For continuous periodic f, let sigma_N=f*F_N=(S_0 f+...+S_N f)/(N+1). Compactness of the circle makes f uniformly continuous. With circular distance, define omega_f(delta)=sup_{|t|<=delta, x}|f(x-t)-f(x)| and B=norm(f)_infinity. Positivity and unit mass give |sigma_N f(x)-f(x)|<=integral |f(x-t)-f(x)|F_N(t)dt/(2pi).

Split this integral at 0<delta<=pi. The near part is at most omega_f(delta), because its kernel mass is at most 1. The far part is at most 2B/[(N+1)*sin^2(delta/2)] by the concentration estimate. The resulting upper bound is independent of x. Given epsilon>0, first choose delta with omega_f(delta)<epsilon/2, then choose N so the far term is below epsilon/2. This proves uniform convergence.

If f is real and m<=f(x)<=M everywhere, then m<=sigma_N f(x)<=M because a nonnegative unit-mass average preserves those inequalities. Ordinary partial sums need not obey them because D_N changes sign. For complex f, the corresponding assertion is containment in the closed convex hull of its values, rather than an order interval.

The proof supplies a sufficient quantitative bound when a modulus is actually known. It does not say that every continuous function has a specified algebraic rate, nor that the same argument proves uniform convergence of S_N. At a genuine jump, a global uniform limit by continuous Fejér polynomials is also impossible; the continuous-data hypothesis is an actual restriction, not a harmless convention. For Fejer approximation of continuous periodic functions, see [18.102 Lecture 16: Fejer’s Theorem and Convergence of Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/eb44436072623f60f8f416875d4b2c11_MIT18_102s21_lec16.pdf); the near/far estimate above supplies the quantitative bound and the positive range-preserving average.

18

Fejér approximation in Lp

Let 1<=p<infinity and f belong to Lp on the circle. Translations tau_t f(x)=f(x-t) are isometries in this norm. They are norm-continuous at t=0: approximate f in Lp by a continuous periodic function g, then norm(tau_t f-f)_p<=2norm(f-g)_p+norm(tau_t g-g)_p. The last term tends to zero by uniform continuity. Continuous Lp density follows by bounded simple-function approximation and regular approximation of measurable sets by finite unions of intervals, whose endpoints may be smoothed over sets of arbitrarily small measure.

The nonnegative normalized kernel F_N defines a probability weight in t. Jensen’s inequality for |z|^p gives |sigma_N f(x)-f(x)|^p<=integral F_N(t)|f(x-t)-f(x)|^p dt/(2pi). Integrating in x and using Tonelli yields norm(sigma_N f-f)_p^p<=integral F_N(t)norm(tau_t f-f)_p^p dt/(2pi). All terms are nonnegative, and the translation norm is bounded by 2norm(f)_p.

Given epsilon>0, choose delta so the translation difference norm is below epsilon for |t|<delta. The near integral is at most epsilon^p. The far integral is at most (2norm(f)_p)^p times the kernel mass outside delta, which tends to zero. Hence the limit superior of the norm error is at most epsilon; letting epsilon tend to zero proves Lp convergence. Positivity similarly gives norm(sigma_N f)_p<=norm(f)_p.

The finite-p restriction matters. A bounded step function with an actual jump cannot be approximated by continuous trigonometric polynomials in essential-supremum norm with error tending to zero: continuity across neighborhoods on both sides of the jump forces a fixed nonzero error. Thus the continuous-data uniform theorem and the general finite-p theorem are distinct statements. No almost-everywhere convergence theorem is needed for this norm argument. For the L2 contraction and density approach, see [18.102 Lecture 16: Fejer’s Theorem and Convergence of Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/eb44436072623f60f8f416875d4b2c11_MIT18_102s21_lec16.pdf); Jensen and translation continuity above establish the stated finite-p extension; this is not an L-infinity theorem for every bounded datum.

19

Completeness, uniqueness and Parseval

Suppose an L1 function f has c_n=0 for every integer n. Every Fejér mean is then the zero trigonometric polynomial because its coefficients are (1-|n|/(N+1))*c_n in the finite band. Fejér L1 convergence implies norm(f)_1=0, so f=0 almost everywhere. Applying this to f-g proves uniqueness of L1 functions from all their coefficients, up to null-set changes; it does not specify a value at an isolated point.

For f in L2, the Fejér polynomial sigma_N f belongs to V_N and converges to f in L2. Since S_N f is the best approximation in V_N, norm(f-S_N f)_2<=norm(f-sigma_N f)_2 tends to zero. This proves that the exponential span is dense in L2 and identifies the ordinary symmetric partial sums as converging to f in that norm, without claiming uniform or everywhere pointwise convergence.

The finite Pythagorean identity now gives norm(f)_2^2=lim_N sum_{|n|<=N}|c_n|^2=sum_{n in Z}|c_n|^2. This is Parseval’s equality with the stated normalized measure. Subtract the finite retained energy to obtain norm(f-S_N f)_2^2=sum_{|n|>N}|c_n|^2. For real data, the equivalent formula is a_0^2/4+(1/2)*sum_{n>=1}(a_n^2+b_n^2).

Completeness is the missing ingredient that turns Bessel’s inequality into equality. The reasoning is noncircular: positive-kernel approximation was proved by direct translation estimates, and the finite projection theorem required only finite orthogonality. Continuous functions with identical coefficients therefore agree everywhere, while general integrable representatives agree only almost everywhere. For completeness by Fejer approximation and normalized Parseval identities, see [18.102 Lecture 16: Fejer’s Theorem and Convergence of Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/eb44436072623f60f8f416875d4b2c11_MIT18_102s21_lec16.pdf); [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); coefficient uniqueness identifies an L1 equivalence class rather than a chosen value at each point.

20

Square-summable data define an L2 function

Let (a_n)_{n in Z} satisfy sum|a_n|^2<infinity, and form p_N=sum_{|n|<=N}a_n*e_n. Finite orthogonality gives norm(p_M-p_N)_2^2=sum_{N<|n|<=M}|a_n|^2. The tail of the convergent nonnegative series tends to zero, so p_N is a Cauchy sequence in L2. This conclusion is about norms and does not assume convergence at any individual point.

For completeness, an L2-Cauchy sequence has an L2 limit as follows. Choose a subsequence u_k with norm(u_{k+1}-u_k)_2<=2^{-k}. Because normalized L1 norm is at most L2 norm, the sum of the integrals of |u_{k+1}-u_k| is finite. Tonelli implies absolute convergence of that series almost everywhere, defining a measurable limit u. Minkowski on finite tails and Fatou on their squared magnitudes give norm(u-u_k)_2<=sum_{j>=k}2^{-j}. Thus the subsequence, and then the entire original Cauchy sequence, converges in L2.

Apply this completeness argument to p_N and call its limit f. The coefficient functional is continuous: |<f-p_N, e_m>|<=norm(f-p_N)_2 because norm(e_m)_2=1. For every fixed m, the coefficient of p_N is a_m once N>=|m|. Taking the norm limit proves c_m(f)=a_m. Parseval then gives norm(f)_2^2=sum|a_n|^2.

If another L2 function has the same sequence, its difference has all zero coefficients and vanishes almost everywhere by uniqueness. Conversely, every L2 function has a square-summable coefficient sequence by Bessel and Parseval. This establishes the isometric correspondence between L2 equivalence classes and two-sided square-summable sequences; it does not assign a preferred value to a potentially divergent pointwise sum. For complete orthonormal expansions in a Hilbert space, see [18.102 Lecture 15: Orthonormal Bases and Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/859833f65ee4aec6b0fea35a300d10cd_MIT18_102s21_lec15.pdf); the completeness and Cauchy-series arguments above establish an L2 function, without asserting pointwise convergence of arbitrary square-summable data.

21

Projection error and pointwise limits

For f in L2, Parseval and projection orthogonality give the exact identity norm(f-S_N f)_2^2=sum_{|n|>N}|c_n|^2. More generally, if a polynomial q in V_N uses coefficients d_n, its squared error equals that tail energy plus sum_{|n|<=N}|c_n-d_n|^2. Truncation and retained-coordinate error are orthogonal components; they cannot cancel in this norm.

A tail bound therefore certifies an average-square discrepancy over the specified circle. It does not automatically bound max_x|f(x)-S_N f(x)|. Narrow peaks can have small L2 norm while their heights are large; for example, a triangular bump of height 1 and width tending to zero has squared integral tending to zero but constant maximum. An independent smoothness or pointwise bound is needed to convert the norm information.

Likewise, changing a function at one point leaves every integral coefficient and its L2 equivalence class unchanged. The function that is zero except for a value 7 at zero has all coefficients zero and every partial sum zero, but its chosen representative is not equal to that sum at zero. Coefficient uniqueness means almost-everywhere uniqueness in L1 or L2, not equality of arbitrary point assignments.

The pointwise Dirichlet/Jordan theorems and the continuous uniform theorems provide additional conclusions under their own regularity assumptions. They must not be inferred merely from Parseval. In physical use, the meaning of an average-square error also depends on the measured coordinate and normalization; an acceptable energy error need not imply a specified peak load or a perceptually negligible audio error. For Parseval and the L2 equivalence-class setting, see [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); [Applied Analysis, Chapter 7: Fourier Series](https://www.math.ucdavis.edu/~hunter/book/ch7.pdf); neither exact tail energy nor norm convergence distinguishes two representatives that differ only on a null set.

22

The Gibbs boundary layer

Let f(x)=-1 on (-pi, 0) and 1 on (0, pi), with periodic extension. Oddness gives zero cosine coefficients, and direct integration yields b_n=2(1-(-1)^n)/(pi*n): it is 4/(pi*n) for odd n and zero for even n. Consequently S_{2M+1}(x)=(4/pi)*sum_{k=0}^M sin((2k+1)*x)/(2k+1). At the jump itself the finite sum is zero, the midpoint of the two traces.

Fix a real z and put x=z/(2M+2). With s_k=(k+1/2)/(M+1), the partial sum is (2/pi)*(1/(M+1))*sum_{k=0}^M sin(z*s_k)/s_k. The function sin(z*s)/s extends continuously to s=0 with value z. Its midpoint Riemann sums therefore converge to (2/pi)*integral_0^1 sin(z*s)/s ds=(2/pi)*integral_0^z sin(u)/u du. This proves the boundary-layer limit at the stated shrinking spatial scale.

At z=pi, the limit is 2Si(pi)/pi, which exceeds 1. For an explicit strict bound, the integrated alternating series gives Si(pi)/pi>1-pi^2/18+pi^4/600-pi^6/35280. Using 9<pi^2<10, the latter exceeds 1-10/18+81/600-1000/35280>1/2. Thus the overshoot above the upper trace persists; as a fraction of the jump 2, its limiting amount is Si(pi)/pi-1/2. No numerical decimal is needed for this conclusion.

Finite projections and Fejér means behave differently near jumpsProjection and mean agree at this query; At the chosen point 1/2π the two values are 304/105·1/π and 304/105·1/π. Both give zero at the jump. The filled zero marks at −π, 0 and π are the chosen jump values. The query is marked on the coordinate axis.Finite projections and Fejér means behave differently near jumps-1.51501.515-3.333.33Two open constant pieces of the square waveDirichlet partial sumFejér meanf(0)=0query at π/2Physical coordinate t over one period
At the chosen point 1/2π the two values are 304/105·1/π and 304/105·1/π. Both give zero at the jump. The filled zero marks at −π, 0 and π are the chosen jump values. The query is marked on the coordinate axis.

The square wave is odd and has only odd sine modes. Partial sums use every admitted mode unchanged. Averaging S_0 through S_N gives the triangular factors and the positive Fejér kernel. Finite-query values here differ from the separate limit problem in the shrinking Gibbs boundary layer. At odd N, S_N(z/(N+1)) tends to 2 Si(z)/π, where Si(z)=∫₀ᶻ sin(u)/u du. At z=π this is greater than one. Positive Fejér-kernel averaging preserves the range [−1,1]. At t=0 the exact midpoint result remains zero.

Exact finite-sum comparisons
QuantityExact result
Fourier sine coefficients4/(πn) for odd positive n; zero for even n
Maximum retained harmonic7
Fejér weight1−n/(N+1)
Query, in units of π1/2
Direct sum S_N304/105·1/π
Fejér σ_N304/105·1/π
Difference0
At jump t=0Both equal 0
Exact inputs and supporting calculations
Declared inputs
ParameterValue
N7
queryPi1/2

The evaluation points approach the jump as M increases, so there is no contradiction with convergence at each fixed nonjump point or convergence in L2. The spatial scale decreases while the overshoot height does not tend to zero. Positive Fejér convolution preserves the bounded range [-1, 1], even for this bounded discontinuous input, but cannot converge uniformly across the jump. Changing the summation method changes the boundary-layer behavior and its approximation tradeoff. For the sign-wave and sine-integral description of Gibbs behavior, see [Digital Library of Mathematical Functions, Section 6.16(i): The Gibbs Phenomenon](https://dlmf.nist.gov/6.16); the fixed-z shrinking-layer proof above avoids an endpoint-uniform remainder claim and specifies which jump and normalization are being studied.

23

Sobolev energy and spectral rates

Let f belong to L2, s>0, and assume the actual weighted energy sum_{n in Z}|n|^{2s}|c_n|^2 is at most M^2 with M>=0. The zero index contributes zero to this seminorm. For an integer N>=0, every omitted nonzero index has |n|>=N+1, so |c_n|^2<=(N+1)^{-2s}|n|^{2s}|c_n|^2 in the tail.

Sum the nonnegative inequalities and use the exact Parseval tail identity. It follows that norm(f-S_N f)_2^2<=M^2/(N+1)^{2s}, and taking square roots proves the bound. If M=0, all nonzero coefficients vanish and f is constant almost everywhere; then every such tail is zero. No division by N or by a zero mean is used.

For a positive integer s=r and an actual L2 periodic rth derivative, the derivative-coefficient identity and Parseval identify the weighted energy with norm(f^(r))_2^2. For a circle of length 2L, the physical-frequency weight is |n*pi/L|^{2r}, and the corresponding bound contains(L/(pi*(N+1)))^r. This restores the derivative units when x is dimensional.

For noninteger s, the displayed weighted condition is a Fourier definition of the periodic Sobolev seminorm and can be used directly. Its numerical value must be known or bounded independently; an apparent decay rate across a finite band does not establish it. The conclusion remains a normalized-L2 error statement, with no automatic uniform or physical-model-error claim. For weighted coefficient descriptions of Sobolev regularity, see [Applied Analysis, Chapter 7: Fourier Series](https://www.math.ucdavis.edu/~hunter/book/ch7.pdf); the omitted-weight estimate above gives an L2 rate from an actual supplied energy bound, rather than a universal pointwise rate.

24

When a Fourier series may be differentiated

Assume sum_{n in Z}|n*c_n|<infinity and c_0 is finite. Since |n|>=1 off the zero mode, this also implies sum|c_n|<infinity. The series g(x)=sum c_n*exp(i*n*x) and h(x)=sum i*n*c_n*exp(i*n*x) both converge uniformly to continuous periodic functions by the majorant test. The zero-mode derivative is explicitly zero.

For finite partial sums, the fundamental theorem of calculus gives S_N(x)-S_N(x_0)=integral_{x_0}^x S_Nprime(t)dt. Uniform convergence of the functions and their derivative series permits passage to the limit, so g(x)-g(x_0)=integral_{x_0}^x h(t)dt. Hence g is C1 and gprime=h. If the c_n came from an integrable f, coefficient uniqueness identifies g=f almost everywhere, and everywhere when f is that continuous representative.

Periodic C3 data are a sufficient example: repeated integration by parts gives |c_n|<=norm(f_tripleprime)_1/|n|^3, so sum|n*c_n| is bounded by a convergent reciprocal-square series. The periodic trace conditions are part of C3 on the circle. Absolute summability is sufficient rather than a necessary characterization of every differentiable Fourier sum.

A jump cannot be the uniform limit of continuous partial sums. Even a continuous function such as periodic|x| has a derivative jump, so its derivative polynomials cannot converge uniformly to the piecewise sign derivative across that point. Formal differentiation may still produce an L2 or distributional statement under its own assumptions, but that is a different convergence claim. For Fourier differentiation and periodic regularity, see [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); [Applied Analysis, Chapter 7: Fourier Series](https://www.math.ucdavis.edu/~hunter/book/ch7.pdf); the absolute derivative-series bound and trace assumptions justify the operation used here.

25

A periodic primitive and its mean

If an absolutely continuous periodic F satisfies Fprime=f almost everywhere, then integral_{-pi}^pi f=F(pi)-F(-pi)=0. Thus c_0(f)=0 is necessary. For any L2 f, set g=f-c_0 and F(x)=integral_{-pi}^x g(t)dt. Since g is integrable, F is absolutely continuous, its derivative is g almost everywhere, and both endpoint values are zero. This constructs a periodic primitive of the mean-adjusted data.

The coefficient sequence of f is square summable. Cauchy–Schwarz gives sum_{n!=0}|c_n|/|n|<infinity because sum_{n!=0}1/n^2 is finite. Therefore the anchored series sum_{n!=0}[c_n/(i*n)]*[exp(i*n*x)-exp(-i*n*pi)] converges absolutely and uniformly. Its value at -pi is zero, and the paired endpoint values agree.

The finite anchored sums equal integral_{-pi}^x(S_N f-c_0)dt. Their difference from F is bounded uniformly in x by integral |S_N f-f|<=2pi*norm(S_N f-f)_2, which tends to zero. The uniformly convergent anchored series therefore represents exactly F. Its nonzero Fourier coefficients are c_n(f)/(i*n), while its constant coefficient is the convergent anchoring constant -sum_{n!=0}c_n*exp(-i*n*pi)/(i*n).

If c_0 is already zero, this is a periodic primitive of f itself; adding an arbitrary constant gives every other one. A nonzero mean instead forces a net change 2pi*c_0 over a full period and prevents periodicity. Integration smooths the coefficient sequence under the stated L2 hypothesis, but it does not justify ignoring the mean or identifying an arbitrary endpoint value with an integral representative. For integration after removing the mean, see [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); the anchored constant and the zero-mode compatibility must be retained separately from the nonzero coefficients.

26

Half-range sine and cosine expansions

Let L>0 and f belong to L2(0, L). Extend it oddly or evenly to (-L, L), then periodically with period 2L. The odd extension has only sine modes and yields b_n=(2/L)*integral_0^L f(x)sin(n*pi*x/L)dx for n>=1. The even extension has cosine modes with a_0=(2/L)*integral_0^L f and a_n=(2/L)*integral_0^L f(x)cos(n*pi*x/L)dx for n>=1. The cosine constant term remains a_0/2.

With normalized interval inner product (1/L)*integral_0^L f*conjugate(g), each positive-index sine or cosine has squared norm 1/2, distinct such modes are orthogonal, and the constant has norm 1. The normalized L2 norm of either extension equals that of f on (0, L). Applying the complete-circle Fourier theorem to the odd or even extension proves completeness of the corresponding half-range system and its normalized Parseval formula.

Endpoint assignments do not matter for L2 completeness, but they matter for continuous or classical boundary statements. A continuous odd periodic extension requires f(0)=f(L)=0 in the trace sense; otherwise it has a jump at the reflected boundary. A continuous even extension of continuous interval data has matching function values automatically, but a C1 even extension requires fprime(0)=fprime(L)=0. These are different boundary compatibilities.

At an interior smooth point, the ordinary half-range series converges to f. At a reflected odd jump, its endpoint value is the average of the opposite traces, namely zero, regardless of a nonzero assigned interval endpoint. Sine versus cosine expansion therefore encodes a choice of extension and boundary behavior, not two interchangeable formulas for all endpoint claims. For parity conventions and contrasting sine/cosine extensions, see [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); [Applied Analysis, Chapter 7: Fourier Series](https://www.math.ucdavis.edu/~hunter/book/ch7.pdf); the half-range completeness proof here uses the full-circle result with the explicit 2L period and its own endpoint traces.

27

String modes and conserved energy

For c, L>0, the functions phi_n(x)=sin(n*pi*x/L), n>=1, vanish at 0 and L and satisfy phi_ndoubleprime=-(n*pi/L)^2*phi_n. In a finite expansion u(x, t)=sum q_n(t)*phi_n(x), the equation u_tt=c^2u_xx becomes q_ndoubleprime+omega_n^2*q_n=0 with omega_n=c*n*pi/L. Thus q_n=A_n*cos(omega_n*t)+(B_n/omega_n)*sin(omega_n*t) when initial displacement and velocity coefficients are A_n and B_n.

Orthogonality of the sines and positive-index cosines gives E(t)=(1/2)*integral_0^L(u_t^2+c^2u_x^2)dx=(L/4)*sum[q_nprime(t)^2+omega_n^2*q_n(t)^2] for real finite-mode data. Differentiating this finite sum gives Eprime=(L/2)*sum q_nprime*(q_ndoubleprime+omega_n^2*q_n)=0. There is no infinite interchange in this finite conservation proof.

For infinitely many real modes, the energy condition sum(|B_n|^2+omega_n^2|A_n|^2)<infinity makes the finite approximations Cauchy in displacement-gradient and velocity L2 norms, uniformly in time, because each omitted mode preserves its initial energy. The limit is an energy-space weak solution with zero endpoint traces, and its energy follows by the norm limit. A classical pointwise PDE solution needs additional regularity that permits differentiating the series in space and time.

If x and L are lengths and c is a wave speed, omega_n has units of inverse time and the cycles-per-time frequency is c*n/(2L). The integer harmonic structure connects ideal string modes with musical pitch, but the derivation assumes the stated uniform linear string model. Real stiffness, damping, boundary compliance and perceptual judgments require additional physical or acoustic information. For lossless modal structure and fixed-medium energy conservation, see [Notes on the algebraic structure of wave equations](https://ocw.mit.edu/courses/18-303-linear-partial-differential-equations-analysis-and-numerics-fall-2014/70518f87dfd5c723ee3cd5d912001b51_MIT18_303F14_wave_equation.pdf); the finite Dirichlet calculation and the separate energy-space limit above specify the domain and regularity of this application.

28

Heat flow damps high frequencies

Let kappa>0 and let c_n be the coefficients of initial f in L2 on the 2pi-circle. Define u’s coefficients at time t>=0 by c_n(t)=c_n*exp(-kappa*n^2*t). Their square sum is bounded by sum|c_n|^2, so the coefficient theorem defines an L2 function at every such time. The zero mode is unchanged, and Parseval shows the L2 norm cannot increase as time increases.

For any t_0>0 and any nonnegative integer m, Cauchy–Schwarz bounds sum |n|^m|c_n|exp(-kappa*n^2*t) for t>=t_0 by norm(c)_ell2 times the square root of sum |n|^{2m}exp(-2kappa*n^2*t_0). The last series converges because exponential decay dominates every polynomial. Thus all spatial derivative series converge uniformly away from t=0; time derivatives have the same property after multiplying by powers of -kappa*n^2.

Termwise differentiation on every t>=t_0 now proves u_t=kappa*u_xx classically for t>0. For the initial limit, Parseval gives norm(u(t)-f)_2^2=sum |c_n|^2|exp(-kappa*n^2*t)-1|^2. The terms tend individually to zero and are bounded by 4|c_n|^2, a summable majorant, so the norm tends to zero. This states an L2 initial condition, not a pointwise limit for every possible representative.

High-frequency amplitude decays faster under heat flowA persistent positive mean; The first mode is damped by exp(−1/2), the second by exp(−2), and the mean remains 1.High-frequency amplitude decays faster under heat flow-3.57605.576-3.333.33Initial stateState at the selected timePeriodic coordinate x · temperature profile
The first mode is damped by exp(−1/2), the second by exp(−2), and the mean remains 1.

Each mode e^(inx) acquires the factor exp(−κn²t), as follows by substitution. Squaring the amplitudes in Parseval doubles the exponent. The constant mode has n=0 and the exact mean is conserved.

Exact mode energies
QuantityExact result
Diffusivity × time1/2
Preserved constant1
Cosine amplitude2·exp(−1/2)
Sine amplitude2·exp(−2)
Initial normalized squared norm5
Current normalized squared norm1 + 2·exp(−1) + 2·exp(−4)
Normalized energy loss5 − (1 + 2·exp(−1) + 2·exp(−4))
Exact finite-mode lawu(t,x)=a+b exp(−κt) cos x+c exp(−4κt) sin(2x)
Selected complex modes c_0, c_1, c_−11, (2/2) exp(−1/2), (2/2) exp(−1/2)
Selected complex modes c_2, c_−2(−i·(2/2)) exp(−2), (i·(2/2)) exp(−2)
Exact inputs and supporting calculations
Declared inputs
ParameterValue
k1
a1
b2
c2
t1/2

The mean is preserved, and norm(u(t)-c_0)_2<=exp(-kappa*t)*norm(f-c_0)_2 because |n|>=1 on the nonconstant modes. High frequencies decay faster. Reversing the sign of kappa instead amplifies arbitrarily high frequencies and fails to define a bounded evolution on general L2 data; special finite-band data do not remove that general instability. The positive-diffusivity and time-direction assumptions are essential. For heat evolution by Fourier multipliers, see [Applied Analysis, Chapter 7: Fourier Series](https://www.math.ucdavis.edu/~hunter/book/ch7.pdf); the positive diffusivity, normalized energy and L2 initial limit here are explicit, while positive time supplies additional smoothness.

29

Periodic Poisson compatibility

In a classical periodic problem, integrating -u_doubleprime=f over one period gives 0=integral f because uprime has equal endpoint traces. In the periodic weak formulation, the same condition follows by testing against the constant function. Thus c_0(f)=0 is necessary. Subtracting a nonzero mean would change the forcing and must be stated as a different problem.

Assume f is in L2 with zero mean. Set d_0=0 and d_n=c_n(f)/n^2 for n!=0. The square sums of d_n, n*d_n and n^2*d_n are finite, with the last equal to sum_{n!=0}|c_n(f)|^2. The coefficient existence theorem supplies u and its candidate weak derivatives. Integration against smooth periodic test functions, or passage from finite Fourier polynomials in L2, shows that the second derivative has coefficients -n^2*d_n=-c_n(f), so -u_doubleprime=f weakly and u belongs to periodic H2.

The mean-zero choice fixes the constant ambiguity. Indeed, a difference of two solutions has n^2*d_n=0 for every n!=0 and is therefore constant by coefficient uniqueness. Parseval also gives norm(u)_2<=norm(f)_2 and norm(uprime)_2<=norm(f)_2 on the 2pi-circle. Since sum|n*d_n|<=norm(c(f))_ell2*(sum_{n!=0}1/n^2)^(1/2), u has a C1 representative, although an arbitrary L2 forcing need not give a continuous classical second derivative.

On a circle of length 2L, the nonzero-mode inverse multiplier is 1/(n*pi/L)^2, and the norm estimates acquire the corresponding physical scale. A near-zero or missing zero-mode equation is a compatibility/kernel issue, not something to fix by dividing by zero. The construction distinguishes existence of a weak solution, uniqueness after fixing the mean, and any stronger pointwise regularity claim. For the periodic derivative and weak-Sobolev framework, see [Applied Analysis, Chapter 7: Fourier Series](https://www.math.ucdavis.edu/~hunter/book/ch7.pdf); the compatibility and Poisson solution above follow from the zero mode and the stated coefficient construction.

30

Weak derivatives and weighted coefficients

A periodic weak first derivative g in L2 satisfies integral g*conjugate(phi)=-integral f*conjugate(phiprime) for every smooth periodic test function phi. Choosing phi=e_n and using the declared inner-product convention gives c_n(g)=i*n*c_n(f). In particular, the mean of g is zero. Parseval then implies sum n^2|c_n(f)|^2=norm(g)_2^2<infinity, which proves necessity.

Conversely, assume f is in L2 and this weighted coefficient sum is finite. The sequence d_n=i*n*c_n(f), with d_0=0, is square summable. The coefficient existence theorem provides g in L2 with exactly these coefficients. For every finite trigonometric polynomial phi, the proposed weak integration-by-parts identity follows term by term from the finite orthogonality calculation.

For a smooth periodic phi, its Fourier polynomials and their first derivatives converge uniformly: repeated integration by parts supplies sufficiently summable coefficient bounds, as proved earlier. Pass from those finite test polynomials to phi in the integral identity, using the integrability of f and g and uniform convergence of both test factors. The identity therefore holds for every smooth periodic test function, so g is the weak derivative of f.

This is the Fourier characterization of periodic H1, with squared seminorm sum n^2|c_n|^2. It is not a claim that the derivative series converges uniformly or that every chosen pointwise representative is differentiable. Boundary jumps also matter: a nonperiodic interval trace mismatch creates a point-mass contribution in the periodic derivative, which is not an L2 function and is not removed by ordinary interval smoothness. For weak derivatives and weighted Fourier coefficients, see [Applied Analysis, Chapter 7: Fourier Series](https://www.math.ucdavis.edu/~hunter/book/ch7.pdf); both directions of the equivalence above are proved in this lesson's normalized, linear-first convention.

31

Weighted orthogonal projection

Let a<b and let w be an integrable measurable weight with w>0 almost everywhere on [a, b]. Define <f, g>_w=integral_a^b f*conjugate(g)*w and the corresponding weighted L2 equivalence classes. Each polynomial has finite norm because it is bounded on the compact interval and w is integrable. A nonzero polynomial has only finitely many zeros, so its weighted squared norm is strictly positive.

The moment Gram matrix for 1, x, ..., x^n is therefore positive definite for every integer n>=0: its quadratic form is the squared norm of the associated nonzero polynomial. Exact Gram–Schmidt produces one orthogonal degree-j polynomial for every j<=n. Choosing a monic leading coefficient makes each such polynomial unique, since the difference of two candidates has lower degree and is orthogonal to itself.

For an orthogonal family p_0, ..., p_N, the projection coefficients are a_j=<f, p_j>_w/norm(p_j)_w^2. Subtracting their finite sum makes the residual orthogonal to the whole polynomial subspace, and the same Pythagorean proof establishes unique best approximation in the weighted norm. Dividing by the actual positive squared basis norms is essential; an orthogonal basis is not necessarily normalized.

This is a finite theorem. To conclude that all such polynomial projections converge to every weighted-L2 f, one must separately establish density of the polynomial span under the chosen weight. A different weight generally changes the best polynomial. Exact positive definiteness also does not promise that a floating moment matrix or an arbitrary Gram–Schmidt implementation is well conditioned or numerically stable. For weighted orthogonality and squared-norm definitions, see [Digital Library of Mathematical Functions, Section 18.2: General Orthogonal Polynomials](https://dlmf.nist.gov/18.2); positive definiteness gives the finite projection theorem; infinite completeness requires further conditions.

32

Legendre orthogonality and norms

For an integer n>=0, define P_n(x)=[1/(2^n*n!)]*(d^n/dx^n)(x^2-1)^n. Its leading coefficient is L_n=(2n)!/[2^n*(n!)^2], which is nonzero, and its parity is P_n(-x)=(-1)^n*P_n(x). In particular, P_0=1 and P_1=x. The factor (x^2-1)^n has a zero of order n at each endpoint, so all its derivatives of order below n vanish there.

If q has degree less than n, integrate the Rodrigues formula against q by parts n times. Every boundary term vanishes by the endpoint multiplicity, and the remaining integral contains q^(n)=0. Thus P_n is orthogonal to all lower-degree polynomials under the unweighted integral on [-1, 1]. This also proves pairwise orthogonality because P_m has degree m.

To compute the squared norm, perform the same n integrations by parts with q=P_n. Since P_n^(n)=n!*L_n and (x^2-1)^n=(-1)^n*(1-x^2)^n, the signs cancel and integral P_n^2=(L_n/2^n)*J_n, where J_n=integral_{-1}^1(1-x^2)^n dx. For n>=1, integrating the derivative of x*(1-x^2)^n gives (2n+1)J_n=2n*J_{n-1}, with J_0=2.

Iterating that recurrence yields J_n=2^(2n+1)*(n!)^2/(2n+1)!. Substitution gives integral P_n^2=2/(2n+1), also valid at n=0. Under the normalized measure dx/2, the squared norm is instead 1/(2n+1). The normalization must be carried into projection and error formulas rather than replacing Legendre polynomials by a silently normalized basis. For the Legendre weight, normalization and squared norm h_n, see [Digital Library of Mathematical Functions, Section 18.3: Definitions, Table 18.3.1](https://dlmf.nist.gov/18.3); [Digital Library of Mathematical Functions, Section 18.2: General Orthogonal Polynomials](https://dlmf.nist.gov/18.2); the Rodrigues and integral-recurrence calculation above proves the squared norm including its zero-degree case.

33

A three-term Legendre recurrence

For n>=1, the polynomial x*P_n has degree n+1. Expand it in the orthogonal basis P_0, ..., P_{n+1}. For k<=n-2, its inner product with P_k equals the inner product of P_n with x*P_k, which is zero because x*P_k has degree at most n-1. Parity also makes the P_n coefficient zero. Only P_{n+1} and P_{n-1} can remain.

The coefficient of P_{n+1} is the ratio of leading coefficients L_n/L_{n+1}=(n+1)/(2n+1). To find the coefficient beta of P_{n-1}, use symmetry of multiplication by the real variable x: beta=<P_n, x*P_{n-1}>/norm(P_{n-1})^2. The leading-coefficient argument for x*P_{n-1} gives its P_n coefficient n/(2n-1).

Using the squared norms 2/(2n+1) and 2/(2n-1), we obtain beta=[n/(2n-1)]*[norm(P_n)^2/norm(P_{n-1})^2]=n/(2n+1). Hence x*P_n=[(n+1)/(2n+1)]P_{n+1}+[n/(2n+1)]P_{n-1}. Rearranging proves the displayed recurrence. At n=0, the separate relation x*P_0=P_1 requires no P_{-1}.

The recurrence generates P_2=(3x^2-1)/2, P_3=(5x^3-3x)/2 and higher polynomials from the stated initial values. It follows from exact orthogonality and degree, not from fitting values at finitely many points. Whether a particular floating recurrence is accurate for a large index or an extreme evaluation point is an additional numerical-analysis question. For the Legendre normalization and leading coefficient, see [Digital Library of Mathematical Functions, Section 18.3: Definitions, Table 18.3.1](https://dlmf.nist.gov/18.3); the orthogonality calculation above derives the three-term recurrence in that normalization.

34

Chebyshev orthogonality is weighted

Define T_0(x)=1, T_1(x)=x, and T_{n+1}(x)=2x*T_n(x)-T_{n-1}(x) for n>=1. The cosine addition identity 2cos(theta)cos(n*theta)=cos((n+1)*theta)+cos((n-1)*theta) proves by induction that T_n(cos(theta))=cos(n*theta). Each T_n is a polynomial of degree n, with leading coefficient 2^{n-1} for n>=1; the constant case is separate.

In the weighted integral on [-1, 1], substitute x=cos(theta). Since dx=-sin(theta)dtheta and sqrt(1-x^2)=sin(theta) for 0<theta<pi, we obtain integral_{-1}^1 T_n(x)T_m(x)/sqrt(1-x^2)dx=integral_0^pi cos(n*theta)cos(m*theta)dtheta. The endpoint singularities are integrable and the substitution is understood through the limiting improper integrals or the corresponding measure change.

Cosine orthogonality gives zero for n!=m, pi for n=m=0, and pi/2 for n=m>=1. Thus in an expansion f=d_0*T_0+sum_{n>=1}d_n*T_n, the constant coefficient is d_0=(1/pi)*integral f*w, whereas d_n=(2/pi)*integral f*T_n*w for n>=1. If instead one writes a_0/2, the symbol a_0 is twice d_0. The weight and constant normalization must both be stated.

Two measures select different polynomial projectionsProject a square onto constants; Both approximants have degree at most 0. Their squared residual norms belong to different declared measures.Two measures select different polynomial projections-0.1501.15-1.061.06Target x^2Unweighted Legendre projectionChebyshev-weighted projectionPhysical coordinate x · polynomial values
Both approximants have degree at most 0. Their squared residual norms belong to different declared measures.

Expand the same monomial in each mutually orthogonal basis and delete terms with degree above N. The residual is the first omitted mode here; multiplying its coefficient squared by the exact basis norm yields the respective integral. Passing to an orthonormal basis multiplies each standard expansion coefficient by its basis function’s norm under the same declared measure.

Exact projection and residual data
QuantityExact result
Legendre measure dxP_n(1)=1; squared norm 2/(2n+1)
Chebyshev measure dx/√(1−x²)T_n(cos θ)=cos(nθ); squared norm π for n=0, π/2 otherwise
Legendre coefficients (P₀,P₁,P₂)1/3, 0, 0
Chebyshev coefficients (T₀,T₁,T₂)1/2, 0, 0
Omitted Legendre and Chebyshev modes(2/3)P₂ / (1/2)T₂
Unweighted squared residual8/45
Chebyshev-weighted squared residual1/8·π
Orthonormal Legendre coefficients kept / omitted(1/3)√2 / (2/3)√(2/5)
Orthonormal Chebyshev coefficients kept / omitted√π/2 / √(π/2)/2
Exact inputs and supporting calculations
Declared inputs
ParameterValue
k2
N0

The unweighted integral does not have these same orthogonality relations. For example, T_2=2x^2-1 has unweighted integral -2/3 rather than zero, although it is orthogonal to T_0 in the Chebyshev weight. The cosine substitution also proves completeness for weighted-L2 data by the half-range cosine theorem; no boundedness of the endpoint-singular weight is assumed in that separate argument. For the Chebyshev first-kind weight and squared-norm table, see [Digital Library of Mathematical Functions, Section 18.3: Definitions, Table 18.3.1](https://dlmf.nist.gov/18.3); [Digital Library of Mathematical Functions, Section 18.2: General Orthogonal Polynomials](https://dlmf.nist.gov/18.2); the cosine substitution above keeps the exceptional n=0 squared norm separate from the positive-frequency squared norms.

35

Projection coefficients and quadrature

Suppose a quadrature rule with M>=1 nodes and positive weights is exact for polynomials through degree 2M-1 under the actual integral weight w. Let p_0, ..., p_N be polynomials of their indicated degrees, with N>=0 and M>=N+1. Every product p_j*conjugate(p_k) has degree at most 2N<=2M-2, so quadrature computes each entry of their continuous Gram matrix exactly. Positivity then makes the corresponding sampled inner product nondegenerate on this finite polynomial space.

To compute a projection numerator integral f*conjugate(p_n)*w, one needs exactness for that product as well. If f is a polynomial of degree D, the sufficient degree condition is D+n<=2M-1. Exact integration of p_j*p_k alone does not establish this condition for an unrestricted f. The denominator squared basis norm may be exact while the numerator still has a quadrature error.

For a concrete obstruction, let q(x)=product_{j=1}^M(x-x_j)^2 at the actual distinct quadrature nodes. Every sampled value is zero, but q is a nonzero nonnegative polynomial and its weighted integral is positive when w>0 almost everywhere on a nondegenerate interval. Its degree is 2M, just beyond the guaranteed exactness range. Thus a discrete coefficient for the constant basis can vanish while the continuous coefficient is positive.

An approximate numerator can still yield a controlled coefficient when its actual integration error is bounded and the positive squared basis norm is known. The example separates exact finite Gram geometry from knowledge about the entire target function. It uses the stipulated quadrature exactness and positive node count, rather than inferring exactness or a band restriction from agreement at sampled points. For the distinction between integral and discrete orthogonality, see [Digital Library of Mathematical Functions, Section 18.2: General Orthogonal Polynomials](https://dlmf.nist.gov/18.2); the degree argument and vanishing-node counterexample above explain why an exact finite Gram matrix does not certify unrestricted projection coefficients.

36

When polynomial systems are complete

For continuous g on [0, 1], the Bernstein polynomial B_m g(t)=sum_{k=0}^m g(k/m)*binomial(m, k)*t^k*(1-t)^{m-k}, m>=1, has nonnegative weights summing to 1. Binomial differentiation identities give the weighted mean of k/m as t and the weighted squared deviation as t(1-t)/m<=1/(4m). These are finite algebraic identities, including the endpoint cases where the weights concentrate at a single k.

For 0<delta<=1, split the weighted error according to |k/m-t|<=delta or greater than delta. The near part is bounded by omega_g(delta). The far weight is at most 1/(4m*delta^2) by the squared-deviation bound, so its error is at most norm(g)_infinity/(2m*delta^2). Choosing delta small and then m large proves uniform polynomial approximation. An affine substitution transfers the result to any nondegenerate compact interval.

Now assume 0<m_0<=w<=M_0<infinity almost everywhere on [a, b]. The weighted and unweighted L2 norms are equivalent, so continuous functions are dense in the weighted norm by ordinary L2 density. A uniform polynomial approximation to a continuous g has weighted error at most sqrt(integral w) times its uniform error. Combining these two approximations proves polynomial density. Any degree-by-degree orthogonal polynomial family therefore has a complete span, and its best finite projections converge in weighted L2.

Legendre’s weight 1 meets these hypotheses. Chebyshev’s weight is unbounded at the endpoints and is not covered by that bounded-weight argument; instead the exact map x=cos(theta) identifies its weighted norm with the cosine L2 norm on [0, pi], whose completeness was already proved. Neither density argument asserts uniform convergence of every orthogonal partial-sum expansion for arbitrary rough input. For the weighted spaces and classical polynomial conventions, see [Digital Library of Mathematical Functions, Section 18.2: General Orthogonal Polynomials](https://dlmf.nist.gov/18.2); [Digital Library of Mathematical Functions, Section 18.3: Definitions, Table 18.3.1](https://dlmf.nist.gov/18.3); the density argument above proves the bounded-weight case, while the singular Chebyshev weight uses its separate cosine isometry.

37

Self-adjoint boundary conditions give orthogonality

On a<b, let p be real C1 with p>=p_0>0, and let real continuous q, w satisfy w>=w_0>0. Consider L(u)=-(p*uprime)prime+q*u with eigen-equation L(u)=lambda*w*u. At each endpoint impose the same separated real Robin condition alpha*u+beta*p*uprime=0 for every function in the domain, with alpha, beta not both zero. Assume the eigenfunctions have the classical regularity needed for the displayed integrations.

Integration by parts gives integral [(L u)*conjugate(v)-u*conjugate(L v)]=[p*(u*conjugate(vprime)-uprime*conjugate(v))]_a^b. At an endpoint with beta=0, both u and v vanish. If beta!=0, their quasi-derivatives equal the same real multiple -alpha/beta of their values, and the boundary expression again vanishes. The common real separated conditions are exactly what eliminates this boundary term.

For eigenfunctions u, v, the identity becomes (lambda-conjugate(mu))*integral w*u*conjugate(v)=0. Taking v=u and using the positive weighted norm of a nonzero eigenfunction proves lambda is real. For distinct eigenvalues lambda!=mu, it then forces weighted orthogonality. Equal eigenvalues do not force a particular pair to be orthogonal, though one may orthogonalize within an eigenspace.

The integration identity alone does not prove existence of a complete eigenbasis for every such operator; that requires further spectral theory. For the specific constant-coefficient Dirichlet operator, the sine completeness theorem supplies that missing fact directly. Functions from different boundary domains need not be orthogonal even when the same differential expression gives them different eigenvalues: their common boundary-form cancellation is absent. For inner-product and domain considerations in modal orthogonality, see [Notes on the algebraic structure of wave equations](https://ocw.mit.edu/courses/18-303-linear-partial-differential-equations-analysis-and-numerics-fall-2014/70518f87dfd5c723ee3cd5d912001b51_MIT18_303F14_wave_equation.pdf); [Digital Library of Mathematical Functions, Section 18.2: General Orthogonal Polynomials](https://dlmf.nist.gov/18.2); the common-boundary Green identity above establishes the stated regular problem's reality and orthogonality, without a general spectral completeness claim.

38

Discrete orthogonality and a band assumption

Let M>=1 be an integer and x_j=2pi*j/M for j=0, ..., M-1. For integer k, n, the average(1/M)*sum_j exp(i*(k-n)*x_j) is 1 when M divides k-n. Otherwise the ratio exp(2pi*i*(k-n)/M) is a nontrivial Mth root of unity, and the finite geometric sum is zero. Thus discrete orthogonality distinguishes residue classes modulo M rather than all integer frequencies.

Suppose q is already known to lie in V_N with N>=0 and M>=2N+1. Define discrete coefficients d_n=(1/M)*sum_j q(x_j)exp(-i*n*x_j) for |n|<=N. Substituting the finite expansion gives d_n=sum_{|k|<=N}c_k times the discrete inner product. Since |k-n|<=2N<M, only k=n contributes, and d_n=c_n. This proves exact recovery inside the declared band, including N=0 and M=1 for constants.

For any finite trigonometric polynomial with a wider spectrum, the same computation instead gives d_n=sum_{ell in Z}c_{n+ell*M}, with only finitely many nonzero terms. In particular, exp(i*(n+M)*x_j)=exp(i*n*x_j) at every sampled point. Distinct continuous Fourier modes can therefore have exactly identical finite data. For an arbitrary L2 equivalence class, point samples are not even specified without choosing additional regularity or representatives.

Equal sampled phases can hide different functionsFive nodes and two positive modes; The complex phases agree at all 5 nodes. At t=π/5 the full complex phases are opposite. The chart shows their real components. The two open marks at π/5 give both real components between samples.Equal sampled phases can hide different functions-1.301.3-0.1886.472Real part of mode 2Real part of mode 7Shared sampled real valuesmidpoint π/5Physical coordinate t · real component of complex modes
The complex phases agree at all 5 nodes. At t=π/5 the full complex phases are opposite. The chart shows their real components. The two open marks at π/5 give both real components between samples.

The ratio of the sampled complex modes is exp(i(ℓ−k)2πj/N), which equals 1 when their indices differ by a multiple of N. The normalized geometric sum gives orthogonality for distinct residues. Uniqueness on a chosen band requires at most one representative of each residue.

Exact sampled inner products
QuantityExact result
Sample spacing2π/5
Frequency indices k, ℓ2, 7
Residues modulo 52, 2
ℓ−k5
Normalized mutual discrete inner product1
Inner products with mode 10, 0
Between nodes at t=π/5e^(i7π/5) = −e^(i2π/5)
Largest full symmetric integer band|n|≤2 using N>2K
Exact inputs and supporting calculations
Declared inputs
ParameterValue
N5
k2
l7
test1

The band restriction and exact arithmetic are hypotheses of the reconstruction result, not facts proved by obtaining M sample values. Approximate samples introduce a separate coefficient error, and unrestricted functions can contain unobserved frequencies. This finite root-of-unity connection supports computation of known trigonometric polynomials; general sampling, filtering and noise questions require the later dedicated treatment. For continuous exponential orthogonality as a comparison, see [18.102 Lecture 15: Orthonormal Bases and Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/859833f65ee4aec6b0fea35a300d10cd_MIT18_102s21_lec15.pdf); the finite geometric-sum calculation above establishes discrete orthogonality modulo M and shows why recovery also needs a justified band prior.

39

A scoped expansion-error certificate

Let f be in L2 and let the finite polynomial q_N use approximate coefficients tilde_c_n for |n|<=N. Write f-q_N=(f-S_N f)+(S_N f-q_N). The two terms are orthogonal because the first is orthogonal to V_N and the second belongs to V_N. Hence norm(f-q_N)_2^2=sum_{|n|>N}|c_n|^2+sum_{|n|<=N}|c_n-tilde_c_n|^2. Truncation and coordinate errors add as squared energies under this exact decomposition.

If the actual omitted norm is bounded by B_N and each complex coefficient error magnitude by epsilon_n, the exact polynomial error is at most sqrt(B_N^2+sum epsilon_n^2). If numerical evaluation produces a function qhat_N with norm(qhat_N-q_N)_2<=eta, triangle inequality gives norm(f-qhat_N)_2<=sqrt(B_N^2+sum epsilon_n^2)+eta. The evaluation error need not be orthogonal to the other terms, so it is not placed inside the square root without further evidence.

A common per-coefficient bound epsilon gives the coordinate bound sqrt(2N+1)*epsilon for the positive-dimensional band. In an unnormalized orthogonal polynomial basis, the corresponding squared coordinate error contains the factors norm(p_n)^2; raw coefficient magnitudes alone are not basis-independent energies. Real target reconstructions additionally respect conjugate symmetry when their output is claimed real.

All quantities in a normalized Fourier norm have the units of the signal after taking square roots. The certificate concerns that signal and norm under the assumed tail, input and arithmetic bounds. It does not infer a missing smoothness bound from finite samples, guarantee a pointwise peak error, or establish that a physical model or an audible reconstruction is adequate for its scientific or artistic use. For normalized energy identities and orthogonal projections, see [Digital Library of Mathematical Functions, Section 1.8: Fourier Series](https://dlmf.nist.gov/1.8); [18.102 Lecture 15: Orthonormal Bases and Fourier Series](https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/859833f65ee4aec6b0fea35a300d10cd_MIT18_102s21_lec15.pdf); the separate tail, retained-coefficient and evaluation allowances above certify only the declared mathematical norm.

Explore exact Fourier coefficients, projection energy, and what changes when you choose a measure, a smoothing kernel, or a sampling grid.

Projection preserves only the included Fourier modes

Keep only the mean

Orthogonal projection removes only the omitted modesKeep only the mean; Total mean squared energy is 8. Projection retains 1 and the residual contains 7 on one 2π period.Orthogonal projection removes only the omitted modes-5.58807.588-3.333.33Original periodic signalOrthogonal projection through N=0Physical coordinate x · vertical function value
Total mean squared energy is 8. Projection retains 1 and the residual contains 7 on one 2π period.

The mean square uses (1/(2π))∫ over one period. Orthogonality keeps a² for the mean and half the squared real amplitude at each nonzero harmonic. In the complex convention each cosine has equal half coefficients at ±n, while a sine has opposite imaginary coefficients. In the real convention f=a₀/2+Σ(a_n cos nx+b_n sin nx), a₀=2 times the mean.

Exact normalized projection
QuantityExact result
Harmonic cutoff0
Mean coefficient1
c_±11
c_2 / c_−21/2·i / −1/2·i
c_±33/2
Retained real a / cosine-1 / sine-2 / cosine-31 / 0 / 0 / 0
Normalized squared norm8
Projection squared norm1
Omitted squared norm7
Original real series coefficients a₀, a₁, b₂, a₃2, 2, -1, 3
Normalized L² error norm√7
Exact inputs and supporting calculations
Declared inputs
ParameterValue
a1
b2
c-1
d3
N0

A derivative calculation needs the endpoint term

Odd positive mode

Periodic identification joins unequal endpoint limitsOdd positive mode; The left limit at π is κπ and the right limit after wrapping is −κπ. Their jump gives mass −2π at the seam.Periodic identification joins unequal endpoint limits-4.08404.084-3.333.33Interior ramp−ππLimits at the identified endpointOne physical period t · ordinary ramp value
The left limit at π is κπ and the right limit after wrapping is −κπ. Their jump gives mass −2π at the seam.

Integration by parts yields the ordinary-derivative coefficient as the endpoint term κ(−1)^n plus i n c_n. The interior derivative is constant κ and has zero modes for n≠0. The distributional derivative includes −2πκδ_π, which cancels the boundary term and cancels the mean of the ordinary derivative.

Exact derivative coefficients
QuantityExact result
Period and average normalization2π, 1/(2π)
Mode n1
Ramp coefficient c_n−i
Interior derivative coefficient at selected n0
Integration-by-parts boundary term-1
i n c_n1
Impulse mass at π-2π
Impulse mode coefficient1
Total derivative mean0
Exact inputs and supporting calculations
Declared inputs
ParameterValue
k1
n1

The same jump produces different partial-sum averages

Projection and mean agree at this query

Finite projections and Fejér means behave differently near jumpsProjection and mean agree at this query; At the chosen point 1/2π the two values are 304/105·1/π and 304/105·1/π. Both give zero at the jump. The filled zero marks at −π, 0 and π are the chosen jump values. The query is marked on the coordinate axis.Finite projections and Fejér means behave differently near jumps-1.51501.515-3.333.33Two open constant pieces of the square waveDirichlet partial sumFejér meanf(0)=0query at π/2Physical coordinate t over one period
At the chosen point 1/2π the two values are 304/105·1/π and 304/105·1/π. Both give zero at the jump. The filled zero marks at −π, 0 and π are the chosen jump values. The query is marked on the coordinate axis.

The square wave is odd and has only odd sine modes. Partial sums use every admitted mode unchanged. Averaging S_0 through S_N gives the triangular factors and the positive Fejér kernel. Finite-query values here differ from the separate limit problem in the shrinking Gibbs boundary layer. At odd N, S_N(z/(N+1)) tends to 2 Si(z)/π, where Si(z)=∫₀ᶻ sin(u)/u du. At z=π this is greater than one. Positive Fejér-kernel averaging preserves the range [−1,1]. At t=0 the exact midpoint result remains zero.

Exact finite-sum comparisons
QuantityExact result
Fourier sine coefficients4/(πn) for odd positive n; zero for even n
Maximum retained harmonic7
Fejér weight1−n/(N+1)
Query, in units of π1/2
Direct sum S_N304/105·1/π
Fejér σ_N304/105·1/π
Difference0
At jump t=0Both equal 0
Exact inputs and supporting calculations
Declared inputs
ParameterValue
N7
queryPi1/2

Heat changes each Fourier mode by its own rate

A persistent positive mean

High-frequency amplitude decays faster under heat flowA persistent positive mean; The first mode is damped by exp(−1/2), the second by exp(−2), and the mean remains 1.High-frequency amplitude decays faster under heat flow-3.57605.576-3.333.33Initial stateState at the selected timePeriodic coordinate x · temperature profile
The first mode is damped by exp(−1/2), the second by exp(−2), and the mean remains 1.

Each mode e^(inx) acquires the factor exp(−κn²t), as follows by substitution. Squaring the amplitudes in Parseval doubles the exponent. The constant mode has n=0 and the exact mean is conserved.

Exact mode energies
QuantityExact result
Diffusivity × time1/2
Preserved constant1
Cosine amplitude2·exp(−1/2)
Sine amplitude2·exp(−2)
Initial normalized squared norm5
Current normalized squared norm1 + 2·exp(−1) + 2·exp(−4)
Normalized energy loss5 − (1 + 2·exp(−1) + 2·exp(−4))
Exact finite-mode lawu(t,x)=a+b exp(−κt) cos x+c exp(−4κt) sin(2x)
Selected complex modes c_0, c_1, c_−11, (2/2) exp(−1/2), (2/2) exp(−1/2)
Selected complex modes c_2, c_−2(−i·(2/2)) exp(−2), (i·(2/2)) exp(−2)
Exact inputs and supporting calculations
Declared inputs
ParameterValue
k1
a1
b2
c2
t1/2

Projection depends on the measure used for orthogonality

Project a square onto constants

Two measures select different polynomial projectionsProject a square onto constants; Both approximants have degree at most 0. Their squared residual norms belong to different declared measures.Two measures select different polynomial projections-0.1501.15-1.061.06Target x^2Unweighted Legendre projectionChebyshev-weighted projectionPhysical coordinate x · polynomial values
Both approximants have degree at most 0. Their squared residual norms belong to different declared measures.

Expand the same monomial in each mutually orthogonal basis and delete terms with degree above N. The residual is the first omitted mode here; multiplying its coefficient squared by the exact basis norm yields the respective integral. Passing to an orthonormal basis multiplies each standard expansion coefficient by its basis function’s norm under the same declared measure.

Exact projection and residual data
QuantityExact result
Legendre measure dxP_n(1)=1; squared norm 2/(2n+1)
Chebyshev measure dx/√(1−x²)T_n(cos θ)=cos(nθ); squared norm π for n=0, π/2 otherwise
Legendre coefficients (P₀,P₁,P₂)1/3, 0, 0
Chebyshev coefficients (T₀,T₁,T₂)1/2, 0, 0
Omitted Legendre and Chebyshev modes(2/3)P₂ / (1/2)T₂
Unweighted squared residual8/45
Chebyshev-weighted squared residual1/8·π
Orthonormal Legendre coefficients kept / omitted(1/3)√2 / (2/3)√(2/5)
Orthonormal Chebyshev coefficients kept / omitted√π/2 / √(π/2)/2
Exact inputs and supporting calculations
Declared inputs
ParameterValue
k2
N0

Sampling cannot distinguish frequencies in the same residue class

Five nodes and two positive modes

Equal sampled phases can hide different functionsFive nodes and two positive modes; The complex phases agree at all 5 nodes. At t=π/5 the full complex phases are opposite. The chart shows their real components. The two open marks at π/5 give both real components between samples.Equal sampled phases can hide different functions-1.301.3-0.1886.472Real part of mode 2Real part of mode 7Shared sampled real valuesmidpoint π/5Physical coordinate t · real component of complex modes
The complex phases agree at all 5 nodes. At t=π/5 the full complex phases are opposite. The chart shows their real components. The two open marks at π/5 give both real components between samples.

The ratio of the sampled complex modes is exp(i(ℓ−k)2πj/N), which equals 1 when their indices differ by a multiple of N. The normalized geometric sum gives orthogonality for distinct residues. Uniqueness on a chosen band requires at most one representative of each residue.

Exact sampled inner products
QuantityExact result
Sample spacing2π/5
Frequency indices k, ℓ2, 7
Residues modulo 52, 2
ℓ−k5
Normalized mutual discrete inner product1
Inner products with mode 10, 0
Between nodes at t=π/5e^(i7π/5) = −e^(i2π/5)
Largest full symmetric integer band|n|≤2 using N>2K
Exact inputs and supporting calculations
Declared inputs
ParameterValue
N5
k2
l7
test1

Worked examples

A finite spectrum and its omitted energy

For f(x)=2+3cos(2x)-4sin(3x) on the 2pi-circle, find its complex coefficients, normalized-L2 energy, and the exact error of the best degree-two Fourier projection.

  1. Use cos(2x)=(exp(2ix)+exp(-2ix))/2. For the sine term, -4sin(3x)=2i*exp(3ix)-2i*exp(-3ix). The constant is 2, so these identities give the five nonzero coefficients with the stated positive-frequency sign. Their negative-frequency values are complex conjugates, as required for the real input.
  2. Finite orthogonality gives norm(f)_2^2=|2|^2+2|3/2|^2+2|2i|^2=4+9/2+8=33/2. The real formula gives the same result: the nonconstant cosine and sine have squared norm 1/2, so their energies are 9/2 and 16/2. No cross term survives.
  3. The degree-two projection retains only frequencies -2 through 2, so S_2=2+3cos(2x). Its omitted part is -4sin(3x), whose squared norm is 16/2=8. Thus the exact norm error is sqrt(8)=2sqrt(2). The projection theorem makes it the unique best approximation in that frequency band in normalized L2.
  4. The word best refers to the specified norm and band. It does not say that every pointwise error is at most 2sqrt(2): the actual omitted wave has maximum magnitude 4. If f carries amplitude units, the coefficients and norm error carry those units, and the squared energy has their square.

c_0=2, c_2=c_{-2}=3/2, c_3=2i, c_{-3}=-2i, with every other coefficient zero. The squared normalized-L2 norm is 33/2. S_2=2+3cos(2x) has squared error 8 and norm error 2sqrt(2).

A sawtooth and a reciprocal-square sum

For the periodic function f(x)=x on (-pi, pi), derive its sine and complex coefficients, identify the series value at the periodic jump, and use Parseval to obtain sum_{n>=1}1/n^2.

  1. The function is odd, so the mean and every cosine coefficient vanish. Integration by parts gives integral_0^pi x*sin(nx)dx=[-x*cos(nx)/n+sin(nx)/n^2]_0^pi=-pi*(-1)^n/n. Multiplying by 2/pi yields b_n=2(-1)^{n+1}/n. The complex convention gives c_n=-i*b_n/2=i(-1)^n/n for positive n, and conjugacy extends the same formula to negative n.
  2. The periodic extension is piecewise smooth and has traces pi and -pi at its identified endpoint. The Jordan or one-sided smooth convergence criterion gives their average 0 at that jump. At each interior point of (-pi, pi), the sum equals x. An arbitrary value assigned exactly at the endpoint changes neither the coefficients nor that series limit.
  3. The squared normalized-L2 norm is (1/(2pi))*integral_{-pi}^pi x^2dx=pi^2/3. Parseval gives the same squared norm as sum_{n!=0}|i(-1)^n/n|^2=2sum_{n>=1}1/n^2. Equating the two finite-energy quantities proves the reciprocal-square identity pi^2/6.
  4. The coefficients are not absolutely summable, so the uniform-majorant theorem does not apply. In fact, no continuous Fourier partial sums can converge uniformly to the discontinuous periodic extension. The pointwise midpoint conclusion and the L2 energy identity remain valid under their separate hypotheses.

b_n=2(-1)^{n+1}/n, c_n=i(-1)^n/n for n!=0, and c_0=0. The series is 2sum_{n>=1}(-1)^{n+1}sin(nx)/n and has midpoint value 0 at the periodic jump. Parseval yields sum_{n>=1}1/n^2=pi^2/6.

An absolute-value wave with a uniform tail

For the periodic f(x)=|x| on [-pi, pi], derive the cosine coefficients and a uniform tail bound for S_N when N>=1. Evaluate the series at zero and explain the derivative limitation.

  1. Evenness makes every sine coefficient zero. The constant integral gives a_0=(2/pi)*integral_0^pi xdx=pi. For n>=1, integration by parts gives integral_0^pi x*cos(nx)dx=[x*sin(nx)/n+cos(nx)/n^2]_0^pi=[(-1)^n-1]/n^2. Therefore a_n=2[(-1)^n-1]/(pi*n^2): zero for even n and -4/(pi*n^2) for odd n.
  2. The coefficient magnitudes are summable. The resulting cosine series is uniformly convergent and has the same Fourier coefficients as the continuous periodic|x|, so uniqueness identifies it everywhere with that function. For N>=1, the omitted absolute sum is at most (4/pi)*sum_{n>N}1/n^2<=(4/pi)*integral_N^infinity t^{-2}dt=4/(pi*N). Dropping the odd-index restriction only enlarges this bound.
  3. At x=0, the uniform series may be evaluated directly: 0=pi/2-(4/pi)*sum_{n odd>=1}1/n^2. Rearrangement gives the odd reciprocal-square sum pi^2/8. At the identified endpoints, the continuous extension has value pi; the cosine factors(-1)^n produce the same endpoint value from the series.
  4. On each open side of zero, the derivative of |x| is the corresponding sign, but it jumps at zero and across the periodic endpoint. Every differentiated finite Fourier sum is continuous. A uniform limit of those derivatives could not equal this discontinuous derivative representative. Absolute convergence of the original series therefore does not by itself justify uniform termwise differentiation.

a_0=pi, b_n=0, and a_n=2[(-1)^n-1]/(pi*n^2). Thus |x|=pi/2-(4/pi)sum_{n odd>=1}cos(nx)/n^2 uniformly, with tail at most 4/(pi*N) for N>=1. At zero, this gives sum_{n odd>=1}1/n^2=pi^2/8. The derivative has jumps and cannot be obtained as a uniformly convergent derivative series.

Ordinary and Fejér sums near a jump

For f(x)=sign(x) on (-pi, pi), compute S_3 and the Fejér mean sigma_3. Evaluate both at x=pi/4 and determine which can exceed the function’s global range [-1, 1].

  1. Oddness eliminates the mean and cosine coefficients. For n>=1, b_n=(2/pi)*integral_0^pi sin(nx)dx=2[1-(-1)^n]/(pi*n). Hence b_1=4/pi, b_3=4/(3pi), and b_2=0. The ordinary degree-three sum is their unchanged sine combination.
  2. The Fejér mean sigma_3=(S_0+S_1+S_2+S_3)/4 multiplies frequency n by 1-n/4. Thus frequency 1 has factor 3/4 and frequency 3 has factor 1/4, giving sigma_3=(3/pi)sin(x)+(1/(3pi))sin(3x). It is not the orthogonal projection S_3; its coefficients deliberately taper with frequency.
  3. At x=pi/4, both sine factors equal sqrt(2)/2. The ordinary value is (4/pi)*(sqrt(2)/2)*(1+1/3)=8sqrt(2)/(3pi); the Fejér value is (sqrt(2)/(2pi))*(3+1/3)=5sqrt(2)/(3pi). The first exceeds 1 because 128>9pi^2, using pi^2<10. The second is below 1 because 50<9pi^2, using pi^2>9.
  4. The sign input lies between -1 and 1 almost everywhere. Convolution with the nonnegative unit-mass F_3 preserves this range at every output point, including near jumps. D_3 is signed and supplies no such convexity guarantee. Neither sequence can converge uniformly across the genuine jump; changing the summation rule controls overshoot while retaining that limit on uniform approximation.

S_3=(4/pi)[sin(x)+sin(3x)/3], whereas sigma_3=(3/pi)sin(x)+(1/(3pi))sin(3x). At pi/4 they are 8sqrt(2)/(3pi)>1 and 5sqrt(2)/(3pi)<1, respectively. The Fejér mean stays in [-1, 1] everywhere by positive unit-mass averaging.

A periodic quadratic with a derivative mismatch

For f(x)=x^2 on [-pi, pi] with periodic endpoints, derive the coefficients, S_2, and its exact squared normalized-L2 error. Explain why the derivative trace prevents treating f as a periodic C2 function.

  1. Evenness gives b_n=0 and a_0=(2/pi)*integral_0^pi x^2dx=2pi^2/3. For n>=1, the first integration by parts gives integral_0^pi x^2cos(nx)dx=-(2/n)*integral_0^pi xsin(nx)dx. The remaining integral is -pi*(-1)^n/n, so a_n=4(-1)^n/n^2. Therefore c_0=pi^2/3 and c_{+/-n}=a_n/2=2(-1)^n/n^2.
  2. Retaining n=1, 2 gives S_2=pi^2/3-4cos(x)+cos(2x). Orthogonality makes its squared norm pi^4/9+(16+1)/2=pi^4/9+17/2. The target squared norm is (1/(2pi))*integral_{-pi}^pi x^4dx=pi^4/5.
  3. Subtract the retained energy from the target energy, using the exact projection identity. The squared error is pi^4/5-pi^4/9-17/2=4pi^4/45-17/2. It is also the nonnegative omitted coefficient energy 8sum_{n>=3}1/n^4. The integral calculation and Parseval, not a decimal cancellation in two large numbers, justify this expression.
  4. Although f(pi)=f(-pi), its derivative has traces 2pi and -2pi. The periodic function is continuous but not periodic C1, let alone C2. Its 1/n^2 decay was obtained with the actual integration-by-parts boundary behavior. Applying the repeated periodic-derivative formula with all boundary terms discarded would impose a false trace hypothesis.

a_0=2pi^2/3, a_n=4(-1)^n/n^2, b_n=0, and c_n=2(-1)^n/n^2 for n!=0. S_2=pi^2/3-4cos(x)+cos(2x). Its squared normalized-L2 error is 4pi^4/45-17/2. The endpoint function traces match, but the first derivatives 2pi and -2pi do not.

Shift and modulation with a complex signal

For g(x)=3exp(2ix)cos(x-pi/3), find every nonzero complex Fourier coefficient and the normalized-L2 energy. Is g necessarily real-valued?

  1. Write the shifted cosine as [exp(i*x-i*pi/3)+exp(-i*x+i*pi/3)]/2. Multiplication by 3exp(2ix) gives g=(3/2)exp(-i*pi/3)*exp(3ix)+(3/2)exp(i*pi/3)*exp(ix). The indices are 3 and 1, with exactly the displayed phases.
  2. The combined shift/modulation rule gives the same result from the original cosine coefficients c_{+/-1}=1/2: after modulation by m=2, the translation phase uses n-m rather than n. Thus c_3 has exp(-i*pi/3), and c_1 has exp(i*pi/3). Applying the translation phase to the already shifted index n would be an incorrect operation order.
  3. Each coefficient has magnitude 3/2, and the two exponentials are orthonormal. The squared normalized-L2 norm is therefore 9/4+9/4=9/2. Equivalently, |g(x)|^2=9cos^2(x-pi/3), whose average is 9/2. A change of phase has not changed the energy.
  4. A real periodic function must have c_{-n}=conjugate(c_n). Here the nonzero positive indices have zero negative counterparts, so g is not real-valued in general. Taking its real part would define a different signal, with a different spectrum and energy; it must not be silently substituted when interpreting a complex modulated amplitude.

The only nonzero coefficients are c_3=(3/2)exp(-i*pi/3) and c_1=(3/2)exp(i*pi/3). The squared normalized-L2 norm is 9/2. The function is complex-valued in general because the corresponding negative-frequency conjugate modes are absent.

The same interval data, two extensions

For f(x)=x on [0, L], L>0, derive both half-range sine and cosine coefficients. State the interior and endpoint behavior of the corresponding periodic extensions.

  1. Use theta=pi*x/L to transfer the already derived sawtooth and absolute-value integrals to the interval scale. The odd extension of x on (0, L) is x on (-L, L). Its half-range coefficient is b_n=(2/L)*integral_0^L x*sin(n*pi*x/L)dx=2L(-1)^{n+1}/(n*pi). The formula carries length units because the target values x do.
  2. The even extension is |x| on [-L, L]. Its mean term is a_0/2=L/2, and a_n=(2/L)*integral_0^L x*cos(n*pi*x/L)dx=2L[(-1)^n-1]/(n^2*pi^2). Even positive n vanish, and odd n have coefficient -4L/(n^2*pi^2). These are the scaled versions of the continuous absolute-value expansion, not the sine coefficients of the odd extension.
  3. The odd extension is continuous at zero but jumps from L to -L at its periodic endpoint. Thus the sine series equals x for 0<x<L, has value 0 at zero, and has midpoint value 0 at L. The final value differs from the interval assignment f(L)=L because the chosen extension has a jump there. All sine partial sums also vanish exactly at both endpoints.
  4. The even extension is continuous at zero and at the identified endpoints, so the cosine series equals f at both endpoints and throughout the interval. Its 1/n^2 coefficients give uniform convergence, while the extension has derivative cusps and is not C1. Both normalized interval-L2 energies equal L^2/3; different endpoint limits do not contradict L2 equivalence because isolated endpoints carry no integral mass.

The sine coefficients are b_n=2L(-1)^{n+1}/(n*pi). The cosine coefficients are a_0=L and a_n=2L[(-1)^n-1]/(n^2*pi^2). Both expansions equal x in the interior. The sine series has value 0 at both endpoints, whereas the cosine series has values 0 and L and converges uniformly to the even continuous extension.

Two vibrating-string modes

Solve u_tt=c^2u_xx on 0<x<L with zero endpoint displacement, u(x, 0)=2sin(pi*x/L)-sin(2pi*x/L), and u_t(x, 0)=0, where c, L>0. Compute the conserved energy (1/2)*integral_0^L(u_t^2+c^2u_x^2)dx.

  1. Each spatial sine vanishes at 0 and L. Its second derivative is -(n*pi/L)^2 times itself, so the two modal amplitudes obey q_1doubleprime+omega^2*q_1=0 and q_2doubleprime+(2omega)^2*q_2=0. The initial displacements are 2 and -1, and both initial velocity coefficients vanish.
  2. Solving these two finite oscillator equations gives q_1=2cos(omega*t) and q_2=-cos(2omega*t). Substitution yields the displayed u. Direct finite differentiation verifies the PDE, the zero endpoint conditions and both initial data; no infinite series interchange or weak-versus-classical ambiguity is involved for this two-mode solution.
  3. The sine/cosine orthogonality calculation gives E=(L/4)[q_1prime^2+omega^2*q_1^2+q_2prime^2+(2omega)^2*q_2^2]. Each bracketed oscillator energy is constant. At t=0 this becomes (L/4)[4omega^2+4omega^2]=2L*omega^2=2c^2*pi^2/L. The same result follows by integrating the initial displacement gradient with u_t=0.
  4. The frequencies are in the ratio 1: 2, and their cycles-per-time values are c/(2L) and c/L. The integral in the question is the mathematical string energy with its stated normalization. A physical energy in joules additionally needs the model’s mass-density factor and compatible displacement units; the harmonic solution alone does not determine those material data.

With omega=c*pi/L, u=2cos(omega*t)sin(pi*x/L)-cos(2omega*t)sin(2pi*x/L). The given conserved energy is 2c^2*pi^2/L.

Explicit heat damping

For the 2pi-periodic heat equation u_t=(1/2)u_xx and initial data 1+2cos(3x)-sin(2x), find u(x, t), its mean and its squared normalized-L2 norm for t>=0.

  1. The constant mode has eigenvalue 0 for the second derivative and stays unchanged. The cosine with index 3 has second-derivative eigenvalue -9, and the sine with index 2 has eigenvalue -4. With diffusivity 1/2, their time multipliers are exp(-9t/2) and exp(-2t), respectively. Multiplying the given initial amplitudes produces the displayed finite solution.
  2. The nonconstant sine and cosine both have zero mean, so the average remains 1 for every t>=0. At t=0 the multipliers equal 1 and recover the initial data. Direct differentiation verifies u_t=(1/2)u_xx and periodicity. All positive-time damping factors are at most 1 because the diffusivity and time are nonnegative as stated.
  3. Orthogonality gives norm(u(t))_2^2=1^2+(1/2)[2exp(-9t/2)]^2+(1/2)[exp(-2t)]^2=1+2exp(-9t)+(1/2)exp(-4t). Thus the initial squared norm is 7/2 and its limiting value is 1, the energy of the conserved mean. The nonconstant norm tends to zero.
  4. Differentiating the energy formula gives -18exp(-9t)-2exp(-4t). Independently, the squared normalized norm of u_x is 18exp(-9t)+2exp(-4t), so the identity d(norm(u)^2)/dt=-norm(u_x)^2 holds for this diffusivity. The index-three component decays faster despite its larger initial amplitude because diffusion weights frequency by its square.

u=1+2exp(-9t/2)cos(3x)-exp(-2t)sin(2x). Its mean is 1 and its squared normalized-L2 norm is 1+2exp(-9t)+(1/2)exp(-4t).

A mean-zero periodic Poisson solution

Find the zero-mean 2pi-periodic solution of -u_doubleprime=6cos(2x)-3sin(3x). Compute its squared normalized-L2 norm and the normalized energy of its first derivative.

  1. Both forcing modes have zero mean, so the periodic compatibility condition is satisfied. The operator -d^2/dx^2 multiplies cosine or sine index n by n^2. Divide the cosine amplitude 6 by 4 and the sine amplitude-3 by 9 to obtain u=(3/2)cos(2x)-(1/3)sin(3x). Its mean is zero without adding a constant.
  2. Differentiate twice: the cosine term contributes 6cos(2x) under the negative second derivative, and the sine term contributes -3sin(3x). Thus the equation and periodic conditions hold classically. Every other periodic solution differs by a constant, so the zero-mean condition makes this one unique.
  3. The two modes are orthogonal and each has squared normalized norm 1/2. Therefore norm(u)_2^2=(1/2)[(3/2)^2+(1/3)^2]=9/8+1/18=85/72. The mean is absent, so no zero-frequency inverse was used.
  4. The derivative is uprime=-3sin(2x)-cos(3x), giving norm(uprime)_2^2=(9+1)/2=5. The derivative norm and the function norm weight the frequencies differently. On a dimensional circle of length 2L, the inverse and derivative multipliers would contain n*pi/L rather than n, and their units would change accordingly.

u=(3/2)cos(2x)-(1/3)sin(3x). Its squared normalized-L2 norm is 85/72, and norm(uprime)_2^2=5.

Legendre projection with an unweighted norm

Expand x^2 and x^3 in P_0, P_1, P_2, P_3 on [-1, 1]. Find the best degree-one approximation to x^2 in the unweighted integral norm and its squared error integral.

  1. From P_0=1, P_1=x, P_2=(3x^2-1)/2 and P_3=(5x^3-3x)/2, solve the polynomial identities directly. The quadratic identity gives x^2=(P_0+2P_2)/3, and the cubic identity gives x^3=(3P_1+2P_3)/5. These are identities at every x, not fitted point samples.
  2. The space of polynomials of degree at most one is span{P_0, P_1}. Orthogonal projection retains the 1/3 constant coefficient of x^2 and discards the P_2 term. The P_1 coefficient is zero by evenness. Hence the unique unweighted-L2 best degree-one polynomial is q=1/3.
  3. The residual is (2/3)P_2. Legendre’s actual unweighted squared norm is integral P_2^2=2/5, so the squared residual integral is (4/9)*(2/5)=8/45. Direct integration gives the same result: integral(x^4-(2/3)x^2+1/9)=2/5-4/9+2/9=8/45.
  4. If the integral norm had been normalized by dx/2, the squared error would instead be 4/45. Dividing the squared basis norm out when finding coefficients and retaining it when finding energy are separate operations. A different weight would change this projection; the Legendre result is tied to the unweighted interval measure.

x^2=(1/3)P_0+(2/3)P_2 and x^3=(3/5)P_1+(2/5)P_3. The best degree-one approximation to x^2 is 1/3, and integral_{-1}^1(x^2-1/3)^2dx=8/45.

Chebyshev projection with its actual weight

Expand x^2+x^3 in T_0, T_1, T_2, T_3. Find the best degree-two approximation and its squared error integral under weight 1/sqrt(1-x^2) on [-1, 1].

  1. Use T_0=1, T_1=x, T_2=2x^2-1 and T_3=4x^3-3x. Solving gives x^2=(T_0+T_2)/2 and x^3=(3T_1+T_3)/4. Adding the two identities produces the four stated Chebyshev coefficients, with the constant coefficient convention d_0*T_0 rather than a hidden a_0/2.
  2. The degree-two space is span{T_0, T_1, T_2}, which is orthogonal for w=1/sqrt(1-x^2). Its best approximation retains the first three coefficients. In ordinary powers, this is 1/2+(3/4)x+(1/2)(2x^2-1)=x^2+(3/4)x. The omitted residual is T_3/4.
  3. For positive index 3, the unnormalized Chebyshev squared norm is integral T_3^2*w=pi/2. Therefore the squared weighted residual integral is (1/16)*(pi/2)=pi/32. If the weight measure were divided by pi, the corresponding squared norm would be 1/32; the question uses the unnormalized integral.
  4. The unweighted Legendre projection of the same function onto degree two would be x^2+(3/5)x, because its cubic component projects to 3P_1/5. The coefficient 3/4 is therefore not a basis-formatting alternative for 3/5. The two optimality statements use different inner products and answer different approximation questions.

x^2+x^3=(1/2)T_0+(3/4)T_1+(1/2)T_2+(1/4)T_3. The best weighted degree-two polynomial is x^2+(3/4)x, and its squared weighted error integral is pi/32.

Try it yourself

  1. Find the complex Fourier coefficients and squared normalized-L2 norm of 1-2cos(x)+6sin(2x), and the exact squared error after projection to |n|<=1.

    Show the answer and reasoning

    c_0=1, c_1=c_{-1}=-1, c_2=-3i, c_{-2}=3i, with all others zero. The squared normalized-L2 norm is 21, and the squared degree-one projection error is 18.

    The constant contributes c_0=1. The cosine -2cos(x) contributes -1 at each of indices 1 and -1. The sine 6sin(2x) equals -3i*exp(2ix)+3i*exp(-2ix), so c_2=-3i and c_{-2}=3i. The conjugate symmetry confirms that the original signal is real. Finite Parseval gives norm(f)_2^2=1+|-1|^2+|-1|^2+|-3i|^2+|3i|^2=21. Equivalently, the real amplitude formula is 1+(-2)^2/2+6^2/2=1+2+18. Cross terms vanish in the declared normalized circle integral. Projection to |n|<=1 retains 1-2cos(x) and omits 6sin(2x). The omitted squared norm is 36/2=18. The exact norm error is 3sqrt(2), and no other polynomial in the same degree-one band has a smaller normalized-L2 error. These are mean-square quantities rather than pointwise bounds. The omitted sine has peak magnitude 6, which is larger than its norm 3sqrt(2). The signs in the imaginary coefficients are fixed by exp(-i*n*x) in the coefficient integral and would reverse under a different Fourier convention.

  2. Use period 6 on [-3, 3] for f(x)=5cos(2pi*x/3). Identify the nonzero coefficient indices, their values, the normalized mean-square, and the frequency units if x is a length.

    Show the answer and reasoning

    Using e_n=exp(i*n*pi*x/3), the only coefficients are c_2=c_{-2}=5/2. The normalized mean-square is 25/2. The angular spatial frequency is 2pi/3 in inverse length units, and the cycles-per-length frequency is 1/3.

    The chosen interval has half-period L=3, so its basis is exp(i*n*pi*x/3), not exp(i*n*x). The cosine argument 2pi*x/3 therefore has index n=2. Euler’s identity splits it into coefficients 5/2 at n=2 and n=-2, with zero mean and no other frequencies. Normalize by 1/6 when integrating over [-3, 3]. Orthogonality gives the mean-square as 2*(5/2)^2=25/2. The unnormalized integral is 6 times this value, namely 75 when the coordinate interval is expressed in the stated numerical length unit; the two squared norms must not be interchanged. If x is dimensional, the half-period is 3 length units. Thus k_2=2pi/(3 length units), and k_2*x is dimensionless. Dividing the angular spatial frequency by 2pi gives 1/(3 length units). The integer mode index 2 is dimensionless and is not itself the physical frequency. The function also has a smaller fundamental period 3 length units, but the problem deliberately uses a period-six basis. A mode may have index 2 within that chosen circle even when it is the fundamental oscillation of the function itself. Coefficients and reconstruction are meaningful only after the period convention is fixed.

  3. Let f be 1 on (0, pi) and 0 on (-pi, 0), periodically extended. Derive its real coefficients, the series limit at zero and its squared normalized-L2 norm. Does assigning f(0)=999 change any coefficient?

    Show the answer and reasoning

    a_0=1, a_n=0 for n>=1, and b_n=[1-(-1)^n]/(pi*n). Thus the series has constant 1/2 and odd sine coefficients 2/(pi*n). Its limit at zero is 1/2, the squared normalized-L2 norm is 1/2, and changing f(0) to 999 changes no coefficient.

    The integral of f over the circle is pi, so a_0=1 and the constant term is 1/2. For n>=1, the cosine integral over (0, pi) is zero. The sine integral gives b_n=(1/pi)*integral_0^pi sin(nx)dx=[1-(-1)^n]/(pi*n), which is 2/(pi*n) for odd n and zero for even n. The function has left trace 0 and right trace 1 at zero. Its piecewise constant periodic extension has bounded variation, so the midpoint theorem gives limit 1/2 there. Every finite Fourier sum already equals 1/2 at zero because all its nonconstant terms are sines. The periodic endpoint jump has the same averaged limit. The squared normalized-L2 norm is the average of f^2, which equals the fraction 1/2 of the circle on which f=1. Its mean energy is 1/4 and its nonconstant energy is therefore 1/4. Parseval would express that remainder as (1/2)*sum_{n odd}[2/(pi*n)]^2, consistent with the previously derived odd reciprocal-square sum. A value at one isolated point has zero integral mass. Assigning f(0)=999 changes neither the real or complex coefficients, nor the L2 norm, nor any partial sum. It changes a chosen representative’s point value, which is why coefficient uniqueness cannot force that representative to agree everywhere with the series.

  4. For f(x)=x on [-pi, pi], compute both terms in the derivative-coefficient integration-by-parts identity for n!=0. Explain why c_n(fprime)=i*n*c_n(f) would be wrong here, and state the n=0 identity.

    Show the answer and reasoning

    For n!=0, c_n(fprime)=0, the endpoint term is (-1)^n, and i*n*c_n(f)=-(-1)^n, so they cancel. At n=0, the interval derivative has mean 1 and the endpoint term is 1. The interval function’s traces are not periodic.

    The ordinary interval derivative is fprime=1, whose nonzero Fourier coefficients vanish. From the sawtooth calculation, c_n(f)=i(-1)^n/n for n!=0. Therefore i*n*c_n(f)=-(-1)^n, which by itself would incorrectly predict a nonzero coefficient for the constant derivative. The actual endpoint contribution is [f(pi)exp(-i*n*pi)-f(-pi)exp(i*n*pi)]/(2pi). Here f(pi)=pi, f(-pi)=-pi, and both exponentials equal (-1)^n. Thus the term is (-1)^n. Adding it to -(-1)^n gives 0, the correct coefficient of the ordinary derivative. For n=0, the derivative mean is 1. The endpoint quotient is (pi-(-pi))/(2pi)=1, and the i*n*c_n term is zero. This branch is the fundamental theorem of calculus, and it also exposes the nonzero net change over the interval. Discarding the boundary term would require matching traces f(pi)=f(-pi), which are absent. The derivative of the discontinuous periodic extension is instead a periodic distribution containing the endpoint jump contribution; it is different from the ordinary interval function 1. Interval smoothness cannot replace periodic trace compatibility.

  5. Assume f is periodic C3 with normalized norm(f_tripleprime)_1<=6. Derive a certified uniform tail bound for S_N, N>=1, and a sufficient integer N for error<=1/100. Is that N necessary?

    Show the answer and reasoning

    The uniform tail is at most 6/N^2. Taking N>=25 is sufficient for error<=1/100 under this bound. It is not a necessary cutoff for the actual function.

    Periodic C3 regularity supplies the integration-by-parts trace conditions through the third derivative argument. For n!=0, the coefficient magnitude is at most 6/|n|^3. The mean coefficient is unrestricted but is retained in every S_N, so no mean bound is needed for the tail estimate. The two-sided absolute tail is at most 12sum_{n>N}n^{-3}. For N>=1, the decreasing-integral comparison gives sum_{n>N}n^{-3}<=integral_N^infinity t^{-3}dt=1/(2N^2). The uniform error is therefore at most 6/N^2. Absolute convergence and coefficient uniqueness identify the sum with the continuous periodic target. To make this certificate at most 1/100, it suffices that N^2>=600. Since 24^2=576 and 25^2=625, N=25 is the smallest integer meeting this particular sufficient inequality. At N=25, the bound is 6/625, which is below 1/100 because 600<625. The bound may be conservative: coefficients may be smaller, vanish beyond a finite band, or cancel at a specified point. Failing the inequality at N=24 does not prove actual error above tolerance. The stated conclusion also depends on the actual derivative norm and periodic regularity, not an observed finite spectral slope.

  6. Project f=1+cos(x)+2sin(2x) onto span{1, cos(x)} in normalized L2. Compute the best squared error and the squared error for q=4-cos(x), and verify the Pythagorean decomposition.

    Show the answer and reasoning

    The projection is p=1+cos(x), with squared error 2. For q=4-cos(x), the squared error is 13=2+11, where 11=norm(p-q)_2^2.

    The constant and cos(x) are orthogonal, with squared norms 1 and 1/2. The term 2sin(2x) is orthogonal to both. Thus projection retains p=1+cos(x), and the residual is 2sin(2x). Its squared normalized-L2 norm is 4*(1/2)=2. The candidate q=4-cos(x) lies in the same approximation space. The difference p-q=-3+2cos(x) has squared norm 9+4/2=11. Its cross term with the residual 2sin(2x) vanishes by the finite trigonometric orthogonality identities. Therefore norm(f-q)_2^2=norm(f-p)_2^2+norm(p-q)_2^2=2+11=13. Direct expansion agrees: f-q=-3+2cos(x)+2sin(2x), whose orthogonal component energies are 9, 2 and 2. The positive extra 11 shows why q cannot improve on the projection in this norm. The cosine coefficient was obtained by dividing its inner product by the actual squared basis norm 1/2; confusing orthogonality with unit normalization would produce a wrong retained coefficient. The identity does not compare pointwise peak errors.

  7. Write F_2 as a cosine polynomial, compute F_2(pi/2) and D_2(pi/2), and explain the significance of their signs and common normalized mass.

    Show the answer and reasoning

    F_2=1+(4/3)cos(x)+(2/3)cos(2x), so F_2(pi/2)=1/3. D_2=1+2cos(x)+2cos(2x), so D_2(pi/2)=-1. Both have normalized integral 1, but only the Fejér kernel is nonnegative everywhere.

    For N=2, the complex Fejér weights are 1 at frequency 0, 2/3 at each of frequencies 1 and -1, and 1/3 at each of frequencies 2 and -2. Combining conjugate terms gives F_2=1+(4/3)cos(x)+(2/3)cos(2x). The Dirichlet kernel has all five complex weights equal to 1, so D_2=1+2cos(x)+2cos(2x). At x=pi/2, the first cosine vanishes and cos(2x)=-1. Therefore F_2(pi/2)=1-2/3=1/3, whereas D_2(pi/2)=1-2=-1. This explicit negative Dirichlet value rules out interpreting D_2 as a nonnegative averaging density. Integrating either finite cosine polynomial over the circle removes every nonconstant mode. Each has normalized integral 1 because its constant term is 1. The Fejér squared-magnitude formula additionally proves F_2>=0 everywhere; its positive mass therefore makes convolution a convex average of input values. A signed kernel can have the same total mass and still overshoot the input range because positive and negative weights cancel in that mass. The difference explains the range-preserving Fejér property and why it cannot be inferred for ordinary Fourier projection from the unit-integral identity alone.

  8. Suppose continuous periodic f has norm(f)_infinity<=B and modulus of continuity omega_f(delta)<=K*delta^alpha, 0<alpha<=1. Use sin(delta/2)>=delta/pi to derive a Fejér bound of order (N+1)^(-alpha/(alpha+2)) with an explicit constant. Must this crude bound be optimal?

    Show the answer and reasoning

    Choosing delta=(N+1)^(-1/(alpha+2)) gives norm(sigma_N f-f)_infinity<=(K+2B*pi^2)*(N+1)^(-alpha/(alpha+2)). It is sufficient and is not an optimality theorem; more accurate kernel integration gives sharper bounds for this Hölder class.

    The positive-kernel split gives error at most omega_f(delta)+2B/[(N+1)sin^2(delta/2)]. For 0<delta<=pi, the stated sine inequality bounds this by K*delta^alpha+2B*pi^2/[(N+1)delta^2]. All quantities are in the same signal units, and K, B are actual upper bounds rather than fitted spectral constants. Set delta=(N+1)^(-1/(alpha+2)) for N>=0. This choice lies in (0, 1], so it is inside the allowed circle range. Its alpha power is (N+1)^(-alpha/(alpha+2)), and 1/[(N+1)delta^2] has exactly the same power. Adding the two coefficients gives the explicit bound (K+2B*pi^2)*(N+1)^(-alpha/(alpha+2)). The estimate is uniform in x and converges to zero because alpha>0. It remains a sufficient upper bound, not a lower bound or the best possible error for an individual function. A constant function is reproduced exactly, for example, although a bound using an unnecessarily positive B need not vanish at finite N. The class rate can also be sharpened directly: for 0<t<=pi, F_N(t)<=min(N+1, pi^2/[(N+1)t^2]). Integrating K*t^alpha against this bound and splitting at 1/(N+1) gives order (N+1)^(-alpha) for 0<alpha<1, and order log(N+1)/(N+1) for alpha=1. Thus the earlier coarse exponent arose from its single far-region bound; it does not describe an unavoidable approximation barrier.

  9. If sum_{n in Z}n^2|c_n|^2<=9, what normalized-L2 tail bounds follow for S_2 and S_5? Does the hypothesis by itself give the same pointwise error bounds?

    Show the answer and reasoning

    The normalized-L2 error bounds are 1 for S_2 and 1/2 for S_5. They are not the same uniform pointwise bounds. The weighted hypothesis does permit a different continuous-representative uniform estimate, at most 3sqrt(2/N) for N>=1.

    Use s=1 and M=3 in the weighted-energy theorem. For every N>=0, norm(f-S_N f)_2<=3/(N+1). Hence N=2 gives 1 and N=5 gives 1/2. The zero-frequency coefficient does not affect the omitted energy and need not be separately bounded. These estimates can be saturated by the single omitted real mode f_N(x)=[3sqrt(2)/(N+1)]cos((N+1)x). Its two coefficients each have magnitude 3/[sqrt(2)(N+1)], so sum n^2|c_n|^2=9. Its projection S_N is zero, and its L2 norm is 3/(N+1), but its peak magnitude is 3sqrt(2)/(N+1). Thus the same numerical L2 bound fails as a uniform bound, including at N=2 and N=5. The hypothesis is nevertheless strong enough for another pointwise estimate on the continuous representative. Cauchy–Schwarz bounds the absolute tail by [sum n^2|c_n|^2]^(1/2)*[sum_{|n|>N}1/n^2]^(1/2). For N>=1, the second squared factor is at most 2/N, so the uniform error is at most 3sqrt(2/N). This has a different constant and decay power from the L2 estimate. Absolute tail summability selects a continuous representative, as is consistent with periodic H1 in one dimension. An arbitrary redefinition at an isolated point still cannot be controlled by integral coefficients. Stating the norm, representative and regularity makes the pointwise claim precise instead of concluding that L2 information either gives the identical bound or gives no useful bound at all.

  10. A periodic function is zero except that its value at zero is 7. Determine its Fourier coefficients, normalized-L2 norm and partial sums. Explain which uniqueness statement survives and which pointwise equality fails.

    Show the answer and reasoning

    Every coefficient and the normalized-L2 norm are zero, and S_N is identically zero for every N. The function is the zero L2 equivalence class but its assigned value at zero does not equal the Fourier sum there.

    A singleton has zero Lebesgue measure. The integral of the function against every bounded exponential is therefore zero, even though its assigned value at zero is 7. Thus c_n=0 for every integer n, including the mean. The same observation applies to the real sine and cosine coefficient integrals. The integral of the squared magnitude also vanishes, so norm(f)_2=0. Each finite S_N is a sum of zero coefficients and is the zero function at every point. It converges in L2 to the equivalence class of f and pointwise to zero everywhere. The coefficients uniquely identify f up to equality almost everywhere, which is precisely the zero equivalence class. They do not identify this particular representative’s exceptional value. At x=0, the partial sums have limit 0 while the declared representative has value 7. No contradiction with the L1/L2 uniqueness theorem occurs. If a continuous representative were required, the unique continuous choice with these coefficients would be identically zero. Imposing continuity is additional information and would exclude the isolated 7 assignment. Integral error guarantees and everywhere equality must therefore be distinguished even in this elementary example.

  11. Take c_n=1/(|n|+1) for all integer n. Does this sequence define an L2 function? Compute its squared normalized-L2 norm, decide whether it has an L2 weak first derivative, and examine S_N(0).

    Show the answer and reasoning

    Yes. The squared normalized-L2 norm is pi^2/3-1. There is no L2 weak first derivative because sum n^2|c_n|^2 diverges. At zero, S_N(0)=2H_{N+1}-1 tends to positive infinity despite L2 convergence.

    The square sum is 1+2sum_{n>=1}1/(n+1)^2=1+2(pi^2/6-1)=pi^2/3-1, which is finite. The coefficient existence theorem therefore supplies a unique L2 equivalence class with this sequence, and Parseval gives exactly that squared norm. The sequence is real and even, so the class has a real even representative. For n>=1, the weighted terms n^2/(n+1)^2 are at least 1/4 and tend to 1. Their sum diverges, and adding negative indices cannot restore convergence. The weak-derivative characterization therefore rules out an L2 periodic first derivative. Square summability of c_n alone is insufficient for this stronger regularity. At x=0, every exponential equals 1, so S_N(0)=1+2sum_{n=1}^N1/(n+1)=2H_{N+1}-1. The harmonic sum diverges, which proves divergence at this point directly. No value assigned to an L2 representative at zero can make these partial sums converge there. Nevertheless, the symmetric partial sums converge in L2 because their omitted square energy tends to zero. This one-point divergence does not negate that norm convergence or an almost-everywhere assertion under a separately justified theorem. The calculation demonstrates exactly why Parseval alone cannot give convergence at every point.

  12. For f=2+sin(x), find the anchored periodic primitive of f-c_0 starting at x=-pi, and its mean. Why is there no periodic absolutely continuous primitive of the full f?

    Show the answer and reasoning

    c_0=2 and F(x)=-cos(x)-1 is the anchored primitive of f-c_0. Its mean is -1 and its endpoint values are both zero. The full f has integral 4pi over a period, so it cannot be the derivative of a periodic absolutely continuous function.

    The mean of sin(x) is zero, so c_0(f)=2. Subtracting the mean leaves g=sin(x). Integrating from -pi gives F(x)=integral_{-pi}^x sin(t)dt=-cos(x)+cos(-pi)=-cos(x)-1. Differentiation yields Fprime=sin(x) as required. At both endpoints, cos(pi)=cos(-pi)=-1, so F(-pi)=F(pi)=0. The constant term -1 gives mean(F)=-1 because the cosine has mean zero. Anchoring the primitive at a point fixes a constant that need not give a zero-mean primitive. The nonzero Fourier coefficients are consistent with division by i*n: sin(x) has c_1=-i/2 and c_{-1}=i/2, and F has coefficients -1/2 at both indices. Its constant coefficient -1 is chosen by the anchor rather than determined by differentiation. Adding 1 would give a zero-mean primitive with a different anchor value. For the full f, the integral over a period is 2*(2pi)=4pi. An absolutely continuous periodic primitive would have endpoint difference zero by periodicity and 4pi by the fundamental theorem, which is impossible. Changing the integration constant cannot alter this net change; removing the mean changes the differentiated target explicitly.

  13. For f=1 on [0, L], derive the half-range sine coefficients, the endpoint limits and the squared normalized error after retaining sine indices 1 through 3. Compare with the cosine expansion.

    Show the answer and reasoning

    b_n=2[1-(-1)^n]/(n*pi), so the retained sine sum is (4/pi)[sin(pi*x/L)+sin(3pi*x/L)/3]. It has squared normalized error 1-80/(9pi^2), equals the data in the interior in the infinite limit, and has endpoint limits 0. The cosine expansion is the exact constant 1.

    For L>0, b_n=(2/L)*integral_0^L sin(n*pi*x/L)dx=2[1-(-1)^n]/(n*pi). Only odd indices occur, with value 4/(n*pi). Retaining indices 1 through 3 therefore keeps the first and third sine modes and omits the second, whose coefficient is zero. The normalized interval norm uses dx/L. The constant target has squared norm 1, and the retained orthogonal sine energy is (1/2)[(4/pi)^2+(4/(3pi))^2]=80/(9pi^2). The exact projection identity gives the squared error 1-80/(9pi^2). It is positive because 9pi^2>81>80, using pi>3. The odd extension is 1 on the positive half and -1 on the negative half, so it has jumps at both reflected endpoints. The ordinary sine series converges to 1 for 0<x<L and to the midpoint 0 at x=0 and L. This is compatible with L2 convergence but not uniform agreement with a representative that assigns endpoint value 1. The even extension is simply the constant 1. Its cosine data are a_0=2 and all a_n=0 for n>=1, so the constant term a_0/2 reconstructs it exactly with zero error. The two extensions impose different boundary behavior even though they start from the same interior interval data.

  14. Use P_4=(35x^4-30x^2+3)/8 to find the best unweighted degree-two Legendre projection of x^4 on [-1, 1] and its squared error integral.

    Show the answer and reasoning

    x^4=(1/5)P_0+(4/7)P_2+(8/35)P_4. The best degree-two polynomial is (6/7)x^2-3/35, and its squared unweighted error integral is 128/11025.

    Rearrange the given identity as 35x^4=8P_4+30x^2-3. Substitute x^2=(P_0+2P_2)/3 to obtain 35x^4=8P_4+7P_0+20P_2. Division by 35 gives the exact expansion with coefficients 1/5, 4/7 and 8/35. Projection onto degree at most two retains P_0 and P_2; odd basis components are absent by evenness. The retained polynomial is 1/5+(4/7)*(3x^2-1)/2=(6/7)x^2-3/35. Orthogonality makes it the unique minimizer in the unweighted interval-L2 norm. The residual is (8/35)P_4. Since the unweighted squared norm of P_4 is 2/9, the residual integral is (64/1225)*(2/9)=128/11025. There are no cross terms with retained lower-degree components. If the measure were dx/2, the squared error would be 64/11025 instead. The raw polynomial itself is unchanged by multiplying the entire measure by a constant, but changing to a nonconstant weight generally changes the minimizing polynomial. The next exercise uses that different geometry explicitly.

  15. Use T_4=8x^4-8x^2+1 to find the best degree-two Chebyshev projection of x^4 with weight 1/sqrt(1-x^2), and its squared weighted error integral. Compare its polynomial with the unweighted projection.

    Show the answer and reasoning

    x^4=(3/8)T_0+(1/2)T_2+(1/8)T_4. The best weighted degree-two polynomial is x^2-1/8, and its squared weighted error integral is pi/128. It differs from the unweighted polynomial(6/7)x^2-3/35.

    Rearrange T_4=8x^4-8x^2+1 and use x^2=(T_2+T_0)/2. Then 8x^4=T_4+4T_2+3T_0, giving coefficients 3/8, 1/2 and 1/8. The constant 3/8 is the coefficient multiplying T_0 directly; in an a_0/2 notation the symbol a_0 would be 3/4. The weighted orthogonal projection keeps T_0 and T_2. In ordinary powers it is 3/8+(1/2)(2x^2-1)=x^2-1/8. The residual equals T_4/8 and is orthogonal to every polynomial of degree at most two under the Chebyshev weight. The actual positive-index squared norm is integral T_4^2/sqrt(1-x^2)dx=pi/2. Multiplying by the squared residual coefficient 1/64 gives pi/128. The endpoint-singular weight is integrable, and the substitution x=cos(theta)reduces the calculation to a cosine norm on [0, pi]. The unweighted minimizer is (6/7)x^2-3/35 rather than x^2-1/8. Neither formula contradicts the other: the weights value errors differently, especially near endpoints. One must compare candidates in the same declared measure before claiming that one has a smaller approximation error.

  16. On [0, 1], u=1 satisfies the Neumann problem -u_doubleprime=0, and v=sin(pi*x) satisfies the Dirichlet eigenproblem -v_doubleprime=pi^2*v. Compute their inner product and explain why distinct eigenvalues do not force their orthogonality across these different boundary domains.

    Show the answer and reasoning

    Their unweighted inner product is 2/pi, not zero. They satisfy different boundary domains, so the common self-adjoint boundary-form hypothesis is absent. The Green boundary term equals -2pi and exactly accounts for the nonzero product.

    The constant u=1 has zero derivative at both endpoints and eigenvalue 0 for the Neumann realization of -d^2/dx^2. The function v=sin(pi*x) vanishes at both endpoints and has eigenvalue pi^2 for the Dirichlet realization. These are two different operator domains even though the differential expressions are the same. Direct integration gives integral_0^1 u*v dx=[-cos(pi*x)/pi]_0^1=2/pi. Thus the functions are not orthogonal in the unweighted interval inner product. Distinct numerical eigenvalues alone do not remove boundary contributions from an integration-by-parts argument. The Green boundary expression for p=1 is [u*vprime-uprime*v]_0^1. Since uprime=0, it equals vprime(1)-vprime(0)=-pi-pi=-2pi. The differential-equation side is (0-pi^2)*integral u*v=-pi^2*(2/pi)=-2pi, so the full identity is satisfied exactly rather than contradicted. The orthogonality theorem requires both eigenfunctions to satisfy the same separated self-adjoint boundary conditions. Here u does not satisfy the Dirichlet conditions and v does not satisfy the Neumann ones. The example identifies the missing common-domain assumption; it does not refute orthogonality inside either single properly defined operator.

  17. Sample exp(3ix) at the five points x_j=2pi*j/5, j=0, ..., 4. Compute its discrete coefficients for indices -2 through 2 and identify a different continuous Fourier mode with identical samples. What prior assumption would make the five-point reconstruction unique?

    Show the answer and reasoning

    The discrete coefficient at index -2 is 1 and the other four are zero. The different mode exp(-2ix) has identical samples. A prior known band |n|<=2 makes the five-point reconstruction unique within that band, but the samples do not prove that prior.

    For an index n in{-2, -1, 0, 1, 2}, the discrete coefficient is (1/5)*sum_{j=0}^4 exp(i*(3-n)*2pi*j/5). The root-of-unity sum is 1 when 5 divides 3-n and 0 otherwise. Only n=-2 has difference 5; the other differences 4, 3, 2, 1 are not divisible by 5. The original continuous function has c_3=1 and all other coefficients zero, including c_{-2}=0. The nonzero discrete value at -2 is therefore an alias, not the true continuous coefficient at that index. The finite sample computation identifies a residue class modulo 5. At every grid point, exp(3ix_j)/exp(-2ix_j)=exp(5ix_j)=exp(2pi*i*j)=1. Thus g(x)=exp(-2ix) produces exactly the same five data while being a different continuous Fourier mode. This equality is exact and does not depend on rounding or noise. If the target were independently known to belong to the five-dimensional band V_2, the discrete orthogonality matrix would make g the unique interpolating polynomial in that band. The actual exp(3ix) is outside it, showing why fitting finite data cannot establish the band hypothesis. No claim about arbitrary L2 point samples follows from this finite polynomial identity.

  18. A normalized-L2 Fourier tail is bounded by 1/20. Retained coefficient errors are delta_c0=1/100, delta_c1=(3+4i)/100 and delta_cminus1=(3-4i)/100, with all others zero; the evaluation error is bounded by 1/100. Derive the combined norm certificate and decide whether it certifies tolerances 1/10 and 9/100. Does a failed certificate prove actual failure?

    Show the answer and reasoning

    The retained error energy is 51/10000 and the tail energy is at most 25/10000. Including evaluation by triangle inequality gives (2sqrt(19)+1)/100. This certifies 1/10 but not 9/100. Failure of this sufficient certificate does not prove actual failure.

    The constant coefficient error has squared magnitude 1/10000. Each complex pair member has magnitude sqrt(3^2+4^2)/100=5/100 and squared magnitude 25/10000. The retained-coordinate squared error is therefore (1+25+25)/10000=51/10000. The conjugate pair and real constant are consistent with a real reconstruction error. The omitted coefficient error is orthogonal to the retained band. Its norm bound 1/20 has square 25/10000, so the exact-polynomial error norm is bounded by sqrt(76)/100=2sqrt(19)/100. Evaluation error need not be orthogonal to either part; adding its norm 1/100 by triangle inequality gives the final bound (2sqrt(19)+1)/100. For tolerance 1/10, it suffices to check 2sqrt(19)+1<10, which follows from 19<81/4. For tolerance 9/100, the same bound is too large because 2sqrt(19)+1>9, equivalently 19>16. These exact comparisons avoid relying on a rounded decimal near the threshold. The failed 9/100 certificate is inconclusive rather than an actual error lower bound. The actual tail and evaluation error may be smaller than their upper limits; for example, if both are zero, the error is sqrt(51)/100<9/100. Placing the evaluation bound’s square inside the orthogonal sum without an orthogonality proof would incorrectly strengthen the certificate.

What to carry forward

  • A Fourier coefficient is a projection onto a declared normalized mode. The period sets the frequency scale; the normalization determines the coefficient and energy units.
  • Finite orthogonal projection is a best L2 approximation before any infinite completeness theorem is proved. Completeness and Parseval require a separate argument.
  • L2 convergence controls integrated squared error and ignores prescribed values on null sets. Pointwise and uniform conclusions need their own assumptions and proofs.
  • Ordinary partial sums use a signed Dirichlet kernel; Fejer means use a positive approximate identity. At a jump, persistent overshoot can coexist with a shrinking spatial layer and vanishing L2 error.
  • A derivative multiplier i*n is valid for periodic traces or periodic weak derivatives. Smooth interval data with unmatched endpoints do not automatically satisfy that contract.
  • Wave energy, heat damping and Poisson compatibility follow from the same modal language, with different time multipliers, boundary domains and zero-mode conditions.
  • Legendre and Chebyshev systems use different weights and squared norms. Orthogonality, infinite completeness and accurate numerical coefficient integration are distinct facts.
  • Finite samples recover only a justified frequency band. A conditional expansion-error certificate combines omitted energy, coefficient error and evaluation error without certifying the physical or perceptual model.

References

Sources for the concepts and teaching approaches in this article.

  1. Introduction to Functional Analysis, Spring 2021; lecture dated April 13, 2021MIT OpenCourseWare; course instructor Casey RodriguezUniversity lecture notes · PDF18.102 Lecture 15: Orthonormal Bases and Fourier Series18.102 Lecture 16: Fejer’s Theorem and Convergence of Fourier Seriesocw.mit.edu
  2. Applied Analysis, Chapter 7: Fourier SeriesJohn K. Hunter and Bruno NachtergaeleUniversity mathematical text · PDFmath.ucdavis.eduRead source
  3. Notes on the algebraic structure of wave equationsSteven G. JohnsonUniversity mathematical physics notes · PDFocw.mit.eduRead source