SlideShare uma empresa Scribd logo
1 de 14
Baixar para ler offline
St. John's University of Tanzania
MAT210 NUMERICAL ANALYSIS
2013/14 Semester II
DIFFERENTIAL EQUATIONS
Runge-Kutta Method
Kaw, Chapter 8.03-8.04
Some parts of this presentation are based on resources at
http://nm.MathForCollege.com, primarily
http://mathforcollege.com/nm/topics/runge_kutta_2nd_method.html
MAT210 2013/14 Sem II 2 of 14
Ordinary Differential Equations
● Topics
●
1st order ODE
– Euler's Method 
– Runge-Kutta Methods
● Higher order Initial Value
● Higher order Boundary Value
– Shooting Method
– Finite Differences
MAT210 2013/14 Sem II 3 of 14
Taylor Series perspective
yi+1
=yi
+
dy
dx
|xi
h+
1
2
d
2
y
dx2
|xi
h2
+
1
6
d
3
y
dx3
|xi
h3
+O(h4
)
Euler's Method
●
What about the other terms?
● The challenge is finding the 2nd derivative
●
That's where Runge and Kutta were clever
MAT210 2013/14 Sem II 4 of 14
The challenge
d2
y
d x2
= f '(x , y) =
∂ f (x , y)
∂x
+
∂ f (x , y)
∂ y
dy
dx
●
What to do about those partial derivates?
●
Brute force approach
– Derive them for each specific problem
– Evaluate the result
●
Runge-Kutta approach – 2nd order
– “Correct” the Euler Method
yi
+ f (x , y)h ⇒ yi
+(a1
f (x , y)+a2
k2)h
MAT210 2013/14 Sem II 5 of 14
The 2nd
Order Method
●
Pick one and the other three fall into place
●
At its heart it is a weighted average of f at the
starting point and a predicted f at point
somewhere in the interval
● a1 and a2 are the weights
● k1 and k2 are the two points
MAT210 2013/14 Sem II 6 of 14
Heun's Method, a2
=1/2
●
Equal weighting
● Linear prediction at far end
MAT210 2013/14 Sem II 7 of 14
Midpoint Method, a2
=1
● Ignore starting point
● Estimate f at the midpoint
MAT210 2013/14 Sem II 8 of 14
Ralston's Method, a2
=2/3
● 1/3 to 2/3 weighting
● Estimate f at the 3/4 point
MAT210 2013/14 Sem II 9 of 14
Previous Example Re-done
MAT210 2013/14 Sem II 10 of 14
Applying Heun's Method
MAT210 2013/14 Sem II 11 of 14
Completing Heun's Method
MAT210 2013/14 Sem II 12 of 14
Seeing the convergence
MAT210 2013/14 Sem II 13 of 14
Bringing
them all
together
MAT210 2013/14 Sem II 14 of 14
Summary
●
Not only is it valuable to compare Euler to
Runge-Kutta, but to a full calculation of f'
●
Note the approximations of f' are of minimal
impact compared to improvement over Euler
●
4th order continues the pattern. (For Reading)

Mais conteúdo relacionado

Mais de John Ham

MAT210/DiffEq/ODE/FiniteDiff 2013-14
MAT210/DiffEq/ODE/FiniteDiff 2013-14MAT210/DiffEq/ODE/FiniteDiff 2013-14
MAT210/DiffEq/ODE/FiniteDiff 2013-14John Ham
 
MAT210/Integration/Romberg 2013-14
MAT210/Integration/Romberg 2013-14MAT210/Integration/Romberg 2013-14
MAT210/Integration/Romberg 2013-14John Ham
 
MAT210/Integration/Basic 2013-14
MAT210/Integration/Basic 2013-14MAT210/Integration/Basic 2013-14
MAT210/Integration/Basic 2013-14John Ham
 
SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2John Ham
 
SJUT/Mat210/Regression/Intro 2013-14S2
SJUT/Mat210/Regression/Intro 2013-14S2SJUT/Mat210/Regression/Intro 2013-14S2
SJUT/Mat210/Regression/Intro 2013-14S2John Ham
 
SJUT/MAT210/Interpolation/Splines 2013-14S2
SJUT/MAT210/Interpolation/Splines 2013-14S2SJUT/MAT210/Interpolation/Splines 2013-14S2
SJUT/MAT210/Interpolation/Splines 2013-14S2John Ham
 
SJUT/Mat210/Interpolation/Lagrangian 2013-14S2
SJUT/Mat210/Interpolation/Lagrangian 2013-14S2SJUT/Mat210/Interpolation/Lagrangian 2013-14S2
SJUT/Mat210/Interpolation/Lagrangian 2013-14S2John Ham
 
SJUT/Mat210/Interpolation/Newton's Divided Difference 2013-14S2
SJUT/Mat210/Interpolation/Newton's Divided Difference  2013-14S2SJUT/Mat210/Interpolation/Newton's Divided Difference  2013-14S2
SJUT/Mat210/Interpolation/Newton's Divided Difference 2013-14S2John Ham
 
SJUT/Mat210/Interpolation/Direct 2013-14S2
SJUT/Mat210/Interpolation/Direct 2013-14S2SJUT/Mat210/Interpolation/Direct 2013-14S2
SJUT/Mat210/Interpolation/Direct 2013-14S2John Ham
 

