Docsity

Approximation of Laplacian using Finite Differences: Analysis of Different Methods - Prof., Assignments of Mathematics

Toggle sidebar
bg1
Math652 Assignment 1
Due Friday, Feb 6, 2009.
1. The 5-point difference approximation to the Laplacian ∆ may be written in geometrical form
(called a stencil) as
1
h2
0 1 0
1−4 1
0 1 0
.
Show that a 9-point difference approximation of the form
1
h2
α β α
β γ β
α β α
approximates ∆ to no better than O(h2), no matter how we choose α, β and γ.
Proof. Sketch: Finding the Taylor expansions at eight points (i−1, j + 1),(i−1, j),(i−1, j −
1),(i, j + 1),(i, j −1),(i+ 1, j + 1),(i+ 1, j),(i+ 1, j −1) truncated at O(h5). We can then find that
the approximation of the Laplacian using the given stencil will have a residual in terms of derivatives
ui,j
xxxx, ui,j
xyyy , . . . with coefficients given by linear combinations of α,β , γ. We must appropriately
choose α, β, γ so the residual would disappear to give us an approximate better than O(h2), which
unfortunately is impossible by looking at the requirements on α, β, γ . But it is possible to choose
α, β, γ so that the truncation error is of O(h2), which is the best case scenario we can have.
2. The Shortly-Weller approximation to ∆u(x, y) is given by
∆hu(x, y) = 2
h21
α+ 1u(x+h, y) + 1
α(α+ 1)u(x−αh, y) + 1
β+ 1u(x, y +h)+
1
β(β+ 1)u(x, y −β h)−1
α+1
βu(x, y).
(a) Show that this formula does not give an O(h2) approximation to ∆uif αor βis not equal
to one.
(b) Show that if u∈C3(¯
Ω), then
|∆hu(x, y)−∆u(x, y)| ≤ 2M3h
3, M3= max
¯
Ωmax
∂3u
∂x3
,
∂3u
∂y3

Proof. 1) Similar to (1). Finding the Taylor expansions at (x+h, y),(x−αh, y),(x, y +h),(x, y −βh)
with respect to (x, y). The linear combination in the Shortly-Weller approximation will then produce
a leading residual term proportional to h2which can eliminated by choosing α=β= 1 only.
2) Since u∈C3(¯
Ω) the forth-order derivatives of umight be unbounded, and thus it is inappropriate
to using the Taylor expansion with leading terms given by forth-order derivatives of u. But we can
use Taylor expansions truncated at O(h3), and therefore we will have a residual proportional to h,
with proportionality constant related to the third-order derivatives of u, as given in this problem.
3. L. Collatz proposed a finite difference approximation on domains with curved boundaries. Define
1
pf3

Partial preview of the text

Download Approximation of Laplacian using Finite Differences: Analysis of Different Methods - Prof. and more Assignments Mathematics in PDF only on Docsity!

Math652 Assignment 1

Due Friday, Feb 6, 2009.

  1. The 5-point difference approximation to the Laplacian ∆ may be written in geometrical form (called a stencil) as

1 h^2

Show that a 9-point difference approximation of the form

1 h^2

α β α β γ β α β α

approximates ∆ to no better than O(h^2 ), no matter how we choose α, β and γ.

Proof. Sketch: Finding the Taylor expansions at eight points (i − 1 , j + 1), (i − 1 , j), (i − 1 , j − 1), (i, j + 1), (i, j − 1), (i + 1, j + 1), (i + 1, j), (i + 1, j − 1) truncated at O(h^5 ). We can then find that the approximation of the Laplacian using the given stencil will have a residual in terms of derivatives ui,jxxxx, ui,jxyyy,... with coefficients given by linear combinations of α, β, γ. We must appropriately choose α, β, γ so the residual would disappear to give us an approximate better than O(h^2 ), which unfortunately is impossible by looking at the requirements on α, β, γ. But it is possible to choose α, β, γ so that the truncation error is of O(h^2 ), which is the best case scenario we can have. 

  1. The Shortly-Weller approximation to ∆u(x, y) is given by

∆hu(x, y) =

h^2

α + 1 u(x^ +^ h, y) +^

α(α + 1) u(x^ −^ αh, y) +^

β + 1 u(x, y^ +^ h)+ 1 β(β + 1) u(x, y^ −^ βh)^ −

α +

β

u(x, y)

(a) Show that this formula does not give an O(h^2 ) approximation to ∆u if α or β is not equal to one. (b) Show that if u ∈ C^3 ( Ω), then¯

|∆hu(x, y) − ∆u(x, y)| ≤ 2 M^3 h 3

, M 3 = max ¯ Ω

max

∣∣^ ∂

(^3) u ∂x^3

∣∣^ ∂

(^3) u ∂y^3

Proof. 1) Similar to (1). Finding the Taylor expansions at (x + h, y), (x − αh, y), (x, y + h), (x, y − βh) with respect to (x, y). The linear combination in the Shortly-Weller approximation will then produce a leading residual term proportional to h^2 which can eliminated by choosing α = β = 1 only.

  1. Since u ∈ C^3 ( Ω) the forth-order derivatives of¯ u might be unbounded, and thus it is inappropriate to using the Taylor expansion with leading terms given by forth-order derivatives of u. But we can use Taylor expansions truncated at O(h^3 ), and therefore we will have a residual proportional to h, with proportionality constant related to the third-order derivatives of u, as given in this problem. 
  1. L. Collatz proposed a finite difference approximation on domains with curved boundaries. Define

Department of Mathematics Colorado State University

P=(x,y)

uh(P ) as the solution of

−∆huh(P ) = f (P ) ∀P ∈ Ω^0 h, uh(P ) = g(P ) ∀P ∈ ∂Ωh,

and define uh(P ) for P ∈ Ω∗ h as the linear interpolation of the values of uh at two neighbours of P , one in Ω^0 h and another on ∂Ωh. For example, for the P = (x, y) as illustrated in the figure above, where (x, y + h) ∈ Ω^0 h, (x, y − αh) ∈ ∂Ωh, we define

uh(P ) = (^) α α+ 1 uh(x, y + h) + (^) α + 1^1 uh(x, y − αh).

Prove that the overall approximation to the Laplacian using this method has an estimate

|u(P ) − uh(P )| ≤ M 2 h^2 +

M 4 d^2 48 h

where

M 2 = max ¯ Ω

max

∣∣^ ∂

(^2) u ∂x^2

∣∣^ ∂

(^2) u ∂y^2

and M 4 , d are defined in class. Discuss the pros/cons of this method.

Proof. Let P ∈ Ωh. From the class notes we have following general representation of approximation error at P :

v(P ) = h 2

Q∈Ω^0 h

Gh(P, Q)[−∆hv(Q)] +

Q∈Ω∗ h

Gh(P, Q)[−∆hv(Q)].

Consider the point P = (x, y) ∈ Ω∗ h as illustrated, we have

|v(P )| = |u(x, y) − uh(x, y)| = |u(x, y) − α α + 1

uh(x, y + h) − 1 α + 1

uh(x, y − αh)|

= |u(x, y) −

α α + 1 uh(x, y^ +^ h)^ −^

α + 1 u(x, y^ −^ αh)| ≤ |u(x, y) − α α + 1

u(x, y + h) − 1 α + 1

u(x, y − αh)| + α α + 1

|uh(x, y + h) − uh(x, y + h)|

≤ |u(x, y) − α α + 1

u(x, y + h) − 1 α + 1

u(x, y − αh)| + α α + 1

max P ∈Ω^0 h

|v(P )|