Академический Документы
Профессиональный Документы
Культура Документы
Learning Objectives:
– Euler Method
– Modified Euler Method
– Runge-Kutta Second Order Method
– Runge-Kutta Fourth Order Method
2
Let us consider the problem of solving a first order ODE of the form
dy
= f (x, y), x0 ≤ x ≤ xn , y(x0 ) = y0
dx
Such a problem is called the initial value problem because the initial value of the solution y(x0 ) = y0 is given. Since there
are many infinitely many values between x0 and xn , we will be concerned here to find approximations of the solution y(x) at
several specfified values of x in [x0 , xn ] [1]. Let us denote yi ≈ y(xi ). Divide [xi , xn ] into n intervals of length h (step size),
where h = xn −xn
0
.
In this section the following well-known numerical methods for solving the initial value problem will be described:
• Euler Method
Euler’s Method
The Euler method is one of the simplest methods for solving the initial value problem. The method is derived from the Taylor
Series expansion of the function y(x). Taylor series expansion of y(x) of order n at x = xi+1 is given by
h2 ′′ hn n hn+1 n+1
y(xi+1 ) = yxi + hy ′ (xi ) + y (xi ) + · · · + y (xi ) + y (ξi ),
2! n! (n + 1)!
3
yi+1 = yi + hy ′ (xi )
⇒ yi+1 = yi + hf (xi , yi ), i = 0, 1, 2, . . . , n − 1.
This formula is known as the Euler method and can be used to approximate yi+1 . The implementation of the Euler method is
quite simple as it requires terms upto first order derivative in the Taylor series expansion. However, because of using only two
terms in the expansion the results obtained using the Euler’s method is not as accurate as the Taylor series expansion using
higher orders. Even for a reasonable accuaracy in the case of Euler’s method, the step size h needs to be very small [1, 2].
The Euler method was named after the pioneering Swiss mathematician and physicist Leon-
hard Euler (1707 − 1783). He has remarkable constributions in diverse areas such as infinites-
imal calculus, graph theory, mechanics, optics, fluid mechanics, astronomy and music theory.
The Euler method is the simplest explicit method for numerical integration of ordinary dif-
ferential equations with a given initial value. The Euler method is a first order method which
means that the local truncation error is h2 and the global error is h, where h is the step size.
A statement attributed to Pierre-Simon Laplace expresses Euler’s influence on mathematics:
"Read Euler, read Euler, he is the master of us all" (Source: Wikipedia). Leonhard Euler
curve at the point (x0 , y0 ), a tangent is drawn at the point (x0 , y0 ). The equation of the tangent at the point (x0 , y0 ) is given
by
dy
y − y0 = (x − x0 )
dx (x0 ,y0 )
⇒ y − y0 =f (x0 , y0 )(x − x0 )
⇒ y =y0 + (x − x0 )f (x0 , y0 )
This gives the y coordinate of any point on the tanget. Since the curve in the interval [x0 , x1 ] is approximated by the tangent,
the value of y on the curve corresponding to the value of x = x1 is given by the above equation. Substituting the value of
x = x1 , we get
y1 = y0 + (x1 − x0 )f (x0 , y0 )
⇒ y1 = y0 + hf (x0 , y0 )
Similarly, approximating the curve in the interval by a line [x1 , y1 ] through (x1 , y1 ) with slope f (x1 , y1 ), we can show that
y2 = y1 + hf (x1 , y1 )
yi+1 = yi + hf (xi , yi ), i = 0, 1, 2, . . . , n − 1
Example 1. Solve the following initial value problem to obtain approximations for y(0.01), y(0.02), y(0.03) and y(0.04)
using h = 0.01:
dy
= −y, y(0) = 1.
dx
Solution 1. Comparing
dy
= −y
dx
with
dy
= f (x, y),
dx
we have
f (x, y) = −y.
yi+1 = yi + hf (xi , yi ), i = 0, 1, 2, . . .
5
where yi+1 = y(xi+1 ) = y(xi + h). Given y(0) = 1, i.e., at x0 = 0, y0 = y(x0 ) = y(0) = 1. We have to find the values of
y(0.01), y(0.02), y(0.03) and y(0.04), i.e, y1 , y2 , y3 and y4 .
The exact analytic solution to the given differential equation can be obtained as follows:
dy
=−y
dx
dy
⇒ = − dx [Separting the variables]
y
Z Z
dy
⇒ = − dx
y
⇒ ln y = − x + c,
c = 0.
ln y = − x
⇒ y =e−x .
This is the required exact analytic solution. The plot of this solution is shown in Fig. (3) for x in the range [0, 1]. Also shown
in the figure are the overplotted exact and approximate values of y for x in the range [0.01, 0.04]. It can be seen from the figure
that the approximated values are quite closer to those obtained from the analytic solutions because of using smaller value of
h. This is remarkable. The approximated values can be made more accurate by choosing more and more smaller values of h
but this requirement causes hardship to the computer requiring extra compuational cost in solving the problem.
Example 2. Solve the following initial value problem with the help of Euler’s method to obtain the approximations for
y(0.25), y(0.50), y(0.75) and y(1.0) using h = 0.25:
dy
= x2 + 5, y(0) = 0.
dx
Compare the approximated values with those obtained from exact analytic solutions.
6
0.98
Exact value
Approx. value
0.96
y 0.94
0.92
0.90
0.00 0.02 0.04 0.06 0.08 0.10
x
dy
Figure 3: Plot of the solutions of the equation dx = −y, y(0) = 1 for x ∈ [0, 0.1]. The exact analytic soltion y = e−x is
shown here as a black solid line, whereas, the black and the red open circles denote the exact and the approximate values of y
at x = 0.01, 0.02, 0.03, 0.04, respectively.
Solution 2. Comparing
dy
= x2 + 5
dx
with
dy
= f (x, y),
dx
we have
f (x, y) = x2 + 5.
yi+1 = yi + hf (xi , yi ), i = 0, 1, 2, . . .
where yi+1 = y(xi+1 ) = y(xi + h). Given y(0) = 0, i.e., at x0 = 0, y0 = y(x0 ) = y(0) = 0. We have to find the values of
y(0.25), y(0.50),y(0.75) and y(1), i.e, y1 ,y2 , y3 and y4 .
The exact solution to the given differential equation can be obtained as follows:
dy
=x2 + 5
dx
⇒ dy = x2 + 5 dx
Z Z
x2 + 5 dx
⇒ dy =
x3
⇒y= + 5x + c,
3
where c is a constant of integration to be determined from the given initial condition.
Given y(0) = 0, i.e., at x = 0, y = 0. Substituting these values into the above equation, we get
c = 0.
x3
y= + 5x.
3
This is the required exact analytic solution. The plot of this solution is shown in Fig. (4) for x in the range [0, 1]. Also shown
in the figure are the overplotted exact and approximate values of y for x in the range [0.25, 1.0]. It can be seen from the figure
that the succesive approximated values for y start deviating more and more from the analytic solutions because of using larger
value of h.
h2 ′′
yi+1 = y(xi+1 ) = y(xi + h) = y(xi ) + hy ′ (xi ) + y (xi ) + . . .
2
8
Exact value
Approx. value
4
y 2
0
0.00 0.25 0.50 0.75 1.00
x
3
dy
Figure 4: Plot of the solutions of the equation dx = x2 + 5, y(0) = 0 for x ∈ [0, 0.1]. The exact analytic soltion y = x3 + 5x
is shown here as a black solid line, whereas, the black and the red open circles denote the exact and the approximate values of
y at x = 0.25, 0.50, 0.75, 1.0, respectively.
2
after two terms. Therefore, in obtaining the Euler’s method, the first term neglected is h2 y ′′ (xi ). So the local truncation
2
error is el = h2 y ′′ (ξ), where ξ ∈ [xi , xi+1 ]. In this case we say that the local truncation error is of the order of h2 , usually,
written as O(h2 ). On the other hand, the global error is defined as the difference between the true solution at y(xi ) and the
approximate solution yi at x = xi . The global error is denoted as eg = |y(xi ) − yi |. The following theorem shows that the
global error eg is of the order of h in the case of Euler’s method.
dy
= f (x, y), y(x0 ) = α
dx
x0 ≤ x ≤ xn , − ∞ < y < ∞
hM L(xi −x0 )
|eg | = |y(xi ) − yi | ≤ e − 1 ∼ O(h).
2L
Knowing the equalities L and M , the step size h needed to achieve a certain accuracy can be determined.
Thus we have found from the above analysis that the global error bound for the Euler’s method depends on h, whereas,
the local error bound depends on h2 .
Example 3. In solving the following initial value problem, determine how small the step size h should be chosen so that the
9
• Computation of M :
dy
y′ = = f (x, y) (Given).
dx
By implicit differentiation, we have
∂f ∂f
y ′′ = +f
∂x ∂y
2
(x + y2)
⇒ y ′′ =x + y
2
y 2
x + y2
⇒ y ′′ =x +
2
Therefore,
y 2
⇒ |y ′′ | = x + x + y 2 ≤ 2, for − 1 ≤ x ≤ 1
2
⇒ M = 2.
h(e − 1) <10−4
10−4
h<
e−1
h <5.8198 × 10−5 .
10
h2 yn+1
′
− yn′
yn+1 = yn + hyn′ + + O(h) + O(h3 )
2! h
′ ′
y + yn+1
⇒ yn+1 = yn + h n + O(h3 )
2
This show that the error of one step, i.e., local error of the modified Euler method is O(h3 ). Hence the global error of the
modfied Euler method is O(h2 ). It can be shown that for any numerical ODE integration technique, the global truncation
error is one order of magnitude less than the local truncation error for that method [1].
(n+1) h
y1 = y0 + [f (x0 , y0 ) + f (x1 , y1n ); n = 0, 1, . . . ]
2
where y1n is the nth approximation to y1 . The above iteration formula can be started by choosing from Eulers’s formula
y11 = y0 + hf (x0 , y0 ).
Since this formula attempts to correct the values of yn+1 using the predicted value of yn+1 by Euler’s method, it is classified
as a one-step predictor-corrector method.
11
1
yi+1 = yi + [k1 + k2 ] , (1)
2
where
k1 =hf (xi , yi )
k2 =hf (xi + h, yi + k1 )
h
yi+1 = yi + [f (xi , yi ) + f (xi + h, yi + hf (xi , yi ))]
2
Example 4. Solve the following initial value problem for x ∈ [0, 1] with h = 0.5 using the Euler’s modified method:
dy
= ex , y(0) = 1.
dx
Solution 4. Comparing
dy
= ex
dx
with
dy
= f (x, y),
dx
12
we have
f (x, y) = ex .
From the Modified Euler’s method, we know that
1
yi+1 = yi + [k1 + k2 ] , (2)
2
where
k1 =hf (xi , yi )
k2 =hf (xi + h, yi + k1 )
Given y(0) = 1, i.e., at x0 = 0, y0 = y(x0 ) = y(0) = 1.0 We have to find the values of y(0.5), y(1), i.e., y1 , y2 .
⇒ k2 = 0.5e0.5 = 0.8244
1
y1 = y0 + (k1 + k2 )
2
⇒ y1 = 1 + 0.5 (0.5 + 0.8244)
⇒ y1 = 1.6622
When i = 1 :x2 = x1 + h = 0.5 + 0.5 = 1.0
k1 = hf (x1 , y1 ) = 0.5ex1 = 0.5e0.5 = 0.8244
k2 = hf (x1 + h, y1 + k1 ) = 0.5 ex1 +h
⇒ k2 = 0.5e0.5+0.5 = 1.3591
1
y2 = y1 + (k1 + k2 )
2
⇒ y2 = 1.6622 + 0.5 (0.8244 + 1.3591)
⇒ y2 = 2.7539
Therefore,
y1 = y(0.5) = 1.6622, y2 = y(1.0) = 2.7539
Example 5. Solve the following initial value problem for approximations to y(0.01) and y(0.02) with h = 0.01 using the
modified Euler’s method:
dy
= x + y, y(0) = 1.
dx
Solution 5. Comparing
dy
=x+y
dx
with
dy
= f (x, y),
dx
we have
f (x, y) = x + y.
From the modified Euler’s method, we know that
1
yi+1 = yi + [k1 + k2 ] , (3)
2
13
where
k1 =hf (xi , yi )
k2 =hf (xi + h, yi + k1 )
Given y(0) = 1, i.e., at x0 = 0, y0 = y(x0 ) = y(0) = 1.0 We have to find the values of y(0.01), y(0.02), i.e., y1 , y2 .
Therefore,
y1 = y(0.01) = 1.0101, y2 = y(1.0) = 1.0204
The Runge-Kutta methods were named after two German mathematicians Carl David
Tolmé Runge (1856 − 1927) and Martin Wilhelm Kutta (1867 − 1944) who developed
these methods aroud 1900. The basic principle of the Runge-Kutta methods is to find
yi+1 by evaluating the derivative of y not only at the initial point (xi , yi ) but also at
the end point and some intermediate points. The increment ∆yi is some kind of an
average of all these derivatives. In the case of Runge-Kutta second order method, the
derivatives are evaluated at two points, one at the initial point (xi , yi ) and the other at
Runge and Kutta
the midpoint of the interval [xi , xi+1 ], i.e., at xi + h2 . In the case of Runge-Kutta fourth
order method, the derivative is evaluated at four points, once at the initial point, twice
at the trial midpoint and once at the trial end point. These four derivatives consitute one Runge-Kutta step resulting in
the final value for yi+1 = yi + 61 (k1 + 2k2 + 2k3 + k4 ). (Photo credit: Wikipedia.)
The Euler’s method is the simples to implement. However even for a reasonable accuracy the step size h needs to be very
small. However, the difficulties with the higher order Taylor series methods are that the derivatives of higher orders of f (x, y)
14
need to be computed, which are very often difficult to compute. The Runge-Kutta method aim at achieving the accuracy of
higer order Taylor series methods without computing the higher order derivatives. Let us take
yi+1 = yi + α1 k1 + α2 k2 .
k1 =hf (xi , yi )
k2 =hf (xi + αh, yi + βk1 ).
The constants α1 , α2 and α, β are to chosen in such a way that the formula is as accurate as the Taylor’s series method of as
high as possible. Now let us evaluate f (xi + αh, yi + βk1 ) using the Taylor series expansion given by
∂f ∂f
f (xi + αh, yi + βk1 ) =f (xi , yi ) + αh + βk1 [Neglecting higher order terms]
∂x ∂y
∂f ∂f
⇒ f (xi + αh, yi + βk1 ) =f (xi , yi ) + αh + βhf (xi , yi )
∂x ∂y
Therefore,
yi+1 =y(xi + h)
h2 ′′
⇒ yi+1 =y(xi ) + hy ′ (xi ) + y (xi ) + . . .
2!
h2 d ′
⇒ yi+1 =y(xi ) + hf (xi , yi ) + (y (xi ))
2 dx
2
h d
⇒ yi+1 =yi + hf (xi , yi ) + (f (xi , yi )) [∵ y ′ (xi ) = f (xi , yi )] (5)
2 dx
Also, we know that
∂f (xi , yi ) ∂f (xi , yi )
df (xi , yi ) = dx + dy
∂x ∂y
df (xi , yi ) ∂f (xi , yi ) ∂f (xi , yi ) ′
⇒ = + yi (x)
dx ∂x ∂y
df (xi , yi ) ∂f (xi , yi ) ∂f (xi , yi )
⇒ = + f (xi , yi )
dx ∂x ∂y
df (xi ,yi )
Substituting this value of dx into the equation (5), we have
h2 ∂f (xi , yi ) ∂f (xi , yi )
yi+1 =yi + hf (xi , yi ) + + f (xi , yi ) (6)
2 ∂x ∂y
Comparing equations (4) and (5), we get
α1 + α2 =1
1
α2 α =
2
1
α2 β = .
2
15
Here, the number of variables (α1 , α2 , α, β, viz. 4 in number) exceed the number of equations (viz., 3 in number). Therefore,
the equations have inifnitely many solutions. It is quite clear from the above three equations that if we set α = β =
arbitrary value, then the remaining parameters (α1 , α2 ) can be determined uniquely.
Then we have
yi+1 =yi + α1 k1 + α2 k2
⇒ yi+1 =yi + α2 k2
⇒ yi+1 =yi + α2 hf (xi + αh, yi + βk1 )
h k1
⇒ yi+1 =yi + hf (xi + , yi + )
2 2
This is the required formula for the Runge-Kutta second order method. It should be noted that several Runge-Kutta
second order formulas can be constructed considering various arbitrary values of α and β.
Then we have
yi+1 =yi + α1 k1 + α2 k2
⇒ yi+1 =yi + α1 hf (xi , yi ) + α2 hf (xi + αh, yi + βk1 )
h h
⇒ yi+1 =yi + f (xi , yi ) + f (xi + h, yi + k1 )
2 2
h h
⇒ yi+1 =yi + f (xi , yi ) + f (xi + h, yi + hf (xi , yi ))
2 2
h
⇒ yi+1 =yi + [f (xi , yi ) + f (xi + h, yi + hf (xi , yi ))]
2
This is the required formula for the modified Euler method.
k1 = hf (xi , yi )
h k1
k2 = hf (xi + , yi + ).
2 2
k1 and k2 are known as the stages of the Runge-Kutta method. This method is also called the midpoint method as it uses the
slope at the midpoint of the interval, i.e., xi + h2 to calculate the approximation to y(xi+1 ). The local truncation error in the
case of Runge-Kutta second order method is O(h3 ).
In the Runge-Kutta methods, one finds yi+1 by evaluating the derivatives of y not only at the initial points (xi , yi ), as
was done in Euler’s method, but also at the end point and some other intermediate points. The increment ∆y is the weighted
average of all these derivatives in each subinterval.
Rules for generating yi+1 from yi in Runge-Kutta second order (Midpoint method):
where
k1 =hf (xi , yi )
h k1
k2 =hf (xi + , yi + ).
2 2
Therefore, equation (7) can be written as
h k1
yi+1 = yi + hf (xi + , yi + )
2 2
h h
⇒ yi+1 = yi + hf xi + , yi + f (xi , yi ) , i = 0, 1, . . . , n − 1.
2 2
Example 6. Solve the following initial value problem for approximations to y(0.5) and y(1.0) with h = 0.05 using the
Runge-Kutta second order method:
dy
= ex , y(0) = 1.
dx
Solution 6. Comparing
dy
= ex
dx
with
dy
= f (x, y),
dx
we have
f (x, y) = ex .
yi+1 = yi + k2
where
k1 =hf (xi , yi )
h k1
k2 =hf (xi + , yi + )
2 2
17
Given y(0) = 1, i.e., at x0 = 0, y0 = y(x0 ) = y(0) = 1.0 We have to find the values of y(0.5), y(1.0), i.e., y1 , y2 .
Therefore,
y1 = y(0.5) = 1.6420, y2 = y(1.0) = 2.7005
The solution to the above differential equation is obtained from the following formula:
k1 = hf (xi , yi )
h k1
k2 = hf (xi + , yi + )
2 2
h k2
k3 = hf (xi + , yi + )
2 2
k4 = hf (xi + h, yi + k3 ).
Geometrically, for the interval [xi , xi+1 ], k1 represents aprroximation for slope of the left end of the interval, k2 and k3
describe two approximations of the slope in the middle of the interval, whereas k4 corresponds to the slope at the right.
18
k1 = hf (xi , yi )
h k1
k2 = hf (xi + , yi + )
2 2
h k2
k3 = hf (xi + , yi + )
2 2
k4 = hf (xi + h, yi + k3 ).
1
yi+1 = yi + [k1 + 2k2 + 2k3 + k3 ] , i = 0, 1, 2, . . . , n − 1.
6
Example 7. Solve the initial value problem to obtain approximations for y(0.01) using the Runge-Kutta fourth order method
with h = 0.01:
dy
= x + y, y(0) = 1.
dx
Solution 7. Comparing
dy
=x+y
dx
with
dy
= f (x, y),
dx
we have
f (x, y) = x + y.
k1 = hf (xi , yi )
h k1
k2 = hf (xi + , yi + )
2 2
h k2
k3 = hf (xi + , yi + )
2 2
k4 = hf (xi + h, yi + k3 ).
19
Given y(0) = 1, i.e., at x0 = 0, y0 = y(x0 ) = y(0) = 1.0. We have to find the values of y(0.01), i.e., y1 .
Therefore
y1 = y(0.01) = 1.010100334.
Example 8. Solve the initial value problem to obtain approximations for y(0.1) using the Runge-Kutta fourth order method
with h = 0.1:
dy
= y − x, y(0) = 2.
dx
Solution 8. Comparing
dy
=y−x
dx
with
dy
= f (x, y),
dx
we have
f (x, y) = y − x.
k1 = hf (xi , yi )
h k1
k2 = hf (xi + , yi + )
2 2
h k2
k3 = hf (xi + , yi + )
2 2
k4 = hf (xi + h, yi + k3 ).
20
Given y(0) = 2, i.e., at x0 = 0, y0 = y(x0 ) = y(0) = 2.0. We have to find the values of y(0.1), i.e., y1 .
Therefore
y1 = y(0.1) = 2.2052.
Exercise
1. Problems based on Euler’s Method:
Exercise 1. Solve the folllowing the inigtial value problems to obtain y(0.1), y(0.2) and y(0.3):
dy
(a) + 2y = 0, y(0) = 1
dx
dy
(b) − 1 = y2, y(0) = 0.
dx
Exercise 2. Solve the following inittial value problems in the range 0 ≤ x ≤ 0.8 with h = 0.2 and compare the results
with the exact solution at x = 0.8.
yy ′ = x, y(0) = 1.
Exercise 3. Solve the following initial value problem for y(0.2) with h = 0.1:
Find the estimates of the error for y(0.2) if the exact solution is given by
2
y = ex /2
− 1.
Exercise 4. Solve the following initial value problem for y(0.2) with h = 0.2:
y ′ = 2x + cos y, y(0) = 1.
Exercise 5. Solve the following initial value problem for y(0.2), y(0.4) with h = 0.2:
y ′ = x + y, y(0) = 0.
Exercise 6. Solve the following initial value problem for y(0.02), y(0.04), y(0.06) using h = 0.02:
dy
= x2 + y, y(0) = 1.
dx
Exercise 7. Solve the following initial value problem for x ∈ [0, 0.3] using h = 0.1:
dy
= x + y, y(0) = 1.
dx
Compare with the exact solution
y(x) = 2ex − x − 1.
Exercise 8. Solve the following initial value problem to obtain approximations to y(0.2) and y(0.4) using h = 0.2:
dy
= −2xy 2 , y(0) = 1.
dx
Compare the numerical approximations with the exact solution
1
y(x) = .
1 + x2
Exercise 9. Solve the following initial value problem for y(0.2) using h = 0.1:
dy
= y − x2 + 1, y(0) = 0.5.
dx
Exercise 10. Solve the following initial value problem for y(0.5) using h = 0.1:
dy
= y 2 − x2 + 1, y(0) = 1.
dx
3. Problems based on Runge-Kutta second order method
Exercise 11. Solve the following initial value problem to obtain approximations to y(0.1), y(0.2) using h = 0.1:
dy
= y − x, y(0) = 2.
dx
Compare the numerical solutions with the exact analytic solution given by
y = x + 1 + ex .
Exercise 12. Solve the following initial value problem to obtain approximations to y(0.2), y(0.4) and y(0.6) using
h = 0.2:
dy
= 1 + y 2 , y(0) = 0.
dx
Exercise 13. Solve the following initial value problem to obtain approximations to y(0.2), y(0.4) and y(0.6) using
h = 0.2:
dy
= x3 + y, y(0) = 2.
dx
Exercise 14. Solve the following initial value problem to obtain the approximations for y in the range x ∈ [0.5, 1.0]
using h = 0.1:
dy
10 = x2 + y 2 , y(0) = 1.
dx
Exercise 15. Solve the following initial value problem to obtain approximations to y(0.5) using h = 0.25:
dy
= 3 sin xy, y(0) = −1.
dx
Compare the result with that obtained from the exact analytical solution.
22
Exercise 16. Solve the following initial value problem to obtain approximations to y in the interval [1, 1.5] using
h = 0.1:
dy
= x3 + y, y(0) = 2.
dx
Exercise 17. Obtain the solution at x = 0.8 for the following ODE:
dy √
= x + y, y(0.4) = 0.41
dx
assuming h = 0.2.
Exercise 18. Obtain the approximate value of y at x = 1 for the following initial value problem using h = 0.2:
dy y−x
= , y(0) = 1.
dx y+x
Exercise 19. Obtain the approximations to y having x ∈ [0.1, 0.4] for the following initial value problem with h = 0.1:
dy
= x cos 2y, y(0) = 1.
dx
Exercise 20. Solve the following initial value problem to find the approximations for y(0.25) and y(0.5) using h =
0.25:
dy
= 3x2 y − 4y, y(0) = −1.
dx
Compare the results with those obtained from the exact analytical solutions.
Summary
In this chapter, various methods for solving initial value problems using the methods such as Euler’s method, modified Euler’s
method, Runge-Kutta second order and Runge-Kutta fourth order methods have been discussed. Simple derivations of Euler’s
method, modified Euler’s method and Runge-Kutta second order methods have been provided along with their geometrical
interpretations. The derivation of Runge-Kutta fourth order method was not attempted here because of it’s being exceedingly
complicated. However, the geometrical interpretation of Runge-Kutta fourth order method has been elaborated. A number of
worked out examples have been provided in order to have a clear understanding of these methods in the numerical integration
of ordinary differential equations. Since ordinary differential equations arise almost in all branches of science and engineering,
these methods will prove to be useful in the modeling of an underlying physical phenomenon involving ordinary differential
equations.
References
[1] Richard L. Burden and J. Douglas Faires. Numerical Analysis: 4th Ed. PWS Publishing Co., Boston, MA, USA, 1989.
[2] S.S. Sastry. Introductory Methods of Numerical Analysis. Prentice-Hall of India Private Limited, 2005.
[3] M. Goyal. Computer Based Numerical & Statistical Techniques. Laxmi Publications Pvt Limited, 2006.
[4] Michael R. King and Nipa A. Mody. Numerical and Statistical Methods for Bioengineering: Applications in MATLAB.
Cambridge University Press, New York, NY, USA, 1st edition, 2010.
[5] C. William Gear. Numerical Initial Value Problems in Ordinary Differential Equations. Prentice Hall PTR, Upper Saddle
River, NJ, USA, 1971.