The shooting method treats a BVP problem as an initial condition problem. Reduce 2nd-order ODE to two 1st-order ODEs.
Recall our thermal rod example:
BVP Example
Heat transfer from an uninsulated rod to ambient, with two thermal boundary conditions (one at each end of the rod):
With conditions:
For , :
Link to original
- (Heat coefficient, not step size)
We use the substitution method covered in 2nd-order ODEs to convert
into two first-order ODEs:
To solve these, we require an initial value for . In this case, we just guess a value, and say .
Then, we can solve these equations using a normal method such as Runge-Kutta Method. Using a 4th-order RK method with , we get .
This doesn’t match the boundary condition of , so we guess , which gives us .
We can interpolate between these to find the right , such that:
This value can then be used to determine the correct solution.