Math 1005 Tutorial # 7
Date: Dec 4th, 2025. In Tutorial
I Tutorial Questions
Question I.1. Let
π − x
0≤x≤π
f (x) =
0
π < x < 2π
Assume the Fourier series of f is
∞
a0 X
+ {an sin(nx) + bn sin(nx)} . (1)
2
n=1
(1) Assume that the Fourier series in (1) converges to A when x = 6π. Find A.
(2) Assume that the Fourier series in (1) converges to B when x = 3π. Find B.
Solution:
(1)
0+π π
A= =
2 2
(2)
B = f (π) = 0
Question I.2. Let
4x 0≤x≤π
f (x) =
3π
π < x < 2π
Find the Fourier cosine series of f .
1
Solution: First , note that L = 2π − 0 = 2π . Then
∞
a0 X h nx i
f (x) ∼ + an cos( ) ,
2 2
n=1
where Z 2π Z π Z 2π
2 2
a0 = f (x)dx = 4xdx + 3πdx
2π 0 2π 0 π
π 2π
2 4 2
= x + (3πx)
2π 2
0 π
=5π.
and for n = 1, 2, 3, · · ·
Z 2π
1 2π
Z
2 nπx nx
an = f (x) cos( )dx = f (x) cos( )dx
2π 0 2π π 0 2
Z π Z 2π
1 nx nx
= 4x cos( )dx + 3π cos( )dx
π 0 2 π 2
" 2π #
nx nx π
2 sin( nx
1 2 sin( 2 ) 4 cos( 2 ) 2 )
= 4 x + + 3π
π n n2 0 n π
" !#
2 cos( nπ − 2nπ
− nπ
1 π nπ 2 ) 2 cos(0) sin( 2 ) sin( 2 )
= 8 sin( ) + + 6π
π n 2 n2 n
2 nπ 16 nπ
= sin( ) + 2 cos( ) − 1 .
n 2 n π 2
Hence, the Fourier cosine series of this function is
∞
5π X 2 nπ 16 nπ nx
f (x) ∼ + sin( ) + 2 cos( ) − 1 cos( ).
2 n 2 n π 2 2
n=1
Question I.3. Let
4x 0≤x≤π
f (x) =
3π
π < x < 2π
Find the Fourier sine series of f .
Solution: First , note that L = 2π − 0 = 2π . Then
∞ h
X nx i
f (x) ∼ bn sin( ) ,
2
n=1
Page 2
where, for n = 1, 2, 3, · · ·
Z 2π
1 2π
Z
2 nπx nx
bn = f (x) sin( )dx = f (x) sin( )dx
2π 0 2π π 0 2
Z π Z 2π
1 nx nx
= 4x sin( )dx + 3π sin( )dx
π 0 2 π 2
" #
π nx 2π
2 cos( nx nx
1 2 ) 4 sin( 2 ) 2 cos( 2 )
= 4 −x + + 3π −
π n n2 0 n π
" !#
2 sin( nπ − 2nπ
− nπ
1 π nπ 2 ) 2 sin(0) cos( 2 ) cos( 2 )
= 8 − cos( ) + − 6π
π n 2 n2 n
2 nπ 16 nπ 6
=− cos( ) + 2 sin( ) − (−1)n .
n 2 n π 2 n
Hence, the Fourier sine series of this function is
∞
X 2 nπ 16 nπ 6 n nx
f (x) ∼ − cos( ) + 2 sin( ) − (−1) sin( ).
n 2 n π 2 n 2
n=1
Page 3
II Practical Questions
Question II.1. Let
1 0≤x≤1
f (x) =
0 1<x≤2
Assume the Fourier sine series of f is
∞
a0 X
+ {bn sin(nπx)} . (2)
2
n=1
Assume that the Fourier series in (2) converges to A when x = 1. Find A.
Solution:
0+1 1
A= =
2 2
Question II.2. Find the Fourier cos series of the following function
0 0 < x ≤ 1,
f (x) =
1 1 < x ≤ 2.
Solution: First, L = 2 − 0 = 2. Then, for any non-negative integer n
2 2
Z
nπx
an = f (x) cos( )dx
2 0 2
Z 1 Z 2
nπx nπx
= 0 cos( )dx + 1 cos( )dx
0 2 1 2
2
0 + 2 sin( nπx ) = − 2 sin( nπ ) n ̸= 0
nπ 2 1 nπ 2
=
0 + 1 = 1
n=0
Therefore, the Fourier cos series of this function is
∞
1 X 2 (2n + 1)πx
f (x) ∼ + − sin( ) .
2 (2n + 1)π 2
n=0
Question II.3. Find the Fourier sin series of the following function
0 0 < x ≤ 1,
f (x) =
1 1 < x ≤ 2.
Page 4
Solution: First, L = 2 − 0 = 2. Then, for any positive integer n
2 2
Z
nπx
bn = f (x) sin( )dx
2 0 2
Z 1 Z 2
nπx nπx
= 0 sin( )dx + 1 sin( )dx
0 2 1 2
2 nπx 2
=0 − cos( )
nπ 2 1
2 nπ
= [cos( ) − (−1)n ]
nπ 2
Therefore, the Fourier sin series of this function is
∞
X 2 nπ n nπx
f (x) ∼ [cos( ) − (−1) ] sin( ) .
nπ 2 2
n=0
Page 5