SlideShare a Scribd company logo
1 of 6
Download to read offline
Numerical solution of ordinary and
partial differential Equations
Module 6: Runge-Kutta methods - I
Dr.rer.nat. Narni Nageswara Rao∗
August 2011
1 Single Step Methods
The methods for the solution of the initial value problem
y = f(t, y), y(t0) = y0, t ∈ [t0, b] (1)
can be classified mainly into two types. They are (i) Single step methods
and (ii) Multi step methods.
In single step methods, the solution at any point is obtained using the
solution at only the previous point. Thus, a general single step method can
be written as
yj+1 = yj + hφ(tj+1, tj, yj, yj+1, h) (2)
where φ is a function of the arguments tj, tj+1, yj, yj+1, h and also depends
on f. We often write it as φ(t, y, h). This function φ is called the increment
function. If yj+1 can be obtained simply by evaluating the right hand side
of (2), then the method is called an explicit method. In this case, the
method is of the form
yj+1 = yj + hφ(tj, yj, h) (3)
If the right hand side of (2) depends on yj+1 also, then it is called an implicit
method. The general form in this case is as given in (2).
∗
nnrao maths@yahoo.co.in
1
1.1 Local truncation error or Discretization error
The true(exact) value y(tj) satisfied the equation
y(tj+1) = y(tj) + hφ(tj+1, tj, yj, yj+1, h) + Tj+1
where Tj+1 is called the local truncation error or discretization error of the
method. Therefore, the truncation error is given by
Tj+1 = y(tj+1) − y(tj) − hφ(tj+1, tj, y(tj+1), y(tj), h) (4)
1.2 Order of a method
The order of a method is the largest integer p for which
1
h
Tj+1 = O(hp
) (5)
we now derive single step methods which have different increment functions.
2 Runge-Kutta Methods
The principle involved in the Runge-Kutta methods is explained as follows.
Integrating the Differential equation
y = f(t, y) on the interval [tj, tj+1] (6)
we get
tj+1
tj
dy
dt
dt =
tj+1
tj
f(t, y)dt (7)
By the mean value theorem of integral calculus, we obtain
y(tj+1) = y(tj) + hf(tj + θh, y(tj + θh)), 0 < θ < 1 (8)
Any value of θ ∈ [0, 1] produces a numerical method. Consider the following
cases.
Case θ = 0 when θ = 0, we obtain the approximation
yj+1 = yj + hf(tj, yj) (9)
which is the Euler method.
2
Case θ = 1 when θ = 1, we obtain
y(tj+1) = y(tj) + hf(tj + h, y(tj))
we have the numerical method is
yj+1 = yj + hfj+1 (10)
which is the backward Euler method.
If we approximate yj+1 = yj + hfj in (10), that is Euler method, in the
argument of f, we get
yj+1 = yj + hf(tj + h, yj + hfj) (11)
If we put
K1 = hfj
K2 = hf(tj+1, yj + K1)
we get the method as
yj+1 = yj + K2 (12)
Case θ = 1
2
when θ = 1
2
, we obtain
y(tj+1) = y(tj) + hf tj +
h
2
, y tj +
h
2
(13)
However, tj + h
2
is not a nodal point.
If we approximate y tj + h
2
in (13), by Euler method with spacing h/2,
we get
y tj +
h
2
= yj +
h
2
fj
Then, we have the approximation
yj+1 = yj + hf tj +
h
2
, yj +
h
2
fj (14)
If we set
K1 = hfj
K2 = hf tj +
h
2
, yj +
1
2
K1
3
then (14) can be written as
yj+1 = yj + K2 (15)
Alternating, if we use the approximation
y tj +
h
2
≈
1
2
[y (tj) + y (tj + h)]
and the Euler method, we obtain
y tj +
h
2
≈
1
2
[f(tj, yj) + f(tj+1, yj + hfj)]
Thus, (13) may be approximated by
yj+1 = yj +
h
2
[f(tj, yj) + f(tj+1, yj + hfj)] (16)
If we set
K1 = hfj
K2 = hf(tj+1, yj + K1)
then, (16) can be written as
yj+1 = yj +
1
2
[K1 + K2] (17)
This method is also called Euler-Cauchy method.
Consider now, the equation (7). The integrand on the right hand side,
f(t, y), is the slope of the solution curve which varies continuously in the inter-
val [tj, tj+1]. In deriving the Euler method given by (9), we may interpret that
the slope of the solution curve, which varies continuously on [tj, tj+1] is ap-
proximated by the slope at the initial point, that is by f(tj, yj) ≈ f(tj, y(tj)).
similarly, the methods given in (10) and (13) may be interpreted as the cases
when the slope of the solution curve on [tj, tj+1] is approximated by a single
slope at the terminal point and mid point respectively.
3 General RK Mehtods
Runge-Kutta methods use a weighted average of slopes on the given interval
[tj, tj+1), instead of a single slope. Thus, the general Runge-Kutta methods
may be defined as
yj+1 = yj + h[weighted average of slopes on the given interval]
4
Consider ν slopes on [tj, tj+1]. Define
K1 = hf(tj + c1h, yj + a11K1 + a12K2 + · · · + a1νKν)
K2 = hf(tj + c2h, yj + a21K1 + a22K2 + · · · + a2νKν)
· · · = · · · · · · · · ·
Kν = hf(tj + cνh, yj + aν1K1 + aν2K2 + · · · + aννKν) (18)
The Runge-Kutta method is now defined by
yj+1 = yj + W1K1 + W2K2 + · · · + WνKν (19)
This is also called a ν-stage Runge-Kutta method.
It is a fully implicit method which uses ν evaluations of f. The matrix
of coefficients aij is the full ν × ν matrix
A =





