This collection of Fourier series problems covers every major topic encountered in undergraduate mathematics and engineering courses: computing Fourier coefficients, recognising even and odd functions, deriving half-range sine and cosine series, applying Parseval’s identity, and using Fourier series to solve partial differential equations such as the heat equation and wave equation. Problems are arranged by conceptual theme and progress from straightforward coefficient calculations to challenging boundary-value problems, giving you a structured path from first principles to advanced applications.
Contents7 sections
Fourier Coefficients and the Euler–Fourier Formulas
Before tackling complex waveforms, you must be confident computing the three Fourier coefficients a0, an, and bn from the Euler–Fourier formulas. The problems below build that fluency on functions defined over a period of 2π and over a general period 2L, covering piecewise-constant, polynomial, and exponential functions.
Problem 1: Square Wave on [−π,π]
Easy
Consider the 2π-periodic function defined on one period by
f(x)={−1,1,−π<x<00<x≤π
Compute all three Fourier coefficients a0, an, and bn.
Write out the full Fourier series and identify which terms are zero and why.
Hint
Because f is an odd function (f(−x)=−f(x)), all cosine coefficients vanish immediately. Focus your integration effort entirely on the sine coefficients bn.
View Solution
Solution to part 1:
Since f is odd, a0=0 and an=0 for all n≥1. For bn:
bn=π1∫−ππf(x)sin(nx)dx=π2∫0πsin(nx)dx=π2[−ncos(nx)]0π=nπ2(1−cos(nπ))=nπ2(1−(−1)n)
Thus bn=nπ4 when n is odd, and bn=0 when n is even.
Solution to part 2:f(x)∼π4k=0∑∞2k+1sin((2k+1)x)=π4(sinx+3sin3x+5sin5x+⋯)
The series contains only odd-indexed sine terms because f is odd (no cosines) and the even-indexed sines cancel due to the specific jump symmetry.
Problem 2: Fourier Series of f(x)=x on [−π,π]
Easy
Let f(x)=x on (−π,π), extended periodically with period 2π.
Compute the Fourier series of f.
To what value does the series converge at x=π? Explain using the Dirichlet convergence theorem.
Hint
Again, f(x)=x is an odd function on a symmetric interval, so a0=an=0. Use integration by parts to evaluate bn=π2∫0πxsin(nx)dx. At a jump discontinuity the series converges to the average of the left and right limits.
View Solution
Solution to part 1:
Since f is odd, only sine terms survive. Using integration by parts:
bn=π2∫0πxsin(nx)dx=π2[−nxcos(nx)+n2sin(nx)]0π=n2(−1)n+1f(x)∼2n=1∑∞n(−1)n+1sin(nx)=2(sinx−2sin2x+3sin3x−⋯)Solution to part 2:
At x=π the periodic extension has a jump discontinuity: f(π−)=π and f(π+)=−π. By the Dirichlet theorem the series converges to
2f(π−)+f(π+)=2π+(−π)=0
which is consistent because every sin(nπ)=0.
Problem 3: Fourier Series of f(x)=x2 on [−π,π]
Easy
Let f(x)=x2 on [−π,π], extended 2π-periodically.
Find the complete Fourier series of f.
Substitute an appropriate value of x to deduce the identity n=1∑∞n21=6π2.
Hint
f(x)=x2 is even, so bn=0 for all n. Compute a0 directly and use integration by parts twice for an. Once you have the series, set x=π where the series converges to f(π)=π2.
View Solution
Solution to part 1:a0=π1∫−ππx2dx=32π2an=π2∫0πx2cos(nx)dx=n24(−1)nf(x)∼3π2+4n=1∑∞n2(−1)ncos(nx)Solution to part 2:
Since f is continuous everywhere on [−π,π] and the periodic extension is continuous, the series converges to f(π)=π2 at x=π:
Problem 4: Fourier Series on a General Interval [−L,L]
Medium
Let L=2 and define the 4-periodic function
f(x)={0,x,−2≤x<00≤x<2
Compute the Fourier series of f on [−2,2].
Determine the sum of the series at x=0 and at x=2.
Hint
For a period-2L function the formulas become an=L1∫−LLf(x)cos(Lnπx)dx and similarly for bn. This function is neither even nor odd, so you must compute all three coefficients. Use the Dirichlet theorem at the discontinuity points x=0 and x=±2.
View Solution
Solution to part 1:a0=21∫−22f(x)dx=21∫02xdx=1an=21∫02xcos(2nπx)dx=n2π22((−1)n−1)
So an=−n2π24 for odd n, and an=0 for even n≥2.
bn=21∫02xsin(2nπx)dx=nπ−2(−1)nf(x)∼21−π24k=0∑∞(2k+1)2cos(2(2k+1)πx)+n=1∑∞nπ−2(−1)nsin(2nπx)Solution to part 2:
At x=0: the left limit (approaching from below in the periodic extension) gives f(0−)=0 and f(0+)=0, so the series converges to 0.
At x=2: the periodic extension has f(2−)=2 and f(2+)=0 (start of next period), so the series converges to 22+0=1.
Even and Odd Functions: Symmetry and Half-Range Extensions
Recognising whether a function is even or odd — or constructing an even or odd periodic extension — can halve the computation. These problems practise the half-range cosine series and half-range sine series, a topic that appears frequently in heat and wave problems with specific boundary conditions.
Problem 5: Half-Range Sine Series of f(x)=x on [0,π]
Easy
Given f(x)=x for 0<x<π, construct its half-range sine series.
Compute the sine coefficients bn and write the series.
Sketch the odd periodic extension of f over three periods and identify where the series converges to a value different from f(x).
Hint
For a half-range sine series on [0,L] use bn=L2∫0Lf(x)sin(Lnπx)dx. The odd extension maps f(x) to −f(−x) for −π<x<0, making it 2π-periodic. The extension is discontinuous at the endpoints 0,±π,±2π,…
View Solution
Solution to part 1:bn=π2∫0πxsin(nx)dx=n2(−1)n+1f(x)∼2n=1∑∞n(−1)n+1sin(nx),0<x<πSolution to part 2:
The odd periodic extension fodd satisfies fodd(−x)=−fodd(x) and has period 2π. It has jump discontinuities at x=0,±π,±2π,… where the one-sided limits are ±π. At each such point the series converges to 0 (the average of π and −π), while the original function values are 0 or π.
Problem 6: Half-Range Cosine Series of f(x)=x2 on [0,1]
Easy
Consider f(x)=x2 on [0,1]. Construct the half-range cosine series.
Derive the coefficients a0 and an and state the series.
Use the result at x=0 to find a closed-form expression for n=1∑∞n2π2(−1)n+1.
Hint
The half-range cosine series on [0,L] uses a0=L2∫0Lf(x)dx and an=L2∫0Lf(x)cos(Lnπx)dx. After finding the series, substitute x=0 where f(0)=0, since the even extension is continuous there.
View Solution
Solution to part 1:a0=2∫01x2dx=32,an=2∫01x2cos(nπx)dx=n2π24(−1)nf(x)∼31+π24n=1∑∞n2(−1)ncos(nπx),0≤x≤1Solution to part 2:
At x=0 the even extension is continuous and equals f(0)=0:
Problem 7: Comparing Sine and Cosine Extensions of f(x)=π−x
Medium
Let f(x)=π−x on [0,π].
Find the half-range sine series of f.
Find the half-range cosine series of f.
At x=π/2, determine the value each series converges to, and confirm it equals f(π/2).
Hint
Both f and its extensions are piecewise smooth. For the sine series, integrate by parts. For the cosine series, note that π−x is neither even nor odd but its even extension is a triangle wave. At x=π/2 both extensions are continuous, so both series converge to f(π/2)=π/2.
View Solution
Solution to part 1 (Sine series):bn=π2∫0π(π−x)sin(nx)dx=n2f(x)∼2n=1∑∞nsin(nx)=2(sinx+2sin2x+3sin3x+⋯)Solution to part 2 (Cosine series):a0=π2∫0π(π−x)dx=π,an=π2∫0π(π−x)cos(nx)dx=n2π2(1−(−1)n)
So an=n2π4 for odd n, and 0 for even n.
f(x)∼2π+π4k=0∑∞(2k+1)2cos((2k+1)x)Solution to part 3:
At x=π/2 both extensions are continuous. Each series converges to f(π/2)=π−π/2=π/2. One may verify this for the cosine series by noting cos((2k+1)π/2)=0 for all k, leaving only the constant term π/2. ✓
Parseval’s Identity and Norm Calculations
Parseval’s identity links the energy of a function to its Fourier coefficients, providing both a powerful computational shortcut and a way to derive classic infinite series identities. Mastering it is essential for signal processing and functional analysis.
Problem 8: Applying Parseval’s Identity to Derive π4/90
Medium
Recall that the Fourier series of f(x)=x2 on [−π,π] is
f(x)∼3π2+4n=1∑∞n2(−1)ncos(nx)
State Parseval’s identity for a 2π-periodic function in terms of a0, an, bn.
Apply it to the Fourier series of f(x)=x2 to prove that n=1∑∞n41=90π4.
Hint
Parseval’s identity for period 2π reads π1∫−ππ∣f(x)∣2dx=2a02+∑n=1∞(an2+bn2). Compute the left-hand side directly, then substitute the known coefficients on the right.
View Solution
Solution to part 1:π1∫−ππ∣f(x)∣2dx=2a02+n=1∑∞(an2+bn2)Solution to part 2:
Problem 9: Parseval’s Identity for a Piecewise Function
Medium
Let f(x) be the 2π-periodic function with f(x)=x on (−π,π).
Use the Fourier series from Problem 2 and Parseval’s identity to prove n=1∑∞n21=6π2 independently of Problem 3.
Interpret Parseval’s identity physically: what does each side represent in terms of signal energy?
Hint
From Problem 2, bn=n2(−1)n+1 and all cosine coefficients are zero. Compute π1∫−ππx2dx on the left side of Parseval’s identity and match with the sum of squared coefficients on the right.
View Solution
Solution to part 1:π1∫−ππx2dx=32π2n=1∑∞bn2=n=1∑∞n24
Parseval: 32π2=4n=1∑∞n21⟹n=1∑∞n21=6π2. ✓
Solution to part 2:
In signal processing, 2π1∫−ππ∣f(x)∣2dx is the total power (energy per period) of the signal. The right-hand side 2a02+∑(an2+bn2) is the sum of the powers carried by each harmonic component. Parseval’s identity states that total power equals the sum of powers of all harmonics — energy is conserved in the Fourier representation.
Fourier Series with Arbitrary Period and Piecewise Functions
Real-world signals rarely have period 2π. These problems develop skill in rescaling the Euler–Fourier formulas to a general period T=2L and handling piecewise-defined functions with multiple integration sub-intervals — a common challenge in engineering applications.
Problem 10: Sawtooth Wave with Period 4
Medium
Define the 4-periodic sawtooth wave by f(t)=t on −2<t≤2.
Find the Fourier series of f.
Evaluate the series at t=2 and explain the result in terms of the Dirichlet theorem.
Hint
For a function with period 2L=4, so L=2, the sine coefficients are bn=21∫−22tsin(2nπt)dt. Since f is odd, no cosine terms appear. Use integration by parts.
View Solution
Solution to part 1:bn=21∫−22tsin(2nπt)dt=nπ4(−1)n+1f(t)∼π4n=1∑∞n(−1)n+1sin(2nπt)Solution to part 2:
At t=2 the function has a jump: f(2−)=2 and f(2+)=−2 (start of next period). By the Dirichlet theorem the series converges to 22+(−2)=0. Substituting t=2 confirms this since sin(nπ)=0 for all integers n.
Problem 11: Fourier Series of the Rectified Sine Wave
Medium
The full-wave rectified sine is f(x)=∣sinx∣, which is periodic with period π.
Compute the Fourier series of f (with period π, using harmonics of frequency 2,4,6,…).
Verify that the series at x=π/2 gives f(π/2)=1.
Hint
f(x)=∣sinx∣ is an even function with period π. Use the half-range cosine series on [0,π] with L=π/2. The trigonometric identity 2sinxsin(nx)=cos((n−1)x)−cos((n+1)x) simplifies the integral for an.
View Solution
Solution to part 1:
Since period T=π, the fundamental angular frequency is ω0=2π/T=2. All terms involve harmonics 2,4,6,…
a0=π2∫0πsinxdx=π4an=π2∫0πsinxcos(2nx)dx=π(4n2−1)−4f(x)∼π2−π4n=1∑∞4n2−1cos(2nx)Solution to part 2:At x=2π:π2−π4n=1∑∞4n2−1cos(nπ)=π2−π4n=1∑∞4n2−1(−1)n
Using the known result ∑n=1∞4n2−1(−1)n=21−π/2⋅π2, the sum evaluates to 1=f(π/2). ✓
Problem 12: Fourier Series of f(x)=ex on [−π,π]
Hard
Find the complete Fourier series of f(x)=ex on (−π,π), extended 2π-periodically.
Compute all coefficients a0, an, and bn in closed form.
Use the series and Parseval’s identity to show that n=−∞∑∞1+n21=πcothπ.
Hint
Use the formula ∫excos(nx)dx=1+n2ex(cos(nx)+nsin(nx)) and its sine analogue. The factor (−1)n appears because e±inπ=(−1)n. For Parseval, apply the identity with ∫−ππe2xdx on the left and the sum of squared coefficients on the right.
View Solution
Solution to part 1:a0=π1∫−ππexdx=π2sinhπan=π1∫−ππexcos(nx)dx=π(1+n2)2(−1)nsinhπbn=π1∫−ππexsin(nx)dx=π(1+n2)−2n(−1)nsinhπex∼πsinhπ(1+2n=1∑∞1+n2(−1)n(cos(nx)−nsin(nx)))Solution to part 2:
LHS=2πe2π−e−2π=πsinh(2π)an2+bn2=π24sinh2π⋅(1+n2)21+n2=π2(1+n2)4sinh2πRHS=π22sinh2π+π24sinh2πn=1∑∞1+n21=π22sinh2π(1+2n=1∑∞1+n21)
Setting equal and using sinh(2π)=2sinhπcoshπ:
πcothπ=1+2n=1∑∞1+n21=n=−∞∑∞1+n21
Complex Fourier Series and Exponential Form
The complex exponential form of the Fourier series — using coefficients cn=2L1∫−LLf(x)e−inπx/Ldx — is indispensable in signal processing, communication theory, and the study of the discrete Fourier transform. The problems here bridge the real and complex representations.
Problem 13: Complex Fourier Coefficients of a Rectangular Pulse
Medium
A 2π-periodic rectangular pulse is defined by
f(x)={1,0,∣x∣<δδ≤∣x∣≤π
where 0<δ<π is a fixed duty-cycle parameter.
Compute the complex Fourier coefficients cn for all integers n.
Show that the coefficients can be written using the sinc function: cn=πδsinc(nδ) where sinc(u)=usinu.
Hint
The complex coefficients are cn=2π1∫−ππf(x)e−inxdx. Since f is zero outside (−δ,δ), the integral reduces to 2π1∫−δδe−inxdx. For n=0 integrate directly; for n=0 use the anti-derivative of e−inx.
View Solution
Solution to part 1:
For n=0: c0=2π1∫−δδdx=πδ.
For n=0:
cn=2π1∫−δδe−inxdx=2π1[−ine−inx]−δδ=2πineinδ−e−inδ=nπsin(nδ)Solution to part 2:cn=nπsin(nδ)=πδ⋅nδsin(nδ)=πδsinc(nδ)
This expression is also valid at n=0 since limu→0sinc(u)=1, giving c0=δ/π. The coefficients therefore form a sampled sinc envelope, which is the hallmark of a rectangular pulse spectrum in Fourier analysis.
Problem 14: Converting Between Real and Complex Forms
Hard
Consider the 2π-periodic function whose real Fourier series is
f(x)=21+n=1∑∞(n1cos(nx)+n22sin(nx))
Find the complex Fourier coefficients cn for all n∈Z in terms of the given real coefficients.
Verify that c−n=cn (complex conjugate symmetry), which holds because f is real-valued.
Hint
Use the identities cos(nx)=2einx+e−inx and sin(nx)=2ieinx−e−inx. Group the einx and e−inx terms separately to read off cn and c−n. For part 2, compute cn directly.
View Solution
Solution to part 1:
The general conversion formulas are c0=2a0, and for n≥1:
cn=2an−ibn,c−n=2an+ibn
Here a0=1, an=1/n, bn=2/n2. Therefore:
c0=21,cn=2n1−n2i(n≥1),c−n=2n1+n2i(n≥1)Solution to part 2:
Taking the complex conjugate of cn for n≥1:
cn=2n1−n2i=2n1+n2i=c−n✓
This conjugate symmetry c−n=cn is a universal property of the complex Fourier coefficients of any real-valued function, since f(x)=f(x) implies cn=c−n directly from the coefficient formula.
Applications: Heat Equation and Wave Equation
Fourier series are the cornerstone of solving partial differential equations (PDEs) with periodic or bounded-domain initial conditions. These problems demonstrate the separation of variables technique for the one-dimensional heat equation and wave equation — problems that are central to mathematical physics and engineering.
Problem 15: Heat Equation with Zero Boundary Conditions
Medium
Solve the boundary-value problem for heat conduction in a rod of length π:
Use separation of variables to derive the general solution as a Fourier sine series.
Apply the initial condition to find the explicit solution.
Hint
Assume u(x,t)=X(x)T(t). The boundary conditions u(0,t)=u(π,t)=0 force X(0)=X(π)=0, yielding eigenfunctions Xn(x)=sin(nx) with eigenvalues λn=n2. The time factor then satisfies Tn′=−n2Tn. The initial condition in this problem is already expressed as a finite sine series, so matching coefficients directly is straightforward.
View Solution
Solution to part 1 (general solution):
Substituting u=X(x)T(t) gives X′′+λX=0 with X(0)=X(π)=0, yielding:
Xn(x)=sin(nx),λn=n2,Tn(t)=e−n2tu(x,t)=n=1∑∞Bne−n2tsin(nx)Solution to part 2:
At t=0: u(x,0)=∑n=1∞Bnsin(nx)=sin(2x)−21sin(5x).
By orthogonality, B2=1, B5=−21, and all other Bn=0. Therefore:
u(x,t)=e−4tsin(2x)−21e−25tsin(5x)
As t→∞, the higher-frequency term decays faster (factor e−25t vs. e−4t), leaving the rod temperature exponentially approaching zero, consistent with the zero boundary conditions.
Problem 16: Heat Equation with General Initial Condition
Hard
Solve the heat equation on [0,L] with homogeneous Dirichlet conditions:
ut=kuxx,u(0,t)=u(L,t)=0,u(x,0)=f(x)
where k>0 is the thermal diffusivity and f(x)=x(π−x) with L=π, k=1.
Expand f(x) in a Fourier sine series on [0,π].
Write the complete solution u(x,t).
Show that the maximum temperature, which occurs at the midpoint x=π/2, decays exponentially as t→∞, and identify the dominant decay rate.
Hint
The Fourier sine coefficients of x(π−x) are Bn=π2∫0πx(π−x)sin(nx)dx. Use integration by parts twice. You will find Bn=0 for even n, and Bn=πn38 for odd n. The dominant (slowest-decaying) mode is n=1 with rate e−t.
View Solution
Solution to part 1 (Fourier sine coefficients):Bn=π2∫0πx(π−x)sin(nx)dx
Integrating by parts twice:
Bn=π2⋅n32(1−(−1)n)⋅π=n3π4(1−(−1)n)⋅π
More precisely: Bn=πn38 for odd n, and Bn=0 for even n.
Solution to part 2:u(x,t)=π8k=0∑∞(2k+1)3e−(2k+1)2tsin((2k+1)x)Solution to part 3:
At x=π/2, sin((2k+1)π/2)=(−1)k. As t→∞ the k=0 term dominates:
u(2π,t)≈π8e−tsin(2π)=π8e−t
The dominant decay rate is e−t (eigenvalue λ1=12=1). Higher modes decay at rates e−9t,e−25t,…, becoming negligible quickly.
Problem 17: Vibrating String — Wave Equation
Hard
A string of length L=π is fixed at both ends. It satisfies the wave equation
utt=c2uxx,u(0,t)=u(π,t)=0
with initial conditions u(x,0)=sinx+31sin(3x) and ut(x,0)=0.
Write the general d’Alembert/eigenfunction solution for this boundary-value problem.
Apply both initial conditions to find the specific solution for c=1.
Identify the fundamental frequency and the frequency of the second harmonic present in the solution.
Hint
Separation of variables gives u(x,t)=∑n=1∞sin(nx)(Ancos(cnt)+Bnsin(cnt)). The condition ut(x,0)=0 forces all Bn=0. The condition u(x,0)=sinx+31sin(3x) is already a finite sine series, so matching gives A1,A3 immediately.
View Solution
Solution to part 1:u(x,t)=n=1∑∞sin(nx)(Ancos(cnt)+Bnsin(cnt))Solution to part 2 (c=1):
From ut(x,0)=0: Bn=0 for all n. From u(x,0): A1=1, A3=31, all other An=0. Thus:
u(x,t)=sinxcost+31sin(3x)cos(3t)Solution to part 3:
The fundamental frequency corresponds to n=1: angular frequency ω1=c⋅1=1rad/s, frequency f1=2π1Hz. The second harmonic present (note: n=2 has zero coefficient so the next mode is n=3) has angular frequency ω3=3rad/s, which is the third harmonic. The amplitude ratio of the two modes is 3:1.
Convergence, Dirichlet Conditions, and the Gibbs Phenomenon
Understanding where and how fast a Fourier series converges is as important as computing it. This section addresses the Dirichlet convergence theorem, the behaviour of partial sums near jump discontinuities (Gibbs phenomenon), and the distinction between pointwise, uniform, and mean-square convergence.
Problem 18: Identifying Convergence Behaviour at Discontinuities
Medium
Define the 2π-periodic function
f(x)={0,x,−π<x<00≤x<π
Compute the Fourier series of f.
Determine the value of the series at x=0 and at x=π, justifying each answer via the Dirichlet theorem.
Use the value at x=π/2 to derive the Leibniz formula 4π=1−31+51−71+⋯
Hint
Compute a0, an, and bn using standard integrals. At x=0 the function has a jump from 0−→0 in the periodic extension; check both one-sided limits carefully. At x=π/2 the series converges to f(π/2)=π/2; substituting and isolating the odd-indexed cosine sum gives the Leibniz formula.
View Solution
Solution to part 1:a0=π1∫0πxdx=2πan=π1∫0πxcos(nx)dx=n2π(−1)n−1bn=π1∫0πxsin(nx)dx=n(−1)n+1f(x)∼4π−π2k=0∑∞(2k+1)2cos((2k+1)x)+n=1∑∞n(−1)n+1sin(nx)Solution to part 2:
At x=0: in the periodic extension, f(0−)=0 (end of preceding period where f→0) and f(0+)=0. Both limits are 0, so the series converges to 20+0=0. (The constant term alone is π/4=0, but the alternating cosine sum cancels it at x=0.)
At x=π: f(π−)=π and f(π+)=0 (next period starts). Series converges to 2π+0=2π.
Solution to part 3:
At x=π/2, the series converges to f(π/2)=π/2:
2π=4π−π2k=0∑∞(2k+1)2cos((2k+1)π/2)+n=1∑∞n(−1)n+1sin(2nπ)
Since cos((2k+1)π/2)=0 for all k, only the sine sum survives. The non-zero terms occur at odd n=2k+1:
2π=4π+k=0∑∞2k+1(−1)k⟹4π=k=0∑∞2k+1(−1)k=1−31+51−⋯✓
Problem 19: The Gibbs Phenomenon — Quantifying the Overshoot
Hard
Consider the N-th partial sum SN(x) of the Fourier series of the square wave f(x) from Problem 1.
Write SN(x) explicitly as a finite sum of sine terms.
Show that the maximum of SN(x) near x=0+ occurs approximately at x∗=π/(N+1) for large N.
Demonstrate that as N→∞, the overshoot of the partial sum above the function value f(0+)=1 does not vanish but instead approaches the Gibbs constant≈8.9%.
Hint
Differentiate SN(x)=π4∑k=0N2k+1sin((2k+1)x) and set the derivative to zero. Use the product-to-sum identity for the sum of cosines. The maximum value involves the integral π2∫0πusinudu≈1.1789, giving an overshoot of approximately 17.9% of the jump height.
View Solution
Solution to part 1:SN(x)=π4k=0∑N2k+1sin((2k+1)x)=π4(sinx+3sin3x+⋯+2N+1sin((2N+1)x))Solution to part 2:
Differentiating and using the closed form SN′(x)=π4⋅2sinxsin((2N+2)x) (derived via telescoping product), setting SN′(x∗)=0 gives sin((2N+2)x∗)=0, so x∗=2N+2π=2(N+1)π. This is the first positive maximum of SN.
Solution to part 3:
Substituting x∗≈2N+2π into SN and taking the Riemann sum limit as N→∞:
N→∞limSN(x∗)=π2∫0πusinudu≈π2⋅1.8519≈1.1789
The function value at the jump is f(0+)=1, so the overshoot is 1.1789−1≈0.179. As a fraction of the jump size (which is 2), the relative overshoot is ≈8.9%. This is the Gibbs constant: the partial sums of any Fourier series always overshoot by approximately 9% of the total jump at a discontinuity, regardless of how many terms are taken.