SlideShare a Scribd company logo
Numerical Methods
Ordinary Differential Equations - 3
Dr. N. B. Vyas
Department of Mathematics,
Atmiya Institute of Technology & Science,
Rajkot (Gujarat) - INDIA
niravbvyas@gmail.com
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge’s Method: (Runge-Kutta Method of 3rd Order)
Named after German mathematicians CARL RUNGE
(1856-1927) and WILHELM KUTTA (1867-1944)
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge’s Method: (Runge-Kutta Method of 3rd Order)
Named after German mathematicians CARL RUNGE
(1856-1927) and WILHELM KUTTA (1867-1944)
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge’s Method: (Runge-Kutta Method of 3rd Order)
Named after German mathematicians CARL RUNGE
(1856-1927) and WILHELM KUTTA (1867-1944)
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf x0 + h
2
, y0 + k1
2
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge’s Method: (Runge-Kutta Method of 3rd Order)
Named after German mathematicians CARL RUNGE
(1856-1927) and WILHELM KUTTA (1867-1944)
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf x0 + h
2
, y0 + k1
2
k = hf (x0 + h, y0 + k1)
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge’s Method: (Runge-Kutta Method of 3rd Order)
Named after German mathematicians CARL RUNGE
(1856-1927) and WILHELM KUTTA (1867-1944)
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf x0 + h
2
, y0 + k1
2
k = hf (x0 + h, y0 + k1)
k3 = hf (x0 + h, y0 + k )
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge’s Method: (Runge-Kutta Method of 3rd Order)
Named after German mathematicians CARL RUNGE
(1856-1927) and WILHELM KUTTA (1867-1944)
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf x0 + h
2
, y0 + k1
2
k = hf (x0 + h, y0 + k1)
k3 = hf (x0 + h, y0 + k )
Finally calculate
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge’s Method: (Runge-Kutta Method of 3rd Order)
Named after German mathematicians CARL RUNGE
(1856-1927) and WILHELM KUTTA (1867-1944)
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf x0 + h
2
, y0 + k1
2
k = hf (x0 + h, y0 + k1)
k3 = hf (x0 + h, y0 + k )
Finally calculate
k = 1
6
(k1 + 4k2 + k3)
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge’s Method: (Runge-Kutta Method of 3rd Order)
Named after German mathematicians CARL RUNGE
(1856-1927) and WILHELM KUTTA (1867-1944)
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf x0 + h
2
, y0 + k1
2
k = hf (x0 + h, y0 + k1)
k3 = hf (x0 + h, y0 + k )
Finally calculate
k = 1
6
(k1 + 4k2 + k3)
required approximate value of y = y0 + k
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge’s Method
Ex. Use Runge’s method to approximate y when
x = 1.1 given that y = 1.2 when x = 1 and
dy
dx
= 3x + y2
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge’s Method
Sol. We have
dy
dx
= 3x + y2
, ∴ f(x, y) = 3x + y2
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge’s Method
Sol. We have
dy
dx
= 3x + y2
, ∴ f(x, y) = 3x + y2
x0 = 1, y0 = 1.2 and h = 0.1
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge’s Method
Sol. We have
dy
dx
= 3x + y2
, ∴ f(x, y) = 3x + y2
x0 = 1, y0 = 1.2 and h = 0.1
k1 = hf(x0, y0)
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge’s Method
Sol. We have
dy
dx
= 3x + y2
, ∴ f(x, y) = 3x + y2
x0 = 1, y0 = 1.2 and h = 0.1
k1 = hf(x0, y0) = 0.444
k2 = hf x0 + h
2 , y0 + k1
2
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge’s Method
Sol. We have
dy
dx
= 3x + y2
, ∴ f(x, y) = 3x + y2
x0 = 1, y0 = 1.2 and h = 0.1
k1 = hf(x0, y0) = 0.444
k2 = hf x0 + h
2 , y0 + k1
2 = 0.51721
k = hf (x0 + h, y0 + k1)
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge’s Method
Sol. We have
dy
dx
= 3x + y2
, ∴ f(x, y) = 3x + y2
x0 = 1, y0 = 1.2 and h = 0.1
k1 = hf(x0, y0) = 0.444
k2 = hf x0 + h
2 , y0 + k1
2 = 0.51721
k = hf (x0 + h, y0 + k1) = 0.60027
k3 = hf (x0 + h, y0 + k )
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge’s Method
Sol. We have
dy
dx
= 3x + y2
, ∴ f(x, y) = 3x + y2
x0 = 1, y0 = 1.2 and h = 0.1
k1 = hf(x0, y0) = 0.444
k2 = hf x0 + h
2 , y0 + k1
2 = 0.51721
k = hf (x0 + h, y0 + k1) = 0.60027
k3 = hf (x0 + h, y0 + k ) = 0.65411
Hence k = 1
6(k1 + 4k2 + k3)
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge’s Method
Sol. We have
dy
dx
= 3x + y2
, ∴ f(x, y) = 3x + y2
x0 = 1, y0 = 1.2 and h = 0.1
k1 = hf(x0, y0) = 0.444
k2 = hf x0 + h
2 , y0 + k1
2 = 0.51721
k = hf (x0 + h, y0 + k1) = 0.60027
k3 = hf (x0 + h, y0 + k ) = 0.65411
Hence k = 1
6(k1 + 4k2 + k3) = 0.5278
∴ approximate value of y = y0 + k
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge’s Method
Sol. We have
dy
dx
= 3x + y2
, ∴ f(x, y) = 3x + y2
x0 = 1, y0 = 1.2 and h = 0.1
k1 = hf(x0, y0) = 0.444
k2 = hf x0 + h
2 , y0 + k1
2 = 0.51721
k = hf (x0 + h, y0 + k1) = 0.60027
k3 = hf (x0 + h, y0 + k ) = 0.65411
Hence k = 1
6(k1 + 4k2 + k3) = 0.5278
∴ approximate value of y = y0 + k = 1.7278
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge-Kutta Method of 2nd Order:
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge-Kutta Method of 2nd Order:
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge-Kutta Method of 2nd Order:
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf (x0 + h, y0 + k1)
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge-Kutta Method of 2nd Order:
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf (x0 + h, y0 + k1)
Find k =
1
2
(k1 + k2)
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge-Kutta Method of 2nd Order:
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf (x0 + h, y0 + k1)
Find k =
1
2
(k1 + k2)
∴ y1 = y0 + k
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge-Kutta Method of 4th Order:
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge-Kutta Method of 4th Order:
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge-Kutta Method of 4th Order:
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf x0 + h
2 , y0 + k1
2
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge-Kutta Method of 4th Order:
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf x0 + h
2 , y0 + k1
2
k3 = hf x0 + h
2 , y0 + k2
2
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge-Kutta Method of 4th Order:
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf x0 + h
2 , y0 + k1
2
k3 = hf x0 + h
2 , y0 + k2
2
k4 = hf(x0 + h, y0 + k3)
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge-Kutta Method of 4th Order:
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf x0 + h
2 , y0 + k1
2
k3 = hf x0 + h
2 , y0 + k2
2
k4 = hf(x0 + h, y0 + k3)
Find k =
1
6
(k1 + 2k2 + 2k3 + k4)
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Ordinary Differential Equations
Runge-Kutta Method of 4th Order:
Consider the differential Equation
dy
dx
= f(x, y), y(x0) = y0
Calculate successively
k1 = hf(x0, y0)
k2 = hf x0 + h
2 , y0 + k1
2
k3 = hf x0 + h
2 , y0 + k2
2
k4 = hf(x0 + h, y0 + k3)
Find k =
1
6
(k1 + 2k2 + 2k3 + k4)
∴ y1 = y0 + k and x1 = x0 + h
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge-Kutta Method of 2nd Order
Ex. Use Runge-kutta second order method to find
the approximate value of y(0.2) given that
dy
dx
= x − y2
and y(0) = 1 and h = 0.1
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge-Kutta Method of 2nd Order
Ex. Use 4th order Runge-kutta method to solve
dy
dx
= x2
+ y2
, y(0) = 1. Find y(0.2) with h = 0.1.
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
Runge-Kutta Method of 2nd Order
Ex. Determine y(0.1) and y(0.2) correct to four
decimal places from
dy
dx
= 2x + y, y(0) = 1. Use
fourth order Runge-Kutta method
Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3