a11 a12 · · · a1ν
a21 a22 · · · a2ν
...
...
...
...
aν1 aν2 · · · aνν





(20)
It is very difficult to derive the fully implicit methods. If in A, we set the
elements in the upper triangular part as zeros, then (18), (19) define Semi
implicit methods, where
K1 = hf(tj + c1h, yj + a11K1)
K2 = hf(tj + c2h, yj + a21K1 + a22K2)
· · · = · · · · · · · · ·
Kν = hf(tj + cνh, yj + aν1K1 + aν2K2 + · · · + aννKν) (21)
If in A, we set the elements on the diagonal and the upper triangular part as
zero, then (18), (19) define explicit methods, where
K1 = hf(tj, yj)
K2 = hf(tj + c2h, yj + a21K1)
K3 = hf(tj + c3h, yj + a31K1 + a32K2)
· · · = · · · · · · · · ·
Kν = hf(tj + cνh, yj + aν1K1 + aν2K2 + · · · + aν,ν−1Kν−1) (22)
As mentioned earlier, the methods defined by (18), (19) or (21), (19) or (22),
(19) should compare with the Taylor series method. Hence, to determine the
5
parameters ci’s, ai’s and Wi’s in the Runge-Kutta methods, we expand yj+1
and f’s in powers of h such that it agrees with the Taylor series expansion
of the solution of the differential equation up to a certain number of terms.
Butcher proposed a general way of writing the ν-stage explicit Runge-
Kutta method by the tableau 1.
0
c2 a21
c3 a31 a32
...
...
...
...
cν aν1 aν2 · · · aν,ν−1
W1 W2 · · · Wν−1 Wν
Table 1: Explicit Runge-Kutta method
6

More Related Content

What's hot

Quantitative norm convergence of some ergodic averages
Quantitative norm convergence of some ergodic averagesQuantitative norm convergence of some ergodic averages
Quantitative norm convergence of some ergodic averagesVjekoslavKovac1
 
On Twisted Paraproducts and some other Multilinear Singular Integrals
On Twisted Paraproducts and some other Multilinear Singular IntegralsOn Twisted Paraproducts and some other Multilinear Singular Integrals
On Twisted Paraproducts and some other Multilinear Singular IntegralsVjekoslavKovac1
 
Boundedness of the Twisted Paraproduct
Boundedness of the Twisted ParaproductBoundedness of the Twisted Paraproduct
Boundedness of the Twisted ParaproductVjekoslavKovac1
 
3 grechnikov
3 grechnikov3 grechnikov
3 grechnikovYandex
 
Recurrences
RecurrencesRecurrences
RecurrencesDEVTYPE
 
