SlideShare a Scribd company logo
1 of 15
G. H. Patel College of
Engineering & Technology
Subject : Numerical and Statistical Method for Computer Engineering
(2140706)
Topic : Runge Kutta Methods
Guided by : Prof. Tejas Jani
Made by : Vashi Bhavik (160110116061)
Shivam Zala (160110116062)
Aakash Godhani (160110116063)
Harshal Dankhara (160110116064)
Shreya Patel (160110116065)
Content
Introduction
First Order Runge-Kutta Method
Second Order Runge-Kutta Method
Third Order Runge-Kutta Method
Fourth Order Runge-Kutta Method
Example
Runge Kutta Method : Introduction
 Developed by two German mathematicians Runge and kutta .
 It is also called R-K method.
 Runge-kutta method distinguished by their order
First Order Runge –Kutta Method
 Considering the differential equation
dy/dx=f(x,y)
With the initial condition y(x0)=y0
By the Euler’s method
yn+1=yn + h*f(xn,yn)
yn+1=yn + h*y’n + (h2/2!)y’’n + ... (by Taylor’s series)
Second Order Runge –Kutta Method
 Yn+1=yn + k
Where k=(1/2)(k1+k2)
K1=h*f(xn , yn)
K2=h*f(xn + h , yn + k1)
Third Order Runge –Kutta Method
 Yn+1=yn + k
Where k=(1/6)(k1+4k2+k3)
K1=h*f(xn , yn)
K2=h*f(xn + (h/2) , yn + (k1/2) )
K3=h*f(xn + h , yn + 2k2 – k1 )
Fourth Order Runge –Kutta Method
Yn+1=yn + k
Where k=(1/6)(k1+2k2+2k3+k4)
K1=h*f(xn , yn)
K2=h*f(xn + (h/2) , yn + (k1/2) )
K3=h*f(xn + (h/2) , yn + (k2/2) )
K4=h*f(xn + h, yn + k3 )
Example
 Solve the differential equation dy/dx=x+y , with the fourth order Runge-Kutta
method ,where y(0)=1 with x=0.2 with h=0.1.
 Given data y(0)=1 and h=0.1
 dy/dx = x+y
f(x,y)=dy/dx=x+y
 1st iteration
X0=0 , y0=1 , h=0.01 , n=0
K1 =h*f(x0,y0)
=0.1*(0,1)
=0.1*(0+1)
=0.1
K2 =h*f(x0 + (h/2) , y0 + (k1/2) )
=0.1*f(0 + (0.1/2) , 1 + (0.1/2) )
=0.1*f(0.05,1.05)
=0.1*(0.05+1.05)
=0.11
K3 =h*f(x0 + (h/2) , y0 + (k2/2) )
=0.1*f(0+ (0.1/2) , 1+ (0.11/2) )
=0.1*f(0.05,1.055)
=0.1*(0.05+1.055)
=0.1105
K4 =h*f( x0 +h , y0 + k3 )
=0.1*f(0+0.1 , 1+0.1105)
=0.1*f(0.1,1.1105)
=0.1*(0.1+1.1105)
=0.1211
So y1 =y0+k
=y0 + (1/6)(k1 + 2k2 + 2k3 + k4)
=1 + (1/6)(0.1 + 2(0.11) + 2(0.1105) + 0.1211 )
=1.1103
 2nd iteration
X1=0.1 , y0=1.1103 , h=0.01 , n=1
K1 =h*f(x1,y1)
=0.1*(0.1,1.1103)
=0.1*(0.1+1.1103)
=0.1210
K2 =h*f(x1 + (h/2) , y1 + (k1/2) )
=0.1*f(0.1 + (0.1/2) , 1.1103 + (0.1210/2) )
=0.1*f(0.15,1.1708)
=0.1*(0.15+1.1708)
=0.1321
K3 =h*f(x1 + (h/2) , y1 + (k2/2) )
=0.1*f(0.1+ (0.1/2) , 1.1103+ (0.1321/2) )
=0.1*f(0.15,1.1764)
=0.1*(0.15+1.1764)
=0.1326
K4 =h*f( x1 +h , y1 + k3 )
=0.1*f(0.1+0.1 , 1.1103+0.1326)
=0.1*f(0.2,1.2429)
=0.1*(0.2+1.2429)
=0.1443
So y1 =y1+k
=y1 + (1/6)(k1 + 2k2 + 2k3 + k4)
=1 + (1/6)(0.1210 + 2(0.1321) + 2(0.1326) + 0.1443 )
=1.2428
Hence y(0.2)=1.2428
Thank You