More Related Content

DOC
Gamma beta functions-1
PPTX
Differential equations of first order
PPTX
Runge kutta method -by Prof.Prashant Goad(R.C.Patel Institute of Technology,...
DOCX
B.tech ii unit-2 material beta gamma function
DOC
Gamma & Beta functions
PPTX
Partial differential equations
PDF
Presentation-Alex-20150421
PPTX
Runge Kutta Method
Gamma beta functions-1
Differential equations of first order
Runge kutta method -by Prof.Prashant Goad(R.C.Patel Institute of Technology,...
B.tech ii unit-2 material beta gamma function
Gamma & Beta functions
Partial differential equations
Presentation-Alex-20150421
Runge Kutta Method

What's hot (20)

PPTX
Runge Kutta Method
PDF
Higher Order Differential Equation
PDF
Beta gamma functions
PPTX
Solving linear equation system
PPTX
Partial Differentiation
PPTX
Analytic function
PDF
PDF
Romberg’s method
PPTX
Differential Equations
PPTX
Diagonalization of Matrices
PPTX
Cauchy integral theorem & formula (complex variable & numerical method )
PPTX
Homogeneous Linear Differential Equations
PPTX
Runge kutta
PPT
Gamma function
PPTX
14.6 triple integrals in cylindrical and spherical coordinates
PPTX
Fourier series
PPTX
General Quadrature Equation
PPT
Vector calculus
PPTX
Power series
PDF
Double integral using polar coordinates
Runge Kutta Method
Higher Order Differential Equation
Beta gamma functions
Solving linear equation system
Partial Differentiation
Analytic function
Romberg’s method
Differential Equations
Diagonalization of Matrices
Cauchy integral theorem & formula (complex variable & numerical method )
Homogeneous Linear Differential Equations
Runge kutta
Gamma function
14.6 triple integrals in cylindrical and spherical coordinates
Fourier series
General Quadrature Equation
Vector calculus
Power series
Double integral using polar coordinates
Ad

Viewers also liked (15)

PDF
Introduction to material and energy balance
PPTX
Numerical integration
PDF
Partial Differential Equation - Notes
PDF
Process Instrumentation & Control
PPT
Material balance Equation
PDF
Numerical Methods - Oridnary Differential Equations - 2
PDF
Numerical Methods 1
DOC
08 basic material balance eqns
PPT
Introduction to Reservoir Engineering
PDF
Numerical Methods - Oridnary Differential Equations - 1
PPT
Introduction of process control
PPT
An Introduction to the Finite Element Method
PDF
partial diffrentialequations
PPTX
Industrial process control
PDF
Mass transfer dr auroba
Introduction to material and energy balance
Numerical integration
Partial Differential Equation - Notes
Process Instrumentation & Control
Material balance Equation
Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods 1
08 basic material balance eqns
Introduction to Reservoir Engineering
Numerical Methods - Oridnary Differential Equations - 1
Introduction of process control
An Introduction to the Finite Element Method
partial diffrentialequations
Industrial process control
Mass transfer dr auroba
Ad

Similar to Numerical Methods - Oridnary Differential Equations - 3 (20)

PPTX
presentation on Euler and Modified Euler method ,and Fitting of curve
PPTX
SNM seminar.pptx differential calculus explanation of history theorem formula...
PPTX
Runge Kutta Method Matlab Software Overview PPT
PDF
Interpolation with Finite differences
PPTX
Runge-Kutta methods with examples
PDF
Differential Calculus
PDF
lec12.pdf
PDF
Nonlinear_system,Nonlinear_system, Nonlinear_system.pdf
PPT
10 Coordinate Geometry Math Concepts .ppt
PPT
Chapter 3
PDF
Taller 2
PDF
ssssssssjjsjjjjjjjjjssssssssssssss 3.pdf
DOCX
Maths Project Quadratic Equations
PPTX
Linear equations in Two variables
PDF
Assignment (chapter 1 8) maths
PDF
Assignment (chapter 1 8) maths
PDF
AJMS_389_22.pdf
PPT
Linear equations 2-2 a graphing and x-y intercepts
PDF
evans_pde_solutions_ch2_ch3.pdf
PDF
DFT - Discrete Fourier Transform and its Properties
presentation on Euler and Modified Euler method ,and Fitting of curve
SNM seminar.pptx differential calculus explanation of history theorem formula...
Runge Kutta Method Matlab Software Overview PPT
Interpolation with Finite differences
Runge-Kutta methods with examples
Differential Calculus
lec12.pdf
Nonlinear_system,Nonlinear_system, Nonlinear_system.pdf
10 Coordinate Geometry Math Concepts .ppt
Chapter 3
Taller 2
ssssssssjjsjjjjjjjjjssssssssssssss 3.pdf
Maths Project Quadratic Equations
Linear equations in Two variables
Assignment (chapter 1 8) maths
Assignment (chapter 1 8) maths
AJMS_389_22.pdf
Linear equations 2-2 a graphing and x-y intercepts
evans_pde_solutions_ch2_ch3.pdf
DFT - Discrete Fourier Transform and its Properties

More from Dr. Nirav Vyas (20)

PDF
Advance Topics in Latex - different packages
PPTX
Numerical Methods Algorithm and C Program
PDF
Reduction forumla
PPTX
Arithmetic Mean, Geometric Mean, Harmonic Mean
PPTX
Geometric progressions
PPTX
Arithmetic progressions
PPTX
Combinations
PPTX
Permutation
PPTX
Matrices and Determinants
PDF
Curve fitting - Lecture Notes
PDF
Trend analysis - Lecture Notes
PDF
Basic Concepts of Statistics - Lecture Notes
PDF
Numerical Methods - Power Method for Eigen values
PDF
Special functions
PDF
Legendre Function
PDF
Laplace Transforms
PDF
Fourier series 3
PDF
Fourier series 2
PDF
Fourier series 1
PDF
Numerical Methods 3
Advance Topics in Latex - different packages
Numerical Methods Algorithm and C Program
Reduction forumla
Arithmetic Mean, Geometric Mean, Harmonic Mean
Geometric progressions
Arithmetic progressions
Combinations
Permutation
Matrices and Determinants
Curve fitting - Lecture Notes
Trend analysis - Lecture Notes
Basic Concepts of Statistics - Lecture Notes
Numerical Methods - Power Method for Eigen values
Special functions
Legendre Function
Laplace Transforms
Fourier series 3
Fourier series 2
Fourier series 1
Numerical Methods 3

Recently uploaded (20)

PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Cell Structure & Organelles in detailed.
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
master seminar digital applications in india
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
01-Introduction-to-Information-Management.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
human mycosis Human fungal infections are called human mycosis..pptx
Cell Structure & Organelles in detailed.
Orientation - ARALprogram of Deped to the Parents.pptx
VCE English Exam - Section C Student Revision Booklet
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
master seminar digital applications in india
O5-L3 Freight Transport Ops (International) V1.pdf
Anesthesia in Laparoscopic Surgery in India
01-Introduction-to-Information-Management.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Complications of Minimal Access Surgery at WLH
Microbial diseases, their pathogenesis and prophylaxis
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...

Numerical Methods - Oridnary Differential Equations - 3

  • 1. Numerical Methods Ordinary Differential Equations - 3 Dr. N. B. Vyas Department of Mathematics, Atmiya Institute of Technology & Science, Rajkot (Gujarat) - INDIA niravbvyas@gmail.com Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 2. Ordinary Differential Equations Runge’s Method: (Runge-Kutta Method of 3rd Order) Named after German mathematicians CARL RUNGE (1856-1927) and WILHELM KUTTA (1867-1944) Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 3. Ordinary Differential Equations Runge’s Method: (Runge-Kutta Method of 3rd Order) Named after German mathematicians CARL RUNGE (1856-1927) and WILHELM KUTTA (1867-1944) Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 4. Ordinary Differential Equations Runge’s Method: (Runge-Kutta Method of 3rd Order) Named after German mathematicians CARL RUNGE (1856-1927) and WILHELM KUTTA (1867-1944) Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf x0 + h 2 , y0 + k1 2 Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 5. Ordinary Differential Equations Runge’s Method: (Runge-Kutta Method of 3rd Order) Named after German mathematicians CARL RUNGE (1856-1927) and WILHELM KUTTA (1867-1944) Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf x0 + h 2 , y0 + k1 2 k = hf (x0 + h, y0 + k1) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 6. Ordinary Differential Equations Runge’s Method: (Runge-Kutta Method of 3rd Order) Named after German mathematicians CARL RUNGE (1856-1927) and WILHELM KUTTA (1867-1944) Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf x0 + h 2 , y0 + k1 2 k = hf (x0 + h, y0 + k1) k3 = hf (x0 + h, y0 + k ) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 7. Ordinary Differential Equations Runge’s Method: (Runge-Kutta Method of 3rd Order) Named after German mathematicians CARL RUNGE (1856-1927) and WILHELM KUTTA (1867-1944) Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf x0 + h 2 , y0 + k1 2 k = hf (x0 + h, y0 + k1) k3 = hf (x0 + h, y0 + k ) Finally calculate Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 8. Ordinary Differential Equations Runge’s Method: (Runge-Kutta Method of 3rd Order) Named after German mathematicians CARL RUNGE (1856-1927) and WILHELM KUTTA (1867-1944) Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf x0 + h 2 , y0 + k1 2 k = hf (x0 + h, y0 + k1) k3 = hf (x0 + h, y0 + k ) Finally calculate k = 1 6 (k1 + 4k2 + k3) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 9. Ordinary Differential Equations Runge’s Method: (Runge-Kutta Method of 3rd Order) Named after German mathematicians CARL RUNGE (1856-1927) and WILHELM KUTTA (1867-1944) Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf x0 + h 2 , y0 + k1 2 k = hf (x0 + h, y0 + k1) k3 = hf (x0 + h, y0 + k ) Finally calculate k = 1 6 (k1 + 4k2 + k3) required approximate value of y = y0 + k Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 10. Runge’s Method Ex. Use Runge’s method to approximate y when x = 1.1 given that y = 1.2 when x = 1 and dy dx = 3x + y2 Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 11. Runge’s Method Sol. We have dy dx = 3x + y2 , ∴ f(x, y) = 3x + y2 Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 12. Runge’s Method Sol. We have dy dx = 3x + y2 , ∴ f(x, y) = 3x + y2 x0 = 1, y0 = 1.2 and h = 0.1 Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 13. Runge’s Method Sol. We have dy dx = 3x + y2 , ∴ f(x, y) = 3x + y2 x0 = 1, y0 = 1.2 and h = 0.1 k1 = hf(x0, y0) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 14. Runge’s Method Sol. We have dy dx = 3x + y2 , ∴ f(x, y) = 3x + y2 x0 = 1, y0 = 1.2 and h = 0.1 k1 = hf(x0, y0) = 0.444 k2 = hf x0 + h 2 , y0 + k1 2 Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 15. Runge’s Method Sol. We have dy dx = 3x + y2 , ∴ f(x, y) = 3x + y2 x0 = 1, y0 = 1.2 and h = 0.1 k1 = hf(x0, y0) = 0.444 k2 = hf x0 + h 2 , y0 + k1 2 = 0.51721 k = hf (x0 + h, y0 + k1) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 16. Runge’s Method Sol. We have dy dx = 3x + y2 , ∴ f(x, y) = 3x + y2 x0 = 1, y0 = 1.2 and h = 0.1 k1 = hf(x0, y0) = 0.444 k2 = hf x0 + h 2 , y0 + k1 2 = 0.51721 k = hf (x0 + h, y0 + k1) = 0.60027 k3 = hf (x0 + h, y0 + k ) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 17. Runge’s Method Sol. We have dy dx = 3x + y2 , ∴ f(x, y) = 3x + y2 x0 = 1, y0 = 1.2 and h = 0.1 k1 = hf(x0, y0) = 0.444 k2 = hf x0 + h 2 , y0 + k1 2 = 0.51721 k = hf (x0 + h, y0 + k1) = 0.60027 k3 = hf (x0 + h, y0 + k ) = 0.65411 Hence k = 1 6(k1 + 4k2 + k3) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 18. Runge’s Method Sol. We have dy dx = 3x + y2 , ∴ f(x, y) = 3x + y2 x0 = 1, y0 = 1.2 and h = 0.1 k1 = hf(x0, y0) = 0.444 k2 = hf x0 + h 2 , y0 + k1 2 = 0.51721 k = hf (x0 + h, y0 + k1) = 0.60027 k3 = hf (x0 + h, y0 + k ) = 0.65411 Hence k = 1 6(k1 + 4k2 + k3) = 0.5278 ∴ approximate value of y = y0 + k Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 19. Runge’s Method Sol. We have dy dx = 3x + y2 , ∴ f(x, y) = 3x + y2 x0 = 1, y0 = 1.2 and h = 0.1 k1 = hf(x0, y0) = 0.444 k2 = hf x0 + h 2 , y0 + k1 2 = 0.51721 k = hf (x0 + h, y0 + k1) = 0.60027 k3 = hf (x0 + h, y0 + k ) = 0.65411 Hence k = 1 6(k1 + 4k2 + k3) = 0.5278 ∴ approximate value of y = y0 + k = 1.7278 Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 20. Ordinary Differential Equations Runge-Kutta Method of 2nd Order: Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 21. Ordinary Differential Equations Runge-Kutta Method of 2nd Order: Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 22. Ordinary Differential Equations Runge-Kutta Method of 2nd Order: Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf (x0 + h, y0 + k1) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 23. Ordinary Differential Equations Runge-Kutta Method of 2nd Order: Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf (x0 + h, y0 + k1) Find k = 1 2 (k1 + k2) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 24. Ordinary Differential Equations Runge-Kutta Method of 2nd Order: Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf (x0 + h, y0 + k1) Find k = 1 2 (k1 + k2) ∴ y1 = y0 + k Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 25. Ordinary Differential Equations Runge-Kutta Method of 4th Order: Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 26. Ordinary Differential Equations Runge-Kutta Method of 4th Order: Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 27. Ordinary Differential Equations Runge-Kutta Method of 4th Order: Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf x0 + h 2 , y0 + k1 2 Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 28. Ordinary Differential Equations Runge-Kutta Method of 4th Order: Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf x0 + h 2 , y0 + k1 2 k3 = hf x0 + h 2 , y0 + k2 2 Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 29. Ordinary Differential Equations Runge-Kutta Method of 4th Order: Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf x0 + h 2 , y0 + k1 2 k3 = hf x0 + h 2 , y0 + k2 2 k4 = hf(x0 + h, y0 + k3) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 30. Ordinary Differential Equations Runge-Kutta Method of 4th Order: Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf x0 + h 2 , y0 + k1 2 k3 = hf x0 + h 2 , y0 + k2 2 k4 = hf(x0 + h, y0 + k3) Find k = 1 6 (k1 + 2k2 + 2k3 + k4) Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 31. Ordinary Differential Equations Runge-Kutta Method of 4th Order: Consider the differential Equation dy dx = f(x, y), y(x0) = y0 Calculate successively k1 = hf(x0, y0) k2 = hf x0 + h 2 , y0 + k1 2 k3 = hf x0 + h 2 , y0 + k2 2 k4 = hf(x0 + h, y0 + k3) Find k = 1 6 (k1 + 2k2 + 2k3 + k4) ∴ y1 = y0 + k and x1 = x0 + h Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 32. Runge-Kutta Method of 2nd Order Ex. Use Runge-kutta second order method to find the approximate value of y(0.2) given that dy dx = x − y2 and y(0) = 1 and h = 0.1 Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 33. Runge-Kutta Method of 2nd Order Ex. Use 4th order Runge-kutta method to solve dy dx = x2 + y2 , y(0) = 1. Find y(0.2) with h = 0.1. Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3
  • 34. Runge-Kutta Method of 2nd Order Ex. Determine y(0.1) and y(0.2) correct to four decimal places from dy dx = 2x + y, y(0) = 1. Use fourth order Runge-Kutta method Dr. N. B. Vyas Numerical Methods Ordinary Differential Equations - 3