Estimates for a class of non-standard bilinear multipliers
Estimates for a class of non-standard bilinear multipliersEstimates for a class of non-standard bilinear multipliers
Estimates for a class of non-standard bilinear multipliersVjekoslavKovac1
 
A T(1)-type theorem for entangled multilinear Calderon-Zygmund operators
A T(1)-type theorem for entangled multilinear Calderon-Zygmund operatorsA T(1)-type theorem for entangled multilinear Calderon-Zygmund operators
A T(1)-type theorem for entangled multilinear Calderon-Zygmund operatorsVjekoslavKovac1
 
Norm-variation of bilinear averages
Norm-variation of bilinear averagesNorm-variation of bilinear averages
Norm-variation of bilinear averagesVjekoslavKovac1
 
Tales on two commuting transformations or flows
Tales on two commuting transformations or flowsTales on two commuting transformations or flows
Tales on two commuting transformations or flowsVjekoslavKovac1
 
Diifferential equation akshay
Diifferential equation akshayDiifferential equation akshay
Diifferential equation akshayakshay1234kumar
 
Gamma beta functions-1
Gamma   beta functions-1Gamma   beta functions-1
Gamma beta functions-1Selvaraj John
 
Solving the energy problem of helium final report
Solving the energy problem of helium final reportSolving the energy problem of helium final report
Solving the energy problem of helium final reportJamesMa54
 
Solovay Kitaev theorem
Solovay Kitaev theoremSolovay Kitaev theorem
Solovay Kitaev theoremJamesMa54
 
Gamma & Beta functions
Gamma & Beta functionsGamma & Beta functions
Gamma & Beta functionsSelvaraj John
 

What's hot (19)

Quantitative norm convergence of some ergodic averages
Quantitative norm convergence of some ergodic averagesQuantitative norm convergence of some ergodic averages
Quantitative norm convergence of some ergodic averages
 
On Twisted Paraproducts and some other Multilinear Singular Integrals
On Twisted Paraproducts and some other Multilinear Singular IntegralsOn Twisted Paraproducts and some other Multilinear Singular Integrals
On Twisted Paraproducts and some other Multilinear Singular Integrals
 
Boundedness of the Twisted Paraproduct
Boundedness of the Twisted ParaproductBoundedness of the Twisted Paraproduct
Boundedness of the Twisted Paraproduct
 
3 grechnikov
3 grechnikov3 grechnikov
3 grechnikov
 
Statistical Inference Using Stochastic Gradient Descent
Statistical Inference Using Stochastic Gradient DescentStatistical Inference Using Stochastic Gradient Descent
Statistical Inference Using Stochastic Gradient Descent
 
Recurrences
RecurrencesRecurrences
Recurrences
 
Master theorem
Master theoremMaster theorem
Master theorem
 
Estimates for a class of non-standard bilinear multipliers
Estimates for a class of non-standard bilinear multipliersEstimates for a class of non-standard bilinear multipliers
Estimates for a class of non-standard bilinear multipliers
 
A T(1)-type theorem for entangled multilinear Calderon-Zygmund operators
A T(1)-type theorem for entangled multilinear Calderon-Zygmund operatorsA T(1)-type theorem for entangled multilinear Calderon-Zygmund operators
A T(1)-type theorem for entangled multilinear Calderon-Zygmund operators
 
Ch06 4
Ch06 4Ch06 4
Ch06 4
 
Norm-variation of bilinear averages
Norm-variation of bilinear averagesNorm-variation of bilinear averages
Norm-variation of bilinear averages
 
Time complexity
Time complexityTime complexity
Time complexity
 
Tales on two commuting transformations or flows
Tales on two commuting transformations or flowsTales on two commuting transformations or flows
Tales on two commuting transformations or flows
 
mathFin01
mathFin01mathFin01
mathFin01
 
Diifferential equation akshay
Diifferential equation akshayDiifferential equation akshay
Diifferential equation akshay
 
Gamma beta functions-1
Gamma   beta functions-1Gamma   beta functions-1
Gamma beta functions-1
 
Solving the energy problem of helium final report
Solving the energy problem of helium final reportSolving the energy problem of helium final report
Solving the energy problem of helium final report
 
