SlideShare a Scribd company logo
1 of 9
ENGR 232
Dynamic Engineering
Systems
Lecture 1.2 - Appendix
Introduction to Numerical
Solution
s
with Differential Equations
Dr. Michael Ryan
Runge-Kutta Methods
• Euler uses information from the current pair (tn, yn) to
determine value at the next
pair (tn+1, yn+1)
• Runge-Kutta (2nd and 4th order methods) use a look ahead to
get the slopes at
strategically chosen nearby points which are weighted to
maximize the accuracy of
the approximation.
ENGR 232 Winter 16 Lecture 1.2 – Dr. M. Ryan 201/06/2016
Second-order Runge-Kutta
(aka midpoint method)
• Use slope at (tn, yn) to look a half-step ahead to the point
• Compute slope at this midpoint and use this slope to move
from (tn, yn)
to (tn+1, yn+1)
• The algorithm follows
ENGR 232 Winter 16 Lecture 1.2 – Dr. M. Ryan 3
�� +
�
�
, ��+
�
�
�(��, ��)
01/06/2016
Second-order Runge-Kutta
(aka midpoint method)
Given the IVP �′ = � �, � � �0 = �0
And a step size of h
To go from ��,�� �� ��+1, ��+1 ���:
where
ENGR 232 Winter 16 Lecture 1.2 – Dr. M. Ryan 4
��� = � �� +
�
�
, �� +
�
�
���
��� = � ��, ��
��+� = �� + �
��+� = �� + ����
01/06/2016
Numerical Example
Consider Euler h = 0.5 step from t = 0.0 to 0.5
ENGR 232 Winter 16 Lecture 1.2 – Dr. M. Ryan 5
t y Euler dydt y analytic error
0 1 -1 1.000 0.000
0.5 0.5 0 0.713 0.213
��� = � ��, �� = � �, � = (� − �) = −�
��+� = �� + � = �. �
��+� = �� + ���� = � − �. �� = �. ��
��� = � �� +
�
�
, �� +
�
�
��� = � �. ��,�. �� = −�.�
Using Runge-Kutta
at t = 0.5, y = 0.75
Compare to Euler;
RK error is -0.037
01/06/2016
Forth-order Runge-Kutta
Given the IVP �′ = � �, � � �0 = �0
And a step size of h; to go from ��, �� �� ��+1, ��+1 :
First computing
ENGR 232 Winter 16 Lecture 1.2 – Dr. M. Ryan 6
��� = � ��, ��
��+� = �� + �
��+� = �� +
�
�
��� + ���� + ���� + ���
��� = � �� +
�
�
, �� +
�
�
���
��� = � �� +
�
�
, �� +
�
�
��� ��� = � �� +
�
�
, �� + ����
01/06/2016
Error Comparison
Method One step result Actual Error
Exact y(1) = 0.1487…
Euler y(1) = 0 0.1487…
2nd
Runge-Kutta
y(1) = 0.125 0.0237…
4th
Runge-Kutta
y(1) = 0.15 0.0013…
ENGR 232 Winter 16 Lecture 1.2 – Dr. M. Ryan 7

More Related Content

Similar to ENGR 232Dynamic Engineering SystemsLecture 1.2 - App.docx

