Padhaiko › Subjects › Engineering Mathematics III › Chapter 1: Fourier Series and Fourier Transform › Half-Range Series, Complex Form, Harmonic Spectrum & Parseval's Identity Half-Range Series, Complex Form, Harmonic Spectrum & Parseval's Identity Engineering Mathematics III (ENSH 201)
Open in the Padhaiko app Overview
1.3 Half-Range Fourier Sine and Cosine Series
The half-range Fourier series represents the expansion of a function f ( x ) defined only on the half-interval ( 0 , l ) . To obtain this series, the function is extended to the symmetric full-range ( − l , l ) in such a way that it becomes either an odd function or an even function. This extension allows the Fourier series to consist exclusively of sine terms (for odd extensions) or exclusively of cosine terms (for even extensions).
The full-range Fourier series for f ( x ) in ( − l , l ) is given by:
f ( x ) = 2 1 a 0 + n = 1 ∑ ∞ ( a n cos l nπ x + b n sin l nπ x ) ⋯ ( 1 )
where:
a 0 a n b n = l 1 ∫ − l l f ( x ) d x , = l 1 ∫ − l l f ( x ) cos ( l nπ x ) d x , = l 1 ∫ − l l f ( x ) sin ( l nπ x ) d x
1. Half-Range Sine Series in ( 0 , l )
To get a series of sines only, we extend f ( x ) as an odd function in ( − l , l ) . Therefore f ( x ) cos ( nπ x / l ) is odd and f ( x ) sin ( nπ x / l ) is even, so a 0 = 0 and a n = 0 . Equation ( 1 ) reduces to the Half-range Fourier sine series in ( 0 , l ) :
f ( x ) where b n = n = 1 ∑ ∞ b n sin ( l nπ x ) , = l 2 ∫ 0 l f ( x ) sin ( l nπ x ) d x for n = 1 , 2 , …
2. Half-Range Cosine Series in ( 0 , l )
To get a series of cosines only, we extend f ( x ) as an even function in ( − l , l ) . Therefore f ( x ) sin ( nπ x / l ) is odd, so b n = 0 . Equation ( 1 ) reduces to the Half-range Fourier cosine series in ( 0 , l ) :
f ( x ) where a 0 a n = 2 1 a 0 + n = 1 ∑ ∞ a n cos ( l nπ x ) , = l 2 ∫ 0 l f ( x ) d x , = l 2 ∫ 0 l f ( x ) cos ( l nπ x ) d x for n = 1 , 2 , …
3. Half-Range Sine and Cosine Series in ( 0 , π )
Setting l = π gives the half-range expansions on ( 0 , π ) :
Half-range sine series in ( 0 , π ) (odd extension f ( − x ) = − f ( x ) , a 0 = a n = 0 ):
f ( x ) where b n = n = 1 ∑ ∞ b n sin ( n x ) , = π 2 ∫ 0 π f ( x ) sin ( n x ) d x for n = 1 , 2 , …
Half-range cosine series in ( 0 , π ) (even extension f ( − x ) = f ( x ) , b n = 0 ):
f ( x ) where a 0 a n = 2 1 a 0 + n = 1 ∑ ∞ a n cos ( n x ) , = π 2 ∫ 0 π f ( x ) d x , = π 2 ∫ 0 π f ( x ) cos ( n x ) d x for n = 1 , 2 , …
1.4 Complex Form of Fourier Series
The Fourier expansion of f ( x ) in the interval ( − π , π ) is given by:
f ( x ) = 2 1 a 0 + n = 1 ∑ ∞ ( a n cos n x + b n sin n x ) ⋯ ( 1 )
Using Euler's exponential formulas:
cos ( n x ) sin ( n x ) = 2 e in x + e − in x and = 2 i e in x − e − in x = 2 − i ( e in x − e − in x )
and substituting these into ( 1 ) gives:
f ( x ) = 2 1 a 0 + 2 1 n = 1 ∑ ∞ [ ( a n − i b n ) e in x + ( a n + i b n ) e − in x ]
In the textbook's notation (page 27), defining:
c 0 c − n c n = 2 1 a 0 = 2 π 1 ∫ − π π f ( x ) d x , = 2 a n − i b n = 2 π 1 ∫ − π π f ( x ) e − in x d x , = 2 a n + i b n = 2 π 1 ∫ − π π f ( x ) e in x d x
the complex form of the Fourier series in ( − π , π ) is represented by:
f ( x ) = c 0 + n = 1 ∑ ∞ [ c − n e in x + c n e − in x ] = n = − ∞ ∑ ∞ C n e in x ( where C n = c − n = 2 π 1 ∫ − π π f ( x ) e − in x d x )
Generalized Complex Form for Interval ( − l , l )
In the interval ( − l , l ) , the Fourier series in complex form is:
f ( x ) = c 0 + n = 1 ∑ ∞ [ c − n e inπ x / l + c n e − inπ x / l ]
where:
c 0 c − n c n = 2 l 1 ∫ − l l f ( x ) d x , = 2 l 1 ∫ − l l f ( x ) e − inπ x / l d x , = 2 l 1 ∫ − l l f ( x ) e inπ x / l d x for n = 1 , 2 , …
(When f ( x ) is real-valued, c n = c − n is the complex conjugate of c − n .)
Frequency, Amplitude & Phase Spectrum
If the Fourier series is applied to periodic physical phenomena with period T = 2 l , it is convenient to express the analysis in terms of the fundamental angular frequency :
For example, the function sin ( 2 x ) has period T = π , so its fundamental angular frequency is ω 0 = π 2 π = 2 .
Theorem Theorem 1: Harmonic (Amplitude-Phase) Form of a Fourier Series If the trigonometric series 2 1 a 0 + ∑ n = 1 ∞ ( a n cos l nπ x + b n sin l nπ x ) converges uniformly to f ( x ) in ( − l , l ) with period T = 2 l , the function can also be expressed as:
f ( x ) = 2 1 a 0 + n = 1 ∑ ∞ A n cos ( n ω 0 x + δ n )
where A n = a n 2 + b n 2 is the amplitude of the n th harmonic, δ n = tan − 1 ( − a n b n ) is the phase angle , and ω 0 = T 2 π = l π is the fundamental angular frequency.
Proof Substituting ω 0 = l π into the Fourier series on ( − l , l ) gives:
f ( x ) = 2 1 a 0 + n = 1 ∑ ∞ ( a n cos ( n ω 0 x ) + b n sin ( n ω 0 x ) )
Factoring out A n = ( a n 2 + b n 2 ) 1/2 from the n th term:
f ( x ) = 2 1 a 0 + n = 1 ∑ ∞ ( a n 2 + b n 2 ) 1/2 [ ( a n 2 + b n 2 ) 1/2 a n cos ( n ω 0 x ) + ( a n 2 + b n 2 ) 1/2 b n sin ( n ω 0 x ) ]
Setting cos δ n = A n a n and sin δ n = A n − b n so that δ n = tan − 1 ( − b n / a n ) :
f ( x ) = 2 1 a 0 + n = 1 ∑ ∞ A n [ cos δ n cos ( n ω 0 x ) − sin δ n sin ( n ω 0 x ) ] = 2 1 a 0 + n = 1 ∑ ∞ A n cos ( n ω 0 x + δ n )
Definition Definitions 1.1, 1.2 & 1.3: Frequency & Amplitude Spectrum Definition 1.1 (Frequency Spectrum): The set of angular frequencies ω 0 , 2 ω 0 , 3 ω 0 , 4 ω 0 , … is called the frequency spectrum of f ( x ) . The quantity n ω 0 is the n th harmonic frequency.Definition 1.2 (Amplitude Spectrum): The set of amplitudes A 0 , A 1 , A 2 , … , where A 0 = 2 1 ∣ a 0 ∣ and A n = a n 2 + b n 2 (or ∣ c n ∣ in the complex spectrum), is called the amplitude spectrum of f ( x ) .Definition 1.3 (n th Harmonic): Each term A n cos ( n ω 0 x + δ n ) is called the n th harmonic of f ( x ) .
Example Spectrum 1 Harmonics & Amplitude Spectrum on (-π, π) Find the harmonics and amplitude spectrum of:
f ( x ) = { π π − x for − π < x < 0 for 0 ≤ x ≤ π
Problem Framing & Periodicity: The function has period T = 2 π , so the fundamental angular frequency is:
The harmonic expansion is:
f ( x ) = A 0 + n = 1 ∑ ∞ A n cos ( n ω 0 x + δ n ) = 2 1 a 0 + n = 1 ∑ ∞ A n cos ( n x + δ n )
where A n = a n 2 + b n 2 and δ n = tan − 1 ( − a n b n ) .
Evaluating the Constant Coefficient a 0 : Splitting the integral at x = 0 :
a 0 = π 1 ∫ − π 0 π d x + π 1 ∫ 0 π ( π − x ) d x = ∫ − π 0 1 d x + π 1 [ π x − 2 x 2 ] 0 π = [ 0 − ( − π )] + π 1 ( π 2 − 2 π 2 ) = π + 2 π = 2 3 π
Thus A 0 = 2 1 a 0 = 4 3 π ≈ 2.3562 .
Evaluating the Cosine Coefficients a n :
a n = π 1 ∫ − π 0 π cos ( n x ) d x + π 1 ∫ 0 π ( π − x ) cos ( n x ) d x = [ n sin n x ] − π 0 + π 1 [ ( π − x ) n sin n x − ( − 1 ) ( − n 2 cos n x ) ] 0 π = 0 + π 1 [ ( π − x ) n sin n x − n 2 cos n x ] 0 π = π 1 [ ( 0 − n 2 cos nπ ) − ( 0 − n 2 cos 0 ) ] = π 1 ( − n 2 ( − 1 ) n + n 2 1 ) = π n 2 1 − ( − 1 ) n
For even n = 2 k : a 2 k = 0 For odd n = 2 k − 1 : a 2 k − 1 = π ( 2 k − 1 ) 2 2 Evaluating the Sine Coefficients b n :
b n = π 1 ∫ − π 0 π sin ( n x ) d x + π 1 ∫ 0 π ( π − x ) sin ( n x ) d x = [ − n cos n x ] − π 0 + π 1 [ − ( π − x ) n cos n x − ( − 1 ) ( n 2 sin n x ) ] 0 π = ( − n 1 + n cos ( − nπ ) ) + π 1 [ ( 0 + 0 ) − ( − n π cos 0 + 0 ) ] = n ( − 1 ) n − 1 + n 1 = n ( − 1 ) n
Harmonic Amplitudes and Phase Angles: The amplitude A n and phase angle δ n are:
0 2.36 1 1.19 2 0.50 3 0.34 4 0.25 5 0.20
0
1
2
3
A_n
nω_0
Amplitude spectrum A_n versus harmonic frequency nω_0 (Book p. 30) Answer: Amplitude Spectrum: A 0 = 4 3 π ≈ 2.3562 , A 1 ≈ 1.1854 , A 2 = 0.5 , A 3 ≈ 0.3408 , A 4 = 0.25 , A 5 ≈ 0.2016
Phase Spectrum: δ 1 = tan − 1 ( π /2 ) , δ 2 = tan − 1 ( − ∞ ) , δ 3 = tan − 1 ( 3 π /2 ) , δ 4 = tan − 1 ( − ∞ ) , δ 5 = tan − 1 ( 5 π /2 )
Example Spectrum 2 Harmonics & Amplitude Spectrum of $f(x) = x^2$ on $[0, 3]$ Find the harmonics and amplitude spectrum of f ( x ) = x 2 in the interval 0 ≤ x ≤ 3 .
Problem Framing & Periodicity: Here the period is T = 3 , so the half-period is l = 3/2 , and the fundamental angular frequency is:
The harmonic series representation is:
f ( x ) = A 0 + n = 1 ∑ ∞ A n cos ( n ω 0 x + δ n ) = 2 1 a 0 + n = 1 ∑ ∞ A n cos ( 3 2 nπ x + δ n )
Evaluating a 0 : Using the period T = 3 (l = 3/2 ):
a 0 = 3/2 1 ∫ 0 3 x 2 d x = 3 2 [ 3 x 3 ] 0 3 = 3 2 ( 3 27 − 0 ) = 3 2 ( 9 ) = 6
Thus A 0 = 2 1 a 0 = 3 .
Evaluating a n : Applying generalized integration by parts with u = x 2 and v = cos ( 3 2 nπ x ) :
a n = 3 2 ∫ 0 3 x 2 cos ( 3 2 nπ x ) d x = 3 2 [ x 2 ( 3 2 nπ sin 3 2 nπ x ) − ( 2 x ) ( − 9 4 n 2 π 2 cos 3 2 nπ x ) + ( 2 ) ( − 27 8 n 3 π 3 sin 3 2 nπ x ) ] 0 3 = 3 2 [ 2 nπ 3 x 2 sin ( 3 2 nπ x ) + 2 n 2 π 2 9 x cos ( 3 2 nπ x ) − 4 n 3 π 3 27 sin ( 3 2 nπ x ) ] 0 3
Since sin ( 2 nπ ) = 0 and cos ( 2 nπ ) = 1 :
a n = 3 2 [ ( 0 + 2 n 2 π 2 9 ( 3 ) ( 1 ) − 0 ) − ( 0 + 0 − 0 ) ] = 3 2 ( 2 n 2 π 2 27 ) = n 2 π 2 9
Evaluating b n : Applying generalized integration by parts with u = x 2 and v = sin ( 3 2 nπ x ) :
b n = 3 2 ∫ 0 3 x 2 sin ( 3 2 nπ x ) d x = 3 2 [ x 2 ( − 3 2 nπ cos 3 2 nπ x ) − ( 2 x ) ( − 9 4 n 2 π 2 sin 3 2 nπ x ) + ( 2 ) ( 27 8 n 3 π 3 cos 3 2 nπ x ) ] 0 3 = 3 2 [ − 2 nπ 3 x 2 cos ( 3 2 nπ x ) + 2 n 2 π 2 9 x sin ( 3 2 nπ x ) + 4 n 3 π 3 27 cos ( 3 2 nπ x ) ] 0 3 = 3 2 [ ( − 2 nπ 27 ( 1 ) + 0 + 4 n 3 π 3 27 ( 1 ) ) − ( 0 + 0 + 4 n 3 π 3 27 ( 1 ) ) ] = 3 2 ( − 2 nπ 27 ) = − nπ 9
Harmonic Amplitudes and Phase Angles: The harmonic amplitude A n and phase δ n are:
δ n = tan − 1 ( − a n b n ) = tan − 1 ( − 9/ ( n 2 π 2 ) − 9/ ( nπ ) ) = tan − 1 ( nπ )
0 3.00 ω_0 3.01 2ω_0 1.45 3ω_0 0.96 4ω_0 0.72 5ω_0 0.57
A_n
nω_0
Amplitude spectrum A_n versus nω_0 for f ( x ) = x 2 on [ 0 , 3 ] (Book p. 31) Answer:
A 0 = 3 , A 1 ≈ 3.0064 , A 2 ≈ 1.4504 , A 3 ≈ 0.9603 , A 4 ≈ 0.7185 , A 5 ≈ 0.5741
Example Spectrum 3 Complex Harmonics & Spectrum of f(x) = x on [-1, 1] Find the harmonics and amplitude spectrum of f ( x ) = x in the interval − 1 ≤ x ≤ 1 .
Problem Framing & Periodicity: The interval is ( − l , l ) = ( − 1 , 1 ) , so l = 1 , period T = 2 , and fundamental frequency ω 0 = T 2 π = π . The complex exponential Fourier series is:
f ( x ) = n = − ∞ ∑ ∞ c n e inπ x = c 0 + n = 1 ∑ ∞ ( c − n e inπ x + c n e − inπ x )
Evaluating c 0 : Because f ( x ) = x is an odd function over symmetric limits [ − 1 , 1 ] :
c 0 = 2 1 ∫ − 1 1 x d x = 2 1 [ 2 x 2 ] − 1 1 = 2 1 ( 2 1 − 2 1 ) = 0
Evaluating c − n : Integrating by parts with u = x (u ′ = 1 ) and d v = e − inπ x d x (v = − inπ e − inπ x ):
c − n = 2 1 ∫ − 1 1 x e − inπ x d x = 2 1 [ x ( − inπ e − inπ x ) − ( 1 ) ( − n 2 π 2 e − inπ x ) ] − 1 1 = 2 1 [ − inπ x e − inπ x + n 2 π 2 e − inπ x ] − 1 1
Using e − inπ = ( − 1 ) n and e inπ = ( − 1 ) n :
c − n = 2 1 [ ( − inπ ( − 1 ) n + n 2 π 2 ( − 1 ) n ) − ( inπ ( − 1 ) n + n 2 π 2 ( − 1 ) n ) ] = 2 1 ( − inπ 2 ( − 1 ) n ) = − inπ ( − 1 ) n = nπ i ( − 1 ) n
For c n = c − n :
Discrete Amplitude Spectrum: The line spectrum amplitude ∣ c n ∣ is:
-3
-2
-1
0
1
2
3
1
-1
Sawtooth f(x) = x on (−1, 1) extended with period 2 — Example 3 (Book p. 33) Answer: x = n = 1 ∑ ∞ nπ i ( − 1 ) n e inπ x − n = 1 ∑ ∞ nπ i ( − 1 ) n e − inπ x = − π 2 n = 1 ∑ ∞ n ( − 1 ) n sin ( nπ x )
∣ c 0 ∣ = 0 , ∣ c ± 1 ∣ = π 1 ≈ 0.3183 , ∣ c ± 2 ∣ = 2 π 1 ≈ 0.1592 , ∣ c ± 3 ∣ = 3 π 1 ≈ 0.1061
Theorem Theorem 2: Parseval's Identity on (-l, l) If the trigonometric series 2 1 a 0 + ∑ n = 1 ∞ ( a n cos l nπ x + b n sin l nπ x ) converges uniformly to f ( x ) in ( − l , l ) , then:
∫ − l l [ f ( x ) ] 2 d x = l [ 2 1 a 0 2 + n = 1 ∑ ∞ ( a n 2 + b n 2 ) ]
Proof The Fourier series of f ( x ) in ( − l , l ) is:
f ( x ) = 2 1 a 0 + n = 1 ∑ ∞ ( a n cos l nπ x + b n sin l nπ x ) ⋯ ( 1 )
Multiplying ( 1 ) by f ( x ) and integrating term-by-term with respect to x from − l to l :
∫ − l l [ f ( x ) ] 2 d x = 2 1 a 0 ∫ − l l f ( x ) d x + n = 1 ∑ ∞ a n ∫ − l l f ( x ) cos ( l nπ x ) d x + n = 1 ∑ ∞ b n ∫ − l l f ( x ) sin ( l nπ x ) d x
From Euler's formulas on ( − l , l ) , we have ∫ − l l f ( x ) d x = l a 0 , ∫ − l l f ( x ) cos ( l nπ x ) d x = l a n , and ∫ − l l f ( x ) sin ( l nπ x ) d x = l b n . Substituting these into the relation above yields:
∫ − l l [ f ( x ) ] 2 d x = 2 1 l a 0 2 + n = 1 ∑ ∞ l a n 2 + n = 1 ∑ ∞ l b n 2 = l [ 2 1 a 0 2 + n = 1 ∑ ∞ ( a n 2 + b n 2 ) ]
Theorem Theorem 3: Parseval's Identity on (0, 2l) If the trigonometric series 2 1 a 0 + ∑ n = 1 ∞ ( a n cos l nπ x + b n sin l nπ x ) converges uniformly to f ( x ) in ( 0 , 2 l ) , then:
∫ 0 2 l [ f ( x ) ] 2 d x = l [ 2 1 a 0 2 + n = 1 ∑ ∞ ( a n 2 + b n 2 ) ]
Proof Multiplying the Fourier series of f ( x ) by f ( x ) and integrating term-by-term from x = 0 to x = 2 l , then substituting the Euler relations ∫ 0 2 l f ( x ) d x = l a 0 , ∫ 0 2 l f ( x ) cos ( nπ x / l ) d x = l a n , and ∫ 0 2 l f ( x ) sin ( nπ x / l ) d x = l b n immediately yields:
∫ 0 2 l [ f ( x ) ] 2 d x = 2 1 l a 0 2 + n = 1 ∑ ∞ l a n 2 + n = 1 ∑ ∞ l b n 2 = l [ 2 1 a 0 2 + n = 1 ∑ ∞ ( a n 2 + b n 2 ) ]
Theorem Theorem 4: Parseval's Identity for Half-Range Cosine Series on (0, l) If the half-range cosine series 2 1 a 0 + ∑ n = 1 ∞ a n cos ( l nπ x ) converges uniformly to f ( x ) in ( 0 , l ) , then:
∫ 0 l [ f ( x ) ] 2 d x = 2 l [ 2 1 a 0 2 + n = 1 ∑ ∞ a n 2 ]
Proof For the half-range cosine series on ( 0 , l ) , the coefficients satisfy ∫ 0 l f ( x ) d x = 2 l a 0 and ∫ 0 l f ( x ) cos ( l nπ x ) d x = 2 l a n . Multiplying f ( x ) = 2 1 a 0 + ∑ n = 1 ∞ a n cos ( nπ x / l ) by f ( x ) and integrating from 0 to l gives:
∫ 0 l [ f ( x ) ] 2 d x = 2 1 a 0 ( 2 l a 0 ) + n = 1 ∑ ∞ a n ( 2 l a n ) = 2 l [ 2 1 a 0 2 + n = 1 ∑ ∞ a n 2 ]
Theorem Theorem 5: Parseval's Identity for Half-Range Sine Series on (0, l) If the half-range sine series ∑ n = 1 ∞ b n sin ( l nπ x ) converges uniformly to f ( x ) in ( 0 , l ) , then:
∫ 0 l [ f ( x ) ] 2 d x = 2 l n = 1 ∑ ∞ b n 2
Proof For the half-range sine series on ( 0 , l ) , ∫ 0 l f ( x ) sin ( l nπ x ) d x = 2 l b n . Multiplying f ( x ) = ∑ n = 1 ∞ b n sin ( nπ x / l ) by f ( x ) and integrating from 0 to l gives:
∫ 0 l [ f ( x ) ] 2 d x = n = 1 ∑ ∞ b n ∫ 0 l f ( x ) sin ( l nπ x ) d x = n = 1 ∑ ∞ b n ( 2 l b n ) = 2 l n = 1 ∑ ∞ b n 2
Worked Out Examples (1–10)
Example 1 1 Express f ( x ) = x as a half-range sine series in 0 < x < 2 .
Half-Range Sine Series Formulation: In the half-range interval ( 0 , l ) = ( 0 , 2 ) , the half-period is l = 2 . To obtain a series containing sines only, f ( x ) is extended as an odd function into ( − 2 , 0 ) so that a 0 = a n = 0 . The half-range Fourier sine series is given by:
f ( x ) = n = 1 ∑ ∞ b n sin ( l nπ x ) = n = 1 ∑ ∞ b n sin ( 2 nπ x )
Setting Up the Fourier Sine Coefficient b n : The coefficient b n is defined by:
b n = l 2 ∫ 0 l f ( x ) sin ( l nπ x ) d x = 2 2 ∫ 0 2 x sin ( 2 nπ x ) d x = ∫ 0 2 x sin ( 2 nπ x ) d x
Evaluating b n by Integration by Parts: Applying integration by parts (∫ u d v = uv − ∫ v d u ) with u = x (u ′ = 1 ) and d v = sin ( 2 nπ x ) d x (v = − nπ /2 c o s ( nπ x /2 ) = − nπ 2 c o s ( nπ x /2 ) ):
b n = [ x ( − nπ 2 cos 2 nπ x ) − ( 1 ) ( − n 2 π 2 4 sin 2 nπ x ) ] 0 2 = [ − nπ 2 x cos ( 2 nπ x ) + n 2 π 2 4 sin ( 2 nπ x ) ] 0 2
Substituting the Integration Limits: Evaluating at the upper limit x = 2 and lower limit x = 0 , with sin ( nπ ) = 0 and cos ( nπ ) = ( − 1 ) n :
b n = [ ( − nπ 2 ( 2 ) cos ( nπ ) + n 2 π 2 4 sin ( nπ ) ) − ( 0 + 0 ) ] = − nπ 4 cos ( nπ ) = − nπ 4 ( − 1 ) n = nπ 4 ( − 1 ) n + 1
Assembling the Half-Range Series: Substituting b n = nπ 4 ( − 1 ) n + 1 into the series:
x = n = 1 ∑ ∞ nπ 4 ( − 1 ) n + 1 sin ( 2 nπ x ) = π 4 n = 1 ∑ ∞ n ( − 1 ) n + 1 sin ( 2 nπ x ) = π 4 ( 1 sin 2 π x − 2 sin 2 2 π x + 3 sin 2 3 π x − 4 sin 2 4 π x + ⋯ )
Answer: x = n = 1 ∑ ∞ nπ 4 ( − 1 ) n + 1 sin ( 2 nπ x ) = π 4 ( sin 2 π x − 2 1 sin 2 2 π x + 3 1 sin 2 3 π x − 4 1 sin 2 4 π x + ⋯ )
Example 2 2 Express f ( x ) = x as a half-range cosine series in 0 < x < 2 .
Half-Range Cosine Series Formulation: In ( 0 , l ) = ( 0 , 2 ) , the half-period is l = 2 . Extending f ( x ) as an even function into ( − 2 , 0 ) gives b n = 0 . The half-range Fourier cosine series is:
f ( x ) = 2 1 a 0 + n = 1 ∑ ∞ a n cos ( 2 nπ x )
Evaluating a 0 : Integrating over [ 0 , 2 ] :
a 0 = l 2 ∫ 0 l f ( x ) d x = 2 2 ∫ 0 2 x d x = [ 2 x 2 ] 0 2 = 2 4 − 0 = 2
Thus 2 1 a 0 = 2 1 ( 2 ) = 1 .
Evaluating a n by Integration by Parts: Integrating by parts with u = x (u ′ = 1 ) and d v = cos ( 2 nπ x ) d x (v = nπ 2 s i n ( nπ x /2 ) ):
a n = 2 2 ∫ 0 2 x cos ( 2 nπ x ) d x = [ x ( nπ 2 sin 2 nπ x ) − ( 1 ) ( − n 2 π 2 4 cos 2 nπ x ) ] 0 2 = [ nπ 2 x sin ( 2 nπ x ) + n 2 π 2 4 cos ( 2 nπ x ) ] 0 2
Substituting Limits & Parity Simplification: Evaluating at x = 2 and x = 0 :
a n = ( nπ 4 sin ( nπ ) + n 2 π 2 4 cos ( nπ ) ) − ( 0 + n 2 π 2 4 cos ( 0 ) ) = n 2 π 2 4 ( − 1 ) n − n 2 π 2 4 = n 2 π 2 4 [ ( − 1 ) n − 1 ]
For even n = 2 k : a 2 k = ( 2 k ) 2 π 2 4 ( 1 − 1 ) = 0 For odd n = 2 k − 1 : a 2 k − 1 = ( 2 k − 1 ) 2 π 2 4 ( − 1 − 1 ) = − ( 2 k − 1 ) 2 π 2 8 Assembling the Series: Substituting 2 1 a 0 = 1 and a n :
x = 1 + n = 1 ∑ ∞ n 2 π 2 4 [ ( − 1 ) n − 1 ] cos ( 2 nπ x ) = 1 − π 2 8 k = 1 ∑ ∞ ( 2 k − 1 ) 2 cos 2 ( 2 k − 1 ) π x = 1 − π 2 8 [ 1 2 cos 2 π x + 3 2 cos 2 3 π x + 5 2 cos 2 5 π x + ⋯ ]
Answer: x = 1 + n = 1 ∑ ∞ n 2 π 2 4 [ ( − 1 ) n − 1 ] cos ( 2 nπ x ) = 1 − π 2 8 [ 1 2 cos ( π x /2 ) + 3 2 cos ( 3 π x /2 ) + 5 2 cos ( 5 π x /2 ) + ⋯ ]
Example 3 3 Express f ( x ) = x 2 as a half-range sine series in 0 < x < 3 .
Half-Range Sine Series Formulation: In ( 0 , l ) = ( 0 , 3 ) , the half-period is l = 3 . The half-range Fourier sine series is:
Applying Generalized Integration by Parts: With u = x 2 (u ′ = 2 x , u ′′ = 2 ) and v = sin ( 3 nπ x ) :
b n = 3 2 ∫ 0 3 x 2 sin ( 3 nπ x ) d x = 3 2 [ x 2 ( − nπ 3 cos 3 nπ x ) − ( 2 x ) ( − n 2 π 2 9 sin 3 nπ x ) + ( 2 ) ( n 3 π 3 27 cos 3 nπ x ) ] 0 3 = 3 2 [ − nπ 3 x 2 cos ( 3 nπ x ) + n 2 π 2 18 x sin ( 3 nπ x ) + n 3 π 3 54 cos ( 3 nπ x ) ] 0 3
Substituting the Integration Limits: Evaluating at x = 3 and x = 0 , noting sin ( nπ ) = 0 and cos ( nπ ) = ( − 1 ) n :
b n = 3 2 [ ( − nπ 3 ( 9 ) cos ( nπ ) + 0 + n 3 π 3 54 cos ( nπ ) ) − ( 0 + 0 + n 3 π 3 54 cos ( 0 ) ) ] = 3 2 [ − nπ 27 ( − 1 ) n + n 3 π 3 54 ( − 1 ) n − n 3 π 3 54 ] = − nπ 18 ( − 1 ) n + n 3 π 3 36 ( − 1 ) n − n 3 π 3 36 = n 3 π 3 18 [ 2 ( − 1 ) n − n 2 π 2 ( − 1 ) n − 2 ]
Assembling the Series: Substituting b n into the series:
x 2 = n = 1 ∑ ∞ n 3 π 3 18 [ 2 ( − 1 ) n − n 2 π 2 ( − 1 ) n − 2 ] sin ( 3 nπ x ) = n = 1 ∑ ∞ ( n 3 π 3 36 [( − 1 ) n − 1 ] − nπ 18 ( − 1 ) n ) sin ( 3 nπ x )
Answer: x 2 = n = 1 ∑ ∞ n 3 π 3 18 [ 2 ( − 1 ) n − n 2 π 2 ( − 1 ) n − 2 ] sin ( 3 nπ x )
Example 4 4 Obtain the half-range Fourier sine series for f ( x ) = e x in 0 < x < 1 .
Half-Range Sine Series Formulation: In the interval ( 0 , l ) = ( 0 , 1 ) , l = 1 . The half-range sine series is:
e x where b n = n = 1 ∑ ∞ b n sin ( nπ x ) , = 2 ∫ 0 1 e x sin ( nπ x ) d x
Applying the Exponential-Sine Reduction Formula:
b n = 2 ∫ 0 1 e x sin ( nπ x ) d x = 2 [ 1 + n 2 π 2 e x ( sin ( nπ x ) − nπ cos ( nπ x ) ) ] 0 1 = 1 + n 2 π 2 2 [ e 1 ( sin nπ − nπ cos nπ ) − e 0 ( sin 0 − nπ cos 0 ) ]
Substituting the Integration Limits: Since sin ( nπ ) = 0 , cos ( nπ ) = ( − 1 ) n , and cos 0 = 1 :
b n = 1 + n 2 π 2 2 [ e ( 0 − nπ ( − 1 ) n ) − 1 ( 0 − nπ ( 1 ) ) ] = 1 + n 2 π 2 2 [ − nπ e ( − 1 ) n + nπ ] = 1 + n 2 π 2 2 nπ [ 1 − e ( − 1 ) n ]
Assembling the Series:
e x = n = 1 ∑ ∞ 1 + n 2 π 2 2 nπ [ 1 − e ( − 1 ) n ] sin ( nπ x ) = 2 π n = 1 ∑ ∞ 1 + n 2 π 2 n [ 1 − e ( − 1 ) n ] sin ( nπ x )
Example 5 5 Find the half-range sine series of the triangular wave function:
f ( t ) = { l 2 k t l 2 k ( l − t ) for 0 < t < 2 l for 2 l < t < l
Half-Range Sine Series Formulation & Integral Splitting: In ( 0 , l ) , the half-range sine series is:
Splitting the integral at t = l /2 :
b n = l 2 ∫ 0 l /2 l 2 k t sin ( l nπ t ) d t + l 2 ∫ l /2 l l 2 k ( l − t ) sin ( l nπ t ) d t = l 2 4 k ∫ 0 l /2 t sin ( l nπ t ) d t + l 2 4 k ∫ l /2 l ( l − t ) sin ( l nπ t ) d t
Integrating by Parts on Both Intervals: For the first integral ∫ 0 l /2 t sin ( l nπ t ) d t :
I 1 = [ t ( − nπ l cos l nπ t ) − ( 1 ) ( − n 2 π 2 l 2 sin l nπ t ) ] 0 l /2 = [ − nπ lt cos ( l nπ t ) + n 2 π 2 l 2 sin ( l nπ t ) ] 0 l /2 = − 2 nπ l 2 cos ( 2 nπ ) + n 2 π 2 l 2 sin ( 2 nπ )
For the second integral ∫ l /2 l ( l − t ) sin ( l nπ t ) d t :
I 2 = [ ( l − t ) ( − nπ l cos l nπ t ) − ( − 1 ) ( − n 2 π 2 l 2 sin l nπ t ) ] l /2 l = [ − nπ l ( l − t ) cos ( l nπ t ) − n 2 π 2 l 2 sin ( l nπ t ) ] l /2 l = ( 0 − 0 ) − [ − 2 nπ l 2 cos ( 2 nπ ) − n 2 π 2 l 2 sin ( 2 nπ ) ] = 2 nπ l 2 cos ( 2 nπ ) + n 2 π 2 l 2 sin ( 2 nπ )
Combining the Two Integrals: Adding I 1 and I 2 , the cosine terms cancel identically:
b n = l 2 4 k ( I 1 + I 2 ) = l 2 4 k [ − 2 nπ l 2 cos ( 2 nπ ) + n 2 π 2 l 2 sin ( 2 nπ ) + 2 nπ l 2 cos ( 2 nπ ) + n 2 π 2 l 2 sin ( 2 nπ ) ] = l 2 4 k ( n 2 π 2 2 l 2 sin ( 2 nπ ) ) = n 2 π 2 8 k sin ( 2 nπ )
Branching for Even and Odd n :
For even n = 2 m : sin ( 2 2 mπ ) = sin ( mπ ) = 0 ⟹ b 2 m = 0 For odd n = 2 m − 1 : sin ( 2 ( 2 m − 1 ) π ) = ( − 1 ) m − 1
Thus:
f ( t ) = π 2 8 k n = 1 ∑ ∞ n 2 1 sin ( 2 nπ ) sin ( l nπ t ) = π 2 8 k [ 1 2 sin l π t − 3 2 sin l 3 π t + 5 2 sin l 5 π t − 7 2 sin l 7 π t + ⋯ ]
Answer: f ( t ) = π 2 8 k n = 1 ∑ ∞ n 2 1 sin ( 2 nπ ) sin ( l nπ t ) = π 2 8 k [ 1 2 sin ( π t / l ) − 3 2 sin ( 3 π t / l ) + 5 2 sin ( 5 π t / l ) − ⋯ ]
Example 6 6 Obtain the half-range Fourier sine series for f ( x ) = π x − x 2 in ( 0 , π ) .
Half-Range Sine Series Formulation: In ( 0 , π ) with l = π , the half-range sine series is:
where b n is given by:
b n = π 2 ∫ 0 π ( π x − x 2 ) sin ( n x ) d x
Evaluating b n by Generalized Integration by Parts: Using Bernoulli's rule with u = π x − x 2 (u ′ = π − 2 x , u ′′ = − 2 ) and v = sin ( n x ) :
b n = π 2 [ ( π x − x 2 ) ( − n cos n x ) − ( π − 2 x ) ( − n 2 sin n x ) + ( − 2 ) ( n 3 cos n x ) ] 0 π = π 2 [ − ( π x − x 2 ) n cos n x + ( π − 2 x ) n 2 sin n x − 2 n 3 cos n x ] 0 π
Substituting the Integration Limits: Evaluating at x = π and x = 0 , noting sin ( nπ ) = 0 and cos ( nπ ) = ( − 1 ) n :
b n = π 2 [ ( 0 + 0 − n 3 2 cos nπ ) − ( 0 + 0 − n 3 2 cos 0 ) ] = π 2 ( − n 3 2 ( − 1 ) n + n 3 2 ) = π n 3 4 [ 1 − ( − 1 ) n ]
For even n = 2 k : b 2 k = 0 For odd n = 2 k − 1 : b 2 k − 1 = π ( 2 k − 1 ) 3 8 Assembling the Series: Substituting the coefficients:
π x − x 2 = odd n ∑ π n 3 8 sin ( n x ) = π 8 k = 1 ∑ ∞ ( 2 k − 1 ) 3 sin ( 2 k − 1 ) x = π 8 [ 1 3 sin x + 3 3 sin 3 x + 5 3 sin 5 x + 7 3 sin 7 x + ⋯ ]
Answer: π x − x 2 = n = 1 ∑ ∞ n 3 π 4 [ 1 − ( − 1 ) n ] sin ( n x ) = π 8 [ 1 3 sin x + 3 3 sin 3 x + 5 3 sin 5 x + ⋯ ]
Example 7 7 Find the complex Fourier series of the function f ( x ) = e x in the interval ( − π , π ) .
Complex Fourier Series Formulation: In ( − π , π ) with l = π and period T = 2 π , the complex exponential Fourier series is:
f ( x ) = n = − ∞ ∑ ∞ c n e in x = c 0 + n = 1 ∑ ∞ ( c − n e in x + c n e − in x )
Evaluating the Constant Coefficient c 0 :
c 0 = 2 π 1 ∫ − π π e x d x = 2 π 1 [ e x ] − π π = 2 π e π − e − π = π sinh π
Evaluating the Harmonic Coefficients c − n : Integrating e x e − in x = e ( 1 − in ) x :
c − n = 2 π 1 ∫ − π π e x e − in x d x = 2 π 1 ∫ − π π e ( 1 − in ) x d x = 2 π 1 [ 1 − in e ( 1 − in ) x ] − π π = 2 π ( 1 − in ) 1 ( e π e − inπ − e − π e inπ )
Using e ± inπ = cos ( nπ ) ± i sin ( nπ ) = ( − 1 ) n :
c − n = 2 π ( 1 − in ) ( − 1 ) n ( e π − e − π ) = π ( 1 − in ) ( − 1 ) n sinh π = π ( 1 − i 2 n 2 ) ( − 1 ) n ( 1 + in ) sinh π = π ( 1 + n 2 ) ( − 1 ) n ( 1 + in ) sinh π
Evaluating c n and Assembling the Series: Taking the complex conjugate c n = c − n :
c n = π ( 1 + n 2 ) ( − 1 ) n ( 1 − in ) sinh π
Thus the complete complex Fourier series is:
e x = π sinh π + n = 1 ∑ ∞ π ( 1 + n 2 ) ( − 1 ) n sinh π [ ( 1 + in ) e in x + ( 1 − in ) e − in x ] = π sinh π + n = 1 ∑ ∞ π ( 1 + n 2 ) ( − 1 ) n ( 1 + in ) sinh π e in x + n = 1 ∑ ∞ π ( 1 + n 2 ) ( − 1 ) n ( 1 − in ) sinh π e − in x
Answer: e x = π sinh π + n = 1 ∑ ∞ π ( 1 + n 2 ) ( − 1 ) n ( 1 + in ) sinh π e in x + n = 1 ∑ ∞ π ( 1 + n 2 ) ( − 1 ) n ( 1 − in ) sinh π e − in x
Example 8 8 Find the complex Fourier series of the function f ( x ) = x 2 in the interval ( 0 , 2 π ) .
Complex Fourier Series Formulation on ( 0 , 2 π ) : In ( 0 , 2 π ) with T = 2 π , the complex exponential Fourier series is:
f ( x ) = c 0 + n = 1 ∑ ∞ ( c − n e in x + c n e − in x )
Evaluating c 0 :
c 0 = 2 π 1 ∫ 0 2 π x 2 d x = 2 π 1 [ 3 x 3 ] 0 2 π = 2 π 1 ( 3 8 π 3 − 0 ) = 3 4 π 2
Evaluating c − n by Integration by Parts: Integrating by parts with u = x 2 (u ′ = 2 x , u ′′ = 2 ) and v = e − in x :
c − n = 2 π 1 ∫ 0 2 π x 2 e − in x d x = 2 π 1 [ x 2 ( − in e − in x ) − ( 2 x ) ( ( − in ) 2 e − in x ) + ( 2 ) ( ( − in ) 3 e − in x ) ] 0 2 π = 2 π 1 [ n i x 2 e − in x + n 2 2 x e − in x − n 3 2 i e − in x ] 0 2 π
Substituting the Integration Limits: Using e − 2 inπ = 1 and e 0 = 1 :
c − n = 2 π 1 [ ( n i ( 4 π 2 ) ( 1 ) + n 2 2 ( 2 π ) ( 1 ) − n 3 2 i ( 1 ) ) − ( 0 + 0 − n 3 2 i ( 1 ) ) ] = 2 π 1 ( n 4 i π 2 + n 2 4 π ) = n 2 iπ + n 2 2 = n 2 2 ( 1 + inπ )
For c n = c − n :
Assembling the Complex Series:
x 2 = 3 4 π 2 + n = 1 ∑ ∞ n 2 2 ( 1 + inπ ) e in x + n = 1 ∑ ∞ n 2 2 ( 1 − inπ ) e − in x
Answer: x 2 = 3 4 π 2 + n = 1 ∑ ∞ n 2 2 ( 1 + inπ ) e in x + n = 1 ∑ ∞ n 2 2 ( 1 − inπ ) e − in x
Example 9 9 Find the complex Fourier series of the function:
Problem Setup on ( − π , π ) : Since f ( x ) = 0 outside ( − π /2 , π /2 ) , the integration reduces strictly to [ − π /2 , π /2 ] :
f ( x ) = c 0 + n = 1 ∑ ∞ ( c − n e in x + c n e − in x )
Evaluating c 0 :
c 0 = 2 π 1 ∫ − π /2 π /2 1 d x = 2 π 1 [ x ] − π /2 π /2 = 2 π 1 ( 2 π − ( − 2 π ) ) = 2 π 1 ( π ) = 2 1
Evaluating c − n :
c − n = 2 π 1 ∫ − π /2 π /2 ( 1 ) e − in x d x = 2 π 1 [ − in e − in x ] − π /2 π /2 = 2 π ( − in ) 1 ( e − inπ /2 − e inπ /2 ) = πn 1 ( 2 i e inπ /2 − e − inπ /2 ) = nπ sin ( 2 nπ )
Since this expression is purely real, c n = c − n = c − n = nπ s i n ( nπ /2 ) .
Assembling the Series & Real Trigonometric Equivalent: Combining into complex exponential and real trigonometric form:
f ( x ) = 2 1 + n = 1 ∑ ∞ nπ sin ( 2 nπ ) ( e in x + e − in x ) = 2 1 + n = 1 ∑ ∞ nπ sin ( 2 nπ ) ( 2 cos n x ) = 2 1 + π 2 n = 1 ∑ ∞ n sin ( 2 nπ ) cos ( n x ) = 2 1 + π 2 ( 1 cos x − 3 cos 3 x + 5 cos 5 x − 7 cos 7 x + ⋯ )
Answer: f ( x ) = 2 1 + n = 1 ∑ ∞ nπ sin ( nπ /2 ) ( e in x + e − in x ) = 2 1 + π 2 n = 1 ∑ ∞ n sin ( nπ /2 ) cos ( n x )
Example 10 10 Find the complex Fourier series of the function f ( x ) = 1 − x in the interval ( 0 , 1 ) .
Problem Framing & Periodicity: Here the interval length is T = 2 l = 1 , so l = 1/2 and l nπ x = 1/2 nπ x = 2 nπ x . The complex exponential Fourier series is:
f ( x ) = c 0 + n = 1 ∑ ∞ ( c − n e 2 inπ x + c n e − 2 inπ x )
Evaluating c 0 :
c 0 = 1 1 ∫ 0 1 ( 1 − x ) d x = [ x − 2 x 2 ] 0 1 = ( 1 − 2 1 ) − ( 0 ) = 2 1
Evaluating c − n by Integration by Parts: With u = 1 − x (u ′ = − 1 ) and d v = e − 2 inπ x d x (v = − 2 inπ e − 2 inπ x ):
c − n = ∫ 0 1 ( 1 − x ) e − 2 inπ x d x = [ ( 1 − x ) ( − 2 inπ e − 2 inπ x ) − ( − 1 ) ( − 4 n 2 π 2 e − 2 inπ x ) ] 0 1 = [ − 2 inπ ( 1 − x ) e − 2 inπ x − 4 n 2 π 2 e − 2 inπ x ] 0 1
Substituting Limits & Simplifying: Evaluating at x = 1 and x = 0 , noting e − 2 inπ = 1 and e 0 = 1 :
c − n = ( 0 − 4 n 2 π 2 1 ) − ( − 2 inπ 1 − 4 n 2 π 2 1 ) = − 4 n 2 π 2 1 + 2 inπ 1 + 4 n 2 π 2 1 = 2 inπ 1 = − 2 nπ i
Taking the complex conjugate c n = c − n :
Assembling the Complex Series:
1 − x = 2 1 + n = 1 ∑ ∞ ( − 2 nπ i e 2 inπ x + 2 nπ i e − 2 inπ x ) = 2 1 − n = 1 ∑ ∞ 2 nπ i e 2 inπ x + n = 1 ∑ ∞ 2 nπ i e − 2 inπ x
Answer: 1 − x = 2 1 − n = 1 ∑ ∞ 2 nπ i e 2 inπ x + n = 1 ∑ ∞ 2 nπ i e − 2 inπ x ( Book prints c 0 = 2 3 )
Exercise 2 (Questions & Final Book Answers)
Exercise - 2 Question 1 Find half-range Fourier cosine series for f ( x ) = x 2 in the range 0 ≤ x ≤ π .
Half-Range Fourier Cosine Series Formulation: In the interval [ 0 , π ] , the half-range Fourier cosine series is:
f ( x ) = 2 a 0 + n = 1 ∑ ∞ a n cos n x
where:
a 0 a n = π 2 ∫ 0 π f ( x ) d x = π 2 ∫ 0 π f ( x ) cos n x d x
Evaluating a 0 : Integrating x 2 :
a 0 = π 2 ∫ 0 π x 2 d x = π 2 [ 3 x 3 ] 0 π = π 2 ( 3 π 3 − 0 ) = 3 2 π 2
Thus:
Evaluating a n by Tabular Integration: Applying integration by parts:
a n = π 2 ∫ 0 π x 2 cos n x d x = π 2 [ x 2 ( n sin n x ) − ( 2 x ) ( − n 2 cos n x ) + ( 2 ) ( − n 3 sin n x ) ] 0 π = π 2 [ n 2 2 π cos nπ − 0 ] = n 2 4 ( − 1 ) n
Assembling the Cosine Series: Writing out terms for n = 1 , 2 , 3 , … :
f ( x ) = 3 π 2 + n = 1 ∑ ∞ n 2 4 ( − 1 ) n cos n x = 3 π 2 − 4 ( 1 2 cos x − 2 2 cos 2 x + 3 2 cos 3 x − 4 2 cos 4 x + ⋯ )
Answer: 3 π 2 − 4 ( 1 2 cos x − 2 2 cos 2 x + 3 2 cos 3 x − 4 2 cos 4 x + ⋯ )
Question 2 Obtain half-range cosine and sine series of f ( x ) = x in the interval 0 ≤ x ≤ π . Hence show that 1 2 1 + 3 2 1 + 5 2 1 + ⋯ = 8 π 2 .
Evaluating Half-Range Cosine Coefficients: For the cosine series in [ 0 , π ] :
a 0 = π 2 ∫ 0 π x d x = π 2 [ 2 x 2 ] 0 π = π
Thus:
Evaluating a n :
a n = π 2 ∫ 0 π x cos n x d x = π 2 [ x n sin n x + n 2 cos n x ] 0 π = π 2 ( n 2 cos nπ − n 2 1 ) = π n 2 2 ( ( − 1 ) n − 1 )
For even n , a n = 0 . For odd n :
Assembling the Cosine Series: Writing out terms for odd n :
x = 2 π − π 4 k = 1 ∑ ∞ ( 2 k − 1 ) 2 cos ( 2 k − 1 ) x = 2 π − π 4 ( 1 2 cos x + 3 2 cos 3 x + 5 2 cos 5 x + ⋯ )
Evaluating Half-Range Sine Series: The sine coefficient is:
b n = π 2 ∫ 0 π x sin n x d x = π 2 [ − x n cos n x + n 2 sin n x ] 0 π = π 2 ( − n π cos nπ − 0 ) = − n 2 ( − 1 ) n = n 2 ( − 1 ) n + 1
Thus:
x = 2 ( 1 sin x − 2 sin 2 x + 3 sin 3 x − ⋯ )
Deducing the Numerical Series: Setting x = 0 in the half-range cosine series, where f ( 0 ) = 0 :
0 π 4 ( 1 2 1 + 3 2 1 + 5 2 1 + ⋯ ) 1 2 1 + 3 2 1 + 5 2 1 + ⋯ = 2 π − π 4 ( 1 2 1 + 3 2 1 + 5 2 1 + ⋯ ) = 2 π = 8 π 2
Answer: Cosine: 2 π − π 4 ( 1 2 cos x + 3 2 cos 3 x + 5 2 cos 5 x + ⋯ ) , Sine: 2 ( 1 sin x − 2 sin 2 x + 3 sin 3 x − ⋯ )
Question 3 Obtain half-range Fourier sine series of f ( x ) = x sin x in the interval ( 0 , π ) and deduce that 1 ⋅ 3 1 − 3 ⋅ 5 1 + 5 ⋅ 7 1 − ⋯ = 4 1 ( π − 2 ) .
Half-Range Sine Series Setup: In ( 0 , π ) , the sine series is:
where:
b n = π 2 ∫ 0 π x sin x sin n x d x
Evaluating b 1 for n = 1 : When n = 1 :
b 1 = π 2 ∫ 0 π x sin 2 x d x = π 1 ∫ 0 π x ( 1 − cos 2 x ) d x = π 1 [ 2 x 2 − ( x 2 sin 2 x + 4 cos 2 x ) ] 0 π = π 1 [ ( 2 π 2 − 4 1 ) − ( 0 − 4 1 ) ] = 2 π
Evaluating b n for n > 1 : Using the product-to-sum identity 2 sin x sin n x = cos ( n − 1 ) x − cos ( n + 1 ) x :
b n = π 1 ∫ 0 π x [ cos ( n − 1 ) x − cos ( n + 1 ) x ] d x
Using ∫ 0 π x cos k x d x = [ x k s i n k x + k 2 c o s k x ] 0 π = k 2 ( − 1 ) k − 1 :
b n = π 1 [ ( n − 1 ) 2 ( − 1 ) n − 1 − 1 − ( n + 1 ) 2 ( − 1 ) n + 1 − 1 ]
For odd n > 1 , ( − 1 ) n ± 1 = 1 , so b n = 0 . For even n = 2 k :
b 2 k = π 1 [ ( 2 k − 1 ) 2 − 2 − ( 2 k + 1 ) 2 − 2 ] = − π 2 [ ( 4 k 2 − 1 ) 2 ( 2 k + 1 ) 2 − ( 2 k − 1 ) 2 ] = − π ( 4 k 2 − 1 ) 2 16 k
Assembling the Sine Series: Combining the n = 1 harmonic and the even harmonics n = 2 k :
x sin x = 2 π sin x − π 16 k = 1 ∑ ∞ ( 4 k 2 − 1 ) 2 k sin ( 2 k x )
Deducing the Stated Series Identity: The stated series identity 1 ⋅ 3 1 − 3 ⋅ 5 1 + ⋯ = 4 1 ( π − 2 ) arises from the companion half-range cosine series of x sin x at x = π /2 (as in Question 4), since evaluating this sine series at x = π /2 has sin ( 2 k ⋅ π /2 ) = sin ( kπ ) = 0 . Using the cosine series:
x sin x = 1 − 2 cos x − 2 k = 1 ∑ ∞ 4 k 2 − 1 ( − 1 ) k cos ( 2 k x )
Setting x = 2 π , where 2 π sin 2 π = 2 π :
2 π 2 π − 1 1 ⋅ 3 1 − 3 ⋅ 5 1 + 5 ⋅ 7 1 − ⋯ = 1 + 2 ( 1 ⋅ 3 1 − 3 ⋅ 5 1 + 5 ⋅ 7 1 − ⋯ ) = 2 ( 1 ⋅ 3 1 − 3 ⋅ 5 1 + 5 ⋅ 7 1 − ⋯ ) = 4 1 ( π − 2 )
Answer: 2 π sin x − π 16 k = 1 ∑ ∞ ( 4 k 2 − 1 ) 2 k sin ( 2 k x )
Question 4 Obtain half-range Fourier cosine series of f ( x ) = x sin x in the interval ( 0 , π ) and deduce that 1 ⋅ 3 1 − 3 ⋅ 5 1 + 5 ⋅ 7 1 − ⋯ = 4 1 ( π − 2 ) .
Evaluating a 0 and a 1 : For the cosine series:
a 0 = π 2 ∫ 0 π x sin x d x = π 2 [ − x cos x + sin x ] 0 π = π 2 ( − π ( − 1 ) − 0 ) = 2
Thus:
For n = 1 :
a 1 = π 2 ∫ 0 π x sin x cos x d x = π 1 ∫ 0 π x sin 2 x d x = π 1 [ − x 2 cos 2 x + 4 sin 2 x ] 0 π = π 1 ( − 2 π − 0 ) = − 2 1
Evaluating a n for n ≥ 2 : Using the identity 2 sin x cos n x = sin ( n + 1 ) x − sin ( n − 1 ) x :
a n = π 1 ∫ 0 π x [ sin ( n + 1 ) x − sin ( n − 1 ) x ] d x
Using ∫ 0 π x sin k x d x = [ − x k c o s k x + k 2 s i n k x ] 0 π = − k π ( − 1 ) k = k π ( − 1 ) k + 1 :
a n = π 1 [ n + 1 π ( − 1 ) n − n − 1 π ( − 1 ) n ] = ( − 1 ) n [ n + 1 1 − n − 1 1 ] = ( − 1 ) n [ n 2 − 1 − 2 ] = n 2 − 1 2 ( − 1 ) n + 1
Assembling the Cosine Series: Writing out terms for n = 2 , 3 , 4 , … :
x sin x = 1 − 2 cos x + n = 2 ∑ ∞ n 2 − 1 2 ( − 1 ) n + 1 cos n x = 1 − 2 cos x − 1 ⋅ 3 2 cos 2 x + 2 ⋅ 4 2 cos 3 x − 3 ⋅ 5 2 cos 4 x + ⋯
Deducing the Numerical Series: Setting x = 2 π , where 2 π sin 2 π = 2 π :
2 π = 1 − 0 − 1 ⋅ 3 2 ( − 1 ) + 0 − 3 ⋅ 5 2 ( 1 ) + 0 − 5 ⋅ 7 2 ( − 1 ) + ⋯ = 1 + 2 ( 1 ⋅ 3 1 − 3 ⋅ 5 1 + 5 ⋅ 7 1 − ⋯ )
Subtracting 1 and dividing by 2 :
2 π − 1 1 ⋅ 3 1 − 3 ⋅ 5 1 + 5 ⋅ 7 1 − ⋯ = 2 ( 1 ⋅ 3 1 − 3 ⋅ 5 1 + 5 ⋅ 7 1 − ⋯ ) = 4 1 ( π − 2 )
Answer: 1 − 2 cos x − 1 ⋅ 3 2 cos 2 x + 2 ⋅ 4 2 cos 3 x − 3 ⋅ 5 2 cos 4 x + ⋯
Question 5 Find half-range Fourier cosine series for f ( x ) = e x in 0 < x < 1 .
Half-Range Cosine Series Formulation with l = 1 : In 0 < x < 1 :
f ( x ) = 2 a 0 + n = 1 ∑ ∞ a n cos ( nπ x )
where:
a 0 a n = 1 2 ∫ 0 1 e x d x = 1 2 ∫ 0 1 e x cos ( nπ x ) d x
Evaluating a 0 : Integrating directly:
Thus:
Evaluating a n : Using ∫ e a x cos b x d x = a 2 + b 2 e a x ( a cos b x + b sin b x ) with a = 1 , b = nπ :
a n = 2 [ 1 + n 2 π 2 e x ( cos nπ x + nπ sin nπ x ) ] 0 1 = 2 [ 1 + n 2 π 2 e ( cos nπ + 0 ) − 1 + n 2 π 2 1 ( 1 + 0 ) ] = 1 + n 2 π 2 2 [ e ( − 1 ) n − 1 ]
Assembling the Series: Substituting into the cosine series:
e x = e − 1 + n = 1 ∑ ∞ 1 + n 2 π 2 2 [ e ( − 1 ) n − 1 ] cos ( nπ x )
Answer: e − 1 + n = 1 ∑ ∞ 1 + n 2 π 2 2 [ e ( − 1 ) n − 1 ] cos ( nπ x )
Question 6 If f ( x ) = c , then prove that the Fourier sine series of the constant function in the range 0 < x < π is π 4 c { 1 s i n x + 3 s i n 3 x + 5 s i n 5 x + ⋯ } .
Half-Range Sine Series Setup: For f ( x ) = c in ( 0 , π ) :
where:
Evaluating the Antiderivative: Integrating with respect to x :
b n = π 2 c [ − n cos n x ] 0 π = π 2 c ( − n cos nπ − ( − n 1 ) ) = nπ 2 c ( 1 − ( − 1 ) n )
Odd and Even Harmonic Evaluation: Evaluating for even and odd integers:
Assembling the Sine Series: Summing over odd integers n = 1 , 3 , 5 , … :
f ( x ) = π 4 c { 1 sin x + 3 sin 3 x + 5 sin 5 x + ⋯ }
Answer: f ( x ) = π 4 c { 1 sin x + 3 sin 3 x + 5 sin 5 x + ⋯ }
Question 7 Find half-range Fourier sine series for f ( x ) = x − x 2 in 0 < x < 1 .
Half-Range Sine Series Formulation (l = 1 ): By definition:
where:
b n = 1 2 ∫ 0 1 ( x − x 2 ) sin ( nπ x ) d x
Integration by Parts via Tabular Method: Applying integration by parts:
∫ ( x − x 2 ) sin ( nπ x ) d x = ( x − x 2 ) ( − nπ cos nπ x ) − ( 1 − 2 x ) ( − n 2 π 2 sin nπ x ) + ( − 2 ) ( n 3 π 3 cos nπ x ) = − nπ ( x − x 2 ) cos nπ x + n 2 π 2 ( 1 − 2 x ) sin nπ x − n 3 π 3 2 cos nπ x
Evaluating Definite Integral: Substituting limits from x = 0 to x = 1 :
Assembling the Series: Writing out terms for n = 1 , 3 , 5 , … :
f ( x ) = π 3 8 ( 1 3 sin π x + 3 3 sin 3 π x + 5 3 sin 5 π x + ⋯ )
Answer: π 3 8 ( 1 3 sin π x + 3 3 sin 3 π x + 5 3 sin 5 π x + ⋯ )
Question 8 Find half-range Fourier cosine series for f ( x ) = sin ( π x ) in the interval 0 < x < 1 .
Evaluating a 0 (l = 1 ): In 0 < x < 1 :
a 0 = 2 ∫ 0 1 sin ( π x ) d x = 2 [ − π cos π x ] 0 1 = 2 ( π 1 − ( − π 1 ) ) = π 4
Thus:
Evaluating a 1 for n = 1 : When n = 1 :
a 1 = 2 ∫ 0 1 sin ( π x ) cos ( π x ) d x = ∫ 0 1 sin ( 2 π x ) d x = [ − 2 π cos 2 π x ] 0 1 = 0
Evaluating a n for n ≥ 2 : Using 2 sin ( π x ) cos ( nπ x ) = sin ( n + 1 ) π x − sin ( n − 1 ) π x :
a n = ∫ 0 1 [ sin ( n + 1 ) π x − sin ( n − 1 ) π x ] d x = [ − ( n + 1 ) π cos ( n + 1 ) π x + ( n − 1 ) π cos ( n − 1 ) π x ] 0 1 = ( n + 1 ) π 1 − ( − 1 ) n + 1 − ( n − 1 ) π 1 − ( − 1 ) n − 1 = π 1 + ( − 1 ) n [ n + 1 1 − n − 1 1 ] = − π ( n 2 − 1 ) 2 ( ( − 1 ) n + 1 )
Assembling the Series: Substituting back into the cosine series:
sin ( π x ) = π 2 − π 2 n = 2 ∑ ∞ n 2 − 1 ( − 1 ) n + 1 cos ( nπ x )
Answer: π 2 − π 2 n = 2 ∑ ∞ n 2 − 1 ( − 1 ) n + 1 cos ( nπ x )
Question 9 Obtain half-range Fourier cosine series of the function f ( x ) = sin x in the interval ( 0 , π ) and hence show that ∑ n = 1 ∞ 4 n 2 − 1 1 = 2 1 .
Evaluating a 0 and a 1 : In ( 0 , π ) :
a 0 = π 2 ∫ 0 π sin x d x = π 2 [ − cos x ] 0 π = π 4
Thus:
For n = 1 :
a 1 = π 2 ∫ 0 π sin x cos x d x = π 1 ∫ 0 π sin 2 x d x = 0
Evaluating a n for n ≥ 2 : Using the identity 2 sin x cos n x = sin ( n + 1 ) x − sin ( n − 1 ) x :
a n = π 1 ∫ 0 π [ sin ( n + 1 ) x − sin ( n − 1 ) x ] d x = π 1 [ − n + 1 cos ( n + 1 ) x + n − 1 cos ( n − 1 ) x ] 0 π = − π ( n 2 − 1 ) 2 ( ( − 1 ) n + 1 )
Assembling the Series: Since ( − 1 ) n + 1 = 0 for odd n and 2 for even n = 2 m :
sin x = π 2 − π 4 m = 1 ∑ ∞ 4 m 2 − 1 cos 2 m x
Deducing the Numerical Sum: Setting x = 0 where sin ( 0 ) = 0 :
0 π 4 m = 1 ∑ ∞ 4 m 2 − 1 1 m = 1 ∑ ∞ 4 m 2 − 1 1 = π 2 − π 4 m = 1 ∑ ∞ 4 m 2 − 1 1 = π 2 = 2 1
Answer: π 2 − π 2 n = 2 ∑ ∞ n 2 − 1 ( − 1 ) n + 1 cos ( n x )
Question 10 Find the half-range Fourier sine series for the function f ( x ) = e x for 0 < x < π .
Half-Range Sine Series Setup: By definition:
where:
Antiderivative of Exponential-Sine Integral: Using the standard result:
∫ e x sin n x d x = n 2 + 1 e x ( sin n x − n cos n x )
Evaluating the Definite Integral: Substituting the limits from x = 0 to x = π :
b n = π 2 [ n 2 + 1 e x ( sin n x − n cos n x ) ] 0 π = π 2 [ n 2 + 1 e π ( − n cos nπ ) − n 2 + 1 − n ] = π ( n 2 + 1 ) 2 n [ 1 − ( − 1 ) n e π ]
Assembling the Series: Substituting b n :
e x = π 2 n = 1 ∑ ∞ n 2 + 1 n [ 1 − ( − 1 ) n e π ] sin ( n x )
Answer: π 2 n = 1 ∑ ∞ n 2 + 1 n [ 1 − ( − 1 ) n e π ] sin ( n x ) ( Book prints π 2 ( 1 − e π ) ( 1 sin x + 5 2 sin 2 x + 10 3 sin 3 x + ⋯ ) )
Question 11 Prove that the half-range Fourier sine series for the function f ( x ) = l x − x 2 in ( 0 , l ) is π 3 8 l 2 ∑ n = 0 ∞ ( 2 n + 1 ) 3 1 sin ( l ( 2 n + 1 ) π x ) .
Half-Range Sine Series Setup: In ( 0 , l ) :
f ( x ) = n = 1 ∑ ∞ b n sin ( l nπ x )
where:
b n = l 2 ∫ 0 l ( l x − x 2 ) sin ( l nπ x ) d x
Evaluating by Tabular Integration: Applying integration by parts:
∫ ( l x − x 2 ) sin ( l nπ x ) d x = ( l x − x 2 ) ( − nπ l cos l nπ x ) − ( l − 2 x ) ( − n 2 π 2 l 2 sin l nπ x ) + ( − 2 ) ( n 3 π 3 l 3 cos l nπ x )
Substituting Limits: Evaluating between x = 0 and x = l :
∫ 0 l ( l x − x 2 ) sin ( l nπ x ) d x = [ − n 3 π 3 2 l 3 cos nπ ] − [ − n 3 π 3 2 l 3 ] = n 3 π 3 2 l 3 ( 1 − ( − 1 ) n )
Multiplying by l 2 :
Assembling the Series: Setting n = 2 m + 1 for m = 0 , 1 , 2 , … :
l x − x 2 = π 3 8 l 2 m = 0 ∑ ∞ ( 2 m + 1 ) 3 1 sin ( l ( 2 m + 1 ) π x )
Answer: π 3 8 l 2 n = 0 ∑ ∞ ( 2 n + 1 ) 3 1 sin ( l ( 2 n + 1 ) π x )
Question 12 Obtain half-range sine and cosine series for the function f ( x ) = { x π − x for 0 < x < π /2 for π /2 < x < π .
Half-Range Sine Series Setup & Integration: The sine coefficient is:
b n = π 2 [ ∫ 0 π /2 x sin n x d x + ∫ π /2 π ( π − x ) sin n x d x ]
Evaluating each piece:
∫ 0 π /2 x sin n x d x = [ − x n cos n x + n 2 sin n x ] 0 π /2 = − 2 n π cos ( nπ /2 ) + n 2 sin ( nπ /2 )
and:
∫ π /2 π ( π − x ) sin n x d x = [ − ( π − x ) n cos n x − n 2 sin n x ] π /2 π = 2 n π cos ( nπ /2 ) + n 2 sin ( nπ /2 )
Assembling the Sine Series: Adding the two pieces:
For odd n = 2 k − 1 :
b 2 k − 1 = π ( 2 k − 1 ) 2 4 ( − 1 ) k + 1
Thus:
f ( x ) = π 4 ( 1 2 sin x − 3 2 sin 3 x + 5 2 sin 5 x − ⋯ )
Half-Range Cosine Series a 0 Evaluation: Evaluating a 0 :
a 0 = π 2 [ ∫ 0 π /2 x d x + ∫ π /2 π ( π − x ) d x ] = π 2 [ 8 π 2 + 8 π 2 ] = 2 π
Thus:
Evaluating Cosine Coefficients a n : Evaluating the cosine integrals:
a n = π 2 [ ∫ 0 π /2 x cos n x d x + ∫ π /2 π ( π − x ) cos n x d x ] = π 2 [ n 2 2 cos ( nπ /2 ) − 1 − cos nπ ]
For odd n , a n = 0 . For n = 4 m , a n = 0 . For n = 4 m − 2 = 2 , 6 , 10 , … :
Assembling the Cosine Series: Writing out terms for n = 2 , 6 , 10 , … :
f ( x ) = 4 π − π 2 ( 1 2 cos 2 x + 3 2 cos 6 x + 5 2 cos 10 x + ⋯ )
Answer: Sine: π 4 ( 1 2 sin x − 3 2 sin 3 x + 5 2 sin 5 x − ⋯ ) , Cosine: 4 π − π 2 ( 1 2 cos 2 x + 3 2 cos 6 x + 5 2 cos 10 x + ⋯ )
Question 13 Find the complex Fourier series of the function f ( x ) = x for − π < x < π .
Complex Fourier Series Formulation: The complex Fourier series is:
where:
c n = 2 π 1 ∫ − π π f ( x ) e − in x d x
Evaluating c 0 : For n = 0 :
c 0 = 2 π 1 ∫ − π π x d x = 2 π 1 [ 2 x 2 ] − π π = 0
Evaluating c n for n = 0 : Using integration by parts with u = x , d v = e − in x d x :
c n = 2 π 1 [ x ( − in e − in x ) − ( − in ) 2 e − in x ] − π π = 2 π 1 [ − in π ( − 1 ) n − in π ( − 1 ) n ] = − in ( − 1 ) n = n i ( − 1 ) n
Assembling the Complex Series: Since c − n = − n i ( − 1 ) − n = n i ( − 1 ) n + 1 :
f ( x ) = n = 1 ∑ ∞ n i ( − 1 ) n e in x + n = 1 ∑ ∞ n i ( − 1 ) n + 1 e − in x
Answer: n = 1 ∑ ∞ n i ( − 1 ) n e in x + n = 1 ∑ ∞ n i ( − 1 ) n + 1 e − in x
Question 14 Find the complex Fourier series of the function f ( x ) = x 2 for − π < x < π .
Evaluating c 0 : By definition:
c 0 = 2 π 1 ∫ − π π x 2 d x = 2 π 1 [ 3 x 3 ] − π π = 3 π 2
Evaluating c n for n = 0 : Integrating by parts repeatedly:
c n = 2 π 1 ∫ − π π x 2 e − in x d x = 2 π 1 [ x 2 ( − in e − in x ) − ( 2 x ) ( − n 2 e − in x ) + ( 2 ) ( i n 3 e − in x ) ] − π π
Substituting Limits: Using e ± inπ = ( − 1 ) n :
c n = 2 π 1 [ n 2 2 π ( − 1 ) n − ( − n 2 2 π ( − 1 ) n ) ] = n 2 2 ( − 1 ) n
For negative index − n :
c − n = ( − n ) 2 2 ( − 1 ) − n = n 2 2 ( − 1 ) n
Assembling the Complex Series: Substituting c 0 and c n :
x 2 = 3 π 2 + n = 1 ∑ ∞ n 2 2 ( − 1 ) n e in x + n = 1 ∑ ∞ n 2 2 ( − 1 ) n e − in x
Answer: 3 π 2 + n = 1 ∑ ∞ n 2 2 ( − 1 ) n e in x + n = 1 ∑ ∞ n 2 2 ( − 1 ) n e − in x
Question 15 Find the complex Fourier series of the function f ( x ) = { 0 1 for − π < x < 0 for 0 < x < π .
Evaluating c 0 : By definition:
Evaluating c n for n = 0 : Integrating the complex exponential:
c n = 2 π 1 ∫ 0 π ( 1 ) e − in x d x = 2 π 1 [ − in e − in x ] 0 π = − 2 πin e − inπ − 1 = 2 πin 1 − ( − 1 ) n = 2 nπ i [ ( − 1 ) n − 1 ]
Evaluating c − n : For negative frequencies:
c − n = − 2 nπ i [ ( − 1 ) − n − 1 ] = 2 nπ i [ 1 − ( − 1 ) n ]
Assembling the Series: Combining terms:
f ( x ) = 2 1 + n = 1 ∑ ∞ 2 nπ i [ ( − 1 ) n − 1 ] e in x + n = 1 ∑ ∞ 2 nπ i [ 1 − ( − 1 ) n ] e − in x
Answer: 2 1 + n = 1 ∑ ∞ 2 nπ i [ ( − 1 ) n − 1 ] e in x + n = 1 ∑ ∞ 2 nπ i [ 1 − ( − 1 ) n ] e − in x
Question 16 Find the complex Fourier series of the function f ( x ) = { − 1 2 for 0 ≤ x < 2 for 2 ≤ x < 4 .
Formulation for Period T = 4 (l = 2 ): The complex Fourier series is:
where:
c n = 4 1 ∫ 0 4 f ( x ) e − inπ x /2 d x
Evaluating c 0 : Integrating across both intervals:
c 0 = 4 1 [ ∫ 0 2 ( − 1 ) d x + ∫ 2 4 ( 2 ) d x ] = 4 1 [ − 2 + 4 ] = 2 1
Evaluating c n for n = 0 : Evaluating each integral:
c n = 4 1 [ − ∫ 0 2 e − inπ x /2 d x + 2 ∫ 2 4 e − inπ x /2 d x ] = 4 1 [ − ( − inπ /2 e − inπ − 1 ) + 2 ( − inπ /2 e − 2 inπ − e − inπ ) ] = 4 1 ( inπ 2 ) [ ( ( − 1 ) n − 1 ) − 2 ( 1 − ( − 1 ) n ) ] = 2 inπ 3 ( ( − 1 ) n − 1 ) = 2 nπ 3 i [ 1 − ( − 1 ) n ]
Evaluating c − n and Assembling the Series: Since c − n = − 2 nπ 3 i [ 1 − ( − 1 ) n ] = − 2 nπ 3 i [ 1 − ( − 1 ) n ] :
f ( x ) = 2 1 + n = 1 ∑ ∞ 2 nπ 3 i [ 1 − ( − 1 ) n ] e inπ x /2 − n = 1 ∑ ∞ 2 nπ 3 i [ 1 − ( − 1 ) n ] e − inπ x /2
Answer: 2 1 + n = 1 ∑ ∞ 2 nπ 3 i [ 1 − ( − 1 ) n ] e inπ x /2 − n = 1 ∑ ∞ 2 nπ 3 i [ 1 − ( − 1 ) n ] e − inπ x /2
Question 17 Find the frequency and amplitude spectrum of f ( x ) = { 0 1 for 0 ≤ x < 1 for 1 ≤ x < 4 .
Fundamental Frequency and Harmonic Formulation: The period is T = 4 , so:
The harmonic series is:
f ( x ) = A 0 + n = 1 ∑ ∞ A n cos ( 2 nπ x + δ n )
where A 0 = 2 a 0 and A n = a n 2 + b n 2 .
Evaluating a 0 , a n , and b n : Evaluating a 0 :
Thus:
Evaluating a n :
a n = 2 1 ∫ 1 4 cos ( 2 nπ x ) d x = 2 1 [ nπ /2 sin ( nπ x /2 ) ] 1 4 = − nπ 1 sin ( 2 nπ )
Evaluating b n :
b n = 2 1 ∫ 1 4 sin ( 2 nπ x ) d x = nπ 1 [ cos ( 2 nπ ) − 1 ] = − nπ 2 sin 2 ( 4 nπ )
Calculating the Amplitude Spectrum A n : Combining a n 2 + b n 2 :
A n 2 = a n 2 + b n 2 = n 2 π 2 1 [ sin 2 ( 2 nπ ) + ( cos 2 nπ − 1 ) 2 ] = n 2 π 2 2 [ 1 − cos ( 2 nπ ) ] = n 2 π 2 4 sin 2 ( 4 nπ )
Taking the positive square root:
Harmonic Spectrum Values: The first four harmonic amplitudes are:
n ω n = n ω 0 a n b n A n 1 π /2 ≈ 1.571 − 1/ π ≈ − 0.3183 − 0.3183 2 / π ≈ 0.4502 2 π ≈ 3.142 0 − 2/ ( 2 π ) ≈ − 0.3183 1/ π ≈ 0.3183 3 3 π /2 ≈ 4.712 1/ ( 3 π ) ≈ 0.1061 − 0.1061 2 / ( 3 π ) ≈ 0.1501 4 2 π ≈ 6.283 0 0 0
Question 18 Find the frequency and amplitude spectrum of f ( x ) = { 0 x for − 2 π < x < 0 for 0 < x < 2 π .
Fundamental Frequency and Harmonic Formulation: The period is T = 4 π , so l = 2 π and:
The Fourier series is:
f ( x ) = A 0 + n = 1 ∑ ∞ A n cos ( 2 n x + δ n )
Evaluating a 0 , a n , and b n : Evaluating a 0 :
a 0 = 2 π 1 ∫ 0 2 π x d x = 2 π 1 [ 2 x 2 ] 0 2 π = π
Thus:
Evaluating a n :
a n = 2 π 1 ∫ 0 2 π x cos ( 2 n x ) d x = 2 π 1 [ n 2 x sin 2 n x + n 2 4 cos 2 n x ] 0 2 π = π n 2 2 ( ( − 1 ) n − 1 )
Evaluating b n :
b n = 2 π 1 ∫ 0 2 π x sin ( 2 n x ) d x = 2 π 1 [ − n 2 x cos 2 n x + n 2 4 sin 2 n x ] 0 2 π = − n 2 ( − 1 ) n
Calculating the Amplitude Spectrum A n : Evaluating A n = a n 2 + b n 2 :
a n 2 = π 2 n 4 4 ( 1 − ( − 1 ) n ) 2 = π 2 n 4 8 [ 1 − ( − 1 ) n ]
and:
Thus:
A n = ( π 2 n 4 8 [ 1 − ( − 1 ) n ] + n 2 4 ) 1/2
Harmonic Spectrum Table: The first four harmonics are:
n ω n = n ω 0 a n b n A n 1 0.5 − 4/ π ≈ − 1.2732 2.0000 ≈ 2.371 2 1.0 0 − 1.0000 1.0000 3 1.5 − 4/ ( 9 π ) ≈ − 0.1415 0.6667 ≈ 0.6815 4 2.0 0 − 0.5000 0.5000
Answer: ω 0 = 2 1 , f ( x ) = 2 π + n = 1 ∑ ∞ A n cos ( 2 n x + δ n ) , A 0 = 2 π ≈ 1.5708 , A n = ( π 2 n 4 8 [ 1 − ( − 1 ) n ] + n 2 4 ) 1/2
Question 19 Find the frequency and amplitude spectrum of f ( x ) = x for 0 ≤ x < 2 .
Fundamental Frequency and Harmonic Formulation: The period is T = 2 , so:
The Fourier series is:
f ( x ) = A 0 + n = 1 ∑ ∞ A n cos ( nπ x + δ n )
Evaluating Coefficients a 0 , a n , b n : Evaluating a 0 :
Thus:
Evaluating a n :
a n = ∫ 0 2 x cos ( nπ x ) d x = [ x nπ sin nπ x + n 2 π 2 cos nπ x ] 0 2 = n 2 π 2 cos 2 nπ − 1 = 0
Evaluating b n :
b n = ∫ 0 2 x sin ( nπ x ) d x = [ − x nπ cos nπ x + n 2 π 2 sin nπ x ] 0 2 = − nπ 2 cos 2 nπ = − nπ 2
Calculating Amplitude and Phase Spectrum: Since a n = 0 and b n = − nπ 2 :
Using the identity a n cos ( nπ x ) + b n sin ( nπ x ) = A n cos ( nπ x + δ n ) :
and:
Thus δ n = 2 π for all n ≥ 1 .
Harmonic Spectrum Table: The harmonic components are:
n ω n = nπ a n b n A n δ n 1 π ≈ 3.142 0 − 2/ π ≈ − 0.6366 2/ π ≈ 0.6366 π /2 2 2 π ≈ 6.283 0 − 1/ π ≈ − 0.3183 1/ π ≈ 0.3183 π /2 3 3 π ≈ 9.425 0 − 2/ ( 3 π ) ≈ − 0.2122 2/ ( 3 π ) ≈ 0.2122 π /2 4 4 π ≈ 12.566 0 − 1/ ( 2 π ) ≈ − 0.1592 1/ ( 2 π ) ≈ 0.1592 π /2
Answer: ω 0 = π , f ( x ) = 1 + n = 1 ∑ ∞ A n cos ( nπ x + δ n ) , A 0 = 1 , A n = nπ 2 , δ n = 2 π
Question 20 Find the frequency and amplitude spectrum of f ( x ) = { x x − 2 for 0 ≤ x < 1 for 1 < x < 2 .
Fundamental Frequency and Average Formulation: The period is T = 2 , so:
Evaluating a 0 :
a 0 = ∫ 0 1 x d x + ∫ 1 2 ( x − 2 ) d x = [ 2 x 2 ] 0 1 + [ 2 ( x − 2 ) 2 ] 1 2 = 2 1 + ( 0 − 2 1 ) = 0
Thus:
Evaluating a n by Integration by Parts: Integrating over both pieces:
a n = ∫ 0 1 x cos ( nπ x ) d x + ∫ 1 2 ( x − 2 ) cos ( nπ x ) d x = [ x nπ sin nπ x + n 2 π 2 cos nπ x ] 0 1 + [ ( x − 2 ) nπ sin nπ x + n 2 π 2 cos nπ x ] 1 2 = [ n 2 π 2 cos nπ − 1 ] + [ n 2 π 2 1 − cos nπ ] = 0
Evaluating b n by Integration by Parts: Integrating over both pieces:
b n = ∫ 0 1 x sin ( nπ x ) d x + ∫ 1 2 ( x − 2 ) sin ( nπ x ) d x = [ − x nπ cos nπ x + n 2 π 2 sin nπ x ] 0 1 + [ − ( x − 2 ) nπ cos nπ x + n 2 π 2 sin nπ x ] 1 2 = ( − nπ cos nπ − 0 ) + ( 0 − nπ cos nπ ) = − nπ 2 cos nπ = nπ 2 ( − 1 ) n + 1
Calculating Amplitude and Phase Spectrum: The amplitude spectrum is:
Since a n = 0 :
cos δ n sin δ n = 0 = − A n b n = ( − 1 ) n
Thus:
Harmonic Spectrum Table: The first four harmonics are:
n ω n = nπ a n b n A n δ n 1 π ≈ 3.142 0 2/ π ≈ 0.6366 2/ π ≈ 0.6366 − π /2 2 2 π ≈ 6.283 0 − 1/ π ≈ − 0.3183 1/ π ≈ 0.3183 π /2 3 3 π ≈ 9.425 0 2/ ( 3 π ) ≈ 0.2122 2/ ( 3 π ) ≈ 0.2122 − π /2 4 4 π ≈ 12.566 0 − 1/ ( 2 π ) ≈ − 0.1592 1/ ( 2 π ) ≈ 0.1592 π /2
Answer: ω 0 = π , A 0 = 0 , A n = nπ 2 , δ n = 2 ( − 1 ) n π ( n = 1 , 2 , … )
Past exam questions for Engineering Mathematics III
Padhaiko: a study app for BE Computer, Tribhuvan University. Works offline in the app.