The period-one extension of on has Fourier series . Endpoint agreement makes the periodic function continuous. Its derivative series is , which equals in the open unit interval and converges to zero at integers, the midpoint of the derivative's jump. Termwise differentiation of a Fourier series applies locally away from the corners.
The period- extension of on has Fourier coefficients and . Consequently
The Fourier series converges to the ramp away from its jumps and to zero at every jump, the average of the one-sided limits. For , Termwise differentiation of a Fourier series fails here as an ordinary convergent series: the differentiated summands have nondecaying amplitude . The classical derivative equals between jumps, whereas the periodic distributional derivative includes negative point masses of weight at the jumps.
Let . Under the first coefficient bounds,
This proves the uniform Cauchy condition on the whole real line and hence uniform convergence to . It is the Weierstrass M-test applied with the summable majorant . Every partial sum is continuous. To see continuity of the limit explicitly, at a chosen first choose with small uniform error; then make small by continuity. The inequality
proves continuity. Also for every , so taking limits gives .
Under the stronger coefficient bounds, the derivative series has summable uniform majorant . Thus converges uniformly to a continuous function given by that series. The original series also converges uniformly. On any finite interval, the fundamental theorem of calculus gives . Uniform convergence permits passage to the limit inside this finite integral, since the error is at most . Therefore , and continuity of gives . This justifies Termwise differentiation of a Fourier series rather than assuming it:
The endpoint agreement makes the boundary terms vanish when integrating the Fourier coefficients of by parts. If denote these coefficients, then
These are exactly the coefficients obtained by differentiating the preceding Fourier series:
On every compact subinterval of the differentiated series converges uniformly by the Dirichlet test, since partial sums of the sine factors are uniformly bounded there. The Termwise differentiation of a Fourier series is therefore valid away from integers and gives on . At an integer the periodic original has a corner, so the differentiated series is not asserting the existence of an ordinary derivative there.
Expand the unknown in Fourier modes:
By Termwise differentiation of a Fourier series,
Also,
Therefore the coefficient of on the left-hand side is
The right-hand side has coefficients
because the coefficient of each of is and the constant coefficient is one. Hence the Fourier spectral system for a cosine-modulated second derivative is
Its coefficient array is an infinite tridiagonal matrix.
For a spectral truncation, retain the modes , set
and impose the displayed coefficient equation for every . This gives an explicit -dimensional tridiagonal system. The resulting finite Fourier series automatically satisfies the periodic boundary conditions.
Termwise differentiation of a Fourier series multiplies a mode by its wavenumber, so
The convolution theorem turns pointwise multiplication into discrete convolution:
so
The assumed real analyticity justifies these termwise operations through rapid decay of the Fourier coefficients.
Not as ordinary convergent Fourier series, for a nontrivial moving ramp. Formal spatial differentiation would give
and formal time differentiation multiplies that expression by . The summands have nondecaying amplitude and do not tend to zero, so the ordinary series cannot converge. The periodic extension has jumps, violating the regularity needed for Termwise differentiation of a Fourier series.
Away from the moving jumps, the classical derivatives exist and are and . A distributional derivative also includes the Dirac delta distribution contributions at the jumps, so distributional differentiation is possible, but it is a different interpretation. If , the time derivative is trivially zero; if , both derivatives are zero.
Termwise differentiation of a Fourier series, applied to the continuous periodic extension in part (c), gives for
Hence the required Fourier sine series is
The endpoint deserves care: at every term is zero, so the Fourier series sums to , the average of the periodic one-sided limits and . It therefore does not reproduce the specified endpoint value . Changing a value at one point does not change any Fourier coefficient, so this is still the Fourier series of the stated function on .