More Related Content

What's hot

presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve Mukuldev Khunte
 
stirling method maths
stirling method mathsstirling method maths
stirling method mathsharsh kothari
 
applications of first order non linear partial differential equation
applications of first order non linear partial differential equationapplications of first order non linear partial differential equation
applications of first order non linear partial differential equationDhananjaysinh Jhala
 
A brief introduction to finite difference method
A brief introduction to finite difference methodA brief introduction to finite difference method
A brief introduction to finite difference methodPrateek Jha
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler methodSohaib Butt
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Viraj Patel
 
Divergence,curl,gradient
Divergence,curl,gradientDivergence,curl,gradient
Divergence,curl,gradientKunj Patel
 
Integrals and its applications
Integrals  and  its applicationsIntegrals  and  its applications
Integrals and its applicationsPoojith Chowdhary
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference InterpolationVARUN KUMAR
 
Complex form fourier series
Complex form fourier seriesComplex form fourier series
Complex form fourier seriesderry92
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationSunny Chauhan
 
Fourier series Introduction
Fourier series IntroductionFourier series Introduction
Fourier series IntroductionRizwan Kazi
 
Cauchy integral theorem & formula (complex variable & numerical method )
Cauchy integral theorem & formula (complex variable & numerical method )Cauchy integral theorem & formula (complex variable & numerical method )
Cauchy integral theorem & formula (complex variable & numerical method )Digvijaysinh Gohil
 
Numerical differentiation
Numerical differentiationNumerical differentiation
Numerical differentiationandrushow
 

What's hot (20)

presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve
 
Differential equations
Differential equationsDifferential equations
Differential equations
 
stirling method maths
stirling method mathsstirling method maths
stirling method maths
 
applications of first order non linear partial differential equation
applications of first order non linear partial differential equationapplications of first order non linear partial differential equation
applications of first order non linear partial differential equation
 
A brief introduction to finite difference method
A brief introduction to finite difference methodA brief introduction to finite difference method
A brief introduction to finite difference method
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler method
 
weddle's rule
weddle's ruleweddle's rule
weddle's rule
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations
 
Divergence,curl,gradient
Divergence,curl,gradientDivergence,curl,gradient
Divergence,curl,gradient
 
Integrals and its applications
Integrals  and  its applicationsIntegrals  and  its applications
Integrals and its applications
 
Taylor series
Taylor seriesTaylor series
Taylor series
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
 
Numerical Computing
Numerical Computing Numerical Computing
Numerical Computing
 
Complex form fourier series
Complex form fourier seriesComplex form fourier series
Complex form fourier series
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Euler and runge kutta method
Euler and runge kutta methodEuler and runge kutta method
Euler and runge kutta method
 
Es272 ch6
Es272 ch6Es272 ch6
Es272 ch6
 
Fourier series Introduction
Fourier series IntroductionFourier series Introduction
Fourier series Introduction
 
Cauchy integral theorem & formula (complex variable & numerical method )
Cauchy integral theorem & formula (complex variable & numerical method )Cauchy integral theorem & formula (complex variable & numerical method )
Cauchy integral theorem & formula (complex variable & numerical method )
 
Numerical differentiation
Numerical differentiationNumerical differentiation
Numerical differentiation
 

Similar to Runge Kutta Method

orlando_fest
orlando_festorlando_fest
orlando_festAndy Hone
 
somenath_fixedpoint_dasguptaIMF17-20-2013
somenath_fixedpoint_dasguptaIMF17-20-2013somenath_fixedpoint_dasguptaIMF17-20-2013
somenath_fixedpoint_dasguptaIMF17-20-2013Somenath Bandyopadhyay
 
Mesoscopic multiclass traffic flow modeling on multi-lane sections
Mesoscopic multiclass traffic flow modeling on multi-lane sectionsMesoscopic multiclass traffic flow modeling on multi-lane sections
Mesoscopic multiclass traffic flow modeling on multi-lane sectionsGuillaume Costeseque
 