Applications Of MATLAB Ordinary Differential Equations (ODE
Applications Of MATLAB  Ordinary Differential Equations (ODEApplications Of MATLAB  Ordinary Differential Equations (ODE
Applications Of MATLAB Ordinary Differential Equations (ODEJustin Knight
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsMeenakshisundaram N
 
Tachometers.pptx
Tachometers.pptxTachometers.pptx
Tachometers.pptxPMTIndustry
 
Numerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPTNumerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPTPanchal Anand
 
Homotopy Perturbation Method
Homotopy Perturbation MethodHomotopy Perturbation Method
Homotopy Perturbation MethodSOUMYADAS835019
 
A semi analytic method for solving nonlinear partial differential equations
A semi analytic method for solving nonlinear partial differential equationsA semi analytic method for solving nonlinear partial differential equations
A semi analytic method for solving nonlinear partial differential equationsAlexander Decker
 
Time Domain Specifications
Time Domain SpecificationsTime Domain Specifications
Time Domain SpecificationsRamkumareg
 
Slides econometrics-2018-graduate-2
Slides econometrics-2018-graduate-2Slides econometrics-2018-graduate-2
Slides econometrics-2018-graduate-2Arthur Charpentier
 
Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...
Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...
Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...IOSRJM
 
Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...
Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques S...Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques S...
Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...SAJJAD KHUDHUR ABBAS
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manualnmahi96
 
A Study on Expansion Process of a Cold Storage Using Taguchi L9 Orthogonal An...
A Study on Expansion Process of a Cold Storage Using Taguchi L9 Orthogonal An...A Study on Expansion Process of a Cold Storage Using Taguchi L9 Orthogonal An...
A Study on Expansion Process of a Cold Storage Using Taguchi L9 Orthogonal An...IJERA Editor
 
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHMTHE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHMIJCSEA Journal
 
RUNGE KUTTA METhbhbhbhbb bhbbhbhbhbhHOD.pptx
RUNGE KUTTA METhbhbhbhbb bhbbhbhbhbhHOD.pptxRUNGE KUTTA METhbhbhbhbb bhbbhbhbhbhHOD.pptx
RUNGE KUTTA METhbhbhbhbb bhbbhbhbhbhHOD.pptxkarthiknarra1906
 
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docxCALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docxRAHUL126667
 

Similar to ENGR 232Dynamic Engineering SystemsLecture 1.2 - App.docx (20)

Applications Of MATLAB Ordinary Differential Equations (ODE
Applications Of MATLAB  Ordinary Differential Equations (ODEApplications Of MATLAB  Ordinary Differential Equations (ODE
Applications Of MATLAB Ordinary Differential Equations (ODE
 
Unit vi
Unit viUnit vi
Unit vi
 
Es272 ch7
Es272 ch7Es272 ch7
Es272 ch7
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential Equations
 
Tachometers.pptx
Tachometers.pptxTachometers.pptx
Tachometers.pptx
 
Numerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPTNumerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPT
 
Homotopy Perturbation Method
Homotopy Perturbation MethodHomotopy Perturbation Method
Homotopy Perturbation Method
 
A semi analytic method for solving nonlinear partial differential equations
A semi analytic method for solving nonlinear partial differential equationsA semi analytic method for solving nonlinear partial differential equations
A semi analytic method for solving nonlinear partial differential equations
 
Time Domain Specifications
Time Domain SpecificationsTime Domain Specifications
Time Domain Specifications
 
Slides econometrics-2018-graduate-2
Slides econometrics-2018-graduate-2Slides econometrics-2018-graduate-2
Slides econometrics-2018-graduate-2
 
Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...
Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...
Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...
 
Ma2002 1.16 rm
Ma2002 1.16 rmMa2002 1.16 rm
Ma2002 1.16 rm
 
Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...
Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques S...Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques S...
Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manual
 
Mann Whitney U test
Mann Whitney U testMann Whitney U test
Mann Whitney U test
 
A Study on Expansion Process of a Cold Storage Using Taguchi L9 Orthogonal An...
A Study on Expansion Process of a Cold Storage Using Taguchi L9 Orthogonal An...A Study on Expansion Process of a Cold Storage Using Taguchi L9 Orthogonal An...
A Study on Expansion Process of a Cold Storage Using Taguchi L9 Orthogonal An...
 
Calculus
CalculusCalculus
Calculus
 
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHMTHE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
 
RUNGE KUTTA METhbhbhbhbb bhbbhbhbhbhHOD.pptx
RUNGE KUTTA METhbhbhbhbb bhbbhbhbhbhHOD.pptxRUNGE KUTTA METhbhbhbhbb bhbbhbhbhbhHOD.pptx
RUNGE KUTTA METhbhbhbhbb bhbbhbhbhbhHOD.pptx
 
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docxCALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
 

More from YASHU40

April 19, 2018 Course #Title MATU-203 – Introduction.docx
April 19, 2018  Course #Title  MATU-203 – Introduction.docxApril 19, 2018  Course #Title  MATU-203 – Introduction.docx
April 19, 2018 Course #Title MATU-203 – Introduction.docxYASHU40
 
APUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docx
APUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docxAPUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docx
APUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docxYASHU40
 
Appropriate TopicsThe Research Report, select one of the fo.docx
Appropriate TopicsThe Research Report, select one of the fo.docxAppropriate TopicsThe Research Report, select one of the fo.docx
Appropriate TopicsThe Research Report, select one of the fo.docxYASHU40
 
Approaches, Issues, Applications edited by Steffen.docx
Approaches, Issues, Applications edited by Steffen.docxApproaches, Issues, Applications edited by Steffen.docx
Approaches, Issues, Applications edited by Steffen.docxYASHU40
 
Archaic sapiens, Neandertals and the Last 10,000 YearsWhat.docx
Archaic sapiens, Neandertals and the Last 10,000 YearsWhat.docxArchaic sapiens, Neandertals and the Last 10,000 YearsWhat.docx
Archaic sapiens, Neandertals and the Last 10,000 YearsWhat.docxYASHU40
 
Applying Evidence-Based Practice”Population groups with differe.docx
Applying Evidence-Based Practice”Population groups with differe.docxApplying Evidence-Based Practice”Population groups with differe.docx
Applying Evidence-Based Practice”Population groups with differe.docxYASHU40
 
Applying Learning Theory to LifePrior to beginning work on t.docx
Applying Learning Theory to LifePrior to beginning work on t.docxApplying Learning Theory to LifePrior to beginning work on t.docx
Applying Learning Theory to LifePrior to beginning work on t.docxYASHU40
 
Apply the Symbolic Interaction Perspective to ImmigrationD.docx
Apply the Symbolic Interaction Perspective to ImmigrationD.docxApply the Symbolic Interaction Perspective to ImmigrationD.docx
Apply the Symbolic Interaction Perspective to ImmigrationD.docxYASHU40
 
April is a fourth grader with a language impairment, but no physical.docx
April is a fourth grader with a language impairment, but no physical.docxApril is a fourth grader with a language impairment, but no physical.docx
April is a fourth grader with a language impairment, but no physical.docxYASHU40
 
Approximately 1000 words.Synthesizing the theories (you do not.docx
Approximately 1000 words.Synthesizing the theories (you do not.docxApproximately 1000 words.Synthesizing the theories (you do not.docx
Approximately 1000 words.Synthesizing the theories (you do not.docxYASHU40
 
Approaches to Forecasting Policy Outcomes Please respond to th.docx
Approaches to Forecasting Policy Outcomes Please respond to th.docxApproaches to Forecasting Policy Outcomes Please respond to th.docx
Approaches to Forecasting Policy Outcomes Please respond to th.docxYASHU40
 
Apply the course concepts of the dark side of self-esteem and .docx
Apply the course concepts of the dark side of self-esteem and .docxApply the course concepts of the dark side of self-esteem and .docx
Apply the course concepts of the dark side of self-esteem and .docxYASHU40
 
Apply information from the Aquifer Case Study to answer the foll.docx
Apply information from the Aquifer Case Study to answer the foll.docxApply information from the Aquifer Case Study to answer the foll.docx
Apply information from the Aquifer Case Study to answer the foll.docxYASHU40
 
Apply appropriate elements of the U.S. legal system and the U.S. Con.docx
Apply appropriate elements of the U.S. legal system and the U.S. Con.docxApply appropriate elements of the U.S. legal system and the U.S. Con.docx
Apply appropriate elements of the U.S. legal system and the U.S. Con.docxYASHU40
 
APA format Analysis of the Culture using a Culturally Competent.docx
APA format Analysis of the Culture using a Culturally Competent.docxAPA format Analysis of the Culture using a Culturally Competent.docx
APA format Analysis of the Culture using a Culturally Competent.docxYASHU40
 
APA less than 10 similarityWeek 7 Discussion Question Chapter.docx
APA less than 10  similarityWeek 7 Discussion Question Chapter.docxAPA less than 10  similarityWeek 7 Discussion Question Chapter.docx
APA less than 10 similarityWeek 7 Discussion Question Chapter.docxYASHU40
 
APPLE 13Business Analytics Plan for BIAM300Author Miguel .docx
APPLE 13Business Analytics Plan for BIAM300Author Miguel .docxAPPLE 13Business Analytics Plan for BIAM300Author Miguel .docx
APPLE 13Business Analytics Plan for BIAM300Author Miguel .docxYASHU40
 
APAless than 10 similarityWeek 4 Discussion Question .docx
APAless than 10  similarityWeek 4 Discussion Question .docxAPAless than 10  similarityWeek 4 Discussion Question .docx
APAless than 10 similarityWeek 4 Discussion Question .docxYASHU40
 
APA Style [Sources, included] single-spaced, one to two-page paper r.docx
APA Style [Sources, included] single-spaced, one to two-page paper r.docxAPA Style [Sources, included] single-spaced, one to two-page paper r.docx
APA Style [Sources, included] single-spaced, one to two-page paper r.docxYASHU40
 
Application Case Siemens Builds a Strategy-Oriented HR System.docx
Application Case Siemens Builds a Strategy-Oriented HR System.docxApplication Case Siemens Builds a Strategy-Oriented HR System.docx
Application Case Siemens Builds a Strategy-Oriented HR System.docxYASHU40
 

More from YASHU40 (20)

April 19, 2018 Course #Title MATU-203 – Introduction.docx
April 19, 2018  Course #Title  MATU-203 – Introduction.docxApril 19, 2018  Course #Title  MATU-203 – Introduction.docx
April 19, 2018 Course #Title MATU-203 – Introduction.docx
 
APUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docx
APUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docxAPUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docx
APUS Assignment Rubric Undergraduate Level EXEMPLARYLEVEL4.docx
 
Appropriate TopicsThe Research Report, select one of the fo.docx
Appropriate TopicsThe Research Report, select one of the fo.docxAppropriate TopicsThe Research Report, select one of the fo.docx
Appropriate TopicsThe Research Report, select one of the fo.docx
 
Approaches, Issues, Applications edited by Steffen.docx
Approaches, Issues, Applications edited by Steffen.docxApproaches, Issues, Applications edited by Steffen.docx
Approaches, Issues, Applications edited by Steffen.docx
 
Archaic sapiens, Neandertals and the Last 10,000 YearsWhat.docx
Archaic sapiens, Neandertals and the Last 10,000 YearsWhat.docxArchaic sapiens, Neandertals and the Last 10,000 YearsWhat.docx
Archaic sapiens, Neandertals and the Last 10,000 YearsWhat.docx
 
Applying Evidence-Based Practice”Population groups with differe.docx
Applying Evidence-Based Practice”Population groups with differe.docxApplying Evidence-Based Practice”Population groups with differe.docx
Applying Evidence-Based Practice”Population groups with differe.docx
 
Applying Learning Theory to LifePrior to beginning work on t.docx
Applying Learning Theory to LifePrior to beginning work on t.docxApplying Learning Theory to LifePrior to beginning work on t.docx
Applying Learning Theory to LifePrior to beginning work on t.docx
 
Apply the Symbolic Interaction Perspective to ImmigrationD.docx
Apply the Symbolic Interaction Perspective to ImmigrationD.docxApply the Symbolic Interaction Perspective to ImmigrationD.docx
Apply the Symbolic Interaction Perspective to ImmigrationD.docx
 
April is a fourth grader with a language impairment, but no physical.docx
April is a fourth grader with a language impairment, but no physical.docxApril is a fourth grader with a language impairment, but no physical.docx
April is a fourth grader with a language impairment, but no physical.docx
 
Approximately 1000 words.Synthesizing the theories (you do not.docx
Approximately 1000 words.Synthesizing the theories (you do not.docxApproximately 1000 words.Synthesizing the theories (you do not.docx
Approximately 1000 words.Synthesizing the theories (you do not.docx
 
Approaches to Forecasting Policy Outcomes Please respond to th.docx
Approaches to Forecasting Policy Outcomes Please respond to th.docxApproaches to Forecasting Policy Outcomes Please respond to th.docx
Approaches to Forecasting Policy Outcomes Please respond to th.docx
 
Apply the course concepts of the dark side of self-esteem and .docx
Apply the course concepts of the dark side of self-esteem and .docxApply the course concepts of the dark side of self-esteem and .docx
Apply the course concepts of the dark side of self-esteem and .docx
 
Apply information from the Aquifer Case Study to answer the foll.docx
Apply information from the Aquifer Case Study to answer the foll.docxApply information from the Aquifer Case Study to answer the foll.docx
Apply information from the Aquifer Case Study to answer the foll.docx
 
Apply appropriate elements of the U.S. legal system and the U.S. Con.docx
Apply appropriate elements of the U.S. legal system and the U.S. Con.docxApply appropriate elements of the U.S. legal system and the U.S. Con.docx
Apply appropriate elements of the U.S. legal system and the U.S. Con.docx
 
APA format Analysis of the Culture using a Culturally Competent.docx
APA format Analysis of the Culture using a Culturally Competent.docxAPA format Analysis of the Culture using a Culturally Competent.docx
APA format Analysis of the Culture using a Culturally Competent.docx
 
APA less than 10 similarityWeek 7 Discussion Question Chapter.docx
APA less than 10  similarityWeek 7 Discussion Question Chapter.docxAPA less than 10  similarityWeek 7 Discussion Question Chapter.docx
APA less than 10 similarityWeek 7 Discussion Question Chapter.docx
 
APPLE 13Business Analytics Plan for BIAM300Author Miguel .docx
APPLE 13Business Analytics Plan for BIAM300Author Miguel .docxAPPLE 13Business Analytics Plan for BIAM300Author Miguel .docx
APPLE 13Business Analytics Plan for BIAM300Author Miguel .docx
 
APAless than 10 similarityWeek 4 Discussion Question .docx
APAless than 10  similarityWeek 4 Discussion Question .docxAPAless than 10  similarityWeek 4 Discussion Question .docx
APAless than 10 similarityWeek 4 Discussion Question .docx
 
APA Style [Sources, included] single-spaced, one to two-page paper r.docx
APA Style [Sources, included] single-spaced, one to two-page paper r.docxAPA Style [Sources, included] single-spaced, one to two-page paper r.docx
APA Style [Sources, included] single-spaced, one to two-page paper r.docx
 
Application Case Siemens Builds a Strategy-Oriented HR System.docx
Application Case Siemens Builds a Strategy-Oriented HR System.docxApplication Case Siemens Builds a Strategy-Oriented HR System.docx
Application Case Siemens Builds a Strategy-Oriented HR System.docx
 

Recently uploaded

BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...Nguyen Thanh Tu Collection
 
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfMinawBelay
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdfVikramadityaRaj
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxCeline George
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptxPoojaSen20
 
Software testing for project report .pdf
Software testing for project report .pdfSoftware testing for project report .pdf
Software testing for project report .pdfKamal Acharya
 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...Krashi Coaching
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Mark Carrigan
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatmentsaipooja36
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptxPoojaSen20
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the lifeNitinDeodare
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIagpharmacy11
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45MysoreMuleSoftMeetup
 

Recently uploaded (20)

“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Software testing for project report .pdf
Software testing for project report .pdfSoftware testing for project report .pdf
Software testing for project report .pdf
 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 

ENGR 232Dynamic Engineering SystemsLecture 1.2 - App.docx

  • 1. ENGR 232 Dynamic Engineering Systems Lecture 1.2 - Appendix Introduction to Numerical Solution s with Differential Equations Dr. Michael Ryan Runge-Kutta Methods • Euler uses information from the current pair (tn, yn) to determine value at the next pair (tn+1, yn+1)
  • 2. • Runge-Kutta (2nd and 4th order methods) use a look ahead to get the slopes at strategically chosen nearby points which are weighted to maximize the accuracy of the approximation. ENGR 232 Winter 16 Lecture 1.2 – Dr. M. Ryan 201/06/2016 Second-order Runge-Kutta (aka midpoint method) • Use slope at (tn, yn) to look a half-step ahead to the point • Compute slope at this midpoint and use this slope to move from (tn, yn) to (tn+1, yn+1) • The algorithm follows ENGR 232 Winter 16 Lecture 1.2 – Dr. M. Ryan 3 �� + �
  • 3. � , ��+ � � �(��, ��) 01/06/2016 Second-order Runge-Kutta (aka midpoint method) Given the IVP �′ = � �, � � �0 = �0 And a step size of h To go from ��,�� �� ��+1, ��+1 ���: where ENGR 232 Winter 16 Lecture 1.2 – Dr. M. Ryan 4
  • 4. ��� = � �� + � � , �� + � � ��� ��� = � ��, �� ��+� = �� + � ��+� = �� + ���� 01/06/2016 Numerical Example Consider Euler h = 0.5 step from t = 0.0 to 0.5
  • 5. ENGR 232 Winter 16 Lecture 1.2 – Dr. M. Ryan 5 t y Euler dydt y analytic error 0 1 -1 1.000 0.000 0.5 0.5 0 0.713 0.213 ��� = � ��, �� = � �, � = (� − �) = −� ��+� = �� + � = �. � ��+� = �� + ���� = � − �. �� = �. �� ��� = � �� + � � , �� + � � ��� = � �. ��,�. �� = −�.�
  • 6. Using Runge-Kutta at t = 0.5, y = 0.75 Compare to Euler; RK error is -0.037 01/06/2016 Forth-order Runge-Kutta Given the IVP �′ = � �, � � �0 = �0 And a step size of h; to go from ��, �� �� ��+1, ��+1 : First computing ENGR 232 Winter 16 Lecture 1.2 – Dr. M. Ryan 6 ��� = � ��, �� ��+� = �� + � ��+� = �� + �
  • 7. � ��� + ���� + ���� + ��� ��� = � �� + � � , �� + � � ��� ��� = � �� + � � , �� + � � ��� ��� = � �� +
  • 8. � � , �� + ���� 01/06/2016 Error Comparison Method One step result Actual Error Exact y(1) = 0.1487… Euler y(1) = 0 0.1487… 2nd Runge-Kutta y(1) = 0.125 0.0237… 4th Runge-Kutta
  • 9. y(1) = 0.15 0.0013… ENGR 232 Winter 16 Lecture 1.2 – Dr. M. Ryan 7