Apply the cosine double-angle identity twice:
This finite trigonometric sum is already the Fourier series. In increasing harmonic order, including the constant term, the first two nonzero terms are
With the real Fourier series convention,
where the Fourier coefficients are
For a square-integrable periodic function, Parseval's identity is
The Fourier coefficients require integrability, and the stated Parseval identity requires square integrability. The expansion agrees with in the L2 space sense; for piecewise smooth data it converges pointwise to the average of the two one-sided limits. Without such qualifications an arbitrary periodic function need not have a pointwise-convergent Fourier series.
At a fixed radius, Parseval's identity applied to the preceding Fourier series gives
In polar coordinates, . Integrating over radius and interchanging the nonnegative sum and integral gives
The interchange follows from the monotone convergence theorem. This is the special case of the area norm of the Poisson extension in the unit disk for the odd step boundary data.
For period two, the Fourier series convention is
Since is an even function, every is zero. Also . For , an antiderivative useful for the cosine coefficient is
Evaluation at gives . Thus
The periodic extension is continuous at , so its Fourier series converges to there. Since ,
Therefore , with giving the same expression because only occurs. This is the case of Fourier series of periodic hyperbolic sine and cosine.
On the open interval, . It is an odd function there, so its constant and cosine coefficients vanish; assigned values at the endpoints do not affect these integrals. For its sine coefficient, integration by parts gives
Consequently
The endpoint qualification matters. The periodic has a jump discontinuity at every odd integer, with one-sided limits . By the Dirichlet-Jordan convergence theorem, the Fourier series converges to their average, zero, there, not to the assigned value . The integration by parts argument also avoids assuming unrestricted termwise differentiation of the first series.
For the period-two Fourier series of a square-integrable function , Parseval's identity states
For , write . Its coefficients are , and , because is subtracted. Therefore
The sum was obtained in part (a). As a separate check, in the interval, whose square has integral . Endpoint jumps have no effect on this integral.
Use the product-to-sum formula and the double-angle trigonometric identities:
By Fourier orthogonality, these are already its only nonzero Fourier series coefficients:
Evenness makes every sine coefficient zero. For the constant coefficient,
An integration by parts gives, for ,
The even coefficients vanish and the odd coefficients are . Therefore
The periodic function is continuous and piecewise smooth, so the Dirichlet-Jordan convergence theorem identifies the Fourier series with at every point, including the endpoints. The absolute summability of the coefficients also gives uniform convergence.
Set in the convergent Fourier series from part (b). Since and every cosine equals one,
Rearranging gives
Convergence at the evaluation point is essential when extracting a numerical series identity from a Fourier series. Here the function is continuous there and the coefficients are absolutely summable.
The standard Fourier series is
with Fourier coefficients
These follow by taking inner products with the individual basis vectors and using their orthogonality and squared norms.
A standard complete orthogonal family is the real Fourier basis
Completeness gives expansion in the L2 space for a square-integrable function. Mere integrability alone does not guarantee pointwise convergence of a Fourier series; the explicit function in part (b) is continuous and piecewise smooth, so this issue does not obstruct its expansion.
Separate the already finite sine terms from the even part . Since is an even function, it has no sine coefficients. Its constant coefficient is
For , integration by parts gives
Therefore the cosine Fourier coefficients are
Only even frequencies survive: . The sine Fourier coefficients are , , with all others zero. Hence
The periodic function is continuous at zero and at its endpoint joins, and its coefficients are absolutely summable. Thus this Fourier series represents it everywhere, including those joins.
Evaluate at , where the original expression gives . The Fourier series gives
Rearranging proves
The convergence at this point is justified by the continuity properties noted in part (b).
Use the Maclaurin series and . Multiplication gives
The same terms follow from the two sine harmonics in the Fourier series found above.
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 .
The trigonometric identity gives , and the complementary-angle trigonometric identity gives . Thus the Fourier series is already the finite expression
The only nonzero Fourier coefficients are and .
The analogous orthogonal projection onto the cosine terms gives
For , this means ; the actual constant in the Fourier series is because the constant function has squared norm .
Take the inner product of the Fourier series with . Fourier orthogonality eliminates the constant, all cosine terms, and all sine terms except the th. The remaining squared norm is
so
For a square-integrable function, the calculation is justified by taking inner products of finite Fourier partial sums and passing to their mean-square limit.
The function is an odd function, so . Here , and the Fourier coefficients are
Write . One integration by parts has zero endpoint terms because vanishes at both endpoints:
A second integration by parts gives
Therefore , zero for even and for odd . The Fourier series is
The coefficients are absolutely summable, and the periodic function is continuous even at the joins , so the displayed Fourier series represents it everywhere.