Professional Documents
Culture Documents
Problem sheet 2
Please upload your solution to problem 1 (as a single PDF file) onto the Assignment 2 Moodle
page by 14:00 on Thursday, 16 February (Week 6).
Problem 1*. Show that the Du Fort - Frankel method for Eq. (1), given by
wk,j+1 − wk,j−1 wk+1,j − wk,j−1 − wk,j+1 + wk−1,j
−K = 0,
2τ h2
has the local truncation error O τ 2 + h2 + τ 2 /h2 .
Problem 2. The initial boundary value problem (1)–(3) is solved numerically using the finite-difference method:
∂u ∂ 2u ∂u
= 3 2 − 2a(x, t) + b(x, t) for 0 < x < 1, t > 0,
∂t ∂x ∂x
subject to the initial and boundary conditions
Obtain a finite-difference approximation to this boundary-value problem and show that your finite-difference
method is consistent with the equation, i.e. that the local truncation errors tend to zero as step sizes in x and
in t go to zero.