Docsity

Solutions to Math 110 Homework #5: Expanding Functions as Trigonometric Series - Prof. Jac, Assignments of Differential Equations

Toggle sidebar
bg1
MATH 110
SOLUTIONS TO HW #5
Typed Problem # 1
The coefficients of the sin series are given by the formula:
An= 2 Z1
0
f(x) sin(nπx)dx ,
where f(x) is given by the formula on the worksheet. Integrating by parts one time,
we have that:
An=2
nπ Z1
0
f0(x) cos(nπx)dx ,
where f0(x) is the discontinuous function:
f0(x) = (3
2,06x62
3;
−3,2
36x61.
Therefore, we can compute each of these cases separately:
An=3
nπ Z2
3
0
cos(nπx)dx −6
nπ Z1
2
3
cos(nπx)dx ,
=3
(nπ)2sin(nπx)|
2
3
0−6
(nπ)2sin(nπx)|1
2
3
,
=9
(nπ)2sin( 2nπ
3),
= (−1)n+1 9
(nπ)2sin( nπ
3).
A little basic trigonometry shows that we have:
sin(π
3) = sin(2π
3) = √3
2,sin(4π
3) = sin(5π
3) = −√3
2,sin(π) = sin(2π)=0,
which allows one to compute sin(nπ
3) by repeating these formulas mod 2π. However,
is a lot easier to just leave things in terms of the sin function. Therefore, we have
that the original f(x) can be expanded as:
f(x) = X
16n
(−1)n+1 9
(nπ)2sin( nπ
3) sin(nπx).
1
pf3
pf4
pf5

Partial preview of the text

Download Solutions to Math 110 Homework #5: Expanding Functions as Trigonometric Series - Prof. Jac and more Assignments Differential Equations in PDF only on Docsity!

MATH 110

SOLUTIONS TO HW

Typed Problem # 1 The coefficients of the sin series are given by the formula:

An = 2

0

f (x) sin(nπx) dx ,

where f (x) is given by the formula on the worksheet. Integrating by parts one time, we have that:

An =

nπ

0

f ′(x) cos(nπx) dx ,

where f ′(x) is the discontinuous function:

f ′(x) =

2 ,^0 6 x^6 2 3 ; − 3 , 23 6 x 6 1.

Therefore, we can compute each of these cases separately:

An =

nπ

0

cos(nπx) dx −

nπ

(^23) cos(nπx) dx ,

(nπ)^2 sin(nπx)|

(^23) 0 −^

(nπ)^2 sin(nπx)|^123 ,

=

(nπ)^2 sin( 2 nπ 3

= (−1)n+^

(nπ)^2 sin( nπ 3

A little basic trigonometry shows that we have:

sin( π 3 ) = sin( 2 π 3

, sin( 4 π 3 ) = sin( 5 π 3

, sin(π) = sin(2π) = 0 ,

which allows one to compute sin( nπ 3 ) by repeating these formulas mod 2π. However, is a lot easier to just leave things in terms of the sin function. Therefore, we have that the original f (x) can be expanded as:

f (x) =

16 n

(−1)n+^

(nπ)^2 sin( nπ 3 ) sin(nπx).

1

Typed Problem # 2 This problem is a simple matter of using the double angle identity:

cos^2 (x) = 1 2

+^1

cos(2x).

This last formula must be the cosine series itself!

Section 5.1, Problem 8 Following the hint, we seek a solution of the form u(x, t) = u 0 (x, t) + u 1 (x, t) where: ∂tu 0 = 0 ,

is the “steady state” solution to the heat equation with the boundary values u 0 (0) = 0 and u 0 (1) = 1, and where:

∂tu 1 = ∂^2 xu 1 , u 1 (0, t) = u 1 (1, t) = 0.

At the initial time we have u 1 (x, 0) = φ(x) − u 0 (x), where φ(x) is the initial data given in the text.

The above equation for the steady state implies that ∂^2 x(u 0 ) = 0 (the steady state also obeys the heat equation). Therefore, we must have u 0 (x) = a + bx. Plugging in the boundary conditions in fact shows that:

u 0 (x) = x.

Therefore, we must have that the initial data for u 1 is:

u 1 (x, 0) = φ(x) − x =

2 x ,^0 6 x^6

2 3 ; 3 − 3 x , 23 6 x 6 1.

But this is just the function that we computed the series for in Problem # 1 above. Therefore, by the Dirichlet BC formula for the solution to the heat equation, we have:

u 1 (x, t) =

16 n

(−1)n+^

(nπ)^2 sin( nπ 3 )e−(nπ) (^2) t sin(nπx).

Adding together the two formulas for u 0 and u 1 we have just discovered, we find that the full solution is given by:

u(x, t) = x +

16 n

(−1)n+1^9 (nπ)^2 sin( nπ 3 )e−(nπ) (^2) t sin(nπx).

Section 5.2, Problem # 6 The solution to this problem is very close to Problems 3-5 above it (in the text). Given a function φ(x) satisfying the Neumann BC φ′(0) = φ′(`) = 0, we can define a new even function:

Φ(x) =

φ(x) , x ∈ [0, ] ; φ(−x) , x ∈ [−, 0].

Using the usual sin/cos series we can expand this as:

Φ(x) = A 0 +

16 n

An cos( nπ x) + Bn sin( nπ x)

where the coefficients are computed by the usual formulas:

A 0 =

2 π

∫ (^) π

−π

Φ(x) dx ,

An =

π

∫ (^) π

−π

Φ(x) cos( nπ ` x) dx ,

Bn =

π

∫ (^) π

−π

Φ(x) sin( nπ ` x) dx.

Notice however that since Φ(x) is even, the Bn integrals always vanish. Further- more, the An integrals can always be written as twice the integral over half the domain of Φ. That is:

A 0 =

π

∫ (^) π

0

Φ(x) dx =

π

∫ (^) π

0

φ(x) dx ,

An =

π

∫ (^) π

0

Φ(x) cos( nπ ` x) dx =

π

∫ (^) π

0

φ(x) cos( nπ ` x) dx.

Thus, for x ∈ [0, `] we can write:

φ(x) = Φ(x) = A 0 +

16 n

An cos( nπ ` x) ,

where A 0 and the An are given as above. This is just the usual rule for computing cosine series!

Section 5.2, Problem # 12 This problem can be solved by finding the series for ex^ and e−x^ and then taking their average. This computation is most easily done in complex form. The series will look like:

ex^ =

∑^ ∞

n=−∞

cnei^ nπ` x ,

where the coefficients cn are given be the integrals:

cn =

2 π

∫ `

−`

exe−i^ nπ` x dx ,

2 π

∫ `

−`

e(−i^ nπ` +1)x dx ,

=

2 π(−i nπ` + 1)

e(−i^ nπ+1) − e−(−i^ nπ+1)) ,

= (−1)

n π(−i nπ+ 1) sinh() ,

= (−1)n^ nsinh( (^2) π 2 )^2 + 1

  • i(−1)n

nπ sinh() n^2 π^2 `^2 + 1^

Plugging this last expression into the complex series, and then using the DeMoivre formula to expand into trig functions, we have after some eliminations that:

ex^ =

∑^ ∞

n=−∞

(−1)n^ sinh() n^2 π^2^2 + 1

cos( nπ ` x)^ −

∑^ ∞

n=−∞

(−1)n

nπ sinh() n^2 π^2 `^2 + 1^

sin( nπ ` x)^.

Taking the even part of this last expression, we have that:

cosh(x) = ex^ + e−x 2

∑^ ∞

n=−∞

(−1)n^ sinh() n^2 π^2^2 + 1

cos( nπ ` x) ,

= sinh(`) + 2

16 n

(−1)n^ nsinh( (^2) π 2 )^2 + 1

cos( nπ ` x).