|
We wish to solve the differential equation in the interval ti £ t £ tf. The prime denotes defferentiation of y with respect to t. We need to specify two conditions for a complete solution of this problem. Initial Value Problem (IVP): Both y and y' are given at the initial instant of time ti, as follows
Boundary Value Problem (BVP): Both y and y' are not given at the initial instant, instead the conditions are mixed between
the boundaries tf and ti of the range of t. Three such boundary
conditions are shown below.
(b) y( ti ) = f, y'( tf ) = g (c) y'( ti ) = f, y( tf ) = g |
|
We will describe the method in detail for the type (a) problem, other situations are similar. First, we convert the 2nd-order ODE into two 1st-order ODE's, as follows
y2' = c - ay2 - by1 with boundary conditions where y1 = y, and y2 = y'. We cannot use Runge-Kutta (RK) type marching solution technique for this problem, bacause RK-type
methods require that the intital conditions are specified. Thus we convert the BVP into an IVP. As the inital
value of y2 is not given, we guess this value. Thus, instead of the conditions in (A), we use the
conditions
With the initial conditions of (B), we can use the RK-type marching method to solve the set of ODE's. However, this solution will not satisfy the condition y1( tf ) = g. Instead, we will get y1( tf ) = K. Note that K depends on the choice of h. Thus, K is a function of h. What we want is to find a suitable h such that The Eq.(C) is solved by using the Newton-Raphson method. Begin with a guess value h0
for h, and update h using the formula
The derivative K'( hn ) can be obtained as follows A suitable D h can be 0.01 or 0.001. |
| Iteration | hn | K ( hn ) | K( hn + D h ) | K'( hn ) | hn+1 |
| 0 | 5 | 109.622 | 109.633 | 11.7 | 12.7246 |
| 1 | 12.7246 | 200.401 | 200.410 | 9.0 | 12.6800 |
| 2 | 12.6800 | 199.877 | 199.889 | 11.8 | 12.6904 |
| Iteration | hn | K ( hn ) | K( hn + D h ) | K'( hn ) | hn+1 |
| 0 | 5 | 98.8492 | 98.8637 | 14.5 | 11.9759 |
| 1 | 11.9759 | 506.841 | 507.187 | 346.0 | 11.0891 |
| 2 | 11.0891 | 326.674 | 326.796 | 122.1 | 10.0516 |
| 3 | 10.0516 | 238.397 | 238.457 | 60.6 | 9.4180 |
| 4 | 9.4180 | 205.343 | 205.388 | 44.5 | 9.2979 |
| 5 | 9.2979 | 200.1412 | 200.184 | 42.2 | 9.2945 |