Hamilton-Jacobi equations and Lax-Hopf formulae for traffic flow modeling
Hamilton-Jacobi equations and Lax-Hopf formulae for traffic flow modelingHamilton-Jacobi equations and Lax-Hopf formulae for traffic flow modeling
Hamilton-Jacobi equations and Lax-Hopf formulae for traffic flow modelingGuillaume Costeseque
 
Stochastic Schrödinger equations
Stochastic Schrödinger equationsStochastic Schrödinger equations
Stochastic Schrödinger equationsIlya Gikhman
 
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
 
quan2009.pdf
quan2009.pdfquan2009.pdf
quan2009.pdfTriPham86
 
MA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docx
MA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docxMA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docx
MA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docxinfantsuk
 
Newton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptxNewton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptxRishabhGupta238479
 
PRESENTATION ON INTRODUCTION TO SEVERAL VARIABLES AND PARTIAL DERIVATIVES
PRESENTATION ON INTRODUCTION TO SEVERAL VARIABLES AND PARTIAL DERIVATIVES   PRESENTATION ON INTRODUCTION TO SEVERAL VARIABLES AND PARTIAL DERIVATIVES
PRESENTATION ON INTRODUCTION TO SEVERAL VARIABLES AND PARTIAL DERIVATIVES Mazharul Islam
 
Differential Calculus
Differential Calculus Differential Calculus
Differential Calculus OlooPundit
 
Common fixed point theorem for occasionally weakly compatible mapping in q fu...
Common fixed point theorem for occasionally weakly compatible mapping in q fu...Common fixed point theorem for occasionally weakly compatible mapping in q fu...
Common fixed point theorem for occasionally weakly compatible mapping in q fu...Alexander Decker
 

Similar to Runge Kutta Method (20)

orlando_fest
orlando_festorlando_fest
orlando_fest
 
somenath_fixedpoint_dasguptaIMF17-20-2013
somenath_fixedpoint_dasguptaIMF17-20-2013somenath_fixedpoint_dasguptaIMF17-20-2013
somenath_fixedpoint_dasguptaIMF17-20-2013
 
Mesoscopic multiclass traffic flow modeling on multi-lane sections
Mesoscopic multiclass traffic flow modeling on multi-lane sectionsMesoscopic multiclass traffic flow modeling on multi-lane sections
Mesoscopic multiclass traffic flow modeling on multi-lane sections
 
Ma2002 1.19 rm
Ma2002 1.19 rmMa2002 1.19 rm
Ma2002 1.19 rm
 
Hamilton-Jacobi equations and Lax-Hopf formulae for traffic flow modeling
Hamilton-Jacobi equations and Lax-Hopf formulae for traffic flow modelingHamilton-Jacobi equations and Lax-Hopf formulae for traffic flow modeling
Hamilton-Jacobi equations and Lax-Hopf formulae for traffic flow modeling
 
Stochastic Schrödinger equations
Stochastic Schrödinger equationsStochastic Schrödinger equations
Stochastic Schrödinger equations
 
Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3
 
quan2009.pdf
quan2009.pdfquan2009.pdf
quan2009.pdf
 
Ma2002 1.13 rm
Ma2002 1.13 rmMa2002 1.13 rm
Ma2002 1.13 rm
 
MA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docx
MA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docxMA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docx
MA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docx
 
Taylors series
Taylors series Taylors series
Taylors series
 
Newton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptxNewton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptx
 
Ma2002 1.10 rm
Ma2002 1.10 rmMa2002 1.10 rm
Ma2002 1.10 rm
 
Presentation on calculus
Presentation on calculusPresentation on calculus
Presentation on calculus
 
NPDE-TCA
NPDE-TCANPDE-TCA
NPDE-TCA
 
PRESENTATION ON INTRODUCTION TO SEVERAL VARIABLES AND PARTIAL DERIVATIVES
PRESENTATION ON INTRODUCTION TO SEVERAL VARIABLES AND PARTIAL DERIVATIVES   PRESENTATION ON INTRODUCTION TO SEVERAL VARIABLES AND PARTIAL DERIVATIVES
PRESENTATION ON INTRODUCTION TO SEVERAL VARIABLES AND PARTIAL DERIVATIVES
 
Differential Calculus
Differential Calculus Differential Calculus
Differential Calculus
 
