Lecture 35 Numerical Analysis
Chapter 7 Ordinary Differential Equations
Introduction Taylor Series Euler Method Runge-Kutta Method Predictor Corrector Method
INTRODUCTION Many problems in science and engineering when formulated mathematically are readily expressed in terms of ordinary differential equations (ODE) with initial and boundary condition.
Example The trajectory of a ballistic missile, the motion of an artificial satellite in its orbit, are governed by ordinary differential equations.
Theories concerning electrical networks, bending of beams, stability of aircraft, etc., are modeled by differential equations. To be more precise, the rate of change of any quantity with respect to another can be modeled by an ODE
Closed form solutions may not be possible to obtain, for every modeled problem, while numerical methods exist, to solve them using computers.
In general, a linear or non-linear ordinary differential equation can be written as
Here we shall focus on a system of first order differential equations of the form with the initial condition y (t 0 ) = y 0, which is called an initial value problem (IVP).
It is justified, in view of the fact that any higher order ODE can be reduced to a system of first order differential equations by substitution.
For example, consider a second order differential equation of the form
Introducing the substitution the above equation reduces to a system of two first order differential equations, such as the above equation reduces to a system of two first order differential equations, such as
Theorem Let f (t, y) be real and continuous in the strip R, defined by
Then for anyand for any y 1, y 2, there exists a constant L, satisfying the inequality so that for every Here, L is called Lipschitz constant.
If the above conditions are satisfied, then for any y 0, the IVP has a unique solution y ( t ), for In fact, we assume the existence and uniqueness of the solution to the above IVP
The function may be linear or non-linear. We also assume that the function f (t, y) is sufficiently differentiable with respect to either t or y.
TAYLOR’S SERIES METHOD
Consider an initial value problem described by Here, we assume that f (t, y) is sufficiently differentiable with respect to x and y.
If y (t) is the exact solution, we can expand y (t) by Taylor’s series about the point t = t 0 and obtain
Since, the solution is not known, the derivatives in the above expansion are not known explicitly. However, f is assumed to be sufficiently differentiable and therefore, the derivatives can be obtained directly from the given differential equation.
Noting that f is an implicit function of y, we have
Similarly
Continuing in this manner, we can express any derivative of y in terms of f (t, y) and its partial derivatives.
Example Using Taylor’s series method, find the solution of the initial value problem at t = 1.2, with h = 0.1 and compare the result with the closed form solution
Solution Let us compute the first few derivatives from the given differential equation as follows:
Prescribing the initial condition, that is, at t 0 =1, y 0 – y (t 0 ) = 0, we have
Now, using Taylor’s series method, we have
Substituting the above values of the derivatives, and the initial condition, we obtain
Therefore, Taking y 1 = at t = 1.1, the values of the derivatives are
Substituting the value of y 1 and its derivatives into Taylor’s series expansion we get, after retaining terms up to fifth derivative only……
To obtain the closed form solution, we rewrite the given IVP as or On integration, we get
Using the initial condition, we get or Therefore, the closed form solution is
When t = 1.2, the closed form solution becomes
Lecture 35 Numerical Analysis