Mais de John Ham (9)

MAT210/DiffEq/ODE/FiniteDiff 2013-14
MAT210/DiffEq/ODE/FiniteDiff 2013-14MAT210/DiffEq/ODE/FiniteDiff 2013-14
MAT210/DiffEq/ODE/FiniteDiff 2013-14
 
MAT210/Integration/Romberg 2013-14
MAT210/Integration/Romberg 2013-14MAT210/Integration/Romberg 2013-14
MAT210/Integration/Romberg 2013-14
 
MAT210/Integration/Basic 2013-14
MAT210/Integration/Basic 2013-14MAT210/Integration/Basic 2013-14
MAT210/Integration/Basic 2013-14
 
SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2
 
SJUT/Mat210/Regression/Intro 2013-14S2
SJUT/Mat210/Regression/Intro 2013-14S2SJUT/Mat210/Regression/Intro 2013-14S2
SJUT/Mat210/Regression/Intro 2013-14S2
 
SJUT/MAT210/Interpolation/Splines 2013-14S2
SJUT/MAT210/Interpolation/Splines 2013-14S2SJUT/MAT210/Interpolation/Splines 2013-14S2
SJUT/MAT210/Interpolation/Splines 2013-14S2
 
SJUT/Mat210/Interpolation/Lagrangian 2013-14S2
SJUT/Mat210/Interpolation/Lagrangian 2013-14S2SJUT/Mat210/Interpolation/Lagrangian 2013-14S2
SJUT/Mat210/Interpolation/Lagrangian 2013-14S2
 
SJUT/Mat210/Interpolation/Newton's Divided Difference 2013-14S2
SJUT/Mat210/Interpolation/Newton's Divided Difference  2013-14S2SJUT/Mat210/Interpolation/Newton's Divided Difference  2013-14S2
SJUT/Mat210/Interpolation/Newton's Divided Difference 2013-14S2
 
SJUT/Mat210/Interpolation/Direct 2013-14S2
SJUT/Mat210/Interpolation/Direct 2013-14S2SJUT/Mat210/Interpolation/Direct 2013-14S2
SJUT/Mat210/Interpolation/Direct 2013-14S2
 

Último

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 

Último (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

MAT210/DiffEq/Runge-Kutta 2nd Order 2013-14

  • 1. St. John's University of Tanzania MAT210 NUMERICAL ANALYSIS 2013/14 Semester II DIFFERENTIAL EQUATIONS Runge-Kutta Method Kaw, Chapter 8.03-8.04 Some parts of this presentation are based on resources at http://nm.MathForCollege.com, primarily http://mathforcollege.com/nm/topics/runge_kutta_2nd_method.html
  • 2. MAT210 2013/14 Sem II 2 of 14 Ordinary Differential Equations ● Topics ● 1st order ODE – Euler's Method  – Runge-Kutta Methods ● Higher order Initial Value ● Higher order Boundary Value – Shooting Method – Finite Differences
  • 3. MAT210 2013/14 Sem II 3 of 14 Taylor Series perspective yi+1 =yi + dy dx |xi h+ 1 2 d 2 y dx2 |xi h2 + 1 6 d 3 y dx3 |xi h3 +O(h4 ) Euler's Method ● What about the other terms? ● The challenge is finding the 2nd derivative ● That's where Runge and Kutta were clever
  • 4. MAT210 2013/14 Sem II 4 of 14 The challenge d2 y d x2 = f '(x , y) = ∂ f (x , y) ∂x + ∂ f (x , y) ∂ y dy dx ● What to do about those partial derivates? ● Brute force approach – Derive them for each specific problem – Evaluate the result ● Runge-Kutta approach – 2nd order – “Correct” the Euler Method yi + f (x , y)h ⇒ yi +(a1 f (x , y)+a2 k2)h
  • 5. MAT210 2013/14 Sem II 5 of 14 The 2nd Order Method ● Pick one and the other three fall into place ● At its heart it is a weighted average of f at the starting point and a predicted f at point somewhere in the interval ● a1 and a2 are the weights ● k1 and k2 are the two points
  • 6. MAT210 2013/14 Sem II 6 of 14 Heun's Method, a2 =1/2 ● Equal weighting ● Linear prediction at far end
  • 7. MAT210 2013/14 Sem II 7 of 14 Midpoint Method, a2 =1 ● Ignore starting point ● Estimate f at the midpoint
  • 8. MAT210 2013/14 Sem II 8 of 14 Ralston's Method, a2 =2/3 ● 1/3 to 2/3 weighting ● Estimate f at the 3/4 point
  • 9. MAT210 2013/14 Sem II 9 of 14 Previous Example Re-done
  • 10. MAT210 2013/14 Sem II 10 of 14 Applying Heun's Method
  • 11. MAT210 2013/14 Sem II 11 of 14 Completing Heun's Method
  • 12. MAT210 2013/14 Sem II 12 of 14 Seeing the convergence
  • 13. MAT210 2013/14 Sem II 13 of 14 Bringing them all together
  • 14. MAT210 2013/14 Sem II 14 of 14 Summary ● Not only is it valuable to compare Euler to Runge-Kutta, but to a full calculation of f' ● Note the approximations of f' are of minimal impact compared to improvement over Euler ● 4th order continues the pattern. (For Reading)