Professional Documents
Culture Documents
Solutions To Homework # 3
Solutions To Homework # 3
2
2Z 2
x cos nxdx =
=
0
Thus,
n
n2
n3
!
4(1)n
=
.
n2
0
2 X
4(1)n
a0 X
+
an cos nx =
+
x =
cos nx.
2
3
n2
n=1
n=1
2
!
2
x2 cos nx 2x sin nx 2 cos nx
2Z 2
x sin nxdx =
+
+
=
0
n
n2
n3
0
2
=
(1)n+1 2 2(1)n
2
+
3 .
3
n
n
n
!
Notice that the last two summands cancel each other for even terms. Hence
X
X
8
2(1)n+1
sin nx
sin(2n 1)x.
x2 =
3
n
n=1 (2n 1)
n=1
This series converges to x2 on the interval [, 0].
3. Find the Fourier series for | sin x| on [, ].
Solution. Since the function |sinx| is even, it is represented by a cosine series. We get
a0 =
an =
=
Note that that
2Z
4
sin xdx = ,
0
2Z
2
n2
1
1
sin x cos nxdx = 2
sin x sin nx + 2 cos x cos nx
0
n 1 n
n
0
n+1
2 (1)
1
.
2
n 1
an = 0 for all odd values of n. So,
4
| sin x| =
1 X
cos 2nx
.
2 n=1 4n2 1
1
2
.
=
2
8
n=0 (2n + 1)
(1)
4
X
cos(2n + 1)x on [, ].
2 n=0 (2n + 1)2
Since |x| is continuous on [, ], this series converges to the value of this function at x = 0,
i.e., its value at 0 must be 0. This means
4
=
,
2 n=0 (2n + 1)2
so
1
2
.
=
2
8
n=0 (2n + 1)
Solution 2. Consider the function 1 on [0, ] and its odd extension to [, ]. The resulting
function f has a sine expansion, namely
f (x) =
4
sin(2n + 1)x.
n=1 (2n + 1)
By Parsevals theorem,
1X
1 Z
16
|f (x)|2 dx =
1=
,
2
2
2 n=0 (2n + 1)2
f (x) sin(2jx) dx =
/2
f (x) sin(2jx) dx +
Z
0
/2
f (x) sin(2jx) dx
f (x) sin(2jx) dx
/2
/2
f (x) sin(2jx) dx = 0.
Examples of such functions are any sin(2n + 1)x for n IN, the square wave from the 2nd
solution to Problem 4, and the piecewise linear wave from class.