Solovay Kitaev theorem
Solovay Kitaev theoremSolovay Kitaev theorem
Solovay Kitaev theorem
 
Gamma & Beta functions
Gamma & Beta functionsGamma & Beta functions
Gamma & Beta functions
 

Viewers also liked

Cequel: Chemical Equilibrium in Excel
Cequel:  Chemical Equilibrium in ExcelCequel:  Chemical Equilibrium in Excel
Cequel: Chemical Equilibrium in ExcelJonathan French
 
Numerical solution using runge kutta with programming in c++
Numerical solution using runge kutta with programming in c++Numerical solution using runge kutta with programming in c++
Numerical solution using runge kutta with programming in c++Vijay Choudhary
 
MAT210/DiffEq/Runge-Kutta 2nd Order 2013-14
MAT210/DiffEq/Runge-Kutta 2nd Order 2013-14MAT210/DiffEq/Runge-Kutta 2nd Order 2013-14
MAT210/DiffEq/Runge-Kutta 2nd Order 2013-14John Ham
 
Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3Dr. Nirav Vyas
 
Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2Dr. Nirav Vyas
 
Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1Dr. Nirav Vyas
 

Viewers also liked (8)

Cequel: Chemical Equilibrium in Excel
Cequel:  Chemical Equilibrium in ExcelCequel:  Chemical Equilibrium in Excel
Cequel: Chemical Equilibrium in Excel
 
Numerical solution using runge kutta with programming in c++
Numerical solution using runge kutta with programming in c++Numerical solution using runge kutta with programming in c++
Numerical solution using runge kutta with programming in c++
 
MAT210/DiffEq/Runge-Kutta 2nd Order 2013-14
MAT210/DiffEq/Runge-Kutta 2nd Order 2013-14MAT210/DiffEq/Runge-Kutta 2nd Order 2013-14
MAT210/DiffEq/Runge-Kutta 2nd Order 2013-14
 
Unit vi
Unit viUnit vi
Unit vi
 
Es272 ch7
Es272 ch7Es272 ch7
Es272 ch7
 
Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3
 
Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2
 
Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1
 

Similar to Ma2002 1.6 rm

Mit18 330 s12_chapter5
Mit18 330 s12_chapter5Mit18 330 s12_chapter5
Mit18 330 s12_chapter5CAALAAA
 
quan2009.pdf
quan2009.pdfquan2009.pdf
quan2009.pdfTriPham86
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical AnalysisMostafijur Rahman
 
NONLINEAR DIFFERENCE EQUATIONS WITH SMALL PARAMETERS OF MULTIPLE SCALES
NONLINEAR DIFFERENCE EQUATIONS WITH SMALL PARAMETERS OF MULTIPLE SCALESNONLINEAR DIFFERENCE EQUATIONS WITH SMALL PARAMETERS OF MULTIPLE SCALES
NONLINEAR DIFFERENCE EQUATIONS WITH SMALL PARAMETERS OF MULTIPLE SCALESTahia ZERIZER
 
Lesson 7: Vector-valued functions
Lesson 7: Vector-valued functionsLesson 7: Vector-valued functions
Lesson 7: Vector-valued functionsMatthew Leingang
 
adams1jhfdkjshfkjfhifhdsufhuidfhidfk.pdf
adams1jhfdkjshfkjfhifhdsufhuidfhidfk.pdfadams1jhfdkjshfkjfhifhdsufhuidfhidfk.pdf
adams1jhfdkjshfkjfhifhdsufhuidfhidfk.pdfmrmio7880
 
research paper publication
research paper publicationresearch paper publication
research paper publicationsamuu45sam
 
Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examplesSajjad Hossain
 
An Approach For Solving Nonlinear Programming Problems
An Approach For Solving Nonlinear Programming ProblemsAn Approach For Solving Nonlinear Programming Problems
An Approach For Solving Nonlinear Programming ProblemsMary Montoya
 
SOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMS
SOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMSSOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMS
SOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMSTahia ZERIZER
 
Physical Chemistry Assignment Help
Physical Chemistry Assignment HelpPhysical Chemistry Assignment Help
Physical Chemistry Assignment HelpEdu Assignment Help
 