Common fixed point theorem for occasionally weakly compatible mapping in q fu...
Common fixed point theorem for occasionally weakly compatible mapping in q fu...Common fixed point theorem for occasionally weakly compatible mapping in q fu...
Common fixed point theorem for occasionally weakly compatible mapping in q fu...
 
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
 
Presentation03 ss
Presentation03 ssPresentation03 ss
Presentation03 ss
 

More from Bhavik Vashi

Rate monotonic scheduling- Operating System
Rate monotonic scheduling- Operating SystemRate monotonic scheduling- Operating System
Rate monotonic scheduling- Operating SystemBhavik Vashi
 
Data Structure Radix Sort
Data Structure Radix SortData Structure Radix Sort
Data Structure Radix SortBhavik Vashi
 
File management in OS
File management in OSFile management in OS
File management in OSBhavik Vashi
 
Types of Constructor in C++
Types of Constructor in C++Types of Constructor in C++
Types of Constructor in C++Bhavik Vashi
 
Parallel processing (simd and mimd)
Parallel processing (simd and mimd)Parallel processing (simd and mimd)
Parallel processing (simd and mimd)Bhavik Vashi
 
Ethernet and switches
Ethernet and switchesEthernet and switches
Ethernet and switchesBhavik Vashi
 
Fiscal Policy & Monetary Policy
Fiscal Policy & Monetary PolicyFiscal Policy & Monetary Policy
Fiscal Policy & Monetary PolicyBhavik Vashi
 
Projection of lines
Projection of linesProjection of lines
Projection of linesBhavik Vashi
 
Most Successful People & Personality
Most Successful People & Personality Most Successful People & Personality
Most Successful People & Personality Bhavik Vashi
 
Global Need of the World
Global Need of the WorldGlobal Need of the World
Global Need of the WorldBhavik Vashi
 
Functions of stdio conio
Functions of stdio   conio Functions of stdio   conio
Functions of stdio conio Bhavik Vashi
 
Impact of social media
Impact of social mediaImpact of social media
Impact of social mediaBhavik Vashi
 

More from Bhavik Vashi (20)

Aws ec2
Aws ec2Aws ec2
Aws ec2
 
MACRO PROCESSOR
MACRO PROCESSORMACRO PROCESSOR
MACRO PROCESSOR
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Linear Sorting
Linear SortingLinear Sorting
Linear Sorting
 
Colormodels
ColormodelsColormodels
Colormodels
 
Kruskal Algorithm
Kruskal AlgorithmKruskal Algorithm
Kruskal Algorithm
 
Rate monotonic scheduling- Operating System
Rate monotonic scheduling- Operating SystemRate monotonic scheduling- Operating System
Rate monotonic scheduling- Operating System
 
Data Structure Radix Sort
Data Structure Radix SortData Structure Radix Sort
Data Structure Radix Sort
 
File management in OS
File management in OSFile management in OS
File management in OS
 
Types of Constructor in C++
Types of Constructor in C++Types of Constructor in C++
Types of Constructor in C++
 
Parallel processing (simd and mimd)
Parallel processing (simd and mimd)Parallel processing (simd and mimd)
Parallel processing (simd and mimd)
 
Ethernet and switches
Ethernet and switchesEthernet and switches
Ethernet and switches
 
Fiscal Policy & Monetary Policy
Fiscal Policy & Monetary PolicyFiscal Policy & Monetary Policy
Fiscal Policy & Monetary Policy
 
Diwali Light
Diwali LightDiwali Light
Diwali Light
 
Heat transfer
Heat transferHeat transfer
Heat transfer
 
Projection of lines
Projection of linesProjection of lines
Projection of lines
 
Most Successful People & Personality
Most Successful People & Personality Most Successful People & Personality
Most Successful People & Personality
 
Global Need of the World
Global Need of the WorldGlobal Need of the World
Global Need of the World
 
Functions of stdio conio
Functions of stdio   conio Functions of stdio   conio
Functions of stdio conio
 
Impact of social media
Impact of social mediaImpact of social media
Impact of social media
 

Recently uploaded

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 

Recently uploaded (20)

★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 

