













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!














Supplement Exercises to MATH 5176
Section 1.
1’ Prove Theorem 2.2 in the reference materials [4].
Section 1.
1’ Find the truncation error of
vn m+1 − vmn k
α
3 v mn+1 − 4 vn m+1− 1 + v mn+1− 2 2 h
3 vmn − 4 vmn− 1 + vmn− 2 2 h
= 0, α ∈ [0, 1],
which is approximate to
∂u ∂t
∂u ∂x
Section 2.
1 ′^ For a periodic funciton f (x) which is piecewise continuious on [−L, L] and has a left-hand derivative and right-hand derivative at each point of the interval [−L, L], we have its Fourier series
f (x) = a 0 +
m=
am cos
mπx L
mπ L
x
where
a 0 =
−L f^ (x)^ dx,
am =
−L f^ (x) cos^
mπx L
dx,
bm =
−L f^ (x) sin^
mπx L
dx, m = 1, 2 , · · ·.
Suppose that a function is defined on a grid: x = mh, m = 0, ± 1 , ± 2 , · · · , and suppose the value of the funciton on x = mh is vm. Based on the result on Fourier series, show that vm can be expressed as
vm =
2 π
∫ (^) π/h −π/h e
imhξ (^) vˆ (ξ) dξ,
where vˆ (ξ) =
2 π
m=−∞
e−imhξvmh.
2’ Show the Parseval relation ‖ˆv‖^2 h = ‖v‖^2 h
Section 2.
1’ Show that for any l, the following holds:
cos lθ =
∑l j=
el,j sin^2 j θ 2
sin lθ = sin
θ 2
cos
θ 2
l∑− 1
j=
¯el,j sin^2 j θ 2
where el,j and ¯el,j are constants.
2’ Necessary and sufficient conditions for
f 0 + f 1 sin^2 θ 2
are
f 0 ≥ 0 , 2 f 0 + f 1 + 2 [f 0 (f 0 + f 1 + f 2 )]
(^12) ≥ 0, f 0 + f 1 + f 2 ≥ 0.
8” Using the Von Neumann analysis to find the stability condition of the scheme
v mn+1 − vnm k
a 2
v mn+1+1 − v mn+ h
vnm − vnm− 1 h
9’ If the following holds:
T n^ ≤ (1 + ¯c 0 h) T n+1, n = 0, 1 , 2 , · · ·
and 1 ¯c 1
‖vn‖^2 h ≤ T n^ ≤ ¯c 1 ‖vn‖^2 h , n = 0, 1 , · · · ,
then we can prove that the scheme is stable.
10’ Using the Theorem 1 in the reference material [3], prove that a horizontal 3-point scheme
rn − 1 mvn m+1− 1 + rn 0 mv mn+1 + rn 1 ,mv mn+1+ = sn − 1 mvmn− 1 + sn 0 ,mvmn + sn 1 ,mvmn+
is stable, if the conditions (i)-(iv) in Theorem 1 hold.
11’ Show that a 1 sin^2 θ 2 + a 2 sin^4 θ 2 + a 3 sin^6 θ 2 can be written as
∑ l
d∗ l (θ) mldl (θ)
and ml will be positive numbers if
a 1 ≥ 0, a 1 + a 2 + a 3 ≥ 0 , 2 a 1 + a 1 + 2 [a 1 (a 1 + a 2 + a 3 )]
(^12) ≥ 0.
12’ Show that a horizontal four-point explicit scheme with variable coeffi- cients
v mn+1 = s− 1 mvmn− 1 + s 0 mvnm + s 1 mvmn+1 + s 2 mvmn+2, (sim = si (xm))
is stable if the Von Neumann condition is satisfied at all the points and
∂si (x) ∂x
and
∂^2 si (x) ∂x^2
are continuous functions and bounded, i = − 1 , 0 , 1 , 2.
13’ Show
1 + (^1) x
)ax ( ≤^ ea^ for any^ x >^ 0 if^ a >^ 0.^ (Hint:^ 1.^ show that 1 + (^1) x
)ax in an increasing function on (0, ∞) if a > 0. 2. If f (a) > f (b) > 0 and df dx < 0 on [a, b], then f (x) > 0 on [a, b] .)
14’ Show that when Von Neumann alaysis is used, replacing vmn++kk by gn+kei(m+j)θ and vnm++kk by gkeijθ^ will generate the same g.
15’ Consider the scheme
vn m+1+1+vn m+ 2 −^
vmn+1+vmn 2 k
v mn+1+1 − v mn+1 + vmn+1 + vmn 2 h
and define λ = k h. Find out the condition aλ should satisfy in order for the scheme to be stable by using Von Neumann analysis.
16’ Show that f (x) = 1 + x − 4 a^2 λ^2 x^3 ≥ 0 on [0, 1] is true if and only if a^2 λ^2 ≤ 12.
17’ Find out when the scheme
αv mn+1+1 + (1 − α) v mn+1− 1 = vmn
is stable, and when it is unstable by using Von Neumann analysis.
18’ Find the stability condition for each of the following scheme
(a) vn m+1 − vnm k
vmn+1 − vmn h
(b) vn m+1 − vnm k
vmn − vnm− 1 h
(c) v mn+1 − vmn k
vnm+1 − vnm− 1 2 h
(d) v mn+1 − (^12)
vnm+1 + vnm− 1
k
vmn+1 − vnm− 1 2 h
(e) (^)
v ˜n m+1 − vnm k
vmn+1 − vnm− 1 2 h
v mn+1 = (^14)
˜vn m+1+1 + 2˜v mn+1 + ˜v mn+1− 1
2” Consider ∂u ∂t + a∂u ∂x = 0 with a > 0. For this case we have the following scheme v
n+ (^12) m =^ vnm −^
aλ 2
vnm − vnm− 1
vn m+1 = vmn− 1 − (aλ − 1)
v
n+ (^12) m −^ v
n+ (^12) m− 1
Find its truncaiton error and the stability condition.
3’ Show that the two-step scheme
˜v n+ (^12) m =^ v n m −^
anmλ 2
vnm+1 − vnm
k 2
f (^) mn
v mn+1 = vnm− 1 −
a n+ (^12) m− 12 λ^ −^1
˜v n+ (^12) m −^ ˜v
n+ (^12) m− 1
is a second-order scheme approximating to
∂u ∂t
∂u ∂x
= f (x, t)
and ∂u ∂t
∂u ∂x
= f (x, t) (In this case anm means a (unm) ).
3” Consider the scheme
v mn+1 − vnm k
a 2
v mn+1+1 − v mn+ h
vnm − vnm− 1 h
Show that its truncation error is O (k^2 ) + O (h^2 ).
4’ Prove Theorem 3.1.4 on page 71.
Section 3.
1’ (a) Modifying the MacCormack scheme given in the book (page 77), so that it is a second order scheme approximating to
∂u ∂t
∂u ∂x
= f (x, t).
(b) Modifying the MacCormack scheme given in the book (page 77), so that it is a second order scheme approximating to
∂u ∂t
∂u ∂x
= f (x, t).
2’ For each case given in Appendix A, determine whether or not the com- putation is stable and the order of the scheme by using the last two results if it is stable, and explain how the theoretical results support your conclusion.
3’ For each of the two cases given in Appendix B, determine whether or not the computation is stable and whether or not the result is correct, and explain how the theoretical results support your conclusion.
4’ Show that the Lax–Wendroff scheme is stable if and only if |aλ| ≤ 1.
5’ Show that the Crank-Nicolson scheme is unconditionally stable.
Section 3.
1’ Derive the explicit one-sided second order scheme using a two-step method by which we derive the L-W scheme and analyze its stability condition.
2’ Derive an implicit one-sided second order scheme to
∂u ∂t
∂u ∂x
= 0 in the form
v mn+1 − vmn k
a 2 h
b 0 vn m+1 + b 1 vn m+1+1 + b 2 v mn+1+2 + b 0 vnm + b 1 vnm+1 + b 2 vmn+
show that such a scheme is unique and analyze its stability condition.
3’ Derive an explicit one-sided second order scheme to
∂u ∂t
∂u ∂x
= 0 in the form
v mn+1 − vmn k
a 2 h
b 0 vmn + b 1 vnm+1 + b 2 vnm+
and show that such a scheme is unique.
Section 3.
1’ a. Show that when the Crank-Nicolson scheme is used to solve a periodic problem, the system of equations can also be in the following form b 1 c 1 0 · · · 0 0 a 1 a 2 b 2 c 2 · · · 0 0 0 .. .
0 0 0 · · · am− 1 bm− 1 cm− 1 cm 0 0 · · · 0 am bm
x 1 x 2 x 3 .. . xm
q 1 q 2 q 3 .. . qm
Section 4.
1 ′^ (a) Suppose that if g+ and g− are distinct roots of the equation
ag^2 + bg + c = 0,
then the set xn = c 1 gn + + c 2 gn −, n = 0, 1 ,... , is a solution of the system
axn+1 + bxn + cxn− 1 = 0, n = 1, 2 , · · · , x 0 = c 1 + c 2 , x 1 = c 1 g+ + c 2 g−.
(b) Suppose that ¯g is a double root of the equation
f (g) ≡ ag^2 + bg^1 + c = 0,
i.e., f (¯g) =
df (¯g) dg
then xn = c 1 ¯gn^ + c 2 n¯gn−^1 is a soltuion of the system
axn+1 + bxn + cxn− 1 = 0, n = 1, 2 , · · · , x 0 = c 1 , x 1 = c 1 ¯g + c 2.
2 ′^ (a) Suppose that ¯g is a m-multiple root of the equation
f (g) ≡ algl^ + al− 1 gl−^1 + · · · + a 1 g + a 0 = 0,
i.e., f (¯g) =
df (¯g) dg
dm−^1 f (¯g) dgm−^1
then any of the functions
xn = ¯gn, xn = n¯gn−^1 , · · · , xn = n(n − 1) · · · (n − m + 2)¯gn−m+
satisfies
alxn+1 + al− 1 xn + · · · + a 1 xn−l+2 + a 0 xn−l+1 = 0.
(Hint: First show
dk^
gn+1−lf (g)
dgk
g=¯g
= 0, k = 1, 2 , · · · , m − 1.)
(b) Suppose that g 1 , g 2 , g 3 and g 4 are roots of the equation
f (g) = a 7 g^7 + a 6 g^6 + · · · + a 1 g + a 0 = 0
with multiplicity 1, 1 , 2 , and 3 respectively, then for any c 1 , c 2 , · · · , c 7 ,
xn = c 1 g 1 n + c 2 g 2 n + c 3 gn 3 + c 4 ngn 3 −^1 +c 5 g 4 n + c 6 ng 4 n −^1 + c 7 n(n − 1)gn 4 −^2
satisfies
a 7 xn+1 + a 6 xn + · · · + a 1 xn− 5 + a 0 xn− 6 = 0.
3 ′^ Consider the scheme
vn m+1 + a 0 vnm+1 + b 0 vmn + c 0 vmn− 1 + a− 1 v mn−+1^1 + b− 1 vn m− 1 + c− 1 vn m−−^11 = 0, n = 1, 2 , · · · , m = 0, ± 1 , ± 2 , · · · ,
and
v^1 m + ¯a 0 v^0 m+1 + ¯b 0 v m^0 + ¯c 0 v^0 m− 1 = 0, m = 0, ± 1 , ± 2 , · · · ,
with initial values v^0 m, m = 0, ± 1 , · · · , where these coefficients in the scheme depend on k, k being a small positive number. Let g±(θ) be two distinct roots of the equation
g^2 + g
a 0 eiθ^ + b 0 + c 0 e−iθ
Show that if
max θ |g±(θ)| ≤ 1 + ¯ck, ¯c being a positive number independent of k,
then this scheme is stable, i.e., for any n satisfying condition nk ≤ T , we have
||vn||^2 h ≤ ce¯cT^ ||v^0 ||^2 h, c being a positive number.
where
||vn||^2 h = h
m=−∞
|vmn|^2 , n = 0, 1 , · · · , h being a small positive number.
4 ′^ Show that the scheme
uk m+1 − ukm k
=
a 2
uk m+1+1 − 2 uk m+1 + uk m+1− 1 h^2
ukm+1 − 2 ukm + ukm− 1 h^2
b 2
uk m+1+1 − uk m+1− 1 2 h
ukm+1 − ukm− 1 2 h
is unconditionally stable.
Section 7.
1 ′^ Consider the following parabolic partial differential equation:
∂u ∂τ
= a 11
∂^2 u ∂x^2
∂^2 u ∂x∂y
∂^2 u ∂y^2
∂u ∂x
∂u ∂y
where a 11 (x, y, τ ) ≥ 0 , a 22 (x, y, τ ) ≥ 0 , a 12 (x, y, τ ) = ρ 12 (x, y, τ )
a 11 a 12 with ρ 12 ∈ [− 1 , 1], and b 1 , b 2 are any functions of x, y, τ. This equation can be approximated by
i)
uk m,n+1 − ukm,n ∆τ
=
a k+ (^12) 11 ,m,n 2
uk m+1+1,n − 2 uk m,n+1 + uk m+1− 1 ,n ∆x^2
ukm+1,n − 2 ukm,n + ukm− 1 ,n ∆x^2
+a k+ (^12) 12 ,m,n
uk m+1+1,n+1 − uk m+1+1,n− 1 − uk m+1− 1 ,n+1 + uk m+1− 1 ,n− 1 4∆x∆y
ukm+1,n+1 − ukm+1,n− 1 − ukm− 1 ,n+1 + ukm− 1 ,n− 1 4∆x∆y
a k+ (^12) 22 ,m,n 2
uk m,n+1+1 − 2 uk m,n+1 + uk m,n+1− 1 ∆y^2
ukm,n+1 − 2 ukm,n + ukm,n− 1 ∆y^2
b
k+ (^12) 1 ,m,n 2
uk m+1+1,n − uk m+1− 1 ,n 2∆x
ukm+1,n − ukm− 1 ,n 2∆x
b k+ (^12) 2 ,m,n 2
uk m,n+1+1 − uk m,n+1− 1 2∆y
ukm,n+1 − ukm,n− 1 2∆y
or
Section 11.
1 ′^ Consider the leapfrog scheme
v mn+1 − v mn−^1 2 k
vnm+1 − vnm− 1 2 h
= 0, m = 1, 2 , · · · ,
with one of the following schemes at boundary
(a) vn 0 +1= vn 1 +1+ βn+1, (b) vn 0 +1= 2vn 1 +1− vn 2 +1+ βn+1, (c) vn 0 +1= vn 1 + βn+1, (d) vn 0 +1= 2vn 1 − v 2 n −^1 + βn+1.
Using the Laplace transform given in the book, show that for case (a) or (b), the method is unstable and for case (c) or (d), the method is stable for ak/h ∈ (− 1 , 0],
2 ′^ Suppose we have proved that the leapfrog scheme is stable for initial- value problem if − 1 < ak/h < 1. Consider the following schemes at boundary
(a) vn 0 +1= vn 1 +1, (b) vn 0 +1= 2vn 1 +1− vn 2 +1, (c) vn 0 +1= vn 1 , (d) vn 0 +1= 2vn 1 − v 2 n −^1.
By theorem 11.3.3, show that the leapfrog scheme
v mn+1 − v mn−^1 2 k
vnm+1 − vnm− 1 2 h
= 0, m = 1, 2 , · · · ,
with the boundary scheme (a) or (b) is unstable for ak/h ∈ (− 1 , 0], with the boundary scheme (c) or (d) is stable for ak/h ∈ (− 1 , 0], and with the boundary scheme (a), (b), (c) or (d) is unstable for ak/h ∈ [0, 1). Also explain why all the computation for ak/h ∈ [0, 1) is unstable and how this problem should be fixed.
Section 11.
0 ′^ (THIS SHOULD REPLACE 2’ IN SECTION 11.2) Suppose we have proved that the leapfrog scheme is stable for initial-value problem if − 1 < ak/h < 1. Consider the following schemes at boundary
(d) vn 0 +1= 2vn 1 − v 2 n −^1.
By theorem 11.3.3, show that the Lax–Wendroff scheme
v mn+1 = vnm −
ak 2 h
vnm+1 − vnm− 1
a^2 k^2 2 h^2
vmn+1 − 2 vnm + vmn− 1
m = 1, 2 , · · · ,
with the boundary scheme (a), (b), (c) or (d) is stable for ak/h ∈ [− 1 , 0], and with the boundary scheme (a), (b), (c), or (d) is unstable for ak/h ∈ (0, 1]. Also explain why all the computation for ak/h ∈ (0, 1] is unstable and how this problem should be fixed.
2 ′^ Suppose we have proved that the Lax–Wendroff scheme is stable for initial-value problem if − 1 ≤ ak/h ≤ 1. By theorem 11.3.3, show that the Lax–Wendroff scheme
v mn+1 = vnm −
ak 2 h
vnm+1 − vnm− 1
a^2 k^2 2 h^2
vmn+1 − 2 vnm + vmn− 1
m = 1, 2 , · · · ,
with the boundary scheme
vn 0 +1 = v 0 n −
ak h
(v 1 n − v 0 n ) ,
is stable if − 1 ≤ ak/h ≤ 0. (Hint: First show that the solution of the system { z = 1 − ak 2 h (K − K−^1 ) + a (^2) k 2 2 h^2 (K^ −^ 2 +^ K
z = 1 − ak h (K − 1)
is z = K = 1 if ak/h 6 = 0 and ak/h 6 = −1; then show (i) K+(1) = 1 for a < 0, (ii) when ak/h = 0, the method is stable, and (iii) when ak/h = −1, K = z and K+
eiθ
= eiθ.)
3 ′^ Suppose we have proved that the Crank–Nicolson scheme is uncondition- ally stable for initial-value problem. By theorem 11.3.3, show that the Crank–Nicolson scheme
vn m+1 − vnm k
v mn+1+1 − vn m+1− 1 + vmn+1 − vnm− 1 4 h
= 0, m = 1, 2 , · · · ,
with the boundary scheme
v 0 n +1− v 0 n + vn 1 +1− vn 1 2 k
v 1 n +1− vn 0 +1+ v 1 n − vn 0 2 h
is stable if ak/h ≤ 0. (Hint: First show that the solution of the system
z− 1 k +^ a
z(K−K−^1 )+K−K−^1 4 h = 0, z−1+(z−1)K 2 k +^ a
z(K−1)+K− 1 2 h = 0 is z = K = 1 if ak/h 6 = 0; then show (i) K+(1) = 1 for a < 0, and (ii) when ak/h = 0, the method is stable.)
4 ′^ Suppose we have proved that the Lax–Wendroff scheme is stable for initial-value problem if − 1 ≤ ak/h ≤ 1. By theorem 11.3.3, show that the Lax–Wendroff scheme
v mn+1 = vnm −
ak 2 h
vnm+1 − vnm− 1
a^2 k^2 2 h^2
vmn+1 − 2 vnm + vmn− 1
m = 1, 2 , · · · , with the boundary scheme
vn 0 +1 = vn 0 −
ak 2 h
(−vn 2 + 4vn 1 − 3 vn 0 ) +
a^2 k^2 2 h^2
(vn 2 − 2 vn 1 + vn 0 ) ,
is stable if − 1 ≤ ak/h ≤ 0. (Hint: First show that the solution of the system { z = 1 − ak 2 h (K − K−^1 ) + a
(^2) k 2 2 h^2 (K^ −^ 2 +^ K
z = 1 − ak 2 h (−K^2 + 4K − 3) + a
(^2) k 2 2 h^2 (K
is z = K = 1 if ak/h 6 = 0 and ak/h 6 = −1; then show (i) K+(1) = 1 for a < 0, (ii) when ak/h = 0, the method is stable, and (iii) when ak/h = −1, K = z and K+
eiθ
= eiθ.)
5 ′^ Suppose we have proved that the Crank–Nicolson scheme is uncondition- ally stable for initial-value problem. By theorem 11.3.3, show that the Crank–Nicolson scheme vn m+1 − vnm k
v mn+1+1 − vn m+1− 1 + vmn+1 − vnm− 1 4 h
= 0, m = 1, 2 , · · · ,
with the boundary scheme vn 0 +1− vn 0 k
−vn 2 +1+ 4vn 1 +1− 3 vn 0 +1− vn 2 + 4vn 1 − 3 v 0 n 4 h
is stable if ak/h ≤ 0. (Hint: First show that the solution of the system
z− 1 k +^ a
z(K−K−^1 )+K−K−^1 4 h = 0, z− 1 k +^ a
z(−K^2 +4K−3)−K^2 +4K− 3 4 h = 0 is z = K = 1 if ak/h 6 = 0; then show (i) K+(1) = 1 for a < 0, and (ii) when ak/h = 0, the method is stable.)