Application of Module Structure of Algebra in Homomorphic Signal Processing
Application of Module Structure of Algebra in Homomorphic Signal ProcessingApplication of Module Structure of Algebra in Homomorphic Signal Processing
Application of Module Structure of Algebra in Homomorphic Signal Processingijsrd.com
 

Similar to Ma2002 1.6 rm (20)

Ma2002 1.7 rm
Ma2002 1.7 rmMa2002 1.7 rm
Ma2002 1.7 rm
 
Ma2002 1.10 rm
Ma2002 1.10 rmMa2002 1.10 rm
Ma2002 1.10 rm
 
Mit18 330 s12_chapter5
Mit18 330 s12_chapter5Mit18 330 s12_chapter5
Mit18 330 s12_chapter5
 
quan2009.pdf
quan2009.pdfquan2009.pdf
quan2009.pdf
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical Analysis
 
NONLINEAR DIFFERENCE EQUATIONS WITH SMALL PARAMETERS OF MULTIPLE SCALES
NONLINEAR DIFFERENCE EQUATIONS WITH SMALL PARAMETERS OF MULTIPLE SCALESNONLINEAR DIFFERENCE EQUATIONS WITH SMALL PARAMETERS OF MULTIPLE SCALES
NONLINEAR DIFFERENCE EQUATIONS WITH SMALL PARAMETERS OF MULTIPLE SCALES
 
Stirling theorem
Stirling theoremStirling theorem
Stirling theorem
 
Ma2002 1.19 rm
Ma2002 1.19 rmMa2002 1.19 rm
Ma2002 1.19 rm
 
Lesson 7: Vector-valued functions
Lesson 7: Vector-valued functionsLesson 7: Vector-valued functions
Lesson 7: Vector-valued functions
 
Ma2002 1.12 rm
Ma2002 1.12 rmMa2002 1.12 rm
Ma2002 1.12 rm
 
adams1jhfdkjshfkjfhifhdsufhuidfhidfk.pdf
adams1jhfdkjshfkjfhifhdsufhuidfhidfk.pdfadams1jhfdkjshfkjfhifhdsufhuidfhidfk.pdf
adams1jhfdkjshfkjfhifhdsufhuidfhidfk.pdf
 
research paper publication
research paper publicationresearch paper publication
research paper publication
 
Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examples
 
Ma2002 1.9 rm
Ma2002 1.9 rmMa2002 1.9 rm
Ma2002 1.9 rm
 
An Approach For Solving Nonlinear Programming Problems
An Approach For Solving Nonlinear Programming ProblemsAn Approach For Solving Nonlinear Programming Problems
An Approach For Solving Nonlinear Programming Problems
 
SOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMS
SOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMSSOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMS
SOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMS
 
Term project
Term projectTerm project
Term project
 
Physical Chemistry Assignment Help
Physical Chemistry Assignment HelpPhysical Chemistry Assignment Help
Physical Chemistry Assignment Help
 
Application of Module Structure of Algebra in Homomorphic Signal Processing
Application of Module Structure of Algebra in Homomorphic Signal ProcessingApplication of Module Structure of Algebra in Homomorphic Signal Processing
Application of Module Structure of Algebra in Homomorphic Signal Processing
 
Ma2002 1.23 rm
Ma2002 1.23 rmMa2002 1.23 rm
Ma2002 1.23 rm
 

More from Ramakrishna Paduchuri (19)

M 1.5 rm
M 1.5 rmM 1.5 rm
M 1.5 rm
 
M 1.5 p4.s
M 1.5 p4.sM 1.5 p4.s
M 1.5 p4.s
 
M 1.5 p4.q
M 1.5 p4.qM 1.5 p4.q
M 1.5 p4.q
 
M 1.5 p3.s
M 1.5 p3.sM 1.5 p3.s
M 1.5 p3.s
 
M 1.5 p3.q
M 1.5 p3.qM 1.5 p3.q
M 1.5 p3.q
 
M 1.5 p2.s
M 1.5 p2.sM 1.5 p2.s
M 1.5 p2.s
 
M 1.5 p2.q
M 1.5 p2.qM 1.5 p2.q
M 1.5 p2.q
 
M 1.5 p1.s
M 1.5 p1.sM 1.5 p1.s
M 1.5 p1.s
 
