






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!







Not recommended for general BVPs!
But OK for relatively easy problems that may need to be solved many times.
Idea: Guess all unknown initial values. (aim) Integrate to b. (shoot) (Try to hit BCs at x = b.)
Adjust initial guesses and repeat. Fundamental disadvantage: directionality imposed on BVP.
→ Shooting inherits stability of IVP (not just BVP).
y′^ = f (x, y), a < x < b, g(y(a), y(b)) = 0 , m nonlinear equations.
Let y(x) = y(x; ya) be the solution of the ODE with initial value ya.
We want to choose ya to solve
h(ya) = g(ya; y(b; ya)) = 0.
Software needs two parts:
In converting from BVP to IVP, you convert stability of BVP︸ ︷︷ ︸ presumably, this is ok
to stability of IVP︸ ︷︷ ︸ this may be bad!
→ You can convert a nice problem into a nasty one! e.g., shooting assumes the IVPs have solutions all the way to x = b even for bad guesses of ya!
Example 1. y′^ = A(x)y + q(x), where
A =
− 2 λ^3 λ^2 2 λ
y 1 (0) = β 1 , y 1 (1) = β 2 , y 2 (0) = β 3 ,
with exact solution
y(x) =
u(x) u′(x) u′′(x)
u(x) =
eλ(x−1)^ + e^2 λ(x−1)^ + e−λx 2 + e−λ^
Note 1. q(x), β can be determined from exact solution (to make it be the exact solution).
For λ ≈ 20 , BVP is stable but IVP is not!
λ = 1 ↔ Shooting ok. λ = 10 ↔ Wrong (but plausible!) solution. λ = 20 ↔ Error ∼ 200. λ = 50 ↔ Error ∼ 1032.
Problems with single shooting are exacerbated when b is large.
Idea: Restrict the sizes of the intervals over which the various IVPs are integrated.
Define a mesh
a = x 0 < x 1 < · · · < xN − 1 < xN = b.
Solve y′^ = f (x, y) on each subinterval [xn− 1 , xn].
Then patch them together to form solution on [a, b].
a
Let yn(x; cn− 1 ) solve
y′ n = f (x, yn), xn− 1 < x < xn, yn(xn− 1 ) = cn− 1 , n = 1, 2 , · · · , N.
Assuming these IVPs are solved exactly, the exact solution to the BVP satisfies
y(x) = yn(x; cn− 1 ), xn− 1 ≤ x ≤ xn, n = 1, 2 , · · · , N,
where
yn(xn; cn− 1 ) = cn, n = 1, 2 , · · · , N − 1 , (1) g(c 0 , yN (b; cn− 1 )) = 0.
Equations (1) are patching (continuity) conditions.
A has a sparse block structure
A =
−Y 1 (t 1 ) I −Y 2 (t 2 ) I
...... −YN − 1 (tN − 1 ) I Ba BbYN (b)
^.
Variants of Gauss elimination that take advantage of sparsity can solve in O(N ) time. (In parallel, it can be O(log N ).)
Note that the blocks Yn(tn) can also be constructed in parallel, so sometimes multiple shooting is known as parallel shooting.
Matrix A turns out to be the same as if you applied multiple shooting to the linearized BVP.
But it is not so simple to code anymore!
Also you may need many subintervals l inefficient (N grows linearly with λ.)