Docsity

Problem Set 2 for Math 6840: Solving Partial Differential Equations and Heat Equation - Pr, Assignments of Mathematics

Toggle sidebar
bg1
Math 6840
D. Schwendeman Problem Set 2
Due:
Monday, 9/21/09
1. Consider the PDE
1
r
∂
∂r r∂u
∂r +1
r2
∂2u
∂θ2= 0,1≤r≤2,−π≤θ≤π
(a) Determine whether the PDE is hyperbolic, elliptic or parabolic.
(b) Solutions of the PDE, assumed to be 2π-periodic in θ, have the form
u(r, θ) = a0(r) +
∞
X
n=1
[an(r) cos(nθ) + bn(r) sin(nθ)]
Assuming that the series can be differentiated term-by-term, determine ODEs for the coefficient
functions a0,anand bn.
(c) Find the solution for the case u(1, θ) = 3 and u(2, θ) = cos θ. (Hint: the PDE is linear.)
2. Consider the heat equation
ut=uxx,0< x < π, t > 0
subject to the initial condition, u(x, 0) = sin x, and the boundary conditions
α0u(0, t)−ux(0, t) = γ0(t), α1u(π, t) + ux(π, t) = γ1(t),
where α0and α1are constants and γ0and γ1are smooth functions. Write a code to solve this
initial-boundary-value problem using the scheme
vn+1
j=vn
j+rδ2
xvn
j,0≤j≤N, n ≥0, r = ∆t/∆x2
on the grid xj=j∆xwith suitable discretizations of the initial conditions and boundary
conditions. Consider the three cases: (i) α0=α1= 1, (ii) α0=α1= 0, and (iii) α0= 0,
α1=−1. For each case, take γ0(t) = γ1(t) = −e−tso that the exact solution is
u(x, t) = e−tsin x
Find a numerical solution using N= 20, r=.4, and 0 ≤n≤800 for each case. Plot the
difference between the numerical solution and the exact solution along the grid line j= 10.
Comment on the behavior of this difference for each case.
3. In order to interpret the numerical results of Problem 2consider the representative initial-
boundary-value problem
wt=wxx,0< x < π, t > 0
with
w(x, 0) = δ(x), α0w(0, t)−wx(0, t) = α1w(π, t) + wx(π, t) = 0
Here, w(x, t) = u(x, t)−e−tsin x, and δ(x) models small perturbations introduced by numerical
errors created by the discretization of the equations above. Separation of variables, w(x, t) =
φ(x)T(t), leads to the eigenvalue problem
φ00 +λφ = 0,0< x < π
α0φ(0) −φ0(0) = α1φ(π) + φ0(π) = 0
Determine the eigenvalues for the three cases for (α0,α1) used above, and use this information
to explain the behavior of the error of Problem 2. (Hint: the smallest eigenvalue is key, and
you need only determine this eigenvalue approximately to interpret the behavior of the error.)
pf3
pf4
pf5

Partial preview of the text

Download Problem Set 2 for Math 6840: Solving Partial Differential Equations and Heat Equation - Pr and more Assignments Mathematics in PDF only on Docsity!

Math 6840

D. Schwendeman Problem Set 2

Due: Monday, 9/21/

  1. Consider the PDE

1 r

∂r

( r ∂u ∂r

)

r^2

∂^2 u ∂θ^2

= 0, 1 ≤ r ≤ 2 , −π ≤ θ ≤ π

(a) Determine whether the PDE is hyperbolic, elliptic or parabolic.

(b) Solutions of the PDE, assumed to be 2π-periodic in θ, have the form

u(r, θ) = a 0 (r) +

∑^ ∞

n=

[an(r) cos(nθ) + bn(r) sin(nθ)]

Assuming that the series can be differentiated term-by-term, determine ODEs for the coefficient functions a 0 , an and bn.

(c) Find the solution for the case u(1, θ) = 3 and u(2, θ) = cos θ. (Hint: the PDE is linear.)

  1. Consider the heat equation

ut = uxx, 0 < x < π, t > 0

subject to the initial condition, u(x, 0) = sin x, and the boundary conditions

α 0 u(0, t) − ux(0, t) = γ 0 (t), α 1 u(π, t) + ux(π, t) = γ 1 (t),

where α 0 and α 1 are constants and γ 0 and γ 1 are smooth functions. Write a code to solve this initial-boundary-value problem using the scheme

vn j +1= vjn + rδ^2 xvjn , 0 ≤ j ≤ N, n ≥ 0 , r = ∆t/∆x^2

on the grid xj = j∆x with suitable discretizations of the initial conditions and boundary conditions. Consider the three cases: (i) α 0 = α 1 = 1, (ii) α 0 = α 1 = 0, and (iii) α 0 = 0, α 1 = −1. For each case, take γ 0 (t) = γ 1 (t) = −e−t^ so that the exact solution is

u(x, t) = e−t^ sin x

Find a numerical solution using N = 20, r = .4, and 0 ≤ n ≤ 800 for each case. Plot the difference between the numerical solution and the exact solution along the grid line j = 10. Comment on the behavior of this difference for each case.

  1. In order to interpret the numerical results of Problem 2 consider the representative initial- boundary-value problem wt = wxx, 0 < x < π, t > 0

with w(x, 0) = δ(x), α 0 w(0, t) − wx(0, t) = α 1 w(π, t) + wx(π, t) = 0

Here, w(x, t) = u(x, t) − e−t^ sin x, and δ(x) models small perturbations introduced by numerical errors created by the discretization of the equations above. Separation of variables, w(x, t) = φ(x)T (t), leads to the eigenvalue problem

φ′′^ + λφ = 0, 0 < x < π α 0 φ(0) − φ′(0) = α 1 φ(π) + φ′(π) = 0

Determine the eigenvalues for the three cases for (α 0 , α 1 ) used above, and use this information to explain the behavior of the error of Problem 2. (Hint: the smallest eigenvalue is key, and you need only determine this eigenvalue approximately to interpret the behavior of the error.)