M 1.5 p1.q
M 1.5 p1.qM 1.5 p1.q
M 1.5 p1.q
 
M 1.4 rm
M 1.4 rmM 1.4 rm
M 1.4 rm
 
M 1.4 ap1
M 1.4 ap1M 1.4 ap1
M 1.4 ap1
 
M 1.3 rm
M 1.3 rmM 1.3 rm
M 1.3 rm
 
M 1.1 rm
M 1.1 rmM 1.1 rm
M 1.1 rm
 
M 1.3 ap1
M 1.3 ap1M 1.3 ap1
M 1.3 ap1
 
Ma2002 1.22 rm
Ma2002 1.22 rmMa2002 1.22 rm
Ma2002 1.22 rm
 
Ma2002 1.21 rm
Ma2002 1.21 rmMa2002 1.21 rm
Ma2002 1.21 rm
 
Ma2002 1.20 rm
Ma2002 1.20 rmMa2002 1.20 rm
Ma2002 1.20 rm
 
Ma2002 1.18 rm
Ma2002 1.18 rmMa2002 1.18 rm
Ma2002 1.18 rm
 
Ma2002 1.17 rm
Ma2002 1.17 rmMa2002 1.17 rm
Ma2002 1.17 rm
 

Recently uploaded

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 

Recently uploaded (20)

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 

