Test examples of boundary value problems: second order scalar cases
1 Example1
This is a linear case satisfying strong uniqueness and smoothness conditions.
The problem is
|
with the unique and arbitrarily smooth solution
This case satisfies all properties of the basic theorem and hence the
theoretical properties can be verified perfectly here.
Because of this and the linearity in
Newton's method finds the true solution
in one step, but in order to detect this it takes a second one.
2 Example2
This is a nonlinear, uniquely solvable, but sensitive case.
Simple shooting gets trouble here if the initial slope is not near
the true value
, since the singularity moves into
for a guess of the initial slope greater than 1/2.
|
with the unique and arbitrarily smooth solution
|
Observe that there occurs an essential singularity at
and that hence the truncation error is a bit larger than in example one.
Due to the nonlinearity Newton's method needs a bit more work, but there is no
essential problem if one starts not too far from the true solution.
But observe that the condition of global boundedness of
is not satisfied here.
Again Richardson extrapolation works well.
3 Example3
This is a nonlinear nonuniquely solvable case with two smooth solutions.
|
It has two solutions
|
where
is one of the two solutions of
These values are
for the lower and
for the upper solution.
Both solutions are very smooth and anything works well, also Newton's
method has no trouble.
4 Example4
This again is a second order problem which exhibits the possibility of
a nonunique solvability of an otherwise well behaved boundary value problem.
The ode is
With the Dirichlet boundary conditions
the problem
has two solutions.
The first one is
the other can be expressed with higher transcendental functions only.
We select the one above by prescribing different , so called Robin boundary
conditions
|
This example allows to study the effects of first and second order
approximations of the boundary derivatives. If discretized with the right resp left
first order difference quotient the truncation error shows up odd terms in
and hence Richardson extrapolation as done here has no essential effect.
But since the differential equation and its solution can be safely extended
outside
we can use the technique of fictitious nodes
and
which in turn allow for the symmetric second order difference quotient.
In this case the truncation error has an expansion in even powers of
only and
the extrapolation works well.
5 Example 5
Here we study the effects of a differential equation which is defined inside
only.
|
With the boundary conditions
the solution becomes
Clearly the use of fictitious points is impossible here.
Since we have Dirichlet boundary conditions only the truncation error
for
, which is
|
plays a role. But
hence for
near the left boundary the truncation error will be quite large
and we will get considerable trouble here and Richardson extrapolation shows no much effect.
6 Remark
If the boundary singularity becomes stronger, e.g. for
|
with the solution
the situation becomes hopeless.
7 Example 6
This is a linear problem with homogeneous Dirichlet boundary conditions.
|
with the solution
|
It shows a strong instability, hence shooting would get considerable trouble.
Here this trouble comes in as a restriction on the gridsize
.
File translated from
TEX
by
TTM Unregistered,
version 4.03.
On 20 Jun 2016, 18:02.