Runge Kutta Method

  • 1. G. H. Patel College of Engineering & Technology Subject : Numerical and Statistical Method for Computer Engineering (2140706) Topic : Runge Kutta Methods Guided by : Prof. Tejas Jani Made by : Vashi Bhavik (160110116061) Shivam Zala (160110116062) Aakash Godhani (160110116063) Harshal Dankhara (160110116064) Shreya Patel (160110116065)
  • 2. Content Introduction First Order Runge-Kutta Method Second Order Runge-Kutta Method Third Order Runge-Kutta Method Fourth Order Runge-Kutta Method Example
  • 3. Runge Kutta Method : Introduction  Developed by two German mathematicians Runge and kutta .  It is also called R-K method.  Runge-kutta method distinguished by their order
  • 4. First Order Runge –Kutta Method  Considering the differential equation dy/dx=f(x,y) With the initial condition y(x0)=y0 By the Euler’s method yn+1=yn + h*f(xn,yn) yn+1=yn + h*y’n + (h2/2!)y’’n + ... (by Taylor’s series)
  • 5. Second Order Runge –Kutta Method  Yn+1=yn + k Where k=(1/2)(k1+k2) K1=h*f(xn , yn) K2=h*f(xn + h , yn + k1)
  • 6. Third Order Runge –Kutta Method  Yn+1=yn + k Where k=(1/6)(k1+4k2+k3) K1=h*f(xn , yn) K2=h*f(xn + (h/2) , yn + (k1/2) ) K3=h*f(xn + h , yn + 2k2 – k1 )
  • 7. Fourth Order Runge –Kutta Method Yn+1=yn + k Where k=(1/6)(k1+2k2+2k3+k4) K1=h*f(xn , yn) K2=h*f(xn + (h/2) , yn + (k1/2) ) K3=h*f(xn + (h/2) , yn + (k2/2) ) K4=h*f(xn + h, yn + k3 )
  • 8. Example  Solve the differential equation dy/dx=x+y , with the fourth order Runge-Kutta method ,where y(0)=1 with x=0.2 with h=0.1.  Given data y(0)=1 and h=0.1  dy/dx = x+y f(x,y)=dy/dx=x+y
  • 9.  1st iteration X0=0 , y0=1 , h=0.01 , n=0 K1 =h*f(x0,y0) =0.1*(0,1) =0.1*(0+1) =0.1
  • 10. K2 =h*f(x0 + (h/2) , y0 + (k1/2) ) =0.1*f(0 + (0.1/2) , 1 + (0.1/2) ) =0.1*f(0.05,1.05) =0.1*(0.05+1.05) =0.11 K3 =h*f(x0 + (h/2) , y0 + (k2/2) ) =0.1*f(0+ (0.1/2) , 1+ (0.11/2) ) =0.1*f(0.05,1.055) =0.1*(0.05+1.055) =0.1105
  • 11. K4 =h*f( x0 +h , y0 + k3 ) =0.1*f(0+0.1 , 1+0.1105) =0.1*f(0.1,1.1105) =0.1*(0.1+1.1105) =0.1211 So y1 =y0+k =y0 + (1/6)(k1 + 2k2 + 2k3 + k4) =1 + (1/6)(0.1 + 2(0.11) + 2(0.1105) + 0.1211 ) =1.1103
  • 12.  2nd iteration X1=0.1 , y0=1.1103 , h=0.01 , n=1 K1 =h*f(x1,y1) =0.1*(0.1,1.1103) =0.1*(0.1+1.1103) =0.1210
  • 13. K2 =h*f(x1 + (h/2) , y1 + (k1/2) ) =0.1*f(0.1 + (0.1/2) , 1.1103 + (0.1210/2) ) =0.1*f(0.15,1.1708) =0.1*(0.15+1.1708) =0.1321 K3 =h*f(x1 + (h/2) , y1 + (k2/2) ) =0.1*f(0.1+ (0.1/2) , 1.1103+ (0.1321/2) ) =0.1*f(0.15,1.1764) =0.1*(0.15+1.1764) =0.1326
  • 14. K4 =h*f( x1 +h , y1 + k3 ) =0.1*f(0.1+0.1 , 1.1103+0.1326) =0.1*f(0.2,1.2429) =0.1*(0.2+1.2429) =0.1443 So y1 =y1+k =y1 + (1/6)(k1 + 2k2 + 2k3 + k4) =1 + (1/6)(0.1210 + 2(0.1321) + 2(0.1326) + 0.1443 ) =1.2428 Hence y(0.2)=1.2428