MATH661 Homework 10 - Multiple
operators |
|
This homework is a reading assignment meant as final examination
preparation. The particular topic is numerical solution of ordinary
differential equations, but the presentation is also a synthesis of the
ideas encountered in the course. The scheduled course grade points are
automatically awarded, but several suggestions are given for independent
work that can be submitted for extra course credit up to the date prior
to the final examination.
1Problem and algorithm statement
The problem considered here is finding approximations of ,
a real-valued function with continuous
derivatives specified by an equality between the action of two operators
with linear and
nonlinear. The particular choice of operators
and
corresponds to the ordinary differential equation
but the ideas underlying the approach are generic, applicable to other
operator choices.
The function
is approximated by a sample , with ,
.
Consider an approximation of
by linear combination of the sample values
|
(1) |
Also introduce an approximation of
by linear combination of
|
(2) |
Overall, the above approximations lead to the algorithm
|
(3) |
2Consistency
A first question that arises is whether the operator approximations
converge. These are discrete approximations based upon sampling
at .
The function would be recovered in the
limit ,
leading to the definition of consistency by
stating that the exact operators are obtained.
Exercise 1. Carry
out Taylor series expansion of the operator approximation (1)
applied to the exact function to
determine consistency conditions for coefficients
Solution. Applied to the exact function, the
operator approximation gives
Taylor series expansion around
gives
In order for
the conditions
Exercise 2. Define
a polynomial . State the consistency conditions for as imposed values for .
Solution. The above consistency conditions correspond
to
Exercise 3. Verify
that the forward Euler, backward Euler, leapfrog schemes are
consistent for
Solution. The above schemes use operator series
truncations
respectively. These all correspond to the same
polynomial
after shifting indices. For example, in the leapfrog
scheme
Since ,
the scheme is consistent.
Exercise 4. (1
Extra Credit point). Verify that the
approximation in the first four Adams-Bashforth schemes are
consistent.
Exercise 5. (1
Extra Credit point). Verify that the
approximation in the first four Adams-Moulton schemes are
consistent.
Exercise 6. Carry
out Taylor series expansion of the operator approximation (2)
applied to the exact function to determine
consistency conditions for coefficients
Solution. Applied to the exact function, the
operator approximation gives
Taylor series expansion around
gives
In order for the condition
Exercise 7. Define
a polynomial . State the consistency conditions for as imposed values for .
Solution. The above consistency condition corresponds
to
Exercise 8. State
the consistency condition for (3) in terms of the
polynomials
Solution. Gathering the above,
This can be slightly generalized to
allowing a multiplicative factor in the evaluation of the
derivative .
Exercise 9.
Determine the consistency of the
approximation for the forward, Euler, backward Euler, and leap frog
schemes.
Solution. The polynomial
for forward Euler is , that for
backward Euler is . For leapfrog,
rescale ,
and obtain again . All satisfy
.
Exercise 10. (1
Extra Credit point). Verify that the
approximation in the first four Adams-Bashforth schemes are
consistent.
Exercise 11. (1
Extra Credit point). Verify that the the
approximation in the first four Adams-Moulton schemes are
consistent.
Exercise 12. Apply
the boundary locus method to determine the domain of linear stability
for the forward, Euler, backward Euler, and leap frog schemes when
Solution. The characteristic polynomial of the overall
scheme is , and the
boundary locus method seeks roots of unit absolute value, .
-
Forward Euler
-
,
, ,
a circle centered at (-1,0)
∴ |
n=90; h=2*π/n; θ=(0:n)*h; zFE=exp.(θ*im) .- 1; |
-
Backward Euler
-
,
, ,
a circle centered at (1,0)
∴ |
n=90; h=2*π/n; θ=(0:n)*h; zBE=1 .- exp.(θ*im); |
-
Leapfrog
-
,
,
,
a line segment on the imaginary axis
∴ |
n=90; h=2*π/n; θ=(0:n)*h; zLF=im.*sin.(θ); |
∴ |
plot(real(zFE),imag(zFE),real(zBE),imag(zBE),real(zLF),imag(zLF)); |
∴ |
axis("equal"); grid("on"); xlabel("Re(z)"); ylabel("Im(z)"); |
∴ |
title("Boundary locii for forward Euler, backward Euler, leapfrog"); |
∴ |
savefig("/home/student/courses/MATH661/images/H10Fig01.png"); |
 |
|
Figure 1. Stability region for forward Euler
is inside the circle, for backward Euler outside the circle, and
for leapfrog within the slit on the imaginary axis.
|
Exercise 13. (2
Extra Credit points). Use the boundary locus method to find the linear
stability region for the first four Adams-Bashforth schemes.
Exercise 14. (2
Extra Credit points). Use the boundary locus method to find the linear
stability region for the first four Adams-Moulton schemes.