Formula Sheet
Formula Sheet
1
Explicit Forward Finite Difference Method Zero Dirichlet d’Alembert’s Solution
ui,j+1 − ui,j ui−1,j − 2ui,j + ui+1,j utt = c2 uxx u(x, 0) = f (x) ut (x, 0) = g(x)
ut = uxx =
k h2 u(0, t) = 0 u(L, t) = 0
Z x+ct
Stable if c2 k/h2 ≤ 0.5 F (x + ct) + F (x − ct) 1
u(x, t) = + G(s) ds
2 2c x−ct
Implicit Backward Finite Difference Method F and G are Fourier sine series of f and g respectively.
ui,j+1 − ui,j
ut = Zero Neumann d’Alembert’s Solution
k
ui−1,j+1 − 2ui,j+1 + ui+1,j+1 utt = c2 uxx u(x, 0) = f (x) ut (x, 0) = g(x)
uxx =
h2
ux (0, t) = 0 ux (L, t) = 0
Always stable. F (x + ct) + F (x − ct) 1
Z x+ct
u(x, t) = + G(s) ds
2 2c x−ct
Crank-Nicholson Method
F and G are Fourier cosine series of f and g respectively.
ui,j+1 − ui,j
ut =
k CTCS Explicit Wave Method
ui−1,j − 2ui,j + ui+1,j
uxx = ui,j−1 − 2ui,j + ui,j+1
2h2 utt =
ui−1,j+1 − 2ui,j+1 + ui+1,j+1 k2
+ ui−1,j − 2ui,j + ui+1,j
2h2 uxx =
h2
Always stable. Initially (j = 0) use the second order centred difference
for the derivative condition to eliminate the ui,−1 term.
Method of Characteristics Stable if |ck/h| ≤ 1
aux + but = c
Implicit Wave Method
Taking 2 of the 3 differential combinations solves the PDE. ui,j−1 − 2ui,j + ui,j+1
utt =
dx dt du k2
= = u i−1,j−1 − 2ui,j−1 + ui+1,j−1
a b c uxx =
2h2
Solution is unique on all characteristic curves passing ui−1,j+1 − 2ui,j+1 + ui+1,j+1
through the initial condition. +
2h2
Initially the finite difference equation is the same as the
FTFS Method
CTCS method. Always stable.
ui,j+1 − ui,j ui+1,j − ui,j
ut = ux =
k h Elliptic PDEs
Laplace PDE is uxx + uyy = 0
Stable if a/b ≤ 0 and |ak/(bh)| ≤ 1
Poisson PDE is uxx + uyy = f (x, y)
Both PDEs are solved analytically by using separation of
FTBS Method
variables u = F (x)G(y) or u = F (x) + G(y)
ui,j+1 − ui,j ui,j − ui−1,j
ut = ux = Implicit Method
k h
Stable if a/b ≥ 0 and |ak/(bh)| ≤ 1 ui−1,j − 2ui,j + ui+1,j
uxx =
h2
Lax-Wendroff Method ui,j−1 − 2ui,j + ui,j+1
uyy =
Convert the PDE using second order centred differences. k2
Then create another scheme by differentiating the PDE Always stable.
with respect to each variable to create another 2 PDEs.
Eliminate the mixed derivative, then convert the PDE Gauss-Newton Method
using second order centred differences. Eliminate the The (model - actual) differences f vector, the Jacobian J
ui,j−1 term. Stable if |ak/(bh)| ≤ 1 matrix, and the b vectors are
f0 ∂f0 /∂A ∂f0 /∂B
d’Alembert’s Solution
A
f = ... J = .. .. b =
The 1D wave PDE defined on the interval 0 ≤ x ≤ L . . B
fn ∂fn /∂A ∂fn /∂B
utt = c2 uxx u(x, 0) = f (x) ut (x, 0) = g(x)
Better estimates for the parameters are found by using
Z x+ct
f (x + ct) + f (x − ct) 1
u(x, t) = + g(s) ds b N EW = b OLD − (J T J )−1 (J T f )
2 2c x−ct