Docsity

Solved Exam 2 for Partial Differential Equations | MATH 467, Exams of Differential Equations

Toggle sidebar
bg1
Millersville University Name Answer Key
Department of Mathematics
MATH 467, Partial Differential Equations, Test 2
April 15, 2008
Please answer the following questions. Show all work and write neatly. Answers without
justifying work will receive no credit. Partial credit will be given as appropriate, do not leave
any problem blank. The point values of problems are indicated in parentheses.
1. (14 points each) Consider the nonhomogeneous heat equation:
ut=uxx +xe−tfor 0 < x < 1, t > 0
u(0, t) = 0 for t > 0
u(1, t) = 0 for t > 0
u(x, 0) = 0 for 0 < x < 1
(a) If we define functions
qn(t) = 2 Z1
0
xe−tsin(nπx)dx
find qn(t) for n∈N.
qn(t) = 2 Z1
0
xe−tsin(nπx)dx
= 2e−tZ1
0
xsin(nπx)dx
= 2e−t−x
nπ cos(nπx)
1
0
+ 2e−tZ1
0
1
nπ cos(nπx)dx
= 2e−t−1
nπ cos(nπ)
=2(−1)n+1e−t
nπ
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Solved Exam 2 for Partial Differential Equations | MATH 467 and more Exams Differential Equations in PDF only on Docsity!

Millersville University Name Answer Key Department of Mathematics MATH 467, Partial Differential Equations, Test 2 April 15, 2008

Please answer the following questions. Show all work and write neatly. Answers without justifying work will receive no credit. Partial credit will be given as appropriate, do not leave any problem blank. The point values of problems are indicated in parentheses.

  1. (14 points each) Consider the nonhomogeneous heat equation:

ut = uxx + xe−t^ for 0 < x < 1, t > 0 u(0, t) = 0 for t > 0 u(1, t) = 0 for t > 0 u(x, 0) = 0 for 0 < x < 1

(a) If we define functions

qn(t) = 2

0

xe−t^ sin(nπx) dx

find qn(t) for n ∈ N.

qn(t) = 2

0

xe−t^ sin(nπx) dx

= 2 e−t

0

x sin(nπx) dx

= 2 e−t^

−x nπ

cos(nπx)

1

0

  • 2e−t

0

nπ

cos(nπx) dx

= 2 e−t

nπ

cos(nπ)

2(−1)n+1e−t nπ

(b) Assuming the solution to the heat equation has the form

u(x, t) =

∑^ ∞

n=

Bn(t) sin(nπx)

show that the function Bn(t) satisfies the ordinary differential equation

B n′(t) + n^2 π^2 Bn(t) = qn(t).

If we differentiate the series solution term-by-term (and we will assume this is valid) and substitute into the nonhomogeneous heat equation we obtain:

∑^ ∞

n=

B n′(t) sin(nπx) = xe−t^ −

∑^ ∞

n=

n^2 π^2 Bn(t) sin(nπx)

∑^ ∞

n=

B′ n(t) sin(nπx) sin(mπx) = xe−t^ sin(mπx)

∑^ ∞

n=

n^2 π^2 Bn(t) sin(nπx) sin(mπx)

∑^ ∞

n=

B n′(t)

0

sin(nπx) sin(mπx) dx =

0

xe−t^ sin(mπx) dx

∑^ ∞

n=

n^2 π^2 Bn(t)

0

sin(nπx) sin(mπx) dx

B′ n(t)

0

sin^2 (nπx) dx =

0

xe−t^ sin(nπx) dx

− n^2 π^2 Bn(t)

0

sin^2 (nπx) dx

1 2

B n′(t) =

qn(t) −

n^2 π^2 2

Bn(t)

B n′(t) + n^2 π^2 Bn(t) = qn(t)

  1. (12 points each) Consider the heat equation with nonhomogeneous boundary condi- tions.

ut = uxx for 0 < x < 1, t > 0 u(0, t) = te−t^ for t > 0 u(1, t) = 0 for t > 0 u(x, 0) = 0 for 0 < x < 1

(a) Find a reference solution r(x, t) for this initial boundary value problem.

r(x, t) =

0 − te−t 1

x + te−t^ = te−t(1 − x)

(b) Assuming u(x, t) is the solution to the heat equation with nonhomogeneous bound- ary conditions above and that

u(x, t) = r(x, t) + v(x, t)

find the initial boundary value problem solved by v(x, t). If u(x, t) = r(x, t) + v(x, t) then

ut = rt + vt = (1 − t)e−t(1 − x) + vt uxx = vxx

and therefore

v(x, t) = u(x, t) − te−t(1 − x) vt = ut − (1 − t)e−t(1 − x) vxx = uxx.

Substituting into the initial boundary value problem yields

vt = vxx − (1 − t)e−t(1 − x) for 0 < x < 1, t > 0 v(0, t) = 0 for t > 0 v(1, t) = 0 for t > 0 v(x, 0) = 0 for 0 < x < 1

  1. (11 points each) Consider the following Sturm-Liouville problem.

y′′^ + λy = 0 y(0) = 0 y(π) + y′(π) = 0

(a) Determine the eigenvalues and eigenfunctions of the Sturm-Liouville problem. We must consider all possible real values of λ. Starting with λ = 0 we see that y(x) = ax + b. The first boundary condition implies y(0) = b = 0. The second boundary condition implies

y(π) + y′(π) = aπ + a = a(π + 1) = 0

which implies a = 0. Thus when λ = 0 there are no nontrivial eigenfunctions. For a second case we may suppose that λ = μ^2 with μ > 0. The solutions to the ordinary differential equation are of the form y(x) = a sin(μx) + b cos(μx). The first boundary condition implies y(0) = b = 0. The second boundary condition implies that

a sin(μπ) + aμ cos(μπ) = 0 sin(μπ) + μ cos(μπ) = 0 sin(μπ) = −μ cos(μπ) tan(μπ) = −μ.

In the figure below we see that there are infinitely many positive solutions to this equation.

1 2 3 4 5 Μ

  • 10
    • 5

5

The first several eigenvalues are

λ 1 ≈ 0. 620373 , λ 2 ≈ 2. 79427 , λ 3 ≈ 6. 84457 , λ 4 ≈ 12. 8634 ,...

The corresponding eigenfunctions are φn(x) = sin

λnx

For the last case we suppose that λ = −μ^2 with μ > 0. The solutions to the ordinary differential equation are of the form y(x) = a sinh(μx) + b cosh(μx). The first boundary condition implies y(0) = b = 0. The second boundary condition implies that

a sinh(μπ) + aμ cosh(μπ) = 0 sinh(μπ) + μ cosh(μπ) = 0 sinh(μπ) = −μ cosh(μπ) tanh(μπ) = −μ.

For μ > 0 the left-hand side of the equation is positive while the right-hand side is negative, thus there are no solutions and hence no non-trivial eigenfunctions in this case.

Useful Formulas

Sturm-Liouville Eigenvalue Problem: p(x) > 0, σ(x) > 0 for a ≤ x ≤ b,

d dx

p(x)

dφ dx

  • q(x)φ(x) + λσ(x)φ(x) = 0 for a ≤ x ≤ b (1)

β 1 φ(a) + β 2

dφ dx

(a) = 0 (2)

β 3 φ(b) + β 4

dφ dx

(b) = 0. (3)

Definition: we will denote by L[·] the linear operator defined as

L[φ] =

d dx

p(x)

dφ dx

  • q(x)φ(x) (4)

Green’s Formula: (^) ∫ b

a

uL[v] − vL[u] dx = p(x)

u

dv dx

− v

du dx

b

a

Definition: The linear operator L[·] of Eq. (4) with corresponding boundary conditions given in Eqs. (2) and (3) is called self-adjoint if when u and v are any two functions satisfying the boundary conditions then

∫ (^) b

a

uL[v] − vL[u] dx = 0.

Rayleigh Quotient: suppose φ(x) is a solution to Eq. (1) then

λ =

−p(x)φ(x)dφ dx

∣b a +^

∫ (^) b a

[

p(x)

( (^) dφ dx

− q(x) (φ(x))^2

]

dx ∫ (^) b a (φ(x))

(^2) σ(x) dx.

Consider the non-homogeneous initial boundary value problem for the heat equation:

ut = k^2 uxx + Q(x, t) for 0 < x < L, t > 0 (5) u(0, t) = A(t) for t > 0 (6) u(L, t) = B(t) for t > 0 (7) u(x, 0) = f (x) for 0 < x < L. (8)

We define the reference temperature distribution r(x, t) as

r(x, t) =

B(t) − A(t) L

x + A(t).

If we define v(x, t) = u(x, t) − r(x, t) where u(x, t) solves Eqs. (5)-(8) then v(x, t) solves the equations below:

vt = k^2 vxx + Q(x, t) − rt for 0 < x < L, t > 0 (9) v(0, t) = 0 for t > 0 (10) v(L, t) = 0 for t > 0 (11) v(x, 0) = f (x) − r(x, 0) for 0 < x < L. (12)