



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Math 6840
Due: Monday, 9/21/
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.)
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.
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.)