Академический Документы
Профессиональный Документы
Культура Документы
CHAPTER
1.1 INTRODUCTION
To obtain accurate numerical solutions to differential equations governing physical systems has always
been an important problem with scientists and engineers. These differential equations basically fall into
two classes, ordinary and partial, depending on the number of independent variables, present in the
differential equations: one for ordinary and more than one for partial.
The general form of the ordinary differential equation can be written as
Ly= r
(1.1.1)
where L is a differential operator and r is a given function of the independent variable t. The order of the
differential equation is the order of its highest derivative and its degree is the degree of the derivative of
the highest order after the equation has been rationalized. If no product of the dependent variable y(t)
with itself or any of its derivatives occur, the equation is said to be linear, otherwise it is nonlinear. A
linear differential equation of order m can be expressed in the form
m
Ly =
p=0
f p (t ) y ( p ) (t ) = r (t )
(1.1.2)
in which fp(t) are known functions. The general nonlinear differential equation of order m can be written
as
F (t, y, y,..., y (m1) , y (m ) ) = 0
or
(1.1.3)
(1.1.4)
which is called a canonical representation of differential equation (1.1.3). In such a form, the highest
order derivative is expressed in terms of the lower order derivatives and the independent variable. The
general solution of the mth order ordinary differential equation contains m independent arbitrary constants.
In order to determine the arbitrary constants in the general solution if the m conditions are prescribed at
one point, these are called initial conditions. The differential equation together with the initial conditions
is called the initial value problem. Thus, the mth order initial value problem can be expressed as
y (m) (t ) = f (t, y, y,..., y (m 1) )
y (p ) (t0 ) = y0(p ) , p = 0, 1, 2, ..., m 1
(1.1.5)
If the m conditions are prescribed at more than one point, these are called boundary conditions.
The differential equation together with the boundary conditions is known as the boundary value problem.
We shall now discuss the basic concepts needed for the numerical solution of initial value problems.
v1 (t0 ) = y0
v2 = v3
v2 (t0 ) = y0
v m1 = vm
vm 1 (t0 ) = y0
v m = f (t , v1 , v2 ,..., vm )
vm (t0 ) = y0
( m 2)
( m 1)
(1.2.1)
where
(1.2.2)
v = [v1 , v2 ,..., vm ]T ,
f (t, v) = [v2 , v3 ... f (t , v1 , v2 ,.., vm )]T ,
h = [ y0 , y0 ,.., y0( m 1) ]T
We shall, therefore, be concerned with methods for finding out numerical approximations to the
solution of the equation
dy
= f (t , y ), y (t0 ) = y0
dt
(1.2.3)
However, before attempting to approximate the solution numerically, we must ask if the problem
has any solution. This can be answered easily in the case of initial value problem for ordinary differential
equation by Theorem 1.1.
Theorem 1.1: We assume that f (t, y) satisfies the following conditions:
(i) f (t, y) is a real function,
(ii) f (t, y) is defined and continuous in the strip
t [t0, b], y ( , ),
(iii) there exists a constant L such that for any t [t0 , b] and for any two numbers y1 and y2.
| f (t , y1 ) f (t , y2 ) | L | y1 y2 |,
Ey (t ) = y (t + h)
y (t ) = y (t + h ) y (t )
y (t ) = y (t ) y (t h)
h
y (t ) = y t + y t
2
2
y (t ) =
1 h
yt + +
2 2
h
y t
2
Dy (t ) = y (t )
n y (t ) =
n!
k =0
n
n y (t ) =
2n y (t ) =
n!
k =0
2n
(2n)!
k =0
(1.3.1)
(1.3.2)
(1.3.3)
For linking the difference operators with the differential operator we consider Taylors formula
y (t + h) = y (t ) + h y (t ) +
h2
y (t ) + ...
2!
(hD) 2
Ey(t) = 1 + hD +
...
+
y (t ) .
2!
The series in parentheses is the expression for the exponential and hence we have (formally)
E = ehD
(1.3.4)
Treating Equation (1.3.4) as an identity, we may derive expressions for any order derivative in
terms of the various difference operators. In Table 1.1 we list the relations between the operators. There
are many difference approximations possible for a given differential equation. The selection of a particular
difference relation is usually determined by the nature of the truncation error associated with the
approximation.
As an example, let us develop expressions for the first order derivative in terms of the forward,
backward, and central difference operators. We assume that the function y(t) may be expanded in a
Taylor series in the closed interval t h t t + h. We have
y (t h) = y (t ) h y (t ) +
h2
hn ( n )
y "(t ) ...(1)n
y (t ) + ...
2!
n!
(1.3.5)
y(t ) dy
=
+ O ( h)
h
dt
(1.3.6)
However,
y (t ) dy
=
+ O (h 2 )
(1.3.7)
h
dt
The forward and backward differences are accurate to order h; the average central difference is
accurate to order h2.
Thus replacing the derivatives in a differential equation by the difference approximations results
in an equation which may be considered as relating differences of an unknown function and may be
called a difference equation. The order of a difference equation is the number of intervals separating the
largest and the smallest arguments of the dependent variable. A linear difference equation is one in
which no product of the dependent variable with itself or any of its differences appear. A difference
equation is homogeneous if all nonzero terms involve the dependent variable; otherwise it is
inhomogeneous. Furthermore, a difference equation may have coefficients which are constants or
functions of the independent variable. If the coefficients are constants, we call it a difference equation
with constant coefficients; otherwise we call it an equation with variable coefficients.
+1
(1 )1
E1
(1 )1 1
1E1
1 (1 + )1
E1/2 E1/2
(1 + )1/ 2
(1 )1/ 2
hD
2sinh
1/ 2
1 (1 )
2
2
1 +
4
hD
cosh
log (1 )
2sinh 1
2
hD
hD
1
( E1/ 2
2
1/ 2
+ E 1/ 2 ) 1 + (1 + )
2
log E
log (1 + )
1
1 + 2 +
2
hD
2
1 +
4
ehD
2
1 2
+ 1 +
2
4
ehD 1
2
1 +
4
1 ehD
1
2 +
2
(1.3.8)
(1.3.9)
yn = A n
(1.3.11)
This equation is called the characteristics equation of the difference equation (1.3.9).
j =1
j =1
(1.3.12)
yn( H ) = b1 in + b2 n 1n + b j nj
j =3
(1.3.13)
Complex Roots
For a polynomial with real coefficients, the complex roots occur as conjugate pairs. Let 1 = + i
= rei and 2 = i = rei, where r = (2 + 2)1/2 and = tan1 (/), be the complex roots of
Eq. (1.3.11) and the all other roots 3, 4,.., k be real and distinct. Then we have
yn( H ) = r n / 2 [ b1cos( n) + b2 sin(n) ] + b3 3n + .... + bk nk
where bj are arbitrary constants.
(1.3.14)
Particular Integral
To find the particular solution yn( P) of (1.3.8) we shall confine ourselves to the case when gn(= g) is
k
independent of n. If
yn( P ) =
(1.3.15)
aj
j =0
(H )
g
k
aj
(1.3.16)
j =0
The k arbitrary parameters in yn( H ) can be determined in such a way that for n = 0, 1, 2, ..., k1,
the variable y takes the assigned values y0, y1, , yk1.
or
where
f
f
y = f ( t , y ) + (t t )
+ ( y y )
+ O(( y y )2 )
t
y
( t , y )
( t , y )
(1.4.1)
y = y + C
(1.4.2)
f ( t , y )
f ( t , y )
f ( t , y ) and
C = f ( t , y ) + (t t )
y
.
,
t
y
y
The homogeneous local linear form
=
y = y
where =
(1.4.3)
f
is called the test equation of Eq. (1.2.3). For < 0, the solution of Eq. (1.4.3), y(t) = cet
y
y = f (t , y, y ) ,
y (t0 ) = y0 , y (t0 ) = y0
(1.4.4)
can also be obtained by expanding the function f (t , y , y) in Taylor series about the point ( t , y , y) and
truncating after the first order terms. We have
(1.4.5)
y = 2y w2 y + k
where
w2 =
and
f ( t , y , y )
,
y
2 =
k = f ( t , y , y ) + (t t )
f ( t , y , y )
,
y
f ( t , y , y )
f ( t , y , y )
f ( t , y , y )
y
y
t
y
y
y = 2y w2 y
is called the test equation of the second order initial value problem (1.4.4). The differential equation
(1.4.6) is equivalent to the following system of equations
y = P y
where
(1.4.7)
0
y = [ y1 , y2 ]T , P = 2
w
y1 = y ,
1
,
2
y2 = y .
The nature of the solution of (1.4.6) or (1.4.7) depends on the roots 1 and 2 of the characteristic
equation of the matrix P, that is, of the equation
(1.4.8)
2 + 2 + w2 = 0
1 = [ + 2 w2 ], 2 = [ 2 w2 ].
We now consider the following cases:
(i) > 0, w 0, > w. The characteristic roots are real, distinct and negative. Therefore, the
solutions are exponentially decreasing. For w = 0, the test equation (1.4.6) becomes
y "+ 2y = 0,
>0
(1.4.9)
(ii) < 0, w 0, | | > w. The characteristics roots are real, distinct and positive. Therefore, the
solutions are exponentially increasing. For w = 0, the test equation (1.4.6) becomes
y + 2y = 0,
<0
(1.4.10)
(iii) w > 0, and | | < w. The characteristics roots are a complex pair. Therefore, the solutions are
oscillating. If < 0, then the solution is an oscillating function whose amplitude becomes
unbounded as t . If > 0 then the solution is a damped oscillating function as t .
For = 0, the test equations (1.4.6) becomes
y + w2 y = 0
(1.4.11)
whose solution is periodic with period (2/w). We observe that if 1 and 2 ( = 0, w > 0) are pure
imaginary numbers then the solution of the test equation (1.4.3) will also be periodic if we allow to be
a pure imaginary number.
(1.4.12)
dy
= Ay
dt
(1.4.14)
with initial conditions y(0) = y0 is called the test equation of the initial value problem (1.4.12). The
general solution of (1.4.13) may be written as
m
y (t ) = ci eit yi + I (t )
i =1
(1.4.15)
where the matrix A has distinct eigenvalues i and the corresponding eigenvectors yi. The function f(t)
is the particular solution of (1.4.13). The matrix equation (1.4.13) may be decoupled by applying a
similarity transformation.
Let P = [ y1 , y2 ,..., ym ] be the matrix of eigenvectors. Set y = P z. Then,
y = P z = A P z + b(t )
(1.4.16)
z = D z + h(t )
(1.4.17)
where h(t ) = P 1b(t ) and D = P 1 AP is the diagonal matrix with diagonal elements 1, 2, ...,m.
The solution of (1.4.17) is given by
zi (t ) = eit ( e i t hi (t )dt + ci ) , i = 1, 2,, m
Using a similarity transformation of A to the test equation (1.4.14), we get
z = D z
(1.4.18)
(1.4.19)
This is a set of independent equations each of the form zi = i zi . Thus the nature of the solutions
of the systems of initial value problems may be discussed by using the test equation (1.4.3) for the
following:
(i) real, (ii) pure imaginary, and (iii) complex.
Theorem 1.2: The solutions of the system (1.4.13) with b(t) = 0 are said to be stable (asymptotically
stable), i.e., yi 0, i = 1,2,, m as t , if and only if all the eigenvalues of the matrix A have
negative real parts.
every point t have negative real parts and differ greatly in magnitude, i.e. the eigenvalues i satisfy the
conditions:
1. real part of i < 0
2. max | real part of i | >> min | real part of i |, i = 1,2,..., m
The property 2, of the system is called stiffness and can be quantified by the stiffness ratio, SR;
SR =
(1.4.20)
Stiffness occurs in the problem where there are two or more very different times scale of the
independent variable on which the dependent variables are changing. Time scale or time constant is a
term refer to the rate of change. For example, if the solution is c exp (t), then the time scale is | 1/ |.
Thus, time scale is the time over which the solution increases or decreases by a factor e. Now in a
system of differential equations, if the different components have widely varying time scales, then for a
meaningful solution, we require a timestep which is smaller than the smallest of these time scales.
Example 1.1: Obtain a general solution of the system of equation
dy1
= 2000y1 + 999.75y2 + 1000.25
dt
dy2
= y1 y2
dt
with initial conditions y1(0) = 0, y2 (0) = 2.
Solution: In matrix form, we write the given system as
dy
= Ay + b (t )
dt
where
y1
2000 999.75
1000.25
A=
, y = y , and b(t) = 0
1
2
Consider the homogeneous system
y = Ay
The characteristic equation of A is
A I =
2000 999.75
= 2 + 2001 + 1000.25 = 0
1
1
10
0.5 999.75 y1
1 1999.5 y = 0
2
The eigenvector is y1 = [1999.5 1]
For 2 = 0.5, we have the system
1999.5 999.75 y1
=0
1
0.5 y2
The eigenvector is y2 = [1 2] .
The matrix of eigenvectors is
1
1999.5 1
1 2
1
P=
, P = 4000 1 1999.5
1
2
0.5
2 z2
0
1
or
1999.5 z1 + z2
y=
z1 + 2 z2
h(t ) = P 1b(t ) =
1 1000.25
1 2
1 2000.5
1 1999.5 0 =
4000
4000 1000.25
0.500125
=
0.2500625
The first order differential equations become
z1 = 2000.5z1 + 0.500125
z2 = 0.5z2 + 0.2500625
The solutions of these first order equations are
y1 = 1999.5 z1 + z2
y2 = z1 + 2 z2