Docsity

Math 286 Exam 3 Study: Fourier Series, Separation of Variables, and Diff. Equations, Study notes of Differential Equations

Toggle sidebar
bg1
Study guide for exam 3, math 286, Fall 2008
Best way to study is to go over as many problems as you can in the book. The sections that will be
covered are 5.5, 5.6, 9.1, 9.2, 9.3, 9.4, 9.5, 9.6. You may also be asked questions relating to the IODE project!
Here are sample solved problems. The actual problems on the exam may be different from these.
Let
f(x) = (0if −1<x<0
xif 0≤x < 1
extended periodically.
a) Compute the Fourier series for f.
We have f(x) = a0
2+P∞
n=1 ancos nπx +bnsin nπx, where (for n≥1)
an=Z1
−1
f(x) cos nπx dx =Z0
−1
0 cos nπx dx +Z1
0
xcos nπx dx =hx
nπ sin nπxi1
0
−Z1
0
1
nπ sin nπx dx
=1
n2π2[cos nπx]1
0=(−1)n−1
n2π2=(0 if nis even
−2
n2π2if nis odd
and
a0=Z1
−1
f(x)dx =Z1
0
x dx =1
2
and
bn=Z1
−1
f(x) sin nπx dx =Z0
−1
0 sin nπx dx +Z1
0
xsin nπx dx
=−x
nπ cos nπx1
0
+Z1
0
1
nπ cos nπx dx =(−1)n+1
nπ
b) Write the series explicitly up to the 3rd harmonic.
1
4−2
π2cos πx +1
πsin πx −1
2πsin 2πx −2
9π2cos 3πx +1
3πsin 3πx
Use separation variables to find a nontrivial solution to uxx +uyy = 0 where u(x, 0) = 0 and
u(0, y) = 0.Hint: Try u(x, y) = X(x)Y(y).
Try: u(x,y ) = X(x)Y(y)
0 = uxx +uyy =X00Y+X Y 00
So X00
X=−Y00
Y
where the left hand side depends only on xand the right hand side depends only on y. Hence they are both
constant. For some constant λsuch that
λ=X00
X=−Y00
Y
So we have X00 −λX = 0 and Y00 +λY = 0. u(x, 0) = 0 implies that Y(0) = 0 and u(0, y) = 0 implies that
X(0) = 0.
We are only looking for one nontrivial solution so let’s assume that λ= 1. Then there are solutions
X(x) = sinh xand Y(y) = sin(y), that satisfy X(0) = Y(0) = 0. So one nontrivial solution is
u(x, y) = (sinh x)(siny)
pf3
pf4
pf5

Partial preview of the text

Download Math 286 Exam 3 Study: Fourier Series, Separation of Variables, and Diff. Equations and more Study notes Differential Equations in PDF only on Docsity!

Study guide for exam 3, math 286, Fall 2008

Best way to study is to go over as many problems as you can in the book. The sections that will be covered are 5.5, 5.6, 9.1, 9.2, 9.3, 9.4, 9.5, 9.6. You may also be asked questions relating to the IODE project! Here are sample solved problems. The actual problems on the exam may be different from these.

Let f (x) =

0 if − 1 < x < 0 x if 0 ≤ x < 1

extended periodically. a) Compute the Fourier series for f. We have f (x) = a 20 +

n=1 an^ cos^ nπx^ +^ bn^ sin^ nπx, where (for^ n^ ≥^ 1)

an =

− 1

f (x) cos nπx dx =

− 1

0 cos nπx dx +

0

x cos nπx dx =

[ (^) x nπ sin nπx

] 1

0

0

nπ sin nπx dx

n^2 π^2

[cos nπx]^10 =

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

0 if n is even − 2 n^2 π^2 if^ n^ is odd

and

a 0 =

− 1

f (x) dx =

0

x dx =

and

bn =

− 1

f (x) sin nπx dx =

− 1

0 sin nπx dx +

0

x sin nπx dx

[

−x nπ cos nπx

] 1

0

0

nπ cos nπx dx =

(−1)n+ nπ

b) Write the series explicitly up to the 3rd harmonic.

1 4

π^2

cos πx +

π

sin πx −

2 π

sin 2πx −

9 π^2

cos 3πx +

3 π

sin 3πx

Use separation variables to find a nontrivial solution to uxx + uyy = 0 where u(x, 0) = 0 and u(0, y) = 0. Hint: Try u(x, y) = X(x)Y (y). Try: u(x, y) = X(x)Y (y) 0 = uxx + uyy = X′′Y + XY ′′

So X′′ X

Y ′′

Y

where the left hand side depends only on x and the right hand side depends only on y. Hence they are both constant. For some constant λ such that

λ =

X′′

X

Y ′′

Y

So we have X′′^ − λX = 0 and Y ′′^ + λY = 0. u(x, 0) = 0 implies that Y (0) = 0 and u(0, y) = 0 implies that X(0) = 0. We are only looking for one nontrivial solution so let’s assume that λ = 1. Then there are solutions X(x) = sinh x and Y (y) = sin(y), that satisfy X(0) = Y (0) = 0. So one nontrivial solution is

u(x, y) = (sinh x)(sin y)

(Note that it is not the unique solution). You might also get say (sin x)(sin y) or any linear combination of those two.

Let f (t) =

n=

1 n^3 sin^ nπt. Find the steady periodic solution to^ x

′′ (^) +x′ (^) +x = f (t). Express your

solution as a fourier series. You do not need to simplify your expressions for the coefficients. Try x(t) = a 20 +

n=1 an^ cos^ nπt^ +^ bn^ sin^ nπt.^ Note that there are no conflicts.^ This is because the complementary solution is damped and hence the terms in the complementary solution contain exponentials. So,

f (t) = x′′^ + x′^ + x =

a 0 2

∑^ ∞

n=

(−n^2 π^2 an + nπbn + an) cos nπt + (−n^2 π^2 bn − nπan + bn) sin nπt

Hence

a 0 = 0 (1 − n^2 π^2 )an + nπbn = 0

− nπan + (1 − n^2 π^2 )bn =

n^3

So

an =

−nπ 1 − n^2 π^2

bn

an =

n^3

1 − n^2 π^2 nπ bn

and so −nπ 1 − n^2 π^2

bn =

n^3

1 − n^2 π^2 nπ

bn

and so (^) ( −nπ 1 − n^2 π^2

1 − n^2 π^2 nπ

bn =

n^3

and so

bn =

n^3

−nπ 1 − n^2 π^2

1 − n^2 π^2 nπ

and so

an =

−nπ (1 − n^2 π^2 )n^3

−nπ 1 − n^2 π^2

1 − n^2 π^2 nπ

Find the Fourier series coefficients of the even periodic extension of the function f (t) = t^2 for 0 ≤ t ≤ π. We will write f (t) = a 0 2

∑^ ∞

n=

an cos nt

where

a 0 =

π

∫ (^) π

0

t^2 dt =

2 π^2 3

and

an =

π

∫ (^) π

0

t^2 cos nt dt =

π

[

t^2

n

sin nt

]π

0

nπ

∫ (^) π

0

t sin nt dt

n^2 π

[t cos nt]π 0 +

n^2 π

∫ (^) π

0

cos nt dt =

4(−1)n n^2

so

ut(x, 0) = − cos(x) +

sin(x) + cos(x) +

sin(x) = sin x.

Yay!

Find eAt^ for the matrix A =

[

]

First note that the matrix exponential of A =

[

]

[

]

= D + B. Then note that B^2 =

[

]

Hence

eBt^ = I + Bt =

[

1 3 t 0 1

]

and

eDt^ =

[

e^2 t^0 0 e^2 t

]

And thus since D is diagonal and hence DB = BD we have

eAt^ = eDt+Bt^ = eDteBt^ =

[

e^2 t^0 0 e^2 t

] [

1 3 t 0 1

]

[

e^2 t^3 te^2 t 0 e^2 t

]

Suppose A is a matrix with eigenvalues − 1 , 1 , and corresponding eigenvectors

[

]

[

]

a) Find the matrix A Let E =

[

]

be the matrix of eigenvectors. We then know that A = EDE−^1 , where D =

[

]

We find E−^1 =

[

]

. Then

A = EDE−^1 =

[

]

You should check that A

[

]

[

]

and You should check that A

[

]

[

]

b) Find the fundamental solution to ~x′^ = A~x The fundamental solution is eAt^ and we calculate this with (D and E as in part a))

eAt^ = EeDtE−^1 =

[

] [

e−t^0 0 et

] [

]

[

e−t^0 e−t^ − et^ et

]

c) Solve the system in b) with initial conditions ~x(0) =

[

]

The solution is eAt~x(0) =

[

e−t^0 e−t^ − et^ et

] [

]

[

2 e−t 2 e−t^ + et

]

You should check that this really solves the problem.

Using same matrix A as in last problem solve ~x′^ = A~x + F~ where F (t) =

[

et t

]

for ~x(0) =

[

]

Note that we have the eigenvalues and eigenvectors of A computed. So We are looking for a solution

~x =

[

]

g 1 +

[

]

g 2. We wish to also write f in terms of the eigenvectors. That is we wish to write

F^ ~ =

[

et t

]

[

]

f 1 +

[

]

f 2. So [ f 1 f 2

]

= E−^1

[

et t

]

[

] [

et t

]

[

et t − et

]

So f 1 = et^ and f 2 = t − et.

Now we also want to write ~x(0) in terms of the eigenvectors. I.e. That is, we wish to write ~x(0) =

[

]

[

]

a 1 +

[

]

a 2. So [ a 1 a 2

]

= E−^1

[

]

[

]

So a 1 = 2 and a 2 = 1. We plug in our ~x to the equation and get that [ 1 1

]

g 1 ′ +

[

]

g′ 2 = A

[

]

g 1 + A

[

]

g 2 +

[

]

f 1 +

[

]

f 2

[

]

(−g 1 ) +

[

]

g 2 +

[

]

et^ +

[

]

(t − et)

So we get the two equations

g′ 1 = −g 1 + et^ where g 1 (0) = a 1 = 2 g′ 2 = g 2 + t − et^ where g 2 (0) = a 2 = 1

We solve with integrating factor

g 1 = e−t

et(et) dt + C 1 e−t^ =

et 2

  • C 1 e−t

And as g 1 (0) = 2 we have that 2 = 12 + C 1 and hence C 1 = 32. Similarly

g 2 = et

e−t(t − et) dt + C 2 et^ = et

te−tdt − et

1 dt + C 2 et^ = −t − 1 − tet^ + C 2 et

And as g 2 (0) = 1 we have that 1 = −1 + C 1 and hence C 2 = 2. Hence the solution is

~x(t) =

[

] (

et 2

e−t

[

]

−t − 1 − tet^ + 2et

[ (^) et 2 +^

3 2 e

−t 5 2 e

t (^) + 3 2 e

−t (^) − t − 1 − tet

]