Ma2002 1.6 rm

  • 1. Numerical solution of ordinary and partial differential Equations Module 6: Runge-Kutta methods - I Dr.rer.nat. Narni Nageswara Rao∗ August 2011 1 Single Step Methods The methods for the solution of the initial value problem y = f(t, y), y(t0) = y0, t ∈ [t0, b] (1) can be classified mainly into two types. They are (i) Single step methods and (ii) Multi step methods. In single step methods, the solution at any point is obtained using the solution at only the previous point. Thus, a general single step method can be written as yj+1 = yj + hφ(tj+1, tj, yj, yj+1, h) (2) where φ is a function of the arguments tj, tj+1, yj, yj+1, h and also depends on f. We often write it as φ(t, y, h). This function φ is called the increment function. If yj+1 can be obtained simply by evaluating the right hand side of (2), then the method is called an explicit method. In this case, the method is of the form yj+1 = yj + hφ(tj, yj, h) (3) If the right hand side of (2) depends on yj+1 also, then it is called an implicit method. The general form in this case is as given in (2). ∗ nnrao maths@yahoo.co.in 1
  • 2. 1.1 Local truncation error or Discretization error The true(exact) value y(tj) satisfied the equation y(tj+1) = y(tj) + hφ(tj+1, tj, yj, yj+1, h) + Tj+1 where Tj+1 is called the local truncation error or discretization error of the method. Therefore, the truncation error is given by Tj+1 = y(tj+1) − y(tj) − hφ(tj+1, tj, y(tj+1), y(tj), h) (4) 1.2 Order of a method The order of a method is the largest integer p for which 1 h Tj+1 = O(hp ) (5) we now derive single step methods which have different increment functions. 2 Runge-Kutta Methods The principle involved in the Runge-Kutta methods is explained as follows. Integrating the Differential equation y = f(t, y) on the interval [tj, tj+1] (6) we get tj+1 tj dy dt dt = tj+1 tj f(t, y)dt (7) By the mean value theorem of integral calculus, we obtain y(tj+1) = y(tj) + hf(tj + θh, y(tj + θh)), 0 < θ < 1 (8) Any value of θ ∈ [0, 1] produces a numerical method. Consider the following cases. Case θ = 0 when θ = 0, we obtain the approximation yj+1 = yj + hf(tj, yj) (9) which is the Euler method. 2
  • 3. Case θ = 1 when θ = 1, we obtain y(tj+1) = y(tj) + hf(tj + h, y(tj)) we have the numerical method is yj+1 = yj + hfj+1 (10) which is the backward Euler method. If we approximate yj+1 = yj + hfj in (10), that is Euler method, in the argument of f, we get yj+1 = yj + hf(tj + h, yj + hfj) (11) If we put K1 = hfj K2 = hf(tj+1, yj + K1) we get the method as yj+1 = yj + K2 (12) Case θ = 1 2 when θ = 1 2 , we obtain y(tj+1) = y(tj) + hf tj + h 2 , y tj + h 2 (13) However, tj + h 2 is not a nodal point. If we approximate y tj + h 2 in (13), by Euler method with spacing h/2, we get y tj + h 2 = yj + h 2 fj Then, we have the approximation yj+1 = yj + hf tj + h 2 , yj + h 2 fj (14) If we set K1 = hfj K2 = hf tj + h 2 , yj + 1 2 K1 3
  • 4. then (14) can be written as yj+1 = yj + K2 (15) Alternating, if we use the approximation y tj + h 2 ≈ 1 2 [y (tj) + y (tj + h)] and the Euler method, we obtain y tj + h 2 ≈ 1 2 [f(tj, yj) + f(tj+1, yj + hfj)] Thus, (13) may be approximated by yj+1 = yj + h 2 [f(tj, yj) + f(tj+1, yj + hfj)] (16) If we set K1 = hfj K2 = hf(tj+1, yj + K1) then, (16) can be written as yj+1 = yj + 1 2 [K1 + K2] (17) This method is also called Euler-Cauchy method. Consider now, the equation (7). The integrand on the right hand side, f(t, y), is the slope of the solution curve which varies continuously in the inter- val [tj, tj+1]. In deriving the Euler method given by (9), we may interpret that the slope of the solution curve, which varies continuously on [tj, tj+1] is ap- proximated by the slope at the initial point, that is by f(tj, yj) ≈ f(tj, y(tj)). similarly, the methods given in (10) and (13) may be interpreted as the cases when the slope of the solution curve on [tj, tj+1] is approximated by a single slope at the terminal point and mid point respectively. 3 General RK Mehtods Runge-Kutta methods use a weighted average of slopes on the given interval [tj, tj+1), instead of a single slope. Thus, the general Runge-Kutta methods may be defined as yj+1 = yj + h[weighted average of slopes on the given interval] 4
  • 5. Consider ν slopes on [tj, tj+1]. Define K1 = hf(tj + c1h, yj + a11K1 + a12K2 + · · · + a1νKν) K2 = hf(tj + c2h, yj + a21K1 + a22K2 + · · · + a2νKν) · · · = · · · · · · · · · Kν = hf(tj + cνh, yj + aν1K1 + aν2K2 + · · · + aννKν) (18) The Runge-Kutta method is now defined by yj+1 = yj + W1K1 + W2K2 + · · · + WνKν (19) This is also called a ν-stage Runge-Kutta method. It is a fully implicit method which uses ν evaluations of f. The matrix of coefficients aij is the full ν × ν matrix A =      a11 a12 · · · a1ν a21 a22 · · · a2ν ... ... ... ... aν1 aν2 · · · aνν      (20) It is very difficult to derive the fully implicit methods. If in A, we set the elements in the upper triangular part as zeros, then (18), (19) define Semi implicit methods, where K1 = hf(tj + c1h, yj + a11K1) K2 = hf(tj + c2h, yj + a21K1 + a22K2) · · · = · · · · · · · · · Kν = hf(tj + cνh, yj + aν1K1 + aν2K2 + · · · + aννKν) (21) If in A, we set the elements on the diagonal and the upper triangular part as zero, then (18), (19) define explicit methods, where K1 = hf(tj, yj) K2 = hf(tj + c2h, yj + a21K1) K3 = hf(tj + c3h, yj + a31K1 + a32K2) · · · = · · · · · · · · · Kν = hf(tj + cνh, yj + aν1K1 + aν2K2 + · · · + aν,ν−1Kν−1) (22) As mentioned earlier, the methods defined by (18), (19) or (21), (19) or (22), (19) should compare with the Taylor series method. Hence, to determine the 5
  • 6. parameters ci’s, ai’s and Wi’s in the Runge-Kutta methods, we expand yj+1 and f’s in powers of h such that it agrees with the Taylor series expansion of the solution of the differential equation up to a certain number of terms. Butcher proposed a general way of writing the ν-stage explicit Runge- Kutta method by the tableau 1. 0 c2 a21 c3 a31 a32 ... ... ... ... cν aν1 aν2 · · · aν,ν−1 W1 W2 · · · Wν−1 Wν Table 1: Explicit Runge-Kutta method 6