AEMx CH12
AEMx CH12
AEMx CH12
2
2
1 4
ˆ
2
1. xx dx = x = 0
−2 4
−2
1 1
1
1 1
ˆ
2. x3 (x2 + 1) dx = x6 + x4 = 0
−1 6 4
−1 −1
2 2 2
1 2
ˆ ˆ
x −x −x
3. e (xe −e ) dx = (x − 1) dx = x −x =0
0 0 2
0
π
π
1
ˆ
2 3
4. cos x sin x dx = sin x = 0
0 3
0
π/2 π/2
1 1
ˆ
5. x cos 2x dx = cos 2x + x sin 2x =0
2 2
−π/2
−π/2
5π/4 5π/4
1 x 1
ˆ
6. ex sin x dx = e sin x − ex cos x =0
2 2
π/4
π/4
7. For m 6= n
π/2
1 π/2
ˆ ˆ
sin(2n + 1)x sin(2m + 1)x dx = (cos 2(n − m)x − cos 2(n + m + 1)x) dx
0 2 0
π/2 π/2
1
= sin 2(n − m)x − sin 2(n + m + 1)x = 0.
4(n − m) 4(n + m + 1)
0 0
907
908 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
For m = n
π/2 π/2
1 1
ˆ ˆ
sin2 (2n + 1)x dx = − cos 2(2n + 1)x dx
0 0 2 2
π/2 π/2
1 1 π
= x − sin 2(2n + 1)x =
2 4(2n + 1) 4
0 0
so that
1√
k sin (2n + 1)xk = π.
2
8. For m 6= n
π/2
1 π/2
ˆ ˆ
cos (2n + 1)x cos (2m + 1)x dx = (cos 2(n − m)x + cos 2(n + m + 1)x) dx
0 2 0
π/2 π/2
1 1
= sin 2(n − m)x + sin 2(n + m + 1)x = 0.
4(n − m) 4(n + m + 1)
0 0
For m = n
π/2 π/2
1 1
ˆ ˆ
2
cos (2n + 1)x dx = + cos 2(2n + 1)x dx
0 0 2 2
π/2 π/2
1 1 π
= x + sin 2(2n + 1)x =
2 4(2n + 1) 4
0 0
so that
1√
k cos (2n + 1)xk = π.
2
9. For m 6= n
ˆ π
1 π
ˆ
sin nx sin mx dx = (cos(n − m)x − cos(n + m)x) dx
0 2 0
π π
1 1
= sin (n − m)x − sin (n + m)x = 0.
2(n − m) 2(n + m)
0 0
For m = n
π π
π π
1 1 1 1 π
ˆ ˆ
sin2 nx dx = − cos 2nx dx = x − sin 2nx =
0 0 2 2 2 4n 2
0 0
so that r
π
k sin nxk = .
2
12.1 Orthogonal Functions 909
10. For m 6= n
p p
nπ mπ 1 (n − m)π (n + m)π
ˆ ˆ
sin x sin x dx = cos x − cos x dx
0 p p 2 0 p p
p p
p (n − m)π p (n + m)π
= sin x − sin x = 0.
2(n − m)π p 2(n + m)π p
0 0
For m = n
p p
p p
nπ 1 1 2nπ 1 p 2nπ p
ˆ ˆ
2
sin x dx = − cos x dx = x − sin x =
0 p 0 2 2 p 2 4nπ p 2
0 0
so that
r
sin nπ x
= p .
p
2
11. For m 6= n
p p
nπ mπ 1 (n − m)π (n + m)π
ˆ ˆ
cos x cos x dx = cos x + cos x dx
0 p p 2 0 p p
p p
p (n − m)π p (n + m)π
= sin x + sin x = 0.
2(n − m)π p 2(n + m)π p
0 0
For m = n
p p
p p
nπ 1 1 2nπ 1 p 2nπ p
ˆ ˆ
cos2 x dx = + cos x dx = x + sin x = .
0 p 0 2 2 p 2 4nπ p 2
0 0
Also p
p p
nπ p nπ
ˆ ˆ
1 · cos x dx = sin x = 0 and 12 dx = p
0 p nπ p 0
0
so that
r
√
cos nπ x
= p .
k1k = p and
p
2
Also
p p
nπ mπ 1 (n − m)π (n + m)π
ˆ ˆ
sin x cos x dx = sin x + sin x dx = 0,
−p p p 2 −p p p
p
p
nπ p nπ
ˆ
1 · cos x dx = sin x = 0,
−p p nπ p
−p
ˆ p p
nπ p nπ
1 · sin x dx = − cos x = 0,
−p p nπ p
−p
and p
p p
nπ nπ 1 2nπ − 2nπ
ˆ ˆ
sin x cos x dx = sin x dx = 4nπ cos x = 0.
−p p p −p 2 p p p
−p
For m = n
p p
nπ 1 1 2nπ
ˆ ˆ
cos2 x dx = + cos x dx = p,
−p p −p 2 2 p
p p
nπ 1 1 2nπ
ˆ ˆ
2
sin x dx = − cos x dx = p,
−p p −p 2 2 p
and ˆ p
12 dx = 2p
−p
so that
p
nπ
√
nπ
√
k1k = 2p ,
cos x
= p, and
sin x
= p.
p
p
13. Since
ˆ ∞
2
e−x · 1 · 2x dx = 0, ←− integrand is an odd function
−∞
ˆ ∞ ˆ ∞
−x2 2 2
e · 1 · (4x − 2) dx = 2 e−x (4x2 − 2) dx ←− integrand is an even function
−∞ 0
ˆ ∞ ˆ ∞
−x2 2
=4 x 2xe dx − 4 e−x dx
0 0
∞ ˆ !
∞ ˆ ∞
−x 2 −x 2 2
= 4 −xe + e dx − 4 e−x dx
0 0
0
∞ ˆ ∞ ˆ ∞
2
−x −x2 2
= −4xe + 4 e dx − 4 e−x dx = 0
0 0
0
and ˆ ∞
2
e−x · 2x · (4x2 − 2) dx = 0, ←− integrand is an odd function
−∞
the functions are orthogonal.
12.1 Orthogonal Functions 911
14. Since ∞ ˆ
ˆ ∞ ∞
e−x · 1(1 − x) dx = (x − 1)e−x − e−x dx = 0,
0 0
0
∞ ˆ
∞ ∞
1 2 1 2 −x
ˆ
e−x · 1 · x − 2x + 1 dx = 2x − 1 − x e + e−x (x − 2) dx
0 2 2 0
0
∞ ˆ
∞
= 1 + (2 − x)e−x + e−x dx = 0,
0
0
and
∞ ˆ ∞
1 2 1 3 5 2
ˆ
−x −x
e · (1 − x) x − 2x + 1 dx = e − x + x − 3x + 1 dx
0 2 0 2 2
∞ ˆ ∞
−x 1 3 5 2 −x 3 2
=e x − x + 3x − 1 + e − x + 5x − 3 dx
2 2 0 2
0
∞ ˆ ∞
3 2
= 1 + e−x x − 5x + 3 + e−x (5 − 3x) dx
2 0
0
∞ ˆ ∞
−x
= 1 − 3 + e (3x − 5) − 3 e−x dx = 0,
0
0
16. Using the facts that φ0 and φ1 are orthogonal to φn for n > 1, we have
ˆ b ˆ b ˆ b
(αx + β)φn (x) dx = α xφn (x) dx + β 1 · φn (x) dx
a a a
ˆ b ˆ b
=α φ1 (x)φn (x) dx + β φ0 (x)φn (x) dx
a a
=α·0+β·0=0
for n = 2, 3, 4, . . . .
17. Using the fact that φn and φm are orthogonal for n 6= m we have
ˆ b ˆ b
2 2
2
φm (x) + 2φm (x)φn (x) + φ2n (x) dx
kφm (x) + φn (x)k = [φm (x) + φn (x)] dx =
a a
ˆ b ˆ b ˆ b
= φ2m (x) dx + 2 φm (x)φn (x) dx + φ2n (x) dx
a a a
18. Setting
2 2
16 64
ˆ ˆ
x2 + c1 x3 + c2 x4 dx =
0= f3 (x)f1 (x) dx = + c2
−2 −2 3 5
and
2 2
64
ˆ ˆ
x3 + c1 x4 + c2 x5 dx = c1
0= f3 (x)f2 (x) dx =
−2 −2 5
and f (x) = 1 is orthogonal to every member of {sin nx}. Thus {sin nx} is not complete.
ˆ b ˆ b ˆ b
20. (f1 + f2 , f3 ) = [f1 (x) + f2 (x)]f3 (x) dx = f1 (x)f3 (x) dx + f2 (x)f3 (x) dx
a a a
= (f1 , f3 ) + (f2 , f3 )
25. The fundamental period of sin 3x + cos 2x is 2π since the smallest integer multiples of 2π/3
and 2π/2 = π that are equal are 3 and 2, respectively.
Alternatively, we can also use teh trigonometric identity sin2 πx = 21 (1 − cos 2πx).
27. (a) Following the pattern established by φ1 (x) and φ2 (x) we have
(b) To show mutual orthogonality we compute (φ0 , φ1 ), (φ0 , φ2 ), and (φ1 , φ2 ) using properties
(i), (ii), (iii), and (iv) from this section in the text.
(f1 , φ0 ) (f1 , φ0 )
(φ0 , φ1 ) = φ0 , f1 − φ0 = (φ0 , f1 ) − (φ0 , φ0 ) = (φ0 , f1 ) − (f1 , φ0 ) = 0
(φ0 , φ0 ) (φ0 , φ0 )
(f2 , φ0 ) (f2 , φ1 ) (f2 , φ0 ) (f2 , φ1 )
(φ0 , φ2 ) = φ0 , f2 − φ0 − φ1 = (φ0 , f2 ) − (φ0 , φ0 ) − (φ0 , φ1 )
(φ0 , φ0 ) (φ1 , φ1 ) (φ0 , φ0 ) (φ1 , φ1 )
= (φ0 , f2 ) − (f2 , φ0 ) − 0 = 0
(f2 , φ0 ) (f2 , φ1 ) (f2 , φ0 ) (f2 , φ1 )
(φ1 , φ2 ) = φ1 , f2 − φ0 − φ1 = (φ1 , f2 ) − (φ1 , φ0 ) − (φ1 , φ1 )
(φ0 , φ0 ) (φ1 , φ1 ) (φ0 , φ0 ) (φ1 , φ1 )
= (φ1 , f2 ) − 0 − (f2 , φ1 ) = 0.
28. (a) First we identify f0 (x) = 1, f1 (x) = x, f2 (x) = x2 , and f3 (x) = x3 . Then, we use the
formulas from Problem 22. First, we have φ0 (x) = f0 (x) = 1. Then
ˆ 1 ˆ 1
(f1 , φ0 ) = (x, 1) = x dx = 0 and (φ0 , φ0 ) = 1 dx = 2,
−1 −1
so
(f1 , φ0 ) 0
φ1 (x) = f1 (x) − φ0 (x) = x − (1) = 1.
(φ0 , φ0 ) 2
Next
1 1
2
ˆ ˆ
2
(f2 , φ0 ) = (x , 1) = 2
x dx = , (f2 , φ1 ) = (x2 , x) = x3 dx = 0,
−1 3 −1
ˆ 1
2
and (φ1 , φ1 ) = x2 dx = ,
−1 3
so
(f2 , φ0 ) (f2 , φ1 ) 2/3 0 1
φ2 (x) = f2 (x) − φ0 (x) − φ1 (x) = x2 − (1) − (x) = x2 − .
(φ0 , φ0 ) (φ1 , φ1 ) 2 2 3
Finally,
1 1
2
ˆ ˆ
3 3 3
(f3 , φ0 ) = (x , 1) = x dx = 0, (f3 , φ1 ) = (x , x) = x4 dx = ,
−1 −1 5
and 1
1 1
ˆ
3 2
(f3 , φ2 ) = x ,x − = x − x3
5
dx = 0,
3 −1 3
so
(f3 , φ0 ) (f3 , φ1 ) (f3 , φ2 )
φ3 (x) = f3 (x) − φ0 (x) − φ1 (x) − φ2 (x)
(φ0 , φ0 ) (φ1 , φ1 ) (φ2 , φ2 )
2/5 3
= x3 − 0 − (x) − 0 = x3 − x.
2/3 5
914 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
(b) Recall from Section 5.3 that the first four Legendre polynomials are
3
P0 (x) = 1, P1 (x) = x, P2 (x) = 2 x2 − 21 , and P3 (x) = 5
2 x3 − 3
2 x. We then see
1 2 3
that φ0 (x) = P0 (x), φ1 (x) = P1 (x), φ2 (x) = x2 − 3 = 3(2 x2 − 21 ) = 2
3 P2 (x), and
3
φ3 (x) = x3 − 5 x = 52 ( 25 x3 − 3
2 x) = 2
5 P3 (x).
ˆ b ˆ b
29. (i): (f1 , f2 ) = f1 (x)f2 (x) dx = f2 (x)f1 (x) dx = (f2 , f1 ).
a a
ˆ b ˆ b
(ii): (kf1 , f2 ) = kf1 (x)f2 (x) dx = k f1 (x)f2 (x) dx = k(f1 , f2 ).
a a
ˆ b ˆ b
(iii): If f1 (x) = 0 then (f1 , f1 ) = 0 dx = 0; if f1 (x) 6= 0 then (f1 , f1 ) = [f1 (x)]2 dx > 0
a a
ˆ b ˆ b
(iv): (f1 + f2 , f3 ) = [f1 (x) + f2 (x)]f3 (x) dx = [f1 (x)f3 (x) + f2 (x)f3 (x)] dx.
a a
ˆ b ˆ b
= f1 (x)f3 (x) dx + f2 (x)f3 (x) dx = (f1 , f3 ) + (f2 , f3 )
a a
30. In R3 the set {i, j} is not complete since k is orthogonal to both i and j. The set {i, j, k} is
complete. To see this suppose that ai + bj + ck is orthogonal to i, j, and k. Then
∞
X nπ nπ
31. The period of f (x) = A0 + An cos x + Bn sin x is 2p since
n=1
p p
∞
X nπ nπ
f (x + 2p) = A0 + An cos (x + 2p) + Bn sin (x + 2p)
p p
n=1
∞
X nπ nπ
= A0 + An cos x + 2nπ + Bn sin x + 2nπ
p p
n=1
∞
X nπ nπ
= A0 + An cos x + Bn sin x = f (x).
n=1
p p
12.2 Fourier Series 915
π
1 1 π
ˆ ˆ
1. a0 = f (x) dx = 1 dx = 1
π −π π 0
1 π nπ 1 π
ˆ ˆ
an = f (x) cos x dx = cos nx dx = 0
π −π pi π 0
1 π nπ 1 π 1 1
ˆ ˆ
bn = f (x) sin x dx = sin nx dx = (1 − cos nπ) = [1 − (−1)n ]
π −π π π 0 nπ nπ
∞
1 1 X 1 − (−1)n
f (x) = + sin nx
2 π n
n=1
Converges to 12 at x = 0.
1 π 1 0 1 π
ˆ ˆ ˆ
2. a0 = f (x) dx = (−1) dx + 2 dx = 1
π −π π −π π 0
1 π 1 0 1 π
ˆ ˆ ˆ
an = f (x) cos nx dx = (− cos nx) dx + 2 cos nx dx = 0
π −π π −π π 0
1 π 1 0 1 π 3
ˆ ˆ ˆ
bn = f (x) sin nx dx = (− sin nx) dx + 2 sin nx dx = [1 − (−1)n ]
π −π π −π π 0 nπ
∞
1 3 X 1 − (−1)n
f (x) = + sin nx
2 π n
n=1
Converges to 12 at x = 0.
ˆ 1 ˆ 0 1
3
ˆ
3. a0 = f (x) dx = 1 dx + x dx =
−1 −1 0 2
1 0 1
1
ˆ ˆ ˆ
an = f (x) cos nπx dx = cos nπx dx + x cos nπx dx = [(−1)n − 1]
−1 −1 0 n2 π 2
1 0 1
1
ˆ ˆ ˆ
bn = f (x) sin nπx dx = sin nπx dx + x sin nπx dx = −
−1 −1 0 nπ
∞
(−1)n − 1
3 X 1
f (x) = + cos nπx − sin nπx
4 n2 π 2 nπ
n=1
Converges to 12 at x = 0.
ˆ 1 ˆ 1
1
4. a0 = f (x) dx = x dx =
−1 0 2
ˆ 1 ˆ 1
1
an = f (x) cos nπx dx = x cos nπx dx = [(−1)n − 1]
−1 0 n2 π 2
1 1
(−1)n+1
ˆ ˆ
bn = f (x) sin nπx dx = x sin nπx dx =
−1 0 nπ
916 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
∞
1 X (−1)n − 1 (−1)n+1
f (x) = + cos nπx + sin nπx
4 n=1 n2 π 2 nπ
2(−1)n
=
n2
ˆ π π !
1 1 x2 2 π
ˆ
bn = x2 sin nx dx = − cos nx + x cos nx dx
π 0 π n n 0
0
π 2
= (−1)n+1 + 3 [(−1)n − 1]
n n π
∞
π 2 X 2(−1)n 2[(−1)n − 1]
π n+1
f (x) = + cos nx + (−1) + sin nx
6 n2 n n3 π
n=1
1 π 1 0 2 1 π 2 5
ˆ ˆ ˆ
π − x2 dx = π 2
6. a0 = f (x) dx = π dx +
π −π π −π π 0 3
1 π 1 0 2 1 π 2
ˆ ˆ ˆ
π − x2 cos nx dx
an = f (x) cos nx dx = π cos nx dx +
π −π π −π π 0
π !
1 π 2 − x2 2 π 2
ˆ
= sin nx + x sin nx dx = 2 (−1)n+1
π n n 0 n
0
ˆ π ˆ 0
1 1 1 π 2
ˆ
2
π − x2 sin nx dx
bn = f (x) sin nx dx = π sin nx dx +
π −π π −π π 0
π ˆ π !
π 1 x 2 − π2 2 π 2
= [(−1)n − 1] + cos nx − x cos nx dx = (−1)n + 3 [1 − (−1)n ]
n π n n 0 n n π
0
∞
5π 2 2[1 − (−1)n ]
X 2 π
f (x) = + (−1)n+1 cos nx + (−1)n + sin nx
6 n2 n n3 π
n=1
∞
X 2
f (x) = π + (−1)n+1 sin nx
n=1
n
1 π 1 π
ˆ ˆ
8. a0 = f (x) dx = (3 − 2x) dx = 6
π −π π −π
1 π 1 π
ˆ ˆ
an = f (x) cos nx dx = (3 − 2x) cos nx dx = 0
π −π π −π
1 π 4
ˆ
bn = (3 − 2x) sin nx dx = (−1)n
π −π n
∞
X (−1)n
f (x) = 3 + 4 sin nx
n
n=1
1 π 1 π 2
ˆ ˆ
9. a0 = f (x) dx = sin x dx =
π −π π 0 π
ˆ π ˆ π ˆ π
1 1 1
an = f (x) cos nx dx = sin x cos nx dx = (sin (1 + n)x + sin (1 − n)x) dx
π −π π 0 2π 0
1 + (−1)n
= forn = 2, 3, 4, . . .
π(1 − n2 )
ˆ π
1
a1 = sin 2x dx = 0
2π 0
1 π 1 π
ˆ ˆ
bn = f (x) sin nx dx = sin x sin nx dx
π −π π 0
ˆ π
1
= (cos (1 − n)x − cos (1 + n)x) dx = 0 forn = 2, 3, 4, . . .
2π 0
ˆ π
1 1
b1 = (1 − cos 2x) dx =
2π 0 2
∞
1 1 X 1 + (−1)n
f (x) = + sin x + cos nx
π 2 n=2
π(1 − n2 )
π/2 π/2
2 2
ˆ ˆ
bn = f (x) sin 2nx dx = cos x sin 2nx dx
π −π/2 π 0
π/2
1 4n
ˆ
= (sin (2n − 1)x + sin (2n + 1)x) dx =
π 0 π(4n2 − 1)
∞
1 X 2(−1)n+1
4n
f (x) = + cos 2nx + sin 2nx
π π(4n2 − 1) π(4n2 − 1)
n=1
1
Converges to 2 at x = 0.
2 ˆ 0 1
1 1 1
ˆ ˆ
11. a0 = f (x) dx = −2 dx + 1 dx =−
2 −2 2 −1 0 2
2 ˆ 0 1
1 nπ 1 nπ nπ 1 nπ
ˆ ˆ
an = f (x) cos x dx = (−2) cos x dx + cos x dx =− sin
2 −2 2 2 −1 2 0 2 nπ 2
2 ˆ 0 1
1 nπ 1 nπ nπ 3 nπ
ˆ ˆ
bn = f (x) sin x dx = (−2) sin x dx + sin x dx = 1 − cos
2 −2 2 2 −1 2 0 2 nπ 2
∞
1 X 1 nπ nπ 3 nπ nπ
f (x) = − + − sin cos x+ 1 − cos sin x
4 nπ 2 2 nπ 2 2
n=1
2 ˆ 1 2
1 1 3
ˆ ˆ
12. a0 = f (x) dx = x dx + 1 dx =
2 −2 2 0 1 4
2 ˆ 1 2
1 nπ 1 nπ nπ 2 nπ
ˆ ˆ
an = f (x) cos x dx = x cos x dx + cos x dx = cos − 1
2 −2 2 2 0 2 1 2 n2 π 2 2
2 ˆ 1 ˆ 2
1 nπ 1 nπ nπ
ˆ
bn = f (x) sin x dx = x sin x dx + sin x dx
2 −2 2 2 0 2 1 2
2 nπ nπ
= 2 2 sin + (−1)n+1
n π 2 2
∞
3 X 2 nπ nπ 2 nπ nπ n+1
nπ
f (x) = + cos − 1 cos x + sin + (−1) sin x
8 n2 π 2 2 2 n2 π 2 2 2 2
n=1
5 ˆ 0 ˆ 5
1 1 9
ˆ
13. a0 = f (x) dx = 1 dx + (1 + x) dx =
5 −5 5 −5 0 2
ˆ 5 ˆ 0 ˆ 5
1 nπ 1 nπ nπ
an = f (x) cos x dx = cos x dx + (1 + x) cos x dx
5 −5 5 5 −5 5 0 5
5
= [(−1)n − 1]
n2 π 2
5 ˆ 0 ˆ 5
1 nπ 1 nπ nπ 5
ˆ
bn = f (x) sin x dx = sin x dx + (1 + x) cos x dx = (−1)n+1
5 −5 5 5 −5 5 0 5 nπ
∞
9 X 5 n nπ 5 n+1 nπ
f (x) = + [(−1) − 1] cos x+ (−1) sin x
4 n2 π 2 5 nπ 5
n=1
f is continous on the interval
1 2
ˆ 0 ˆ 2
1
ˆ
14. a0 = f (x) dx = (2 + x) dx + 2 dx = 3
2 −2 2 −2 0
1 2
ˆ 0 ˆ 2
nπ 1 nπ nπ 2
ˆ
an = f (x) cos x dx = (2 + x) cos x dx + 2 cos x dx = 2 2 [1 −
2 −2 2 2 −2 2 0 2 n π
n
(−1) ]
1 2
ˆ 0 ˆ 2
nπ 1 nπ nπ 2
ˆ
bn = f (x) sin x dx = (2 + x) sin x dx + 2 sin x dx = (−1)n+1
2 −2 2 2 −2 2 0 2 nπ
∞
3 X 2 n nπ 2 n+1 nπ
f (x) = + [1 − (−1) ] cos x+ (−1) sin x
2 n2 π 2 2 nπ 2
n=1
f is continous on the interval
1 π 1 π x 1
ˆ ˆ
15. a0 = f (x) dx = e dx = (eπ − e−π )
π −π π −π π
ˆ π
1 (−1)n (eπ − e−π )
an = f (x) cos nx dx =
π −π π(1 + n2 )
ˆ π ˆ π
1 1 (−1)n n(e−π − eπ )
bn = f (x) sin nx dx = ex sin nx dx =
π −π π −π π(1 + n2 )
∞
eπ − e−π X (−1)n (eπ − e−π ) (−1)n n(e−π − eπ )
f (x) = + cos nx + sin nx
2π n=1
π(1 + n2 ) π(1 + n2 )
f is continous on the interval
1 π 1 π x 1
ˆ ˆ
16. a0 = f (x) dx = (e − 1) dx = (eπ − π − 1)
π −π π 0 π
ˆ π ˆ π
1 1 [eπ (−1)n − 1]
an = f (x) cos nx dx = (ex − 1) cos nx dx =
π −π π 0 π(1 + n2 )
1 π 1 π x
ˆ ˆ
bn = f (x) sin nx dx = (e − 1) sin nx dx
π −π π 0
∞
eπ − π − 1 X eπ (−1)n − 1
f (x) = + 2)
cos nx
2π n=1
π(1 + n
(−1)n − 1
n π
+ 2
e (−1)n+1 + 1 + sin nx
1+n n
f is continous on the interval
17. y
x
-3 Π -2 Π -Π Π 2Π 3Π
18. y
x
-6 -4 -2 2 4
19. The function in Problem 5 is discontinuous at x = π, so the corresponding Fourier series
converges to π 2 /2 at x = π. That is,
∞
π2 π 2 X 2(−1)n 2[(−1)n − 1]
π n+1
= + cos nπ + (−1) + sin nπ
2 6 n=1
n2 n n3 π
∞ ∞
π 2 X 2(−1)n π2 X 2 π2
n 1 1
= + (−1) = + = + 2 1 + 2 + 2 + ···
6 n2 6 n2 6 2 3
n=1 n=1
and
π2 π2 π2
1 1 1
= − =1+ 2
+ 2 + ··· .
6 2 2 6 2 3
At x = 0 the series converges to 0 and
∞
π 2 X 2(−1)n π2
1 1 1
0= + = + 2 −1 + 2 − 2 + 2 − · · ·
6 n2 6 2 3 4
n=1
so
π2 1 1 1
= 1 − 2 + 2 − 2 + ··· .
12 2 3 4
20. From Problem 19
π2 π2 π2
1 1 2 2 1 1
= + = 2 + 2 + 2 + ··· =1+ + + ··· .
8 2 6 12 2 3 5 32 52
and
π 1 1 1
= 1 − + − + ··· .
4 3 5 7
12.3 Fourier Cosine and Sine Series 921
1 1 2 2 2
1= + + − + − ···
π 2 3π 3 · 5π 5 · 7π
and
π 2 2 2
π =1+ + − + − ···
2 3 3·5 5·7
or
π 1 1 1 1
= + − + − ··· .
4 2 1·3 3·5 5·7
23. Writing
a0 π nπ π nπ
f (x) = + a1 cos x + · · · + an cos x + · · · + b1 sin x + · · · + bn sin x + ···
2 p p p p
a20 nπ nπ
, a2n cos2 x, b2n sin2 x
4 p p
The integral of each cross-product term taken over the interval (−p, p) is zero by orthogonality.
For the squared terms we have
a20 p
ˆ p ˆ p
a2 p nπ nπ
ˆ
dx = 0 , a2n cos2 x dx = a2n p, b2n sin2 x dx = b2n p.
4 −p 2 −p p −p p
Thus v
u
u1 ∞
2 1X 2
RM S(f ) = t a + (a + b2n ) .
4 0 2 n=1 n
9. Since f (x) is not defined for x < 0, it is neither even nor odd.
(
π, −1 < x < 0
11. Since f (x) = is an odd function, we have
−π, 0 ≤ x < 1
1
2 h cos nπx i1
ˆ
bn = (−π) sin nπx dx = 2π
1 0 nπ 0
2 2
= (cos nπ − 1) = [(−1)n − 1].
n n
Thus
∞
X (−1)n − 1
f (x) = 2 sin nπx.
n
n=1
Thus
∞
1 X −2 nπ nπ
f (x) = + sin cos x.
2 nπ 2 2
n=1
2 π
ˆ
a0 = x dx = π
π 0
2 π 2
ˆ
an = x cos nx dx = 2 [(−1)n − 1].
π 0 n π
Thus
∞
π X 2
f (x) = + [(−1)n − 1] cos nx.
2 n=1 n2 π
12.3 Fourier Cosine and Sine Series 923
Thus
∞
X 2
f (x) = (−1)n+1 sin nx.
n
n=1
Thus
∞
1 X 4
f (x) = + (−1)n cos nπx.
3 n2 π 2
n=1
2(−1)n+1 4
= + 3 3 [(−1)n − 1].
nπ n π
Thus
∞
2(−1)n+1
X 4 n
f (x) = + [(−1) − 1] sin nπx.
nπ n3 π 3
n=1
Thus
∞
2 X 4
f (x) = π 2 + (−1)n+1 cos nx dx.
3 n2
n=1
924 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
Thus
∞
2π 2
X
n+1 12 n
f (x) = (−1) + 3 (−1) sin nx.
n n
n=1
Thus
∞
X 2(π + 1) n+1 2
f (x) = (−1) + sin nx.
nπ nπ
n=1
Thus
∞
X 2
f (x) = − sin nπx.
n=1
nπ
Thus
∞
3 X 4 nπ nπ
f (x) = + 2 2
cos − 1 cos x.
4 n=1 n π 2 2
12.3 Fourier Cosine and Sine Series 925
24. Since f (x) is an even function, we expand in a cosine series. [See the solution of Problem 10
in Exercises 12.2 for the computation of the integrals.]
ˆ π/2
2 4
a0 = cos x dx =
π/2 0 π
ˆ π/2
2 nπ 4(−1)n+1
an = cos x cos x dx =
π/2 0 π/2 π (4n2 − 1)
Thus
∞
2 X 4(−1)n+1
f (x) = + cos 2nx.
π π (4n2 − 1)
n=1
ˆ 1/2
25. a0 = 2 1 dx = 1
0
1/2
2 nπ
ˆ
an = 2 1 · cos nπx dx =
sin
0 nπ 2
ˆ 1/2
2 nπ
bn = 2 1 · sin nπx dx = 1 − cos
0 nπ 2
∞
1 X 2 nπ
f (x) = + sin cos nπx
2 nπ 2
n=1
∞
X 2 nπ
f (x) = 1 − cos sin nπx
n=1
nπ 2
926 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
ˆ 1
26. a0 = 2 1 dx = 1
1/2
1
2 nπ
ˆ
an = 2 1 · cos nπx dx = − sin
1/2 nπ 2
1
2 nπ
ˆ
bn = 2 1 · sin nπx dx = cos + (−1)n+1
1/2 nπ 2
∞
1 X 2 nπ
f (x) = + − sin cos nπx
2 nπ 2
n=1
∞
X 2 nπ
f (x) = cos + (−1)n+1 sin nπx
n=1
nπ 2
π/2
4 4
ˆ
27. a0 = cos x dx =
π 0 π
π/2 π/2
4 2 4(−1)n
ˆ ˆ
an = cos x cos 2nx dx = [cos (2n + 1)x + cos (2n − 1)x] dx =
π 0 π 0 π(1 − 4n2 )
π/2 π/2
4 2 8n
ˆ ˆ
bn = cos x sin 2nx dx = [sin (2n + 1)x + sin (2n − 1)x] dx =
π 0 π 0 π(4n2 − 1)
∞
2 4(−1)nX
f (x) = + cos 2nx
π n=1 π(1 − 4n2 )
∞
X 8n
f (x) = sin 2nx
π(4n2 − 1)
n=1
π
2 4
ˆ
28. a0 = sin x dx =
π 0 π
π π
2 1
ˆ ˆ
an = sin x cos nx dx = [sin (n + 1)x − sin (n − 1)x] dx
π 0 π 0
2[(−1)n + 1]
= for n = 2, 3, 4, . . .
π(1 − n2 )
2 π 1 π
ˆ ˆ
bn = sin x sin nx dx = [cos (n − 1)x − cos (n + 1)x] dx = 0 for n = 2, 3, 4, . . .
π 0 π 0
1 π
ˆ
a1 = sin 2x dx = 0
π 0
2 π 2
ˆ
b1 = sin x dx = 1
π 0
f (x) = sin x
∞
2 2 X (−1)n + 1
f (x) = + cos nx
π π n=2 1 − n2
12.3 Fourier Cosine and Sine Series 927
!
π/2 π
2 π
ˆ ˆ
29. a0 = x dx + (π − x) dx =
π 0 π/2 2
!
π/2 π
2 2 nπ
ˆ ˆ
n+1
an = x cos nx dx + (π − x) cos nx dx = 2 cos + (−1) − 1
π 0 π/2 n2 π 2
!
π/2 π
2 4 nπ
ˆ ˆ
bn = x sin nx dx + (π − x) sin nx dx = 2
sin
π 0 π/2 n π 2
∞
π X 2 nπ n+1
f (x) = + 2 cos + (−1) − 1 cos nx
4 n2 π 2
n=1
∞
X 4 nπ
f (x) = 2
sin sin nx
n=1
n π 2
2π
1 π
ˆ
30. a0 = (x − π) dx =
π π 2
2π
1 n 4 nπ
ˆ
an = (x − π) cos x dx = 2 (−1)n − cos
π π 2 n π 2
2π
1 n 2 4 nπ
ˆ
bn = (x − π) sin x dx = (−1)n+1 − 2 sin
π π 2 n n π 2
∞
π X 4 n nπ n
f (x) = + 2
(−1) − cos cos x
4 n π 2 2
n=1
∞
X 2 n+1 4 nπ n
f (x) = (−1) − 2 sin sin x
n=1
n n π 2 2
1 2
3
ˆ ˆ
31. a0 = x dx + 1 dx =
0 1 2
1
nπ 4 nπ
ˆ
an = x cos x dx = 2 2 cos −1
0 2 n π 2
1 2
nπ nπ 4 nπ 2
ˆ ˆ
bn = x sin x dx + 1 · sin x dx = 2 2 sin + (−1)n+1
0 2 1 2 n π 2 nπ
∞
3 X 4 nπ nπ
f (x) = + 2 2
cos − 1 cos x
4 n π 2 2
n=1
∞
X 4 nπ 2 n+1 nπ
f (x) = 2 2
sin + (−1) sin x
n=1
n π 2 nπ 2
928 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
1 2
3
ˆ ˆ
32. a0 = 1 dx + (2 − x) dx =
0 1 2
1 2
nπ nπ 4 nπ
ˆ ˆ
an = 1 · cos x dx + (2 − x) cos x dx = 2 2 cos + (−1)n+1
0 2 1 2 n π 2
1 2
nπ nπ 2 4 nπ
ˆ ˆ
bn = 1 · sin x dx + (2 − x) sin x dx = + 2 2 sin
0 2 1 2 nπ n π 2
∞
3 X 4 nπ n+1
nπ
f (x) = + 2 2
cos + (−1) cos x
4 n π 2 2
n=1
∞
X 2 4 nπ nπ
f (x) = + 2 2 sin sin x
nπ n π 2 2
n=1
1
5
ˆ
33. a0 = 2 (x2 + x) dx =
0 3
1
1 2 + x) ˆ 1
2(x 2
ˆ
2
an = 2 (x + x) cos nπx dx = sin nπx − (2x + 1) sin nπx dx
0 nπ nπ 0
0
2
= [3(−1)n − 1]
n2 π 2
ˆ 1 1 ˆ 1
2(x 2 + x) 2
2
bn = 2 (x + x) sin nπx dx = − cos nπx + (2x + 1) cos nπx dx
0 nπ nπ 0
0
4 4
= (−1)n+1 + 3 3 [(−1)n − 1]
nπ n π
∞
5 X 2
f (x) = + [3(−1)n − 1] cos nπx
6 n=1 n2 π 2
∞
X 4 n+1 4 n
f (x) = (−1) + 3 3 [(−1) − 1] sin nπx
n=1
nπ n π
2
4
ˆ
34. a0 = (2x − x2 ) dx =
0 3
2
nπ 8
ˆ
an = (2x − x2 ) cos x dx = 2 2 [(−1)n+1 − 1]
0 2 n π
2
nπ 16
ˆ
bn = (2x − x2 ) sin x dx = 3 3 [1 − (−1)n ]
0 2 n π
∞
2 X 8 nπ
f (x) = + 2 2
[(−1)n+1 − 1] cos x
3 n π 2
n=1
∞
X 16 nπ
f (x) = 3 3
[1 − (−1)n ] sin x
n=1
n π 2
12.3 Fourier Cosine and Sine Series 929
2π
1 8
ˆ
35. a0 = x2 dx = π 2
π 0 3
2π
1 4
ˆ
an = x2 cos nx dx =
π 0 n2
2π
1 4π
ˆ
bn = x2 sin nx dx = −
π 0 n
∞
4 2 X 4 4π
f (x) = π + cos nx − sin nx
3 n=1
n2 n
π
2
ˆ
36. a0 = x dx = π
π 0
π
2
ˆ
an = x cos 2nx dx = 0
π 0
π
2 1
ˆ
bn = x sin 2nx dx = −
π 0 n
∞
π X1
f (x) = − sin 2nx
2 n
n=1
ˆ 1
37. a0 = 2 (x + 1) dx = 3
0
ˆ 1
an = 2 (x + 1) cos 2nπx dx = 0
0
1
1
ˆ
bn = 2 (x + 1) sin 2nπx dx = −
0 nπ
∞
3 X 1
f (x) = − sin 2nπx
2 n=1 nπ
2
2
ˆ
38. a0 = (2 − x) dx = 2
2 0
2
2
ˆ
an = (2 − x) cos nπx dx = 0
2 0
2
2 2
ˆ
bn = (2 − x) sin nπx dx =
2 0 nπ
∞
X 2
f (x) = 1 + sin nπx
n=1
nπ
930 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
39. The periodic extensions for the cosine, sine, and Fourier series are shown below:
–3L –2L –L L 2L 3L
–3L –2L –L L 2L 3L
–3L –2L –L L 2L 3L
40. The periodic extensions for the cosine, sine, and Fourier series are shown below:
–3L –2L –L L 2L 3L
–3L –2L –L L 2L 3L
–3L –2L –L L 2L 3L
12.3 Fourier Cosine and Sine Series 931
41. The periodic extensions for the cosine, sine, and Fourier series are shown below:
–3L –2L –L L 2L 3L
–3L –2L –L L 2L 3L
–3L –2L –L L 2L 3L
42. The periodic extensions for the cosine, sine, and Fourier series are shown below:
–3L –2L –L L 2L 3L
–3L –2L –L L 2L 3L
–3L –2L –L L 2L 3L
932 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
43. We have π
2 10
ˆ
bn = 5 sin nt dt = [1 − (−1)n ]
π 0 nπ
so that
∞
X 10[1 − (−1)n ]
f (t) = sin nt.
n=1
nπ
P∞
Substituting the assumption xp (t) = n=1 Bn sin nt into the differential equation then gives
∞ ∞
X X 10[1 − (−1)n ]
x′′p + 10xp = Bn (10 − n ) sin nt = 2
sin nt
nπ
n=1 n=1
44. We have
1
2 2
ˆ
bn = (1 − t) sin nπt dt =
π 0 nπ
so that
∞
X 2
f (t) = sin nπt.
nπ
n=1
P∞
Substituting the assumption xp (t) = n=1 Bn sin nπt into the differential equation then gives
∞ ∞
X X 2
x′′p + 10xp = Bn (10 − n2 π 2 ) sin nπt = sin nπt
n=1 n=1
nπ
45. We have
π
2 4 2
ˆ
a0 = (2πt − t2 ) dt = π
π 0 3
π
2 4
ˆ
an = (2πt − t2 ) cos nt dt = −
π 0 n2
so that
∞
2π 2 X 4
f (t) = − cos nt.
3 n2
n=1
46. We have
1/2
2 1
ˆ
a0 = t dt =
1/2 0 2
1/2
2 1
ˆ
an = t cos 2nπt dt = [(−1)n − 1]
1/2 0 n2 π 2
so that
∞
1 X (−1)n − 1
f (t) = + cos 2nπt.
4 n2 π 2
n=1
√ √
47. (a) The general solution is x(t) = c1 cos 10 t + c2 sin 10 t + xp (t), where
∞
10 X 1 − (−1)n
xp (t) = sin nt.
π n(10 − n2 )
n=1
Thus √ ∞
10 X 1 − (−1)n
c2 = −
π 10 − n2
n=1
and
∞
10 X 1 − (−1)n 1 √
1
x(t) = sin nt − √ sin 10 t .
π 10 − n2 n 10
n=1
(b) The graph is plotted using eight nonzero terms in the series expansion of x(t).
x
4
t
20 40 60 80
–2
–4
√ √
48. (a) The general solution is x(t) = c1 cos 4 3 t + c2 sin 4 3t + xp (t), where
∞
π2 X 1
xp (t) = + 16 2 (n2 − 48)
cos nt.
18 n=1
n
(b) The graph is plotted using five nonzero terms in the series expansion of x(t).
x
1.5
0.5
t
2 4 6 8 10 12 14
–0.5
–1
12.3 Fourier Cosine and Sine Series 935
P∞
(b) If we assume yp (x) = n=1 Bn sin (nπx/L) then
∞
X n4 π 4 nπ
yp(4) = Bn sin x
L4 L
n=1
(4)
and so the differential equation EIyp = w(x) gives
2w0 (−1)n+1 L4
Bn = .
EIn5 π 5
Thus
∞
2w0 L4 X (−1)n+1 nπ
yp (x) = 5 5
sin x.
EIπ n L
n=1
50. We have
2L/3
2 nπ 2w0 nπ 2nπ
ˆ
bn = w0 sin x dx = cos − cos
L L/3 L nπ 3 3
so that
∞
X 2w0 nπ 2nπ nπ
w(x) = cos − cos sin x.
nπ 3 3 L
n=1
P∞
If we assume yp (x) = n=1 Bn sin (nπx/L) then
∞
X n4 π 4 nπ
yp(4) (x) = Bn sin x
L4 L
n=1
(4)
and so the differential equation EIyp (x) = w(x) gives
cos nπ 2nπ
3 − cos 3
Bn = 2w0 L4 .
EIn5 π 5
Thus
∞
2w0 L4 X cos nπ 2nπ
3 − cos 3 nπ
yp (x) = 5 5
sin x.
EIπ n L
n=1
936 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
51. The graph is obtained by summing the series from n = 1 to 20. It appears that
(
x, 0<x<π
f (x) =
−π, π < x < 2π
S20
3
2
1
x
2 4 6 8 10 12 14
–1
–2
–3
52. The graph is obtained by summing the series from n = 1 to 10. It appears that
(
1 − x, 0 < x < 1
f (x) =
0, 1<x<2
S20
0.5
x
2 4 6 8 10
54. The cosine series converges to an even extension of the function on the interval (−π, 0). Since
the even extension of f (x) is f (−x), in this case f (−x) = e−x on (−π, 0).
55. No, it is not a full Fourier series. A full Fourier series of f (x) = ex , 0 < x < π, would
converge to the π-periodic extension of f . The cosine and sine series converge to a 2π-
periodic extension (even and odd, respectively). The average of the two series converges to a
2π-periodic extension of ( x
e , 0<x<π
f (x) =
0, −π < x < 0.
12.3 Fourier Cosine and Sine Series 937
and h is even.
and h is odd.
(d) Let h(x) = f (x) ± g(x) where f and g are even. Then
and h is even.
and h is odd.
(f ) If f is even then
ˆ a ˆ 0 ˆ a
f (x) dx = f (x) dx + f (x) dx ←− u = −x, du = −dx
−a −a 0
ˆ 0 ˆ a
= f (−u)(−du) + f (x) dx ←− f is an even function
a 0
ˆ a ˆ a ˆ a
= f (u) du + f (x) dx = 2 f (x) dx.
0 0 0
In this section we make use of the following identities due to Euler’s formula:
1. Identifying p = 2 we have
1 2
ˆ 0 ˆ 2
1
ˆ
−inπx/2 −inπx/2 −inπx/2
cn = f (x)e dx = (−1)e dx + e dx
4 −2 4 −2 0
i i 1 − (−1)n
−1 + einπ + e−inπ − 1 = [−1 + (−1)n + (−1)n − 1] =
=
2nπ 2nπ nπi
and
2
1
ˆ
c0 = f (x) dx = 0.
4 −2
Thus
∞
X 1 − (−1)n inπx/2
f (x) = e .
n=−∞
inπ
n6=0
2. Identifying 2p = 2 or p = 1 we have
2
2 2
1 1 1 −inπx
ˆ ˆ
−inπx −inπx
cn = f (x)e dx = e dx = − e
2 2 2inπ
0 1
1
1 1 i
e−2inπ − e−inπ = − [1 − (−1)n ] = [1 − (−1)n ]
=−
2inπ 2inπ 2nπ
and
2 2
1 1 1
ˆ ˆ
c0 = f (x) dx = dx = .
2 0 2 1 2
Thus
∞
1 i X 1 − (−1)n inπx
f (x) = + e .
2 2π n=−∞ n
n6=0
1 ih 1 i
=− e−inπ/2 − 1 = − [(−i)n − 1] = [(−i)n − 1]
2inπ 2inπ 2nπ
12.4 Complex Fourier Series 939
and
1/4
1
ˆ
c0 = dx = .
0 4
Thus
∞
1 i X (−i)n − 1 2inπx
f (x) = + e .
4 2π n=−∞ n
n6=0
4. Identifying p = π we have
π ˆ π
1 1
ˆ
−inx/π
cn = f (x)e dx = xe−inx/π dx
2π −π 2π 0
π
1 π ix −inx/π π(1 + in) −in π
= + e = e − 2
2 n2 n 2n2 2n
0
and π
1 π
ˆ
c0 = x dx = .
2π 0 4
Thus
∞
π π X 1
(1 + in)e−in − 1 einx .
f (x) = + 2
4 2 n=−∞ n
n6=0
5. Identifying 2p = 2π or p = π we have
ˆ 2π ˆ 2π
1 1
cn = f (x)e−inx dx = xe−inx dx
2π 0 2π 0
2π
1 1 ix −inx 1 + 2inπ 1 i
= + e = − 2 =
2π n2 n 2n2 π 2n π n
0
and
2π
1
ˆ
c0 = x dx = π.
2π 0
Thus
∞
X i inx
f (x) = π + e .
n=−∞
n
n6=0
6. Identifying p = 1 we have
1 1
ˆ 0 ˆ 1
1
ˆ
−inπx x −inπx −x −inπx
cn = f (x)e dx = e e dx + e e dx
2 −1 2 −1 0
0 1
1 1 1
= − e(1−inπ)x − e−(1+inπ)x
2 1 − inπ 1 + inπ
−1 0
Thus
∞
X 2[e − (−1)n ] inπx
f (x) = 2π2 )
e .
n=−∞
e(1 + n
n –5 –4 –3 –2 –1 0 1 2 3 4 5
cn 0.1273 0.0000 0.2122 0.0000 0.6366 0.0000 0.6366 0.0000 0.2122 0.0000 0.1273
n –5 –4 –3 –2 –1 0 1 2 3 4 5
cn 0.0450 0.0000 0.0750 0.1592 0.2251 0.2500 0.2251 0.1592 0.0750 0.0000 0.0450
10. Identifying 2p = π or p = π/2, and using cos x = (eix − e−ix )/2, we have
f
π
1
ˆ
cn = f (x)e−2inx/π dx 1
π 0
0.8
π/2
1
ˆ
0.6
= (cos x)e−2inx/π dx
π 0 0.4
π/2 0.2
1 1 ix
ˆ
= (e − e−ix )e−2inx/π dx −π π
x
π 0 2 −2π 2π
π/2
1
ˆ
(1−2n/π)ix −(1+2n/π)ix
= e −e dx
2π 0 cn
0.3
1 1
= e(1−2n/π)ix 0.2
2π i(1 − 2n/π)
π/2 0.1
1
+ e−(1+2n/π)ix frequency
i(1 + 2n/π) 0 −10 −5 5 10
2ne−in + iπ
= .
π 2 − 4n2
11. (a) Adding cn = 12 (an − ibn ) and c−n = 21 (an + ibn ) we get cn + c−n = an . Subtracting, we
get cn − c−n = −ibn . Multiplying both sides by i we obtain i(cn − c−n ) = bn .
(b) From
2(−1)n sinh π
n sinh π 1 − in 1 + in
an = cn + c−n = (−1) + = , n = 0, 1, 2, . . .
π n2 + 1 n2 + 1 π(n2 + 1)
and
n sinh π 1 − in 1 + in n sinh π 2in
bn = i(cn − c−n ) = i(−1) − = i(−1) − 2
π n2 + 1 n2 + 1 π n +1
2(−1)n n sinh π
= ,
π(n2 + 1)
942 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
12. From Problem 11 and the fact that f is odd, cn + c−n = an = 0, so c−n = −cn . Then
bn = i(cn − c−n ) = 2icn . From Problem 1, bn = 2i[1 − (−1)n ]/nπi = 2[1 − (−1)n ]/nπ, and
the Fourier sine series of f is
∞
X 2[1 − (−1)n ] nπx
f (x) = sin .
nπ 2
i=1
1. For λ ≤ 0 the only solution of the boundary-value problem is y = 0. For λ = α2 > 0 we have
Now
y ′ (x) = −c1 α sin αx + c2 α cos αx
The eigenvalues are λn = α2n where α1 , α2 , α3 , . . . are the consecutive positive solutions
of cot α = α. The corresponding eigenfunctions are cos αn x for n = 1, 2, 3, . . . . Using a
CAS we find that the first four eigenvalues are approximately 0.7402, 11.7349, 41.4388, and
90.8082 with corresponding approximate eigenfunctions cos 0.8603x, cos 3.4256x, cos 6.4373x,
and cos 9.5293x.
2. For λ < 0 the only solution of the boundary-value problem is y = 0. For λ = 0 we have
y = c1 x + c2 . Now y ′ = c1 and the boundary conditions both imply c1 + c2 = 0. Thus, λ = 0
is an eigenvalue with corresponding eigenfunction y0 = x − 1.
and
y ′ (x) = −c1 α sin αx + c2 α cos αx.
c1 + c2 α = 0
c1 cos α + c2 sin α = 0
12.5 Sturm–Liouville Problem 943
which gives
−c2 α cos α + c2 sin α = 0 or tan α = α.
The eigenvalues are λn = α2n where α1 , α2 , α3 , . . . are the consecutive positive solutions
of tan α = α. The corresponding eigenfunctions are α cos αx − sin αx (obtained by taking
c2 = −1 in the first equation of the system.) Using a CAS we find that the first four positive
eigenvalues are 20.1907, 59.6795, 118.9000, and 197.858 with corresponding eigenfunctions
4.4934 cos 4.4934x − sin 4.4934x, 7.7253 cos 7.7253x − sin 7.7253x,
10.9041 cos 10.9041x − sin 10.9041x, and 14.0662 cos 14.0662x − sin 14.0662x.
For λ = −α2 < 0 we have y = c1 cosh αx + c2 sinh αx and y ′ = c1 α sinh αx + c2 α cosh αx.
The condition y ′ (0) = 0 implies c2 = 0 and so y = c1 cosh αx. Now the condition y ′ (L) = 0
implies c1 = 0. Thus y = 0 and there are no negative eigenvalues.
For λ = α2 > 0 we have y = c1 cos αx + c2 sin αx and y ′ = −c1 α sin αx + c2 α cos αx. The
condition y ′ (0) = 0 implies c2 = 0 and so y = c1 cos αx. Now the condition y ′ (L) = 0 implies
−c1 α sin αL = 0. For c1 6= 0 this condition will hold when αL = nπ or λ = α2 = n2 π 2 /L2 ,
where n = 1, 2, 3, . . . . These are the positive eigenvalues with corresponding eigenfunctions
cos(nπx/L), n = 1, 2, 3, . . . .
y = c1 cosh αx + c2 sinh αx
y ′ = c1 α sinh αx + c2 α cosh αx.
Using the fact that cosh x is an even function and sinh x is odd we have
and
or
2c2 sinh αL = 0
944 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
and
−c1 α sinh αL + c2 α cosh αL = c1 α sinh αL + c2 α cosh αL
or
2c1 α sinh αL = 0.
Since αL 6= 0, c1 = c2 = 0 and the only solution of the boundary-value problem in this case
is y = 0.
For λ = 0 we have
y = c1 x + c2
y ′ = c1 .
y = c1 cos αx + c2 sin αx
y ′ = −c1 α sin αx + c2 α cos αx.
or
2c2 sin αL = 0.
Thus, if c1 = 0 and c2 6= 0,
n2 π 2
αL = nπ or λ = α2 = , n = 1, 2, 3, . . . .
L2
The corresponding eigenfunctions are sin (nπx/L), for n = 1, 2, 3, . . . . Similarly, the second
boundary condition implies
2c1 α sin αL = 0.
If c1 6= 0 and c2 = 0,
n2 π 2
αL = nπ or λ = α2 = , n = 1, 2, 3, . . . ,
L2
and the corresponding eigenfunctions are cos (nπx/L), for n = 1, 2, 3, . . . .
12.5 Sturm–Liouville Problem 945
7. (a) If λ ≤ 0 the initial conditions imply y = 0. For λ = α2 > 0 the general solution of the
Cauchy-Euler differential equation is y = c1 cos (α ln x) + c2 sin (α ln x). The condition
y(1) = 0 implies c1 = 0, so that y = c2 sin (α ln x). The condition y(5) = 0 implies
α ln 5 = nπ, n = 1, 2, 3, . . . . Thus, the eigenvalues are n2 π 2 /(ln 5)2 for n = 1, 2, 3, . . . ,
with corresponding eigenfunctions sin [(nπ/ ln 5) ln x].
In this case the boundary conditions again imply c1 = c2 = 0, and so y = 0. Now, for
λ > 41 , the general solution of the differential equation is
√ √
y = c1 e−x/2 cos 4λ − 1 x + c2 e−x/2 sin 4λ − 1 x.
√
The condition y(0) = 0 implies c1 = 0 so y = c2 e−x/2 sin 4λ − 1 x. From
√
y(2) = c2 e−1 sin 2 4λ − 1 = 0
√
we see that the eigenvalues are determined by 2 4λ − 1 = nπ for n = 1, 2, 3, . . . . Thus,
the eigenvalues are n2 π 2 /42 + 1/4 for n = 1, 2, 3, . . . , with corresponding eigenfunctions
e−x/2 sin(nπx/2).
Identifying the weight function p(x) = e−x and noting that since r(x) = xe−x , r(0) = 0 and
limx→∞ r(x) = 0, we have the orthogonality relation
ˆ ∞
e−x Lm (x)Ln (x) dx = 0, m 6= n.
0
12.5 Sturm–Liouville Problem 947
2
´
10. To obtain the self-adjoint form we note that an integrating factor is e −2x dx = e−x . Thus,
the differential equation is
2 2 2
e−x y ′′ − 2xe−x y ′ + 2ne−x y = 0
λ
(1 + x2 )y ′′ + 2xy ′ + y = 0.
1 + x2
dy dy dθ 1 dy
= = 2
dx dθ dx 1 + x dθ
d2 y
2
d 1 dy 1 d y dθ 2x dy
2
= 2
= 2 2
− 2 2
dx dx 1 + x dθ 1+x dθ dx (1 + x ) dθ
1 d2 y 2x dy
= 2 2 2
− 2 2
.
(1 + x ) dθ (1 + x ) dθ
d2 y
2 1 2x dy 1 dy λ
(1 + x ) 2 2 2
− 2 2
+ 2x 2
+ y
(1 + x ) dθ (1 + x ) dθ 1 + x dθ 1 + x2
1 d2 y λ
= + y=0
1 + x2 dθ 2 1 + x2
or
d2 y
+ λy = 0.
dθ 2
The boundary conditions become y(0) = y(π/4) = 0. For λ ≤ 0 the only solution of
the boundary-value problem is y = 0. For λ = α2 > 0 the general solution of the
differential equation is y = c1 cos αθ + c2 sin αθ. The condition y(0) = 0 implies c1 = 0
so y = c2 sin αθ. Now the condition y(π/4) = 0 implies c2 sin απ/4 = 0. For c2 6= 0 this
condition will hold when απ/4 = nπ or λ = α2 = 16n2 , where n = 1, 2, 3, . . . . These are
the eigenvalues with corresponding eigenfunctions sin 4nθ = sin(4n tan−1 x), for n = 1,
2, 3, . . . .
948 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
1
1
ˆ
sin (4m tan−1 x) sin (4n tan−1 x) dx = 0, m 6= n.
0 x2 +1
12. (a) Letting λ = α2 the differential equation becomes x2 y ′′ + xy ′ + (α2 x2 − 1)y = 0. This is
the parametric Bessel equation with ν = 1. The general solution is
y = c1 J1 (αx) + c2 Y1 (αx).
(b) Using a CAS or Table 5.1 in the text to solve J1 (3α) = 0 we find 3α1 = 3.8317, 3α2 =
7.0156, 3α3 = 10.1735, and 3α4 = 13.3237. The corresponding eigenvalues are λ1 =
α21 = 1.6313, λ2 = α22 = 5.4687, λ3 = α23 = 11.4999, and λ4 = α24 = 19.7245.
13. When λ = 0 the differential equation is r(x)y ′′ + r ′ (x)y ′ = 0. By inspection we see that y = 1
is a solution of the boundary-value problem. Thus, λ = 0 is an eigenvalue.
≈ 0.
12.6 Bessel and Legendre Series 949
2. By (6) in the text J0′ (2α) = −J1 (2α). Thus, J0′ (2α) = 0 is equivalent to J1 (2α). Then
α1 = 1.9159, α2 = 3.5078, α3 = 5.0867, and α4 = 6.6618.
3. The boundary condition indicates that we use (15) and (16) in the text. With b = 2 we obtain
2
2
ˆ
ci = xJ0 (αi x) dx t = αi x, dt = αi dx
4J12 (2αi ) 0
ˆ 2αi
1 1
= · tJ0 (t) dt
2J12 (2αi ) α2i 0
ˆ 2αi
1 d
= 2 2 [tJ1 (t)] dt [From (5) in the text]
2αi J1 (2αi ) 0 dt
2αi
1 1
= tJ (t) = .
2 2 1
2αi J1 (2αi ) αi J1 (2αi )
0
Thus
∞
X 1
f (x) = J0 (αi x).
αi J1 (2αi )
i=1
4. The boundary condition indicates that we use (19) and (20) in the text. With b = 2 we obtain
2
2
2 2 x2
ˆ
c1 = x dx = = 1,
4 0 4 2
0
2
2
ˆ
ci = xJ0 (αi x) dx t = αi x, dt = αi dx
4J02 (2αi ) 0
ˆ 2αi
1 1
= · tJ0 (t) dt
2J02 (2αi ) α2i 0
ˆ 2αi
1 d
= 2 2 [tJ1 (t)] dt [From (5) in the text]
2αi J0 (2αi ) 0 dt
2αi
1 J1 (2αi )
= tJ (t) = .
2 2 1
2αi J0 (2αi ) αi J02 (2αi )
0
f (x) = c1 = 1.
950 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
5. The boundary condition indicates that we use (17) and (18) in the text. With b = 2 and
h = 1 we obtain
2
2α2i
ˆ
ci = xJ0 (αi x) dx t = αi x, dt = αi dx
(4α2i + 1)J02 (2αi ) 0
ˆ 2αi
2α2i 1
= · tJ0 (t) dt
(4α2i + 1)J02 (2αi ) α2i 0
ˆ 2αi
2 d
= 2 2 [tJ1 (t)] dt [From (5) in the text]
(4αi + 1)J0 (2αi ) 0 dt
2αi
2 4αi J1 (2αi )
= tJ (t) = .
2 2 1
(4αi + 1)J0 (2αi ) (4α2i + 1)J02 (2αi )
0
Thus
∞
X αi J1 (2αi )
f (x) = 4 J0 (αi x).
i=1
(4α2i + 1)J02 (2αi )
2
2α2i
ˆ
ci = xJ0 (αi x) dx t = αi x, dt = αi dx
(4α2i + 4)J02 (2αi ) 0
ˆ 2αi
α2i 1
= · tJ0 (t) dt
2(α2i + 1)J02 (2αi ) α2i 0
ˆ 2αi
1 d
= 2 2 [tJ1 (t)] dt [From (5) in the text]
2(αi + 1)J0 (2αi ) 0 dt
2αi
1 αi J1 (2αi )
= tJ (t) = 2 .
2 2 1
2(αi + 1)J0 (2αi ) (αi + 1)J02 (2αi )
0
Thus
∞
X αi J1 (2αi )
f (x) = J0 (αi x).
i=1
(α2i + 1)J02 (2αi )
12.6 Bessel and Legendre Series 951
7. The boundary condition indicates that we use (17) and (18) in the text. With n = 1, b = 4,
and h = 3 we obtain
4
2α2i
ˆ
ci = xJ1 (αi x)5x dx t = αi x, dt = αi dx
(16α2i − 1 + 9)J12 (4αi ) 0
ˆ 4αi
5α2i 1
= · t2 J1 (t) dt
4(2α2i + 1)J12 (4αi ) α3i 0
ˆ 4αi
5 d 2
= 2 2 [t J2 (t)] dt [From (5) in the text]
4αi (2αi + 1)J1 (4αi ) 0 dt
4αi
5 2
20αi J2 (4αi )
= t J2 (t) = .
4αi (2α2i + 1)J12 (4αi ) (2α2i + 1)J12 (4αi )
0
Thus
∞
X αi J2 (4αi )
f (x) = 20 J1 (αi x).
i=1
(2α2i + 1)J12 (4αi )
8. The boundary condition indicates that we use (15) and (16) in the text. With n = 2 and
b = 1 we obtain
1
2
ˆ
c1 = 2 xJ2 (αi x)x2 dx t = αi x, dt = αi dx
J3 (αi ) 0
ˆ αi
2 1
= 2 · 4 t3 J2 (t) dt
J3 (αi ) αi 0
ˆ αi
2 d 3
= 4 2 [t J3 (t)] dt [From (5) in the text]
αi J3 (αi ) 0 dt
αi
2 2
= 4 2 t3 J3 (t) = .
αi J3 (αi ) αi J3 (αi )
0
Thus
∞
X 1
f (x) = 2 J2 (αi x).
αi J3 (αi )
i=1
952 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
9. The boundary condition indicates that we use (19) and (20) in the text. With b = 3 we obtain
3
2 3 2 2 x4 9
ˆ
c1 = xx dx = = ,
9 0 9 4 2
0
3
2
ˆ
ci = 2 xJ0 (αi x)x2 dx t = αi x, dt = αi dx
9J0 (3αi ) 0
3αi
2 1
ˆ
= 2 · 4 t3 J0 (t) dt
9J0 (3αi ) αi 0
3αi d
2 d u = t2 dv = dt [tJ1 (t)] dt
ˆ
= t2 [tJ1 (t)] dt
4
9αi J02 (3αi ) 0 dt du = 2t dt v = tJ1 (t)
3αi
ˆ 3αi
2 3
= t J1 (t) − 2 t2 J1 (t) dt .
9α4i J02 (3αi ) 0
0
With n = 0 in equation (6) in the text we have J0′ (x) = −J1 (x), so the boundary condition
J0′ (3αi ) = 0 implies J1 (3αi ) = 0. Then
3αi
ˆ 3αi
2 d 2 2 2
ci = −2 t J (t) dt = −2t J (t)
2 2
9α4i J02 (3αi ) dt 9α4 J 2 (3α )
0 i 0 i
0
2 −4J2 (3αi )
−18α2i J2 (3αi ) = 2 2
= .
9α4i J02 (3αi ) αi J0 (3αi )
Thus
∞
9 X J2 (3αi )
f (x) = −4 2 J 2 (3α ) J0 (αi x).
2 α i
i=1 i 0
10. The boundary condition indicates that we use (15) and (16) in the text. With b = 1 it follows
that
ˆ 1
2
x 1 − x2 J0 (αi x) dx
ci = 2
J1 (αi ) 0
ˆ 1 ˆ 1
2 3
= 2 xJ0 (αi x) dx − x J0 (αi x) dx t = αi x, dt = αi dx
J1 (αi ) 0 0
ˆ αi ˆ αi
2 1 1 3
= 2 tJ0 (t) dt − t J0 (t) dt
J1 (αi ) α2i 0 α4i 0
ˆ αi ˆ αi d
u = t2
2 1 d 1 2 d dv = dt [tJ1 (t)] dt
= 2 [tJ1 (t)] dt − t [tJ1 (t)] dt
J1 (αi ) α2i 0 dt α4i 0 dt du = 2t dt v = tJ1 (t)
" αi αi ˆ αi !#
2 1 1 3
2
= 2 tJ1 (t) − 4 t J1 (t) − 2 t J1 (t) dt
J1 (αi ) α2i αi 0
0 0
12.6 Bessel and Legendre Series 953
ˆ αi " αi #
2 J1 (αi ) J1 (αi ) 2 d 2 2 2 2
= 2 − + 4 t J2 (t) dt = 2 t J (t)
4 2
J1 (αi ) αi αi αi 0 dt J1 (αi ) αi
0
4J2 (αi )
= .
α2i J12 (αi )
Thus
∞
X J2 (αi )
f (x) = 4 J0 (αi x).
α2 J 2 (αi )
i=1 i 1
11. (a) y
4
x
5 10 15 20 25 30
−2
−4
(c) Dividing the roots in part (b) by 4 we find the eigenvalues α1 = 0.7374, α2 = 1.4603,
α3 = 2.2182, α4 = 2.9890, and α5 = 3.7656.
(d) The next five eigenvalues are α6 = 4.5451, α7 = 5.3263, α8 = 6.1085, α9 = 6.8915, and
α10 = 7.6749.
12. (a) From Problem 7, the coefficients of the Fourier-Bessel series are
20αi J2 (4αi )
ci = .
(2α2i + 1)J12 (4αi )
S1 S2 S3 S4 S5
(b) 20 20 20 20 20
15 15 15 15 15
10 10 10 10 10
5 5 5 5 5
x x x x x
1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5
954 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
S10
(c) 20 S10
20
15 15
10
10
5
5 x
10 20 30 40 50
x −5
1 2 3 4
−10
13. Since f is expanded as a series of Bessel functions, J1 (αi x) and J1 is an odd function, the
series should represent an odd function.
y
14. (a) Since J0 is an even function, a series expansion of a 2
function defined on (0, 2) would converge to the even 1.5
extension of the function on (−2, 0). 1
0.5
x
−2 −1 1 2
y
(b) In Section 5.3 we saw that J2′ (x) = 2J2 (x)/x − J3 (x). Since J2 is
20
even and J3 is odd we see that
S5
15. We compute
1
1 1 1 1
1
ˆ ˆ
c0 = xP0 (x) dx = x dx = 0.5
2 0 2 0 4
3 1 3 1
1
ˆ ˆ
x
c1 = xP1 (x) dx = x2 dx = −1 −0.5 0.5 1
2 0 2 0 2
5 1 5 1
1 5
ˆ ˆ
c2 = xP2 (x) dx = (3x3 − x) dx =
2 0 2 0 2 16
12.6 Bessel and Legendre Series 955
1 1
7 7 1
ˆ ˆ
c3 = xP3 (x) dx = (5x4 − 3x2 ) dx = 0
2 0 2 0 2
1 1
9 9 1 3
ˆ ˆ
c4 = xP4 (x) dx = (35x5 − 30x3 + 3x) dx =
2 0 2 0 8 32
1 1
11 11 1
ˆ ˆ
c5 = xP5 (x) dx = (63x6 − 70x4 + 15x2 ) dx = 0
2 0 2 0 8
1 1
13 13 1 13
ˆ ˆ
c6 = xP6 (x) dx = (231x7 − 315x5 + 105x3 − 5x) dx = .
2 0 2 0 16 256
Thus
1 1 5 3 13
f (x) = P0 (x) + P1 (x) + P2 (x) − P4 (x) + P6 (x) + · · · .
4 2 16 32 256
S5
16. We compute
3
1 1 x 1 1
1
ˆ ˆ
c0 = e P0 (x) dx = ex dx = (e − e−1 )
2 −1 2 −1 2 2
3 1 x 3 1 x
ˆ ˆ
c1 = e P1 (x) dx = xe dx = 3e−1 1
2 −1 2 −1
5 1 x 5 1 1
ˆ ˆ
x
c2 = e P2 (x) dx = (3x2 ex − ex ) dx −1 −0.5 0.5 1
2 −1 2 −1 2
5
= (e − 7e−1 )
2
7 1 x 7 1
1 7
ˆ ˆ
c3 = e P3 (x) dx = (5x3 ex − 3xex ) dx = (−5e + 37e−1 )
2 −1 2 −1 2 2
9 1 x 9 1
1 9
ˆ ˆ
c4 = e P4 (x) dx = (35x4 ex − 30x2 ex + 3ex ) dx = (36e − 266e−1 ).
2 −1 2 −1 8 2
Thus
1 5
f (x) = (e − e−1 )P0 (x) + 3e−1 P1 (x) + (e − 7e−1 )P2 (x)
2 2
7 9
+ (−5e + 37e−1 )P3 (x) + (36e − 266e−1 )P4 (x) + · · · .
2 2
1 3 1 3 1 3 1 1
P2 (cos θ) = (3 cos2 θ − 1) = cos2 θ − = (cos 2θ + 1) − = cos 2θ + = (3 cos 2θ + 1).
2 2 2 4 2 4 4 4
956 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
and ˆ 1
f (x)P2n+1 (x) dx = 0.
−1
Thus
1 ˆ 1
2(2n) + 1 4n + 1
ˆ
c2n = f (x)P2n (x) dx = 2 f (x)P2n (x) dx
2 −1 2 0
ˆ 1
= (4n + 1) f (x)P2n (x) dx,
0
c2n+1 = 0, and
∞
X
f (x) = c2n P2n (x).
n=0
and ˆ 1 ˆ 1
f (x)P2n+1 (x) dx = 2 f (x)P2n+1 (x) dx.
−1 0
Thus
1 ˆ 1
2(2n + 1) + 1 4n + 3
ˆ
c2n+1 = f (x)P2n+1 (x) dx = 2 f (x)P2n+1 (x) dx
2 −1 2 0
ˆ 1
= (4n + 3) f (x)P2n+1 (x) dx,
0
c2n = 0, and
∞
X
f (x) = c2n+1 P2n+1 (x).
n=0
12.6 Bessel and Legendre Series 957
1 1
1 75
ˆ ˆ
429x7 − 693x5 + 315x3 − 35x dx = −
c7 = 15 P7 (x) dx = 15 .
0 0 16 128
Hence, from (27) in the text,
3 7 11 75
f (x) = P1 (x) − P3 (x) + P5 (x) − P7 (x) + · · · .
2 8 16 128
On the interval −1 < x < 1 this series represents the odd function
(
−1, −1 < x < 0
f (x) =
1, 0 < x < 1.
23. Since there is a Legendre polynomial of any specified degree, every polynomial can be repre-
sented as a finite linear combination of Legendre polynomials.
Chapter 12 in Review
´π
1. True, since −π (x2 − 1)x5 dx = 0
2. Even, since if f and g are odd then h(−x) = f (−x)g(−x) = −f (x)[−g(x)] = f (x)g(x) = h(x)
4. True
6. Periodically extending the function we see that at x = −1 the function converges to 21 (−1 +
0) = − 21 ; at x = 0 it converges to 12 (0 + 1) = 21 , and at x = 1 it converges to 21 (−1 + 0) = − 12 .
Chapter 12 in Review 959
7. The Fourier series will converge to 1, the cosine series to 1, and the sine series to 0 at x = 0.
Respectively, this is because the rule (x2 + 1) defining f (x) determines a continuous function
on (−3, 3), the even extension of f to (−3, 0) is continuous at 0, and the odd extension of f
to (−3, 0) approaches −1 as x approaches 0 from the left.
8. cos 5x, since the general solution is y = c1 cos αx + c2 sin αx and y ′ (0) = 0 implies c2 = 0.
´1 1
´1
9. True, since 0 P2m (x)P2n (x) dx = 2 −1 P2m (x)P2n (x) dx = 0 when m 6= n.
1 1
11. We know from a half-angle formula in trigonometry that cos2 x = 2 + 2 cos 2x, which is a
cosine series.
L L
(2n + 1)π (2m + 1)π 1 n−m n+m+1
ˆ ˆ
sin x sin x dx = cos πx − cos πx dx
0 2L 2L 2 0 L L
= 0.
(b) From
L L
(2n + 1)π 1 1 (2n + 1)π L
ˆ ˆ
2
sin x dx = − cos x dx =
0 2L 0 2 2 L 2
we see that
r
sin (2n + 1)π L
x
= 2 .
2L
13. Since
ˆ 0
a0 = (−2x) dx = 1,
−1
0
2
ˆ
an = (−2x)cos nπx dx = [(−1)n − 1],
−1 n2 π 2
and
0
4
ˆ
bn = (−2x) sin nπx dx = (−1)n
−1 nπ
for n = 1, 2, 3, . . . we have
∞
1 X 2 n 4 n
f (x) = + [(−1) − 1] cos nπx + (−1) sin nπx .
2 n=1 n2 π 2 nπ
960 CHAPTER 12 ORTHOGONAL FUNCTIONS AND FOURIER SERIES
14. Since
1
2
ˆ
a0 = (2x2 − 1) dx = − ,
−1 3
1
8
ˆ
an = (2x2 − 1) cos nπx dx = (−1)n ,
−1 n2 π 2
and
ˆ 1
bn = (2x2 − 1) sin nπx dx = 0
−1
for n = 1, 2, 3, . . . we have
∞
1 X 8
f (x) = − + (−1)n cos nπx.
3 n=1 n2 π 2
15. Since
1
2
ˆ
a0 = e−x dx = 2(1 − e−1 )
1 0
and
1
2 2
ˆ
an = e−x cos nπx dx = [1 − (−1)n e−1 ],
1 0 1 + n2 π 2
∞
X 1 − (−1)n e−1
f (x) = 1 − e−1 + 2 cos nπx.
n=1
1 + n2 π 2
Since
1
2 2nπ
ˆ
bn = e−x sin nπx dx = [1 − (−1)n e−1 ],
1 0 1 + n2 π 2
∞
X n[1 − (−1)n e−1 ]
f (x) = 2π sin nπx.
n=1
1 + n2 π 2
Chapter 12 in Review 961
f f
16. 3 3
2 2
1 1
x x
−3 −2 −1 1 2 3 −3 −2 −1 1 2 3
−1 −1
−2 −2
−3 −3
f f
3 3
2 2
1 1
x x
−3 −2 −1 1 2 3 −3 −2 −1 1 2 3
−1 −1
−2 −2
−3 −3
( −x ( −x
e , −1 < x < 0 −e , −1 < x < 0
f (x) = f (x) =
ex , 0<x<1 ex , 0<x<1
and
3c1 α 3c2 α
y′ = − sin (3α ln x) + cos (3α ln x).
x x
Since ln 1 = 0, the boundary condition y ′ (1) = 0 implies c2 = 0. Therefore
18. To obtain the self-adjoint form of the differential equation in Problem 17 we note that an in-
´
tegrating factor is (1/x2 )e dx/x = 1/x. Thus the weight function is 1/x and an orthogonality
relation is ˆ e
1 2n − 1 2m − 1
cos π ln x cos π ln x dx = 0, m 6= n.
1 x 2 2
19. Since the coefficient of y in the differential equation is n2 , the weight function is the integrating
factor
√
1 ´ (b/a) dx 1 ´
− x 2 dx 1 1
ln (1−x2 ) 1 − x2 1
e = 2
e 1−x = 2
e 2 = 2
=√
a(x) 1−x 1−x 1−x 1 − x2
on the interval [−1, 1]. The orthogonality relation is
ˆ 1
1
√ Tm (x)Tn (x) dx = 0, m 6= n.
−1 1 − x2
20. Expanding in a full Fourier series we have
ˆ 2 ˆ 4
1
a0 = x dx + 2 dx = 3
2 0 2
ˆ 2 ˆ 4
(−1)n − 1
1 nπx nπx
an = x cos dx + 2 cos dx = 2
2 0 2 2 2 n2 π 2
ˆ 2 ˆ 4
1 nπx nπx −1
bn = x sin dx + 2 sin dx = 4
2 0 2 2 2 nπ
so
∞
(−1)n − 1
3 X nπx 2 nπx
f (x) = + 2 cos − sin .
2 n=1
n2 π 2 2 nπ 2
21. The boundary condition indicates that we use (15) and (16) of Section 12.6 in the text. With
b = 4 we obtain
ˆ 4
2
ci = xJ0 (αi x)f (x) dx
16J12 (4αi ) 0
ˆ 2
1
= xJ0 (αi x) dx t = αi x, dt = αi dx
8J12 (4αi ) 0
ˆ 2αi
1 1
= · tJ0 (t) dt
8J12 (4αi ) α2i 0
ˆ 2αi
1 d
= 2 [tJ1 (t)] dt [From (5) in 12.6 in the text]
8J1 (4αi ) 0 dt
2αi
1 J1 (2αi )
= tJ (t) = .
2 1
8J1 (4αi ) 4αi J12 (4αi )
0
Chapter 12 in Review 963
Thus
∞
1 X J1 (2αi )
f (x) = J0 (αi x.
4 αi J12 (4αi )
i=1
5 1 4 5 1 1 4
ˆ ˆ
c2 = x P2 (x) dx = (3x6 − x4 ) dx =
2 −1 2 −1 2 7
9 1 4 9 1 1 8
ˆ ˆ
c4 = x P4 (x) dx = (35x8 − 30x6 + 3x4 ) dx = .
2 −1 2 −1 8 35
Thus
1 4 8
f (x) = P0 (x) + P2 (x) + P4 (x).
5 7 35
23. (a)
f (x) + f (−x) + f (x) − f (−x) 2f (x)
fe (x) + fo (x) = = = f (x)
2 2
(b)
24.
f (x) + f (−x) ex + e−x
fe (x) = = = cosh x
2 2
f (x) − f (−x) ex − e−x
fo (x) = = = sinh x
2 2
Therefore we get
ˆ a+2p ˆ 2p ˆ a+2p
f (x) dx = f (x) dx + f (x) dx
a a 2p
ˆ 2p ˆ a
= f (x) dx + f (x) dx
a 0
ˆ a ˆ 2p
= f (x) dx + f (x) dx
0 a
ˆ 2p
= f (x) dx
0