Test examples of boundary value problems

1  Example1

This is a linear case satisfying strong uniqueness and smoothness conditions. The problem is originally a scalar second order problem:
y"= 2y (1+x )2 ,   y(0)=1,y(1)= 1 2

with the unique and arbitrarily smooth solution
y(x)= 1 1+x .

This is transformed into the first order system
y1 ' = y2 , y2 ' = 2 y1 (1+x )2

and we use the true boundary values as initial guess:
y1 (0)=1, y2 (0)=-1.0, y1 (1)=0.5, y2 (1)=-0.25.

Because of this and the linearity in y Newton's method finds the true solution in one step (you see only the computed solution on the plot), but in order to detect this it takes a second step.

2  Example2

This is a nonlinear, uniquely solvable, but sensitive case. This is also a scalar second order problem originally,
y"=(y' )2 ,y(-1)=0,y(1)=log(10)

with the unique and arbitrarily smooth solution
y(x)=-log( 11 20 - 9 20 x)

This is again transformed into a first order system
y1 ' = y2 y2 ' = ( y2 )2

If with only one interval the initial value problem would be solved with an initial slope 0.5 then a singularity of the solution occurs inside [-1,1] and the integrator could not finish his job. We take here 4 subintervals of length 0.5 and use the values of the linear interpolant of the boundary values as initial guesses. The first integration hence yields a discontinuous solution, but Newton's method converges fast and without trouble.

3  Example3

This is a nonlinear nonuniquely solvable case with two smooth solutions. This is also a scalar second order bondary value problem
y"=-exp(y+1),y(0)=0,y(1)=0

nonlinear as the second example, but this one is not uniquely solvable. It has two solutions
y(x)=-2log ( cosh((x- 1 2 ) θ 2 ) cosh( θ 4 ) )

where θ is one of the two solutions of
θ=2ecosh( θ 4 ).

These values are θ=3.036231848196573 for the lower and θ=7.135005531636586 for the upper solution.
bvp3.png
Again this is transformed to a first order system. We use m=2 (simple shooting) and the zero function as the default initial solution. From this Newton's method converges quickly against the lower solution.

4  Example4

The following is taken from J. Stoer and R. Bulirsch: "Introduction to Numerical Mathematics", volume II, 1973, pages 180-186. This is the famous reentry problem of an APOLLO like space vehicle, solved here under simplifying assumptions: earth is a sphere with radius R. The variables describing the flight are speed v, the angle γ between the flight's curve tangent and the tangent to the sphere at the current projection point of the vehicle position on the sphere, the normalized heigth ξ = distance from earth divided by R. The equations read
v · = V(t,v,γ,ξ,u)=- Sρ v2 2m Cw (u)- gsin(γ) (1+ξ )2 γ · = Γ(t,v,γ,ξ,u)= Sρv 2m CA (u)+ vcos(γ) R(1+ξ) - gcos(γ) v(1+ξ )2 ξ · = Ξ(t,v,γ,ξ,u)= vsin(γ) R

Here
ρ= ρ0 exp(-βRξ)

is the density of the atmosphere, β a constant, m mass and S the frontal area, and g earth acceleration. The physical parameters are 105 feet for space and second for time. Values are
R=209,β=4.26, ρ0 =0.002704,g=0.00032172,S/m=53200.

The coefficients CA (u)=0.6sin(u), CW (u)=1.174-cos(u) (aerodnamical lift and aerodynamical resistance coefficient) describe the influence of a control function u which serves for changing S during flight (brake flaps). The aim of this control is the minimization of the total heating of the vehicle during the manoeuvre which is given by
J= 0 T {10 v3 ρ}dt

The endtime T is free. There are initial and end conditions:
v(0)=0.36,γ(0)=8.1π/180,ξ(0)=4/R

and
v(T)=0.27,γ(T)=0,ξ(T)=2.5.

From variational analysis it follows that this free endtime minimization problem in function space can be solved by requiring
Ht=T =0

where H is the Hamiltonian function
H(t,v,γ,ξ,u)=10 v3 ρ+ λv V(t,v,γ,ξ,u)+ λγ Γ(t,v,γ,ξ,u)+ λξ Ξ(t,v,γ,ξ,u).

λv , λγ , λξ themselves, the multipliers for the constraints on v,γ,ξ, are again functions, defined by the differential equations
λv · = - H v λγ · = - H γ λξ · = - H ξ

The control u is given by
sin(u)=- 0.6 λγ α ,cos(u)= -0.9v λv α ,α=(0.6 λγ )2 +(0.9v λv )2 .

The indices in the vector solution y correspond to the appearance of the variables here: y1 is speed, y2 is angle, y3 is normalized height, y4 , y5 , y6 are the three multipliers for the constraints and y7 represents the endtime with the ode
y7 · =0.

This is a highly sensitive problem. We use here the initial values given by Deuflhard and coworkers. You may play with the parameter tol but changing the initial values is discouraged.



File translated from TEX by TTM Unregistered, version 4.03.
On 20 Jun